diff --git a/admin/admin_request_builder.go b/admin/admin_request_builder.go index 9bc5dc53911..b9a6ae94c88 100644 --- a/admin/admin_request_builder.go +++ b/admin/admin_request_builder.go @@ -62,6 +62,11 @@ func (m *AdminRequestBuilder) Dynamics()(*DynamicsRequestBuilder) { func (m *AdminRequestBuilder) Edge()(*EdgeRequestBuilder) { return NewEdgeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// Entra provides operations to manage the entra property of the microsoft.graph.admin entity. +// returns a *EntraRequestBuilder when successful +func (m *AdminRequestBuilder) Entra()(*EntraRequestBuilder) { + return NewEntraRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Forms provides operations to manage the forms property of the microsoft.graph.admin entity. // returns a *FormsRequestBuilder when successful func (m *AdminRequestBuilder) Forms()(*FormsRequestBuilder) { diff --git a/admin/entra_request_builder.go b/admin/entra_request_builder.go new file mode 100644 index 00000000000..7b546efe3b4 --- /dev/null +++ b/admin/entra_request_builder.go @@ -0,0 +1,169 @@ +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// EntraRequestBuilder provides operations to manage the entra property of the microsoft.graph.admin entity. +type EntraRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// EntraRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type EntraRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// EntraRequestBuilderGetQueryParameters get entra from admin +type EntraRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// EntraRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type EntraRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *EntraRequestBuilderGetQueryParameters +} +// EntraRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type EntraRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewEntraRequestBuilderInternal instantiates a new EntraRequestBuilder and sets the default values. +func NewEntraRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*EntraRequestBuilder) { + m := &EntraRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/entra{?%24expand,%24select}", pathParameters), + } + return m +} +// NewEntraRequestBuilder instantiates a new EntraRequestBuilder and sets the default values. +func NewEntraRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*EntraRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewEntraRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property entra for admin +// Deprecated: as of 2023-11/PrivatePreview:BulkJobs +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *EntraRequestBuilder) Delete(ctx context.Context, requestConfiguration *EntraRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get entra from admin +// Deprecated: as of 2023-11/PrivatePreview:BulkJobs +// returns a Entraable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *EntraRequestBuilder) Get(ctx context.Context, requestConfiguration *EntraRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entraable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateEntraFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entraable), nil +} +// Patch update the navigation property entra in admin +// Deprecated: as of 2023-11/PrivatePreview:BulkJobs +// returns a Entraable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *EntraRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entraable, requestConfiguration *EntraRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entraable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateEntraFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entraable), nil +} +// ToDeleteRequestInformation delete navigation property entra for admin +// Deprecated: as of 2023-11/PrivatePreview:BulkJobs +// returns a *RequestInformation when successful +func (m *EntraRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *EntraRequestBuilderDeleteRequestConfiguration)(*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 entra from admin +// Deprecated: as of 2023-11/PrivatePreview:BulkJobs +// returns a *RequestInformation when successful +func (m *EntraRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EntraRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 entra in admin +// Deprecated: as of 2023-11/PrivatePreview:BulkJobs +// returns a *RequestInformation when successful +func (m *EntraRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entraable, requestConfiguration *EntraRequestBuilderPatchRequestConfiguration)(*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 +} +// UxSetting provides operations to manage the uxSetting property of the microsoft.graph.entra entity. +// returns a *EntraUxSettingRequestBuilder when successful +func (m *EntraRequestBuilder) UxSetting()(*EntraUxSettingRequestBuilder) { + return NewEntraUxSettingRequestBuilderInternal(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. +// Deprecated: as of 2023-11/PrivatePreview:BulkJobs +// returns a *EntraRequestBuilder when successful +func (m *EntraRequestBuilder) WithUrl(rawUrl string)(*EntraRequestBuilder) { + return NewEntraRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/entra_ux_setting_request_builder.go b/admin/entra_ux_setting_request_builder.go new file mode 100644 index 00000000000..e9846ee9d4e --- /dev/null +++ b/admin/entra_ux_setting_request_builder.go @@ -0,0 +1,164 @@ +package admin + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// EntraUxSettingRequestBuilder provides operations to manage the uxSetting property of the microsoft.graph.entra entity. +type EntraUxSettingRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// EntraUxSettingRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type EntraUxSettingRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// EntraUxSettingRequestBuilderGetQueryParameters get uxSetting from admin +type EntraUxSettingRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// EntraUxSettingRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type EntraUxSettingRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *EntraUxSettingRequestBuilderGetQueryParameters +} +// EntraUxSettingRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type EntraUxSettingRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewEntraUxSettingRequestBuilderInternal instantiates a new EntraUxSettingRequestBuilder and sets the default values. +func NewEntraUxSettingRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*EntraUxSettingRequestBuilder) { + m := &EntraUxSettingRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/admin/entra/uxSetting{?%24expand,%24select}", pathParameters), + } + return m +} +// NewEntraUxSettingRequestBuilder instantiates a new EntraUxSettingRequestBuilder and sets the default values. +func NewEntraUxSettingRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*EntraUxSettingRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewEntraUxSettingRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property uxSetting for admin +// Deprecated: as of 2023-11/PrivatePreview:BulkJobs +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *EntraUxSettingRequestBuilder) Delete(ctx context.Context, requestConfiguration *EntraUxSettingRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get uxSetting from admin +// Deprecated: as of 2023-11/PrivatePreview:BulkJobs +// returns a UxSettingable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *EntraUxSettingRequestBuilder) Get(ctx context.Context, requestConfiguration *EntraUxSettingRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UxSettingable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateUxSettingFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UxSettingable), nil +} +// Patch update the navigation property uxSetting in admin +// Deprecated: as of 2023-11/PrivatePreview:BulkJobs +// returns a UxSettingable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *EntraUxSettingRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UxSettingable, requestConfiguration *EntraUxSettingRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UxSettingable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateUxSettingFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UxSettingable), nil +} +// ToDeleteRequestInformation delete navigation property uxSetting for admin +// Deprecated: as of 2023-11/PrivatePreview:BulkJobs +// returns a *RequestInformation when successful +func (m *EntraUxSettingRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *EntraUxSettingRequestBuilderDeleteRequestConfiguration)(*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 uxSetting from admin +// Deprecated: as of 2023-11/PrivatePreview:BulkJobs +// returns a *RequestInformation when successful +func (m *EntraUxSettingRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EntraUxSettingRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 uxSetting in admin +// Deprecated: as of 2023-11/PrivatePreview:BulkJobs +// returns a *RequestInformation when successful +func (m *EntraUxSettingRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UxSettingable, requestConfiguration *EntraUxSettingRequestBuilderPatchRequestConfiguration)(*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. +// Deprecated: as of 2023-11/PrivatePreview:BulkJobs +// returns a *EntraUxSettingRequestBuilder when successful +func (m *EntraUxSettingRequestBuilder) WithUrl(rawUrl string)(*EntraUxSettingRequestBuilder) { + return NewEntraUxSettingRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/admin/windows_updates_resource_connections_resource_connection_item_request_builder.go b/admin/windows_updates_resource_connections_resource_connection_item_request_builder.go index 07667fd352b..33461843791 100644 --- a/admin/windows_updates_resource_connections_resource_connection_item_request_builder.go +++ b/admin/windows_updates_resource_connections_resource_connection_item_request_builder.go @@ -18,7 +18,7 @@ type WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilderDelete // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilderGetQueryParameters read the properties and relationships of a resourceConnection object. +// WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilderGetQueryParameters read the properties and relationships of an operationalInsightsConnection object. type WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -73,12 +73,12 @@ func (m *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilder) } return nil } -// Get read the properties and relationships of a resourceConnection object. +// Get read the properties and relationships of an operationalInsightsConnection object. // returns a ResourceConnectionable 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/windowsupdates-resourceconnection-get?view=graph-rest-beta +// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-operationalinsightsconnection-get?view=graph-rest-beta func (m *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilderGetRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ResourceConnectionable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -127,7 +127,7 @@ func (m *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilder) requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation read the properties and relationships of a resourceConnection object. +// ToGetRequestInformation read the properties and relationships of an operationalInsightsConnection object. // returns a *RequestInformation when successful func (m *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesResourceConnectionsResourceConnectionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/admin/windows_updates_updatable_assets_updatable_asset_item_request_builder.go b/admin/windows_updates_updatable_assets_updatable_asset_item_request_builder.go index 16a8908654f..0fff05928bb 100644 --- a/admin/windows_updates_updatable_assets_updatable_asset_item_request_builder.go +++ b/admin/windows_updates_updatable_assets_updatable_asset_item_request_builder.go @@ -18,7 +18,7 @@ type WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilderDeleteRequestC // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilderGetQueryParameters read the properties of an azureADDevice object. +// WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilderGetQueryParameters read the properties and relationships of an updatableAssetGroup object. type WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -73,12 +73,12 @@ func (m *WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilder) Delete(c } return nil } -// Get read the properties of an azureADDevice object. +// Get read the properties and relationships of an updatableAssetGroup object. // returns a UpdatableAssetable 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/windowsupdates-azureaddevice-get?view=graph-rest-beta +// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-updatableassetgroup-get?view=graph-rest-beta func (m *WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilder) Get(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilderGetRequestConfiguration)(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.UpdatableAssetable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -147,7 +147,7 @@ func (m *WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilder) ToDelete requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation read the properties of an azureADDevice object. +// ToGetRequestInformation read the properties and relationships of an updatableAssetGroup object. // returns a *RequestInformation when successful func (m *WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatableAssetsUpdatableAssetItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/admin/windows_updates_update_policies_item_compliance_changes_compliance_change_item_request_builder.go b/admin/windows_updates_update_policies_item_compliance_changes_compliance_change_item_request_builder.go index 576df50b6e2..42a243c9ad9 100644 --- a/admin/windows_updates_update_policies_item_compliance_changes_compliance_change_item_request_builder.go +++ b/admin/windows_updates_update_policies_item_compliance_changes_compliance_change_item_request_builder.go @@ -54,11 +54,11 @@ func NewWindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemReq urlParams["request-raw-url"] = rawUrl return NewWindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete a complianceChange object. +// Delete delete a contentApproval 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/windowsupdates-compliancechange-delete?view=graph-rest-beta +// [Find more info here]: https://learn.microsoft.com/graph/api/windowsupdates-contentapproval-delete?view=graph-rest-beta func (m *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -119,7 +119,7 @@ func (m *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRe } return res.(i17376df570f19ff3c32da2d66a677d31250ed0ff64059351645f48a152316b3c.ComplianceChangeable), nil } -// ToDeleteRequestInformation delete a complianceChange object. +// ToDeleteRequestInformation delete a contentApproval object. // returns a *RequestInformation when successful func (m *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *WindowsUpdatesUpdatePoliciesItemComplianceChangesComplianceChangeItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/administrativeunits/item_members_graph_user_count_request_builder.go b/administrativeunits/item_members_graph_user_count_request_builder.go index 20a1142c90b..062d1f57b3a 100644 --- a/administrativeunits/item_members_graph_user_count_request_builder.go +++ b/administrativeunits/item_members_graph_user_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemMembersGraphUserCountRequestBuilder(rawUrl string, requestAdapter i2 return NewItemMembersGraphUserCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMembersGraphUserCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMembersGraphUserCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemMembersGraphUserCountRequestBuilder) Get(ctx context.Context, reque return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMembersGraphUserCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMembersGraphUserCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemMembersGraphUserCountRequestBuilder) ToGetRequestInformation(ctx co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMembersGraphUserCountRequestBuilder when successful func (m *ItemMembersGraphUserCountRequestBuilder) WithUrl(rawUrl string)(*ItemMembersGraphUserCountRequestBuilder) { return NewItemMembersGraphUserCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/administrativeunits/item_members_graph_user_request_builder.go b/administrativeunits/item_members_graph_user_request_builder.go index 464e6d386bc..4b4fdcde354 100644 --- a/administrativeunits/item_members_graph_user_request_builder.go +++ b/administrativeunits/item_members_graph_user_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemMembersGraphUserRequestBuilder) Count()(*ItemMembersGraphUserCountR return NewItemMembersGraphUserCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMembersGraphUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMembersGraphUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemMembersGraphUserRequestBuilder) Get(ctx context.Context, requestCon return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable), nil } // ToGetRequestInformation get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMembersGraphUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMembersGraphUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemMembersGraphUserRequestBuilder) ToGetRequestInformation(ctx context return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMembersGraphUserRequestBuilder when successful func (m *ItemMembersGraphUserRequestBuilder) WithUrl(rawUrl string)(*ItemMembersGraphUserRequestBuilder) { return NewItemMembersGraphUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/administrativeunits/item_members_item_graph_user_request_builder.go b/administrativeunits/item_members_item_graph_user_request_builder.go index 52b33e772eb..6b821351c4c 100644 --- a/administrativeunits/item_members_item_graph_user_request_builder.go +++ b/administrativeunits/item_members_item_graph_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemMembersItemGraphUserRequestBuilder(rawUrl string, requestAdapter i2a return NewItemMembersItemGraphUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get the item of type microsoft.graph.directoryObject as microsoft.graph.user +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMembersItemGraphUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMembersItemGraphUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -61,6 +62,7 @@ func (m *ItemMembersItemGraphUserRequestBuilder) Get(ctx context.Context, reques return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable), nil } // ToGetRequestInformation get the item of type microsoft.graph.directoryObject as microsoft.graph.user +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMembersItemGraphUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMembersItemGraphUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemMembersItemGraphUserRequestBuilder) ToGetRequestInformation(ctx con return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMembersItemGraphUserRequestBuilder when successful func (m *ItemMembersItemGraphUserRequestBuilder) WithUrl(rawUrl string)(*ItemMembersItemGraphUserRequestBuilder) { return NewItemMembersItemGraphUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/app/0bf80fa87a0c9aff44b1604cb3435dd5b1ae4a18cbb0c2248bbdc9bc3deba678.go b/app/0bf80fa87a0c9aff44b1604cb3435dd5b1ae4a18cbb0c2248bbdc9bc3deba678.go index ac22a13cb56..13f476135ab 100644 --- a/app/0bf80fa87a0c9aff44b1604cb3435dd5b1ae4a18cbb0c2248bbdc9bc3deba678.go +++ b/app/0bf80fa87a0c9aff44b1604cb3435dd5b1ae4a18cbb0c2248bbdc9bc3deba678.go @@ -11,7 +11,7 @@ import ( type OnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// OnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters get all recordings from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call recordings from channel meetings. You can apply the delta function on getAllRecordings to synchronize and get callRecording resources as they're added for onlineMeeting instances organized by the specified user. The delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the recordings for online meetings organized by the user. Incremental synchronization gets recordings that are added since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that recording view periodically. Find more information in the delta query documentation. For more examples, see callRecording: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. +// OnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters get all recordings from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call recordings from channel meetings. You can apply the delta function on getAllRecordings to synchronize and get callRecording resources as they're added for onlineMeeting instances organized by the specified user. The delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the recordings for online meetings organized by the user. Incremental synchronization gets recordings that are added since the last synchronization. Typically, you do an initial full synchronization, and then get incremental changes to that recording view periodically. Find more information in the delta query documentation. For more examples, see callRecording: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. type OnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -58,7 +58,7 @@ func NewOnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUser urlParams["request-raw-url"] = rawUrl return NewOnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilderInternal(urlParams, requestAdapter) } -// Get get all recordings from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call recordings from channel meetings. You can apply the delta function on getAllRecordings to synchronize and get callRecording resources as they're added for onlineMeeting instances organized by the specified user. The delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the recordings for online meetings organized by the user. Incremental synchronization gets recordings that are added since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that recording view periodically. Find more information in the delta query documentation. For more examples, see callRecording: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. +// Get get all recordings from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call recordings from channel meetings. You can apply the delta function on getAllRecordings to synchronize and get callRecording resources as they're added for onlineMeeting instances organized by the specified user. The delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the recordings for online meetings organized by the user. Incremental synchronization gets recordings that are added since the last synchronization. Typically, you do an initial full synchronization, and then get incremental changes to that recording view periodically. Find more information in the delta query documentation. For more examples, see callRecording: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. // Deprecated: This method is obsolete. Use GetAsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponse instead. // returns a OnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -82,7 +82,7 @@ func (m *OnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUse } return res.(OnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeResponseable), nil } -// GetAsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponse get all recordings from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call recordings from channel meetings. You can apply the delta function on getAllRecordings to synchronize and get callRecording resources as they're added for onlineMeeting instances organized by the specified user. The delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the recordings for online meetings organized by the user. Incremental synchronization gets recordings that are added since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that recording view periodically. Find more information in the delta query documentation. For more examples, see callRecording: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. +// GetAsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponse get all recordings from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call recordings from channel meetings. You can apply the delta function on getAllRecordings to synchronize and get callRecording resources as they're added for onlineMeeting instances organized by the specified user. The delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the recordings for online meetings organized by the user. Incremental synchronization gets recordings that are added since the last synchronization. Typically, you do an initial full synchronization, and then get incremental changes to that recording view periodically. Find more information in the delta query documentation. For more examples, see callRecording: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. // returns a OnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -105,7 +105,7 @@ func (m *OnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUse } return res.(OnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponseable), nil } -// ToGetRequestInformation get all recordings from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call recordings from channel meetings. You can apply the delta function on getAllRecordings to synchronize and get callRecording resources as they're added for onlineMeeting instances organized by the specified user. The delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the recordings for online meetings organized by the user. Incremental synchronization gets recordings that are added since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that recording view periodically. Find more information in the delta query documentation. For more examples, see callRecording: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. +// ToGetRequestInformation get all recordings from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call recordings from channel meetings. You can apply the delta function on getAllRecordings to synchronize and get callRecording resources as they're added for onlineMeeting instances organized by the specified user. The delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the recordings for online meetings organized by the user. Incremental synchronization gets recordings that are added since the last synchronization. Typically, you do an initial full synchronization, and then get incremental changes to that recording view periodically. Find more information in the delta query documentation. For more examples, see callRecording: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. // returns a *RequestInformation when successful func (m *OnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *OnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/app/9a61bc07c454c4269711894fc89081b0c6028b78971fc3552f782f6271a6ff8a.go b/app/9a61bc07c454c4269711894fc89081b0c6028b78971fc3552f782f6271a6ff8a.go index 37573721a44..1242a47dbbf 100644 --- a/app/9a61bc07c454c4269711894fc89081b0c6028b78971fc3552f782f6271a6ff8a.go +++ b/app/9a61bc07c454c4269711894fc89081b0c6028b78971fc3552f782f6271a6ff8a.go @@ -11,7 +11,7 @@ import ( type OnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// OnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters get all transcripts from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call transcripts from channel meetings. You can apply the delta function on getAllTranscripts to synchronize and get callTranscript resources as they're added for onlineMeeting instances organized by the specified user. Delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the transcripts for online meetings organized by the user. Incremental synchronization gets transcripts that are added since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that recording view periodically. For more information, see delta query. For more examples, see callTranscript: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. +// OnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters get all transcripts from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call transcripts from channel meetings. You can apply the delta function on getAllTranscripts to synchronize and get callTranscript resources as they're added for onlineMeeting instances organized by the specified user. Delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the transcripts for online meetings organized by the user. Incremental synchronization gets transcripts that are added since the last synchronization. Typically, you do an initial full synchronization, and then get incremental changes to that recording view periodically. For more information, see delta query. For more examples, see callTranscript: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. type OnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -58,7 +58,7 @@ func NewOnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUse urlParams["request-raw-url"] = rawUrl return NewOnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilderInternal(urlParams, requestAdapter) } -// Get get all transcripts from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call transcripts from channel meetings. You can apply the delta function on getAllTranscripts to synchronize and get callTranscript resources as they're added for onlineMeeting instances organized by the specified user. Delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the transcripts for online meetings organized by the user. Incremental synchronization gets transcripts that are added since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that recording view periodically. For more information, see delta query. For more examples, see callTranscript: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. +// Get get all transcripts from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call transcripts from channel meetings. You can apply the delta function on getAllTranscripts to synchronize and get callTranscript resources as they're added for onlineMeeting instances organized by the specified user. Delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the transcripts for online meetings organized by the user. Incremental synchronization gets transcripts that are added since the last synchronization. Typically, you do an initial full synchronization, and then get incremental changes to that recording view periodically. For more information, see delta query. For more examples, see callTranscript: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. // Deprecated: This method is obsolete. Use GetAsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponse instead. // returns a OnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -82,7 +82,7 @@ func (m *OnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUs } return res.(OnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeResponseable), nil } -// GetAsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponse get all transcripts from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call transcripts from channel meetings. You can apply the delta function on getAllTranscripts to synchronize and get callTranscript resources as they're added for onlineMeeting instances organized by the specified user. Delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the transcripts for online meetings organized by the user. Incremental synchronization gets transcripts that are added since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that recording view periodically. For more information, see delta query. For more examples, see callTranscript: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. +// GetAsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponse get all transcripts from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call transcripts from channel meetings. You can apply the delta function on getAllTranscripts to synchronize and get callTranscript resources as they're added for onlineMeeting instances organized by the specified user. Delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the transcripts for online meetings organized by the user. Incremental synchronization gets transcripts that are added since the last synchronization. Typically, you do an initial full synchronization, and then get incremental changes to that recording view periodically. For more information, see delta query. For more examples, see callTranscript: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. // returns a OnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -105,7 +105,7 @@ func (m *OnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUs } return res.(OnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponseable), nil } -// ToGetRequestInformation get all transcripts from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call transcripts from channel meetings. You can apply the delta function on getAllTranscripts to synchronize and get callTranscript resources as they're added for onlineMeeting instances organized by the specified user. Delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the transcripts for online meetings organized by the user. Incremental synchronization gets transcripts that are added since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that recording view periodically. For more information, see delta query. For more examples, see callTranscript: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. +// ToGetRequestInformation get all transcripts from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call transcripts from channel meetings. You can apply the delta function on getAllTranscripts to synchronize and get callTranscript resources as they're added for onlineMeeting instances organized by the specified user. Delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the transcripts for online meetings organized by the user. Incremental synchronization gets transcripts that are added since the last synchronization. Typically, you do an initial full synchronization, and then get incremental changes to that recording view periodically. For more information, see delta query. For more examples, see callTranscript: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. // returns a *RequestInformation when successful func (m *OnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *OnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/app/calls_item_answer_request_builder.go b/app/calls_item_answer_request_builder.go index 1e9cc83b75a..f45bffbf842 100644 --- a/app/calls_item_answer_request_builder.go +++ b/app/calls_item_answer_request_builder.go @@ -30,7 +30,7 @@ func NewCallsItemAnswerRequestBuilder(rawUrl string, requestAdapter i2ae4187f7da urlParams["request-raw-url"] = rawUrl return NewCallsItemAnswerRequestBuilderInternal(urlParams, requestAdapter) } -// Post enable a bot to answer an incoming call. The incoming call request can be an invite from a participant in a group call or a peer-to-peer call. If an invite to a group call is received, the notification contains the chatInfo and meetingInfo parameters. The bot is expected to answer, reject or redirect the call before the call times out. The current timeout value is 15 seconds. The current timeout value is 15 seconds for regular scenarios, and 5 seconds for policy-based recording scenarios. +// Post enable a bot to answer an incoming call. The incoming call request can be an invitation from a participant in a group call or a peer-to-peer call. If an invitation to a group call is received, the notification contains the chatInfo and meetingInfo parameters. The bot is expected to answer, reject or redirect the call before the call times out. The current timeout value is 15 seconds. The current timeout value is 15 seconds for regular scenarios, and 5 seconds for policy-based recording scenarios. This API supports the following PSTN scenarios: // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *CallsItemAnswerRequestBuilder) Post(ctx context.Context, body CallsItem } return nil } -// ToPostRequestInformation enable a bot to answer an incoming call. The incoming call request can be an invite from a participant in a group call or a peer-to-peer call. If an invite to a group call is received, the notification contains the chatInfo and meetingInfo parameters. The bot is expected to answer, reject or redirect the call before the call times out. The current timeout value is 15 seconds. The current timeout value is 15 seconds for regular scenarios, and 5 seconds for policy-based recording scenarios. +// ToPostRequestInformation enable a bot to answer an incoming call. The incoming call request can be an invitation from a participant in a group call or a peer-to-peer call. If an invitation to a group call is received, the notification contains the chatInfo and meetingInfo parameters. The bot is expected to answer, reject or redirect the call before the call times out. The current timeout value is 15 seconds. The current timeout value is 15 seconds for regular scenarios, and 5 seconds for policy-based recording scenarios. This API supports the following PSTN scenarios: // returns a *RequestInformation when successful func (m *CallsItemAnswerRequestBuilder) ToPostRequestInformation(ctx context.Context, body CallsItemAnswerPostRequestBodyable, requestConfiguration *CallsItemAnswerRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/applications/item_owners_graph_user_count_request_builder.go b/applications/item_owners_graph_user_count_request_builder.go index 55772bbcef0..4f5de0ba9d7 100644 --- a/applications/item_owners_graph_user_count_request_builder.go +++ b/applications/item_owners_graph_user_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemOwnersGraphUserCountRequestBuilder(rawUrl string, requestAdapter i2a return NewItemOwnersGraphUserCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOwnersGraphUserCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOwnersGraphUserCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemOwnersGraphUserCountRequestBuilder) Get(ctx context.Context, reques return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOwnersGraphUserCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnersGraphUserCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemOwnersGraphUserCountRequestBuilder) ToGetRequestInformation(ctx con return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOwnersGraphUserCountRequestBuilder when successful func (m *ItemOwnersGraphUserCountRequestBuilder) WithUrl(rawUrl string)(*ItemOwnersGraphUserCountRequestBuilder) { return NewItemOwnersGraphUserCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/applications/item_owners_graph_user_request_builder.go b/applications/item_owners_graph_user_request_builder.go index 27a3c7a4347..a33cb35f399 100644 --- a/applications/item_owners_graph_user_request_builder.go +++ b/applications/item_owners_graph_user_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemOwnersGraphUserRequestBuilder) Count()(*ItemOwnersGraphUserCountReq return NewItemOwnersGraphUserCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOwnersGraphUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOwnersGraphUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemOwnersGraphUserRequestBuilder) Get(ctx context.Context, requestConf return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable), nil } // ToGetRequestInformation get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOwnersGraphUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnersGraphUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemOwnersGraphUserRequestBuilder) ToGetRequestInformation(ctx context. return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOwnersGraphUserRequestBuilder when successful func (m *ItemOwnersGraphUserRequestBuilder) WithUrl(rawUrl string)(*ItemOwnersGraphUserRequestBuilder) { return NewItemOwnersGraphUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/applications/item_owners_item_graph_user_request_builder.go b/applications/item_owners_item_graph_user_request_builder.go index 7558834627c..048ecb80127 100644 --- a/applications/item_owners_item_graph_user_request_builder.go +++ b/applications/item_owners_item_graph_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemOwnersItemGraphUserRequestBuilder(rawUrl string, requestAdapter i2ae return NewItemOwnersItemGraphUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get the item of type microsoft.graph.directoryObject as microsoft.graph.user +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOwnersItemGraphUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOwnersItemGraphUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -61,6 +62,7 @@ func (m *ItemOwnersItemGraphUserRequestBuilder) Get(ctx context.Context, request return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable), nil } // ToGetRequestInformation get the item of type microsoft.graph.directoryObject as microsoft.graph.user +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOwnersItemGraphUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnersItemGraphUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemOwnersItemGraphUserRequestBuilder) ToGetRequestInformation(ctx cont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOwnersItemGraphUserRequestBuilder when successful func (m *ItemOwnersItemGraphUserRequestBuilder) WithUrl(rawUrl string)(*ItemOwnersItemGraphUserRequestBuilder) { return NewItemOwnersItemGraphUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/applications/item_owners_ref_request_builder.go b/applications/item_owners_ref_request_builder.go index 371f4e2d336..81507d1c685 100644 --- a/applications/item_owners_ref_request_builder.go +++ b/applications/item_owners_ref_request_builder.go @@ -25,7 +25,7 @@ type ItemOwnersRefRequestBuilderDeleteRequestConfiguration struct { // Request query parameters QueryParameters *ItemOwnersRefRequestBuilderDeleteQueryParameters } -// ItemOwnersRefRequestBuilderGetQueryParameters retrieve a list of owners for an application that are directoryObject objects. +// ItemOwnersRefRequestBuilderGetQueryParameters retrieve a list of owners for an application that are directoryObject types. type ItemOwnersRefRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -88,7 +88,7 @@ func (m *ItemOwnersRefRequestBuilder) Delete(ctx context.Context, requestConfigu } return nil } -// Get retrieve a list of owners for an application that are directoryObject objects. +// Get retrieve a list of owners for an application that are directoryObject types. // returns a StringCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -111,7 +111,7 @@ func (m *ItemOwnersRefRequestBuilder) Get(ctx context.Context, requestConfigurat } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.StringCollectionResponseable), nil } -// Post use this API to add an owner to an application by posting to the owners collection. +// Post add an owner to an application. Currently, only individual users are supported as owners of applications. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -144,7 +144,7 @@ func (m *ItemOwnersRefRequestBuilder) ToDeleteRequestInformation(ctx context.Con requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation retrieve a list of owners for an application that are directoryObject objects. +// ToGetRequestInformation retrieve a list of owners for an application that are directoryObject types. // returns a *RequestInformation when successful func (m *ItemOwnersRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnersRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/applications/{application%2Did}/owners/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) @@ -158,7 +158,7 @@ func (m *ItemOwnersRefRequestBuilder) ToGetRequestInformation(ctx context.Contex requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to add an owner to an application by posting to the owners collection. +// ToPostRequestInformation add an owner to an application. Currently, only individual users are supported as owners of applications. // returns a *RequestInformation when successful func (m *ItemOwnersRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *ItemOwnersRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/applications/{application%2Did}/owners/$ref", m.BaseRequestBuilder.PathParameters) diff --git a/applications/item_owners_request_builder.go b/applications/item_owners_request_builder.go index 15743cbb465..2f61d3fd663 100644 --- a/applications/item_owners_request_builder.go +++ b/applications/item_owners_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemOwnersRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemOwnersRequestBuilderGetQueryParameters retrieve a list of owners for an application that are directoryObject objects. +// ItemOwnersRequestBuilderGetQueryParameters retrieve a list of owners for an application that are directoryObject types. type ItemOwnersRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -69,7 +69,7 @@ func NewItemOwnersRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263 func (m *ItemOwnersRequestBuilder) Count()(*ItemOwnersCountRequestBuilder) { return NewItemOwnersCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get retrieve a list of owners for an application that are directoryObject objects. +// Get retrieve a list of owners for an application that are directoryObject types. // returns a DirectoryObjectCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -112,7 +112,7 @@ func (m *ItemOwnersRequestBuilder) GraphUser()(*ItemOwnersGraphUserRequestBuilde func (m *ItemOwnersRequestBuilder) Ref()(*ItemOwnersRefRequestBuilder) { return NewItemOwnersRefRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation retrieve a list of owners for an application that are directoryObject objects. +// ToGetRequestInformation retrieve a list of owners for an application that are directoryObject types. // returns a *RequestInformation when successful func (m *ItemOwnersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/chats/chat_item_request_builder.go b/chats/chat_item_request_builder.go index 7615d00517f..3bb541c69ee 100644 --- a/chats/chat_item_request_builder.go +++ b/chats/chat_item_request_builder.go @@ -41,6 +41,11 @@ type ChatItemRequestBuilderPatchRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// CompleteMigration provides operations to call the completeMigration method. +// returns a *ItemCompleteMigrationRequestBuilder when successful +func (m *ChatItemRequestBuilder) CompleteMigration()(*ItemCompleteMigrationRequestBuilder) { + return NewItemCompleteMigrationRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // NewChatItemRequestBuilderInternal instantiates a new ChatItemRequestBuilder and sets the default values. func NewChatItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ChatItemRequestBuilder) { m := &ChatItemRequestBuilder{ diff --git a/chats/item_complete_migration_request_builder.go b/chats/item_complete_migration_request_builder.go new file mode 100644 index 00000000000..0cea637b563 --- /dev/null +++ b/chats/item_complete_migration_request_builder.go @@ -0,0 +1,64 @@ +package chats + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCompleteMigrationRequestBuilder provides operations to call the completeMigration method. +type ItemCompleteMigrationRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCompleteMigrationRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCompleteMigrationRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCompleteMigrationRequestBuilderInternal instantiates a new ItemCompleteMigrationRequestBuilder and sets the default values. +func NewItemCompleteMigrationRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCompleteMigrationRequestBuilder) { + m := &ItemCompleteMigrationRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/chats/{chat%2Did}/completeMigration", pathParameters), + } + return m +} +// NewItemCompleteMigrationRequestBuilder instantiates a new ItemCompleteMigrationRequestBuilder and sets the default values. +func NewItemCompleteMigrationRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCompleteMigrationRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCompleteMigrationRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action completeMigration +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemCompleteMigrationRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCompleteMigrationRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action completeMigration +// returns a *RequestInformation when successful +func (m *ItemCompleteMigrationRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCompleteMigrationRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemCompleteMigrationRequestBuilder when successful +func (m *ItemCompleteMigrationRequestBuilder) WithUrl(rawUrl string)(*ItemCompleteMigrationRequestBuilder) { + return NewItemCompleteMigrationRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/chats/item_messages_request_builder.go b/chats/item_messages_request_builder.go index 3e5c3616dc8..d857f649fe1 100644 --- a/chats/item_messages_request_builder.go +++ b/chats/item_messages_request_builder.go @@ -104,12 +104,12 @@ func (m *ItemMessagesRequestBuilder) Get(ctx context.Context, requestConfigurati } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageCollectionResponseable), nil } -// Post send a new chatMessage in the specified channel or a chat. +// Post send a new chatMessage in the specified chat. This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before creating a chat message. // returns a ChatMessageable 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/chatmessage-post?view=graph-rest-beta +// [Find more info here]: https://learn.microsoft.com/graph/api/chat-post-messages?view=graph-rest-beta func (m *ItemMessagesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *ItemMessagesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -141,7 +141,7 @@ func (m *ItemMessagesRequestBuilder) ToGetRequestInformation(ctx context.Context requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation send a new chatMessage in the specified channel or a chat. +// ToPostRequestInformation send a new chatMessage in the specified chat. This API cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before creating a chat message. // returns a *RequestInformation when successful func (m *ItemMessagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *ItemMessagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/communications/0bf80fa87a0c9aff44b1604cb3435dd5b1ae4a18cbb0c2248bbdc9bc3deba678.go b/communications/0bf80fa87a0c9aff44b1604cb3435dd5b1ae4a18cbb0c2248bbdc9bc3deba678.go index c51ac11147c..323270744ea 100644 --- a/communications/0bf80fa87a0c9aff44b1604cb3435dd5b1ae4a18cbb0c2248bbdc9bc3deba678.go +++ b/communications/0bf80fa87a0c9aff44b1604cb3435dd5b1ae4a18cbb0c2248bbdc9bc3deba678.go @@ -11,7 +11,7 @@ import ( type OnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// OnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters get all recordings from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call recordings from channel meetings. You can apply the delta function on getAllRecordings to synchronize and get callRecording resources as they're added for onlineMeeting instances organized by the specified user. The delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the recordings for online meetings organized by the user. Incremental synchronization gets recordings that are added since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that recording view periodically. Find more information in the delta query documentation. For more examples, see callRecording: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. +// OnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters get all recordings from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call recordings from channel meetings. You can apply the delta function on getAllRecordings to synchronize and get callRecording resources as they're added for onlineMeeting instances organized by the specified user. The delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the recordings for online meetings organized by the user. Incremental synchronization gets recordings that are added since the last synchronization. Typically, you do an initial full synchronization, and then get incremental changes to that recording view periodically. Find more information in the delta query documentation. For more examples, see callRecording: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. type OnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -58,7 +58,7 @@ func NewOnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUser urlParams["request-raw-url"] = rawUrl return NewOnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilderInternal(urlParams, requestAdapter) } -// Get get all recordings from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call recordings from channel meetings. You can apply the delta function on getAllRecordings to synchronize and get callRecording resources as they're added for onlineMeeting instances organized by the specified user. The delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the recordings for online meetings organized by the user. Incremental synchronization gets recordings that are added since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that recording view periodically. Find more information in the delta query documentation. For more examples, see callRecording: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. +// Get get all recordings from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call recordings from channel meetings. You can apply the delta function on getAllRecordings to synchronize and get callRecording resources as they're added for onlineMeeting instances organized by the specified user. The delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the recordings for online meetings organized by the user. Incremental synchronization gets recordings that are added since the last synchronization. Typically, you do an initial full synchronization, and then get incremental changes to that recording view periodically. Find more information in the delta query documentation. For more examples, see callRecording: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. // Deprecated: This method is obsolete. Use GetAsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponse instead. // returns a OnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -82,7 +82,7 @@ func (m *OnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUse } return res.(OnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeResponseable), nil } -// GetAsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponse get all recordings from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call recordings from channel meetings. You can apply the delta function on getAllRecordings to synchronize and get callRecording resources as they're added for onlineMeeting instances organized by the specified user. The delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the recordings for online meetings organized by the user. Incremental synchronization gets recordings that are added since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that recording view periodically. Find more information in the delta query documentation. For more examples, see callRecording: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. +// GetAsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponse get all recordings from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call recordings from channel meetings. You can apply the delta function on getAllRecordings to synchronize and get callRecording resources as they're added for onlineMeeting instances organized by the specified user. The delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the recordings for online meetings organized by the user. Incremental synchronization gets recordings that are added since the last synchronization. Typically, you do an initial full synchronization, and then get incremental changes to that recording view periodically. Find more information in the delta query documentation. For more examples, see callRecording: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. // returns a OnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -105,7 +105,7 @@ func (m *OnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUse } return res.(OnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponseable), nil } -// ToGetRequestInformation get all recordings from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call recordings from channel meetings. You can apply the delta function on getAllRecordings to synchronize and get callRecording resources as they're added for onlineMeeting instances organized by the specified user. The delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the recordings for online meetings organized by the user. Incremental synchronization gets recordings that are added since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that recording view periodically. Find more information in the delta query documentation. For more examples, see callRecording: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. +// ToGetRequestInformation get all recordings from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call recordings from channel meetings. You can apply the delta function on getAllRecordings to synchronize and get callRecording resources as they're added for onlineMeeting instances organized by the specified user. The delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the recordings for online meetings organized by the user. Incremental synchronization gets recordings that are added since the last synchronization. Typically, you do an initial full synchronization, and then get incremental changes to that recording view periodically. Find more information in the delta query documentation. For more examples, see callRecording: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. // returns a *RequestInformation when successful func (m *OnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *OnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/communications/9a61bc07c454c4269711894fc89081b0c6028b78971fc3552f782f6271a6ff8a.go b/communications/9a61bc07c454c4269711894fc89081b0c6028b78971fc3552f782f6271a6ff8a.go index a50258217d6..786392f4c09 100644 --- a/communications/9a61bc07c454c4269711894fc89081b0c6028b78971fc3552f782f6271a6ff8a.go +++ b/communications/9a61bc07c454c4269711894fc89081b0c6028b78971fc3552f782f6271a6ff8a.go @@ -11,7 +11,7 @@ import ( type OnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// OnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters get all transcripts from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call transcripts from channel meetings. You can apply the delta function on getAllTranscripts to synchronize and get callTranscript resources as they're added for onlineMeeting instances organized by the specified user. Delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the transcripts for online meetings organized by the user. Incremental synchronization gets transcripts that are added since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that recording view periodically. For more information, see delta query. For more examples, see callTranscript: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. +// OnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters get all transcripts from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call transcripts from channel meetings. You can apply the delta function on getAllTranscripts to synchronize and get callTranscript resources as they're added for onlineMeeting instances organized by the specified user. Delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the transcripts for online meetings organized by the user. Incremental synchronization gets transcripts that are added since the last synchronization. Typically, you do an initial full synchronization, and then get incremental changes to that recording view periodically. For more information, see delta query. For more examples, see callTranscript: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. type OnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -58,7 +58,7 @@ func NewOnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUse urlParams["request-raw-url"] = rawUrl return NewOnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilderInternal(urlParams, requestAdapter) } -// Get get all transcripts from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call transcripts from channel meetings. You can apply the delta function on getAllTranscripts to synchronize and get callTranscript resources as they're added for onlineMeeting instances organized by the specified user. Delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the transcripts for online meetings organized by the user. Incremental synchronization gets transcripts that are added since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that recording view periodically. For more information, see delta query. For more examples, see callTranscript: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. +// Get get all transcripts from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call transcripts from channel meetings. You can apply the delta function on getAllTranscripts to synchronize and get callTranscript resources as they're added for onlineMeeting instances organized by the specified user. Delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the transcripts for online meetings organized by the user. Incremental synchronization gets transcripts that are added since the last synchronization. Typically, you do an initial full synchronization, and then get incremental changes to that recording view periodically. For more information, see delta query. For more examples, see callTranscript: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. // Deprecated: This method is obsolete. Use GetAsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponse instead. // returns a OnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -82,7 +82,7 @@ func (m *OnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUs } return res.(OnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeResponseable), nil } -// GetAsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponse get all transcripts from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call transcripts from channel meetings. You can apply the delta function on getAllTranscripts to synchronize and get callTranscript resources as they're added for onlineMeeting instances organized by the specified user. Delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the transcripts for online meetings organized by the user. Incremental synchronization gets transcripts that are added since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that recording view periodically. For more information, see delta query. For more examples, see callTranscript: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. +// GetAsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponse get all transcripts from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call transcripts from channel meetings. You can apply the delta function on getAllTranscripts to synchronize and get callTranscript resources as they're added for onlineMeeting instances organized by the specified user. Delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the transcripts for online meetings organized by the user. Incremental synchronization gets transcripts that are added since the last synchronization. Typically, you do an initial full synchronization, and then get incremental changes to that recording view periodically. For more information, see delta query. For more examples, see callTranscript: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. // returns a OnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -105,7 +105,7 @@ func (m *OnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUs } return res.(OnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponseable), nil } -// ToGetRequestInformation get all transcripts from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call transcripts from channel meetings. You can apply the delta function on getAllTranscripts to synchronize and get callTranscript resources as they're added for onlineMeeting instances organized by the specified user. Delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the transcripts for online meetings organized by the user. Incremental synchronization gets transcripts that are added since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that recording view periodically. For more information, see delta query. For more examples, see callTranscript: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. +// ToGetRequestInformation get all transcripts from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call transcripts from channel meetings. You can apply the delta function on getAllTranscripts to synchronize and get callTranscript resources as they're added for onlineMeeting instances organized by the specified user. Delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the transcripts for online meetings organized by the user. Incremental synchronization gets transcripts that are added since the last synchronization. Typically, you do an initial full synchronization, and then get incremental changes to that recording view periodically. For more information, see delta query. For more examples, see callTranscript: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. // returns a *RequestInformation when successful func (m *OnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *OnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/communications/calls_item_answer_request_builder.go b/communications/calls_item_answer_request_builder.go index 8e96244d650..5a770564c3d 100644 --- a/communications/calls_item_answer_request_builder.go +++ b/communications/calls_item_answer_request_builder.go @@ -30,7 +30,7 @@ func NewCallsItemAnswerRequestBuilder(rawUrl string, requestAdapter i2ae4187f7da urlParams["request-raw-url"] = rawUrl return NewCallsItemAnswerRequestBuilderInternal(urlParams, requestAdapter) } -// Post enable a bot to answer an incoming call. The incoming call request can be an invite from a participant in a group call or a peer-to-peer call. If an invite to a group call is received, the notification contains the chatInfo and meetingInfo parameters. The bot is expected to answer, reject or redirect the call before the call times out. The current timeout value is 15 seconds. The current timeout value is 15 seconds for regular scenarios, and 5 seconds for policy-based recording scenarios. +// Post enable a bot to answer an incoming call. The incoming call request can be an invitation from a participant in a group call or a peer-to-peer call. If an invitation to a group call is received, the notification contains the chatInfo and meetingInfo parameters. The bot is expected to answer, reject or redirect the call before the call times out. The current timeout value is 15 seconds. The current timeout value is 15 seconds for regular scenarios, and 5 seconds for policy-based recording scenarios. This API supports the following PSTN scenarios: // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +49,7 @@ func (m *CallsItemAnswerRequestBuilder) Post(ctx context.Context, body CallsItem } return nil } -// ToPostRequestInformation enable a bot to answer an incoming call. The incoming call request can be an invite from a participant in a group call or a peer-to-peer call. If an invite to a group call is received, the notification contains the chatInfo and meetingInfo parameters. The bot is expected to answer, reject or redirect the call before the call times out. The current timeout value is 15 seconds. The current timeout value is 15 seconds for regular scenarios, and 5 seconds for policy-based recording scenarios. +// ToPostRequestInformation enable a bot to answer an incoming call. The incoming call request can be an invitation from a participant in a group call or a peer-to-peer call. If an invitation to a group call is received, the notification contains the chatInfo and meetingInfo parameters. The bot is expected to answer, reject or redirect the call before the call times out. The current timeout value is 15 seconds. The current timeout value is 15 seconds for regular scenarios, and 5 seconds for policy-based recording scenarios. This API supports the following PSTN scenarios: // returns a *RequestInformation when successful func (m *CallsItemAnswerRequestBuilder) ToPostRequestInformation(ctx context.Context, body CallsItemAnswerPostRequestBodyable, requestConfiguration *CallsItemAnswerRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/communications/calls_request_builder.go b/communications/calls_request_builder.go index 7de9c2c156e..42f723a56d8 100644 --- a/communications/calls_request_builder.go +++ b/communications/calls_request_builder.go @@ -101,7 +101,7 @@ func (m *CallsRequestBuilder) Get(ctx context.Context, requestConfiguration *Cal func (m *CallsRequestBuilder) LogTeleconferenceDeviceQuality()(*CallsLogTeleconferenceDeviceQualityRequestBuilder) { return NewCallsLogTeleconferenceDeviceQualityRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Post create call enables your bot to create a new outgoing peer-to-peer or group call, or join an existing meeting. You need to register the calling bot and go through the list of permissions needed. +// Post create call enables your bot to create a new outgoing peer-to-peer or group call, or join an existing meeting. You need to register the calling bot and go through the list of permissions needed. This API supports the following PSTN scenarios: // returns a Callable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -138,7 +138,7 @@ func (m *CallsRequestBuilder) ToGetRequestInformation(ctx context.Context, reque requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create call enables your bot to create a new outgoing peer-to-peer or group call, or join an existing meeting. You need to register the calling bot and go through the list of permissions needed. +// ToPostRequestInformation create call enables your bot to create a new outgoing peer-to-peer or group call, or join an existing meeting. You need to register the calling bot and go through the list of permissions needed. This API supports the following PSTN scenarios: // returns a *RequestInformation when successful func (m *CallsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Callable, requestConfiguration *CallsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/contacts/item_direct_reports_graph_user_count_request_builder.go b/contacts/item_direct_reports_graph_user_count_request_builder.go index a7d5781e7a1..266efe4ff9e 100644 --- a/contacts/item_direct_reports_graph_user_count_request_builder.go +++ b/contacts/item_direct_reports_graph_user_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemDirectReportsGraphUserCountRequestBuilder(rawUrl string, requestAdap return NewItemDirectReportsGraphUserCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDirectReportsGraphUserCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDirectReportsGraphUserCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemDirectReportsGraphUserCountRequestBuilder) Get(ctx context.Context, return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDirectReportsGraphUserCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDirectReportsGraphUserCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemDirectReportsGraphUserCountRequestBuilder) ToGetRequestInformation( return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDirectReportsGraphUserCountRequestBuilder when successful func (m *ItemDirectReportsGraphUserCountRequestBuilder) WithUrl(rawUrl string)(*ItemDirectReportsGraphUserCountRequestBuilder) { return NewItemDirectReportsGraphUserCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/contacts/item_direct_reports_graph_user_request_builder.go b/contacts/item_direct_reports_graph_user_request_builder.go index 0c8a38fa4c0..1db8d66890b 100644 --- a/contacts/item_direct_reports_graph_user_request_builder.go +++ b/contacts/item_direct_reports_graph_user_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemDirectReportsGraphUserRequestBuilder) Count()(*ItemDirectReportsGra return NewItemDirectReportsGraphUserCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDirectReportsGraphUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDirectReportsGraphUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemDirectReportsGraphUserRequestBuilder) Get(ctx context.Context, requ return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable), nil } // ToGetRequestInformation get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDirectReportsGraphUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDirectReportsGraphUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemDirectReportsGraphUserRequestBuilder) ToGetRequestInformation(ctx c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDirectReportsGraphUserRequestBuilder when successful func (m *ItemDirectReportsGraphUserRequestBuilder) WithUrl(rawUrl string)(*ItemDirectReportsGraphUserRequestBuilder) { return NewItemDirectReportsGraphUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/contacts/item_direct_reports_item_graph_user_request_builder.go b/contacts/item_direct_reports_item_graph_user_request_builder.go index c58636e1edb..002e1836b10 100644 --- a/contacts/item_direct_reports_item_graph_user_request_builder.go +++ b/contacts/item_direct_reports_item_graph_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemDirectReportsItemGraphUserRequestBuilder(rawUrl string, requestAdapt return NewItemDirectReportsItemGraphUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get the item of type microsoft.graph.directoryObject as microsoft.graph.user +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDirectReportsItemGraphUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDirectReportsItemGraphUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -61,6 +62,7 @@ func (m *ItemDirectReportsItemGraphUserRequestBuilder) Get(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable), nil } // ToGetRequestInformation get the item of type microsoft.graph.directoryObject as microsoft.graph.user +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDirectReportsItemGraphUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDirectReportsItemGraphUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemDirectReportsItemGraphUserRequestBuilder) ToGetRequestInformation(c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDirectReportsItemGraphUserRequestBuilder when successful func (m *ItemDirectReportsItemGraphUserRequestBuilder) WithUrl(rawUrl string)(*ItemDirectReportsItemGraphUserRequestBuilder) { return NewItemDirectReportsItemGraphUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/deviceappmanagement/4a096bbeaf5525b931e689132e2257510f53bbb09e499d986bc8b4960b49b8a5.go b/deviceappmanagement/4a096bbeaf5525b931e689132e2257510f53bbb09e499d986bc8b4960b49b8a5.go index 396b671d55a..17c052ccfee 100644 --- a/deviceappmanagement/4a096bbeaf5525b931e689132e2257510f53bbb09e499d986bc8b4960b49b8a5.go +++ b/deviceappmanagement/4a096bbeaf5525b931e689132e2257510f53bbb09e499d986bc8b4960b49b8a5.go @@ -18,7 +18,7 @@ type MobileAppsItemGraphManagedIOSLobAppRelationshipsMobileAppRelationshipItemRe // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// MobileAppsItemGraphManagedIOSLobAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters the set of direct relationships for this app. +// MobileAppsItemGraphManagedIOSLobAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters list of relationships for this mobile app. type MobileAppsItemGraphManagedIOSLobAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *MobileAppsItemGraphManagedIOSLobAppRelationshipsMobileAppRelationshipIt } return nil } -// Get the set of direct relationships for this app. +// Get list of relationships for this mobile app. // returns a MobileAppRelationshipable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphManagedIOSLobAppRelationshipsMobileAppRelationshipItemRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphManagedIOSLobAppRelationshipsMobileAppRelationshipItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipable, error) { @@ -121,7 +121,7 @@ func (m *MobileAppsItemGraphManagedIOSLobAppRelationshipsMobileAppRelationshipIt requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the set of direct relationships for this app. +// ToGetRequestInformation list of relationships for this mobile app. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphManagedIOSLobAppRelationshipsMobileAppRelationshipItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphManagedIOSLobAppRelationshipsMobileAppRelationshipItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/6377bb7c04938896688aa5c99001b3d62cf4ad3a864cea9a6c7e6608871ea5ad.go b/deviceappmanagement/6377bb7c04938896688aa5c99001b3d62cf4ad3a864cea9a6c7e6608871ea5ad.go index 39d25e35677..7c6ecce6609 100644 --- a/deviceappmanagement/6377bb7c04938896688aa5c99001b3d62cf4ad3a864cea9a6c7e6608871ea5ad.go +++ b/deviceappmanagement/6377bb7c04938896688aa5c99001b3d62cf4ad3a864cea9a6c7e6608871ea5ad.go @@ -18,7 +18,7 @@ type IosLobAppProvisioningConfigurationsItemAssignmentsIosLobAppProvisioningConf // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// IosLobAppProvisioningConfigurationsItemAssignmentsIosLobAppProvisioningConfigurationAssignmentItemRequestBuilderGetQueryParameters the associated group assignments for IosLobAppProvisioningConfiguration. +// IosLobAppProvisioningConfigurationsItemAssignmentsIosLobAppProvisioningConfigurationAssignmentItemRequestBuilderGetQueryParameters the associated group assignments for IosLobAppProvisioningConfiguration, this determines which devices/users the IOS LOB app provisioning conifguration will be targeted to. type IosLobAppProvisioningConfigurationsItemAssignmentsIosLobAppProvisioningConfigurationAssignmentItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *IosLobAppProvisioningConfigurationsItemAssignmentsIosLobAppProvisioning } return nil } -// Get the associated group assignments for IosLobAppProvisioningConfiguration. +// Get the associated group assignments for IosLobAppProvisioningConfiguration, this determines which devices/users the IOS LOB app provisioning conifguration will be targeted to. // returns a IosLobAppProvisioningConfigurationAssignmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *IosLobAppProvisioningConfigurationsItemAssignmentsIosLobAppProvisioningConfigurationAssignmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *IosLobAppProvisioningConfigurationsItemAssignmentsIosLobAppProvisioningConfigurationAssignmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IosLobAppProvisioningConfigurationAssignmentable, error) { @@ -121,7 +121,7 @@ func (m *IosLobAppProvisioningConfigurationsItemAssignmentsIosLobAppProvisioning requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the associated group assignments for IosLobAppProvisioningConfiguration. +// ToGetRequestInformation the associated group assignments for IosLobAppProvisioningConfiguration, this determines which devices/users the IOS LOB app provisioning conifguration will be targeted to. // returns a *RequestInformation when successful func (m *IosLobAppProvisioningConfigurationsItemAssignmentsIosLobAppProvisioningConfigurationAssignmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *IosLobAppProvisioningConfigurationsItemAssignmentsIosLobAppProvisioningConfigurationAssignmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/7013a7c2a952246125852c3183ca085b604af07a7a928e7e585be6c7c4a5c5ee.go b/deviceappmanagement/7013a7c2a952246125852c3183ca085b604af07a7a928e7e585be6c7c4a5c5ee.go index 1477cf940e1..3baaa4e30ed 100644 --- a/deviceappmanagement/7013a7c2a952246125852c3183ca085b604af07a7a928e7e585be6c7c4a5c5ee.go +++ b/deviceappmanagement/7013a7c2a952246125852c3183ca085b604af07a7a928e7e585be6c7c4a5c5ee.go @@ -18,7 +18,7 @@ type MobileAppsItemGraphMicrosoftStoreForBusinessAppRelationshipsMobileAppRelati // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// MobileAppsItemGraphMicrosoftStoreForBusinessAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters the set of direct relationships for this app. +// MobileAppsItemGraphMicrosoftStoreForBusinessAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters list of relationships for this mobile app. type MobileAppsItemGraphMicrosoftStoreForBusinessAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *MobileAppsItemGraphMicrosoftStoreForBusinessAppRelationshipsMobileAppRe } return nil } -// Get the set of direct relationships for this app. +// Get list of relationships for this mobile app. // returns a MobileAppRelationshipable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphMicrosoftStoreForBusinessAppRelationshipsMobileAppRelationshipItemRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphMicrosoftStoreForBusinessAppRelationshipsMobileAppRelationshipItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipable, error) { @@ -121,7 +121,7 @@ func (m *MobileAppsItemGraphMicrosoftStoreForBusinessAppRelationshipsMobileAppRe requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the set of direct relationships for this app. +// ToGetRequestInformation list of relationships for this mobile app. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphMicrosoftStoreForBusinessAppRelationshipsMobileAppRelationshipItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphMicrosoftStoreForBusinessAppRelationshipsMobileAppRelationshipItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/8107eecaa9db8ed0dd4da814eebbd3d34154728dba8cd77caf39b6eb692c9606.go b/deviceappmanagement/8107eecaa9db8ed0dd4da814eebbd3d34154728dba8cd77caf39b6eb692c9606.go index 6fc5bf80b5a..da6a6c9b256 100644 --- a/deviceappmanagement/8107eecaa9db8ed0dd4da814eebbd3d34154728dba8cd77caf39b6eb692c9606.go +++ b/deviceappmanagement/8107eecaa9db8ed0dd4da814eebbd3d34154728dba8cd77caf39b6eb692c9606.go @@ -18,7 +18,7 @@ type MobileAppsItemGraphManagedAndroidLobAppRelationshipsMobileAppRelationshipIt // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// MobileAppsItemGraphManagedAndroidLobAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters the set of direct relationships for this app. +// MobileAppsItemGraphManagedAndroidLobAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters list of relationships for this mobile app. type MobileAppsItemGraphManagedAndroidLobAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *MobileAppsItemGraphManagedAndroidLobAppRelationshipsMobileAppRelationsh } return nil } -// Get the set of direct relationships for this app. +// Get list of relationships for this mobile app. // returns a MobileAppRelationshipable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphManagedAndroidLobAppRelationshipsMobileAppRelationshipItemRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphManagedAndroidLobAppRelationshipsMobileAppRelationshipItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipable, error) { @@ -121,7 +121,7 @@ func (m *MobileAppsItemGraphManagedAndroidLobAppRelationshipsMobileAppRelationsh requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the set of direct relationships for this app. +// ToGetRequestInformation list of relationships for this mobile app. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphManagedAndroidLobAppRelationshipsMobileAppRelationshipItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphManagedAndroidLobAppRelationshipsMobileAppRelationshipItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/8893f4ca9b1c973259fe2faac1776f2c4b156b16ab3ff5c9a06baf50cdf0cf69.go b/deviceappmanagement/8893f4ca9b1c973259fe2faac1776f2c4b156b16ab3ff5c9a06baf50cdf0cf69.go index d0cfb066c12..5bcdfd16bdc 100644 --- a/deviceappmanagement/8893f4ca9b1c973259fe2faac1776f2c4b156b16ab3ff5c9a06baf50cdf0cf69.go +++ b/deviceappmanagement/8893f4ca9b1c973259fe2faac1776f2c4b156b16ab3ff5c9a06baf50cdf0cf69.go @@ -18,7 +18,7 @@ type MobileAppsItemGraphWindowsMobileMSIRelationshipsMobileAppRelationshipItemRe // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// MobileAppsItemGraphWindowsMobileMSIRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters the set of direct relationships for this app. +// MobileAppsItemGraphWindowsMobileMSIRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters list of relationships for this mobile app. type MobileAppsItemGraphWindowsMobileMSIRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *MobileAppsItemGraphWindowsMobileMSIRelationshipsMobileAppRelationshipIt } return nil } -// Get the set of direct relationships for this app. +// Get list of relationships for this mobile app. // returns a MobileAppRelationshipable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphWindowsMobileMSIRelationshipsMobileAppRelationshipItemRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphWindowsMobileMSIRelationshipsMobileAppRelationshipItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipable, error) { @@ -121,7 +121,7 @@ func (m *MobileAppsItemGraphWindowsMobileMSIRelationshipsMobileAppRelationshipIt requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the set of direct relationships for this app. +// ToGetRequestInformation list of relationships for this mobile app. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphWindowsMobileMSIRelationshipsMobileAppRelationshipItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphWindowsMobileMSIRelationshipsMobileAppRelationshipItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/91e710c3638d2a448ac23a9064bfdd20ff404e54999557ca367dc73ff37fbe15.go b/deviceappmanagement/91e710c3638d2a448ac23a9064bfdd20ff404e54999557ca367dc73ff37fbe15.go index 666db560686..457a67098ad 100644 --- a/deviceappmanagement/91e710c3638d2a448ac23a9064bfdd20ff404e54999557ca367dc73ff37fbe15.go +++ b/deviceappmanagement/91e710c3638d2a448ac23a9064bfdd20ff404e54999557ca367dc73ff37fbe15.go @@ -18,7 +18,7 @@ type MobileAppsItemGraphManagedMobileLobAppRelationshipsMobileAppRelationshipIte // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// MobileAppsItemGraphManagedMobileLobAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters the set of direct relationships for this app. +// MobileAppsItemGraphManagedMobileLobAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters list of relationships for this mobile app. type MobileAppsItemGraphManagedMobileLobAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *MobileAppsItemGraphManagedMobileLobAppRelationshipsMobileAppRelationshi } return nil } -// Get the set of direct relationships for this app. +// Get list of relationships for this mobile app. // returns a MobileAppRelationshipable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphManagedMobileLobAppRelationshipsMobileAppRelationshipItemRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphManagedMobileLobAppRelationshipsMobileAppRelationshipItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipable, error) { @@ -121,7 +121,7 @@ func (m *MobileAppsItemGraphManagedMobileLobAppRelationshipsMobileAppRelationshi requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the set of direct relationships for this app. +// ToGetRequestInformation list of relationships for this mobile app. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphManagedMobileLobAppRelationshipsMobileAppRelationshipItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphManagedMobileLobAppRelationshipsMobileAppRelationshipItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/9e0f6c51745549c20f677d20b55f4cb3d0f85c52ed1b2d31689e875024b623c6.go b/deviceappmanagement/9e0f6c51745549c20f677d20b55f4cb3d0f85c52ed1b2d31689e875024b623c6.go index 1d0336d63f4..7940c24f374 100644 --- a/deviceappmanagement/9e0f6c51745549c20f677d20b55f4cb3d0f85c52ed1b2d31689e875024b623c6.go +++ b/deviceappmanagement/9e0f6c51745549c20f677d20b55f4cb3d0f85c52ed1b2d31689e875024b623c6.go @@ -18,7 +18,7 @@ type MobileAppsItemGraphWindowsUniversalAppXRelationshipsMobileAppRelationshipIt // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// MobileAppsItemGraphWindowsUniversalAppXRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters the set of direct relationships for this app. +// MobileAppsItemGraphWindowsUniversalAppXRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters list of relationships for this mobile app. type MobileAppsItemGraphWindowsUniversalAppXRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *MobileAppsItemGraphWindowsUniversalAppXRelationshipsMobileAppRelationsh } return nil } -// Get the set of direct relationships for this app. +// Get list of relationships for this mobile app. // returns a MobileAppRelationshipable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphWindowsUniversalAppXRelationshipsMobileAppRelationshipItemRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphWindowsUniversalAppXRelationshipsMobileAppRelationshipItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipable, error) { @@ -121,7 +121,7 @@ func (m *MobileAppsItemGraphWindowsUniversalAppXRelationshipsMobileAppRelationsh requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the set of direct relationships for this app. +// ToGetRequestInformation list of relationships for this mobile app. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphWindowsUniversalAppXRelationshipsMobileAppRelationshipItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphWindowsUniversalAppXRelationshipsMobileAppRelationshipItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/d781743b6dc404db4222b50663ccc5b28af54b724cc1df91ed01b8af5f8bf397.go b/deviceappmanagement/d781743b6dc404db4222b50663ccc5b28af54b724cc1df91ed01b8af5f8bf397.go index 9b4df51ef50..73c8f344528 100644 --- a/deviceappmanagement/d781743b6dc404db4222b50663ccc5b28af54b724cc1df91ed01b8af5f8bf397.go +++ b/deviceappmanagement/d781743b6dc404db4222b50663ccc5b28af54b724cc1df91ed01b8af5f8bf397.go @@ -18,7 +18,7 @@ type MobileAppsItemGraphAndroidManagedStoreAppRelationshipsMobileAppRelationship // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// MobileAppsItemGraphAndroidManagedStoreAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters the set of direct relationships for this app. +// MobileAppsItemGraphAndroidManagedStoreAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters list of relationships for this mobile app. type MobileAppsItemGraphAndroidManagedStoreAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *MobileAppsItemGraphAndroidManagedStoreAppRelationshipsMobileAppRelation } return nil } -// Get the set of direct relationships for this app. +// Get list of relationships for this mobile app. // returns a MobileAppRelationshipable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphAndroidManagedStoreAppRelationshipsMobileAppRelationshipItemRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphAndroidManagedStoreAppRelationshipsMobileAppRelationshipItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipable, error) { @@ -121,7 +121,7 @@ func (m *MobileAppsItemGraphAndroidManagedStoreAppRelationshipsMobileAppRelation requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the set of direct relationships for this app. +// ToGetRequestInformation list of relationships for this mobile app. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphAndroidManagedStoreAppRelationshipsMobileAppRelationshipItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphAndroidManagedStoreAppRelationshipsMobileAppRelationshipItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/de04c52e8ec966de17ca7bae54b5786623c182097d534193f2091c381f23c420.go b/deviceappmanagement/de04c52e8ec966de17ca7bae54b5786623c182097d534193f2091c381f23c420.go index a587655639d..f4e2a48606b 100644 --- a/deviceappmanagement/de04c52e8ec966de17ca7bae54b5786623c182097d534193f2091c381f23c420.go +++ b/deviceappmanagement/de04c52e8ec966de17ca7bae54b5786623c182097d534193f2091c381f23c420.go @@ -18,7 +18,7 @@ type MobileAppsItemGraphAndroidForWorkAppRelationshipsMobileAppRelationshipItemR // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// MobileAppsItemGraphAndroidForWorkAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters the set of direct relationships for this app. +// MobileAppsItemGraphAndroidForWorkAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters list of relationships for this mobile app. type MobileAppsItemGraphAndroidForWorkAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *MobileAppsItemGraphAndroidForWorkAppRelationshipsMobileAppRelationshipI } return nil } -// Get the set of direct relationships for this app. +// Get list of relationships for this mobile app. // returns a MobileAppRelationshipable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphAndroidForWorkAppRelationshipsMobileAppRelationshipItemRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphAndroidForWorkAppRelationshipsMobileAppRelationshipItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipable, error) { @@ -121,7 +121,7 @@ func (m *MobileAppsItemGraphAndroidForWorkAppRelationshipsMobileAppRelationshipI requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the set of direct relationships for this app. +// ToGetRequestInformation list of relationships for this mobile app. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphAndroidForWorkAppRelationshipsMobileAppRelationshipItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphAndroidForWorkAppRelationshipsMobileAppRelationshipItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/ios_lob_app_provisioning_configurations_item_assignments_request_builder.go b/deviceappmanagement/ios_lob_app_provisioning_configurations_item_assignments_request_builder.go index 99837d7a7c6..16eaa8fdfd8 100644 --- a/deviceappmanagement/ios_lob_app_provisioning_configurations_item_assignments_request_builder.go +++ b/deviceappmanagement/ios_lob_app_provisioning_configurations_item_assignments_request_builder.go @@ -11,7 +11,7 @@ import ( type IosLobAppProvisioningConfigurationsItemAssignmentsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// IosLobAppProvisioningConfigurationsItemAssignmentsRequestBuilderGetQueryParameters the associated group assignments for IosLobAppProvisioningConfiguration. +// IosLobAppProvisioningConfigurationsItemAssignmentsRequestBuilderGetQueryParameters the associated group assignments for IosLobAppProvisioningConfiguration, this determines which devices/users the IOS LOB app provisioning conifguration will be targeted to. type IosLobAppProvisioningConfigurationsItemAssignmentsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewIosLobAppProvisioningConfigurationsItemAssignmentsRequestBuilder(rawUrl func (m *IosLobAppProvisioningConfigurationsItemAssignmentsRequestBuilder) Count()(*IosLobAppProvisioningConfigurationsItemAssignmentsCountRequestBuilder) { return NewIosLobAppProvisioningConfigurationsItemAssignmentsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the associated group assignments for IosLobAppProvisioningConfiguration. +// Get the associated group assignments for IosLobAppProvisioningConfiguration, this determines which devices/users the IOS LOB app provisioning conifguration will be targeted to. // returns a IosLobAppProvisioningConfigurationAssignmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *IosLobAppProvisioningConfigurationsItemAssignmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *IosLobAppProvisioningConfigurationsItemAssignmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IosLobAppProvisioningConfigurationAssignmentCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *IosLobAppProvisioningConfigurationsItemAssignmentsRequestBuilder) Post( } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.IosLobAppProvisioningConfigurationAssignmentable), nil } -// ToGetRequestInformation the associated group assignments for IosLobAppProvisioningConfiguration. +// ToGetRequestInformation the associated group assignments for IosLobAppProvisioningConfiguration, this determines which devices/users the IOS LOB app provisioning conifguration will be targeted to. // returns a *RequestInformation when successful func (m *IosLobAppProvisioningConfigurationsItemAssignmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *IosLobAppProvisioningConfigurationsItemAssignmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/mobile_apps_item_graph_android_for_work_app_relationships_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_android_for_work_app_relationships_request_builder.go index 91d94aa8865..73e11416baa 100644 --- a/deviceappmanagement/mobile_apps_item_graph_android_for_work_app_relationships_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_android_for_work_app_relationships_request_builder.go @@ -11,7 +11,7 @@ import ( type MobileAppsItemGraphAndroidForWorkAppRelationshipsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// MobileAppsItemGraphAndroidForWorkAppRelationshipsRequestBuilderGetQueryParameters the set of direct relationships for this app. +// MobileAppsItemGraphAndroidForWorkAppRelationshipsRequestBuilderGetQueryParameters list of relationships for this mobile app. type MobileAppsItemGraphAndroidForWorkAppRelationshipsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewMobileAppsItemGraphAndroidForWorkAppRelationshipsRequestBuilder(rawUrl s func (m *MobileAppsItemGraphAndroidForWorkAppRelationshipsRequestBuilder) Count()(*MobileAppsItemGraphAndroidForWorkAppRelationshipsCountRequestBuilder) { return NewMobileAppsItemGraphAndroidForWorkAppRelationshipsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the set of direct relationships for this app. +// Get list of relationships for this mobile app. // returns a MobileAppRelationshipCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphAndroidForWorkAppRelationshipsRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphAndroidForWorkAppRelationshipsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *MobileAppsItemGraphAndroidForWorkAppRelationshipsRequestBuilder) Post(c } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipable), nil } -// ToGetRequestInformation the set of direct relationships for this app. +// ToGetRequestInformation list of relationships for this mobile app. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphAndroidForWorkAppRelationshipsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphAndroidForWorkAppRelationshipsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/mobile_apps_item_graph_android_lob_app_relationships_mobile_app_relationship_item_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_android_lob_app_relationships_mobile_app_relationship_item_request_builder.go index 3a00945df43..3b12aa27879 100644 --- a/deviceappmanagement/mobile_apps_item_graph_android_lob_app_relationships_mobile_app_relationship_item_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_android_lob_app_relationships_mobile_app_relationship_item_request_builder.go @@ -18,7 +18,7 @@ type MobileAppsItemGraphAndroidLobAppRelationshipsMobileAppRelationshipItemReque // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// MobileAppsItemGraphAndroidLobAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters the set of direct relationships for this app. +// MobileAppsItemGraphAndroidLobAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters list of relationships for this mobile app. type MobileAppsItemGraphAndroidLobAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *MobileAppsItemGraphAndroidLobAppRelationshipsMobileAppRelationshipItemR } return nil } -// Get the set of direct relationships for this app. +// Get list of relationships for this mobile app. // returns a MobileAppRelationshipable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphAndroidLobAppRelationshipsMobileAppRelationshipItemRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphAndroidLobAppRelationshipsMobileAppRelationshipItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipable, error) { @@ -121,7 +121,7 @@ func (m *MobileAppsItemGraphAndroidLobAppRelationshipsMobileAppRelationshipItemR requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the set of direct relationships for this app. +// ToGetRequestInformation list of relationships for this mobile app. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphAndroidLobAppRelationshipsMobileAppRelationshipItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphAndroidLobAppRelationshipsMobileAppRelationshipItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/mobile_apps_item_graph_android_lob_app_relationships_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_android_lob_app_relationships_request_builder.go index f097e84b4f4..7cbe154fc0b 100644 --- a/deviceappmanagement/mobile_apps_item_graph_android_lob_app_relationships_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_android_lob_app_relationships_request_builder.go @@ -11,7 +11,7 @@ import ( type MobileAppsItemGraphAndroidLobAppRelationshipsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// MobileAppsItemGraphAndroidLobAppRelationshipsRequestBuilderGetQueryParameters the set of direct relationships for this app. +// MobileAppsItemGraphAndroidLobAppRelationshipsRequestBuilderGetQueryParameters list of relationships for this mobile app. type MobileAppsItemGraphAndroidLobAppRelationshipsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewMobileAppsItemGraphAndroidLobAppRelationshipsRequestBuilder(rawUrl strin func (m *MobileAppsItemGraphAndroidLobAppRelationshipsRequestBuilder) Count()(*MobileAppsItemGraphAndroidLobAppRelationshipsCountRequestBuilder) { return NewMobileAppsItemGraphAndroidLobAppRelationshipsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the set of direct relationships for this app. +// Get list of relationships for this mobile app. // returns a MobileAppRelationshipCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphAndroidLobAppRelationshipsRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphAndroidLobAppRelationshipsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *MobileAppsItemGraphAndroidLobAppRelationshipsRequestBuilder) Post(ctx c } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipable), nil } -// ToGetRequestInformation the set of direct relationships for this app. +// ToGetRequestInformation list of relationships for this mobile app. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphAndroidLobAppRelationshipsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphAndroidLobAppRelationshipsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/mobile_apps_item_graph_android_managed_store_app_relationships_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_android_managed_store_app_relationships_request_builder.go index 0385bf97d13..1754a63f62c 100644 --- a/deviceappmanagement/mobile_apps_item_graph_android_managed_store_app_relationships_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_android_managed_store_app_relationships_request_builder.go @@ -11,7 +11,7 @@ import ( type MobileAppsItemGraphAndroidManagedStoreAppRelationshipsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// MobileAppsItemGraphAndroidManagedStoreAppRelationshipsRequestBuilderGetQueryParameters the set of direct relationships for this app. +// MobileAppsItemGraphAndroidManagedStoreAppRelationshipsRequestBuilderGetQueryParameters list of relationships for this mobile app. type MobileAppsItemGraphAndroidManagedStoreAppRelationshipsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewMobileAppsItemGraphAndroidManagedStoreAppRelationshipsRequestBuilder(raw func (m *MobileAppsItemGraphAndroidManagedStoreAppRelationshipsRequestBuilder) Count()(*MobileAppsItemGraphAndroidManagedStoreAppRelationshipsCountRequestBuilder) { return NewMobileAppsItemGraphAndroidManagedStoreAppRelationshipsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the set of direct relationships for this app. +// Get list of relationships for this mobile app. // returns a MobileAppRelationshipCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphAndroidManagedStoreAppRelationshipsRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphAndroidManagedStoreAppRelationshipsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *MobileAppsItemGraphAndroidManagedStoreAppRelationshipsRequestBuilder) P } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipable), nil } -// ToGetRequestInformation the set of direct relationships for this app. +// ToGetRequestInformation list of relationships for this mobile app. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphAndroidManagedStoreAppRelationshipsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphAndroidManagedStoreAppRelationshipsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/mobile_apps_item_graph_android_store_app_relationships_mobile_app_relationship_item_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_android_store_app_relationships_mobile_app_relationship_item_request_builder.go index 736af4c8666..5fb084b5147 100644 --- a/deviceappmanagement/mobile_apps_item_graph_android_store_app_relationships_mobile_app_relationship_item_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_android_store_app_relationships_mobile_app_relationship_item_request_builder.go @@ -18,7 +18,7 @@ type MobileAppsItemGraphAndroidStoreAppRelationshipsMobileAppRelationshipItemReq // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// MobileAppsItemGraphAndroidStoreAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters the set of direct relationships for this app. +// MobileAppsItemGraphAndroidStoreAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters list of relationships for this mobile app. type MobileAppsItemGraphAndroidStoreAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *MobileAppsItemGraphAndroidStoreAppRelationshipsMobileAppRelationshipIte } return nil } -// Get the set of direct relationships for this app. +// Get list of relationships for this mobile app. // returns a MobileAppRelationshipable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphAndroidStoreAppRelationshipsMobileAppRelationshipItemRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphAndroidStoreAppRelationshipsMobileAppRelationshipItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipable, error) { @@ -121,7 +121,7 @@ func (m *MobileAppsItemGraphAndroidStoreAppRelationshipsMobileAppRelationshipIte requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the set of direct relationships for this app. +// ToGetRequestInformation list of relationships for this mobile app. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphAndroidStoreAppRelationshipsMobileAppRelationshipItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphAndroidStoreAppRelationshipsMobileAppRelationshipItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/mobile_apps_item_graph_android_store_app_relationships_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_android_store_app_relationships_request_builder.go index 6d79454cb40..f1f784c165c 100644 --- a/deviceappmanagement/mobile_apps_item_graph_android_store_app_relationships_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_android_store_app_relationships_request_builder.go @@ -11,7 +11,7 @@ import ( type MobileAppsItemGraphAndroidStoreAppRelationshipsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// MobileAppsItemGraphAndroidStoreAppRelationshipsRequestBuilderGetQueryParameters the set of direct relationships for this app. +// MobileAppsItemGraphAndroidStoreAppRelationshipsRequestBuilderGetQueryParameters list of relationships for this mobile app. type MobileAppsItemGraphAndroidStoreAppRelationshipsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewMobileAppsItemGraphAndroidStoreAppRelationshipsRequestBuilder(rawUrl str func (m *MobileAppsItemGraphAndroidStoreAppRelationshipsRequestBuilder) Count()(*MobileAppsItemGraphAndroidStoreAppRelationshipsCountRequestBuilder) { return NewMobileAppsItemGraphAndroidStoreAppRelationshipsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the set of direct relationships for this app. +// Get list of relationships for this mobile app. // returns a MobileAppRelationshipCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphAndroidStoreAppRelationshipsRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphAndroidStoreAppRelationshipsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *MobileAppsItemGraphAndroidStoreAppRelationshipsRequestBuilder) Post(ctx } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipable), nil } -// ToGetRequestInformation the set of direct relationships for this app. +// ToGetRequestInformation list of relationships for this mobile app. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphAndroidStoreAppRelationshipsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphAndroidStoreAppRelationshipsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/mobile_apps_item_graph_ios_lob_app_relationships_mobile_app_relationship_item_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_ios_lob_app_relationships_mobile_app_relationship_item_request_builder.go index 7ee0c344847..4d3c5debae9 100644 --- a/deviceappmanagement/mobile_apps_item_graph_ios_lob_app_relationships_mobile_app_relationship_item_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_ios_lob_app_relationships_mobile_app_relationship_item_request_builder.go @@ -18,7 +18,7 @@ type MobileAppsItemGraphIosLobAppRelationshipsMobileAppRelationshipItemRequestBu // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// MobileAppsItemGraphIosLobAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters the set of direct relationships for this app. +// MobileAppsItemGraphIosLobAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters list of relationships for this mobile app. type MobileAppsItemGraphIosLobAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *MobileAppsItemGraphIosLobAppRelationshipsMobileAppRelationshipItemReque } return nil } -// Get the set of direct relationships for this app. +// Get list of relationships for this mobile app. // returns a MobileAppRelationshipable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphIosLobAppRelationshipsMobileAppRelationshipItemRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphIosLobAppRelationshipsMobileAppRelationshipItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipable, error) { @@ -121,7 +121,7 @@ func (m *MobileAppsItemGraphIosLobAppRelationshipsMobileAppRelationshipItemReque requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the set of direct relationships for this app. +// ToGetRequestInformation list of relationships for this mobile app. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphIosLobAppRelationshipsMobileAppRelationshipItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphIosLobAppRelationshipsMobileAppRelationshipItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/mobile_apps_item_graph_ios_lob_app_relationships_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_ios_lob_app_relationships_request_builder.go index 071a07d1d61..5eb74895160 100644 --- a/deviceappmanagement/mobile_apps_item_graph_ios_lob_app_relationships_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_ios_lob_app_relationships_request_builder.go @@ -11,7 +11,7 @@ import ( type MobileAppsItemGraphIosLobAppRelationshipsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// MobileAppsItemGraphIosLobAppRelationshipsRequestBuilderGetQueryParameters the set of direct relationships for this app. +// MobileAppsItemGraphIosLobAppRelationshipsRequestBuilderGetQueryParameters list of relationships for this mobile app. type MobileAppsItemGraphIosLobAppRelationshipsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewMobileAppsItemGraphIosLobAppRelationshipsRequestBuilder(rawUrl string, r func (m *MobileAppsItemGraphIosLobAppRelationshipsRequestBuilder) Count()(*MobileAppsItemGraphIosLobAppRelationshipsCountRequestBuilder) { return NewMobileAppsItemGraphIosLobAppRelationshipsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the set of direct relationships for this app. +// Get list of relationships for this mobile app. // returns a MobileAppRelationshipCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphIosLobAppRelationshipsRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphIosLobAppRelationshipsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *MobileAppsItemGraphIosLobAppRelationshipsRequestBuilder) Post(ctx conte } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipable), nil } -// ToGetRequestInformation the set of direct relationships for this app. +// ToGetRequestInformation list of relationships for this mobile app. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphIosLobAppRelationshipsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphIosLobAppRelationshipsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/mobile_apps_item_graph_ios_store_app_relationships_mobile_app_relationship_item_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_ios_store_app_relationships_mobile_app_relationship_item_request_builder.go index dea6fa4e751..dece73473f3 100644 --- a/deviceappmanagement/mobile_apps_item_graph_ios_store_app_relationships_mobile_app_relationship_item_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_ios_store_app_relationships_mobile_app_relationship_item_request_builder.go @@ -18,7 +18,7 @@ type MobileAppsItemGraphIosStoreAppRelationshipsMobileAppRelationshipItemRequest // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// MobileAppsItemGraphIosStoreAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters the set of direct relationships for this app. +// MobileAppsItemGraphIosStoreAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters list of relationships for this mobile app. type MobileAppsItemGraphIosStoreAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *MobileAppsItemGraphIosStoreAppRelationshipsMobileAppRelationshipItemReq } return nil } -// Get the set of direct relationships for this app. +// Get list of relationships for this mobile app. // returns a MobileAppRelationshipable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphIosStoreAppRelationshipsMobileAppRelationshipItemRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphIosStoreAppRelationshipsMobileAppRelationshipItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipable, error) { @@ -121,7 +121,7 @@ func (m *MobileAppsItemGraphIosStoreAppRelationshipsMobileAppRelationshipItemReq requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the set of direct relationships for this app. +// ToGetRequestInformation list of relationships for this mobile app. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphIosStoreAppRelationshipsMobileAppRelationshipItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphIosStoreAppRelationshipsMobileAppRelationshipItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/mobile_apps_item_graph_ios_store_app_relationships_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_ios_store_app_relationships_request_builder.go index b5e70b4647f..7b6f064a3f9 100644 --- a/deviceappmanagement/mobile_apps_item_graph_ios_store_app_relationships_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_ios_store_app_relationships_request_builder.go @@ -11,7 +11,7 @@ import ( type MobileAppsItemGraphIosStoreAppRelationshipsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// MobileAppsItemGraphIosStoreAppRelationshipsRequestBuilderGetQueryParameters the set of direct relationships for this app. +// MobileAppsItemGraphIosStoreAppRelationshipsRequestBuilderGetQueryParameters list of relationships for this mobile app. type MobileAppsItemGraphIosStoreAppRelationshipsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewMobileAppsItemGraphIosStoreAppRelationshipsRequestBuilder(rawUrl string, func (m *MobileAppsItemGraphIosStoreAppRelationshipsRequestBuilder) Count()(*MobileAppsItemGraphIosStoreAppRelationshipsCountRequestBuilder) { return NewMobileAppsItemGraphIosStoreAppRelationshipsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the set of direct relationships for this app. +// Get list of relationships for this mobile app. // returns a MobileAppRelationshipCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphIosStoreAppRelationshipsRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphIosStoreAppRelationshipsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *MobileAppsItemGraphIosStoreAppRelationshipsRequestBuilder) Post(ctx con } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipable), nil } -// ToGetRequestInformation the set of direct relationships for this app. +// ToGetRequestInformation list of relationships for this mobile app. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphIosStoreAppRelationshipsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphIosStoreAppRelationshipsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/mobile_apps_item_graph_ios_vpp_app_relationships_mobile_app_relationship_item_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_ios_vpp_app_relationships_mobile_app_relationship_item_request_builder.go index d0541428648..fb41ac3a083 100644 --- a/deviceappmanagement/mobile_apps_item_graph_ios_vpp_app_relationships_mobile_app_relationship_item_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_ios_vpp_app_relationships_mobile_app_relationship_item_request_builder.go @@ -18,7 +18,7 @@ type MobileAppsItemGraphIosVppAppRelationshipsMobileAppRelationshipItemRequestBu // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// MobileAppsItemGraphIosVppAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters the set of direct relationships for this app. +// MobileAppsItemGraphIosVppAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters list of relationships for this mobile app. type MobileAppsItemGraphIosVppAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *MobileAppsItemGraphIosVppAppRelationshipsMobileAppRelationshipItemReque } return nil } -// Get the set of direct relationships for this app. +// Get list of relationships for this mobile app. // returns a MobileAppRelationshipable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphIosVppAppRelationshipsMobileAppRelationshipItemRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphIosVppAppRelationshipsMobileAppRelationshipItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipable, error) { @@ -121,7 +121,7 @@ func (m *MobileAppsItemGraphIosVppAppRelationshipsMobileAppRelationshipItemReque requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the set of direct relationships for this app. +// ToGetRequestInformation list of relationships for this mobile app. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphIosVppAppRelationshipsMobileAppRelationshipItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphIosVppAppRelationshipsMobileAppRelationshipItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/mobile_apps_item_graph_ios_vpp_app_relationships_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_ios_vpp_app_relationships_request_builder.go index 0c78baec05e..dc34bede80d 100644 --- a/deviceappmanagement/mobile_apps_item_graph_ios_vpp_app_relationships_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_ios_vpp_app_relationships_request_builder.go @@ -11,7 +11,7 @@ import ( type MobileAppsItemGraphIosVppAppRelationshipsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// MobileAppsItemGraphIosVppAppRelationshipsRequestBuilderGetQueryParameters the set of direct relationships for this app. +// MobileAppsItemGraphIosVppAppRelationshipsRequestBuilderGetQueryParameters list of relationships for this mobile app. type MobileAppsItemGraphIosVppAppRelationshipsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewMobileAppsItemGraphIosVppAppRelationshipsRequestBuilder(rawUrl string, r func (m *MobileAppsItemGraphIosVppAppRelationshipsRequestBuilder) Count()(*MobileAppsItemGraphIosVppAppRelationshipsCountRequestBuilder) { return NewMobileAppsItemGraphIosVppAppRelationshipsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the set of direct relationships for this app. +// Get list of relationships for this mobile app. // returns a MobileAppRelationshipCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphIosVppAppRelationshipsRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphIosVppAppRelationshipsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *MobileAppsItemGraphIosVppAppRelationshipsRequestBuilder) Post(ctx conte } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipable), nil } -// ToGetRequestInformation the set of direct relationships for this app. +// ToGetRequestInformation list of relationships for this mobile app. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphIosVppAppRelationshipsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphIosVppAppRelationshipsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/mobile_apps_item_graph_mac_o_s_dmg_app_relationships_mobile_app_relationship_item_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_mac_o_s_dmg_app_relationships_mobile_app_relationship_item_request_builder.go index 6fbe4218608..9a76d738e42 100644 --- a/deviceappmanagement/mobile_apps_item_graph_mac_o_s_dmg_app_relationships_mobile_app_relationship_item_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_mac_o_s_dmg_app_relationships_mobile_app_relationship_item_request_builder.go @@ -18,7 +18,7 @@ type MobileAppsItemGraphMacOSDmgAppRelationshipsMobileAppRelationshipItemRequest // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// MobileAppsItemGraphMacOSDmgAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters the set of direct relationships for this app. +// MobileAppsItemGraphMacOSDmgAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters list of relationships for this mobile app. type MobileAppsItemGraphMacOSDmgAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *MobileAppsItemGraphMacOSDmgAppRelationshipsMobileAppRelationshipItemReq } return nil } -// Get the set of direct relationships for this app. +// Get list of relationships for this mobile app. // returns a MobileAppRelationshipable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphMacOSDmgAppRelationshipsMobileAppRelationshipItemRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphMacOSDmgAppRelationshipsMobileAppRelationshipItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipable, error) { @@ -121,7 +121,7 @@ func (m *MobileAppsItemGraphMacOSDmgAppRelationshipsMobileAppRelationshipItemReq requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the set of direct relationships for this app. +// ToGetRequestInformation list of relationships for this mobile app. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphMacOSDmgAppRelationshipsMobileAppRelationshipItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphMacOSDmgAppRelationshipsMobileAppRelationshipItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/mobile_apps_item_graph_mac_o_s_dmg_app_relationships_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_mac_o_s_dmg_app_relationships_request_builder.go index bd6f6ac4bf4..bd2eab8ffad 100644 --- a/deviceappmanagement/mobile_apps_item_graph_mac_o_s_dmg_app_relationships_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_mac_o_s_dmg_app_relationships_request_builder.go @@ -11,7 +11,7 @@ import ( type MobileAppsItemGraphMacOSDmgAppRelationshipsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// MobileAppsItemGraphMacOSDmgAppRelationshipsRequestBuilderGetQueryParameters the set of direct relationships for this app. +// MobileAppsItemGraphMacOSDmgAppRelationshipsRequestBuilderGetQueryParameters list of relationships for this mobile app. type MobileAppsItemGraphMacOSDmgAppRelationshipsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewMobileAppsItemGraphMacOSDmgAppRelationshipsRequestBuilder(rawUrl string, func (m *MobileAppsItemGraphMacOSDmgAppRelationshipsRequestBuilder) Count()(*MobileAppsItemGraphMacOSDmgAppRelationshipsCountRequestBuilder) { return NewMobileAppsItemGraphMacOSDmgAppRelationshipsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the set of direct relationships for this app. +// Get list of relationships for this mobile app. // returns a MobileAppRelationshipCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphMacOSDmgAppRelationshipsRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphMacOSDmgAppRelationshipsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *MobileAppsItemGraphMacOSDmgAppRelationshipsRequestBuilder) Post(ctx con } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipable), nil } -// ToGetRequestInformation the set of direct relationships for this app. +// ToGetRequestInformation list of relationships for this mobile app. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphMacOSDmgAppRelationshipsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphMacOSDmgAppRelationshipsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/mobile_apps_item_graph_mac_o_s_lob_app_relationships_mobile_app_relationship_item_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_mac_o_s_lob_app_relationships_mobile_app_relationship_item_request_builder.go index 0d8479b71cc..27456812bba 100644 --- a/deviceappmanagement/mobile_apps_item_graph_mac_o_s_lob_app_relationships_mobile_app_relationship_item_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_mac_o_s_lob_app_relationships_mobile_app_relationship_item_request_builder.go @@ -18,7 +18,7 @@ type MobileAppsItemGraphMacOSLobAppRelationshipsMobileAppRelationshipItemRequest // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// MobileAppsItemGraphMacOSLobAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters the set of direct relationships for this app. +// MobileAppsItemGraphMacOSLobAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters list of relationships for this mobile app. type MobileAppsItemGraphMacOSLobAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *MobileAppsItemGraphMacOSLobAppRelationshipsMobileAppRelationshipItemReq } return nil } -// Get the set of direct relationships for this app. +// Get list of relationships for this mobile app. // returns a MobileAppRelationshipable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphMacOSLobAppRelationshipsMobileAppRelationshipItemRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphMacOSLobAppRelationshipsMobileAppRelationshipItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipable, error) { @@ -121,7 +121,7 @@ func (m *MobileAppsItemGraphMacOSLobAppRelationshipsMobileAppRelationshipItemReq requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the set of direct relationships for this app. +// ToGetRequestInformation list of relationships for this mobile app. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphMacOSLobAppRelationshipsMobileAppRelationshipItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphMacOSLobAppRelationshipsMobileAppRelationshipItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/mobile_apps_item_graph_mac_o_s_lob_app_relationships_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_mac_o_s_lob_app_relationships_request_builder.go index ce43c37f0a0..f9641b2b34c 100644 --- a/deviceappmanagement/mobile_apps_item_graph_mac_o_s_lob_app_relationships_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_mac_o_s_lob_app_relationships_request_builder.go @@ -11,7 +11,7 @@ import ( type MobileAppsItemGraphMacOSLobAppRelationshipsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// MobileAppsItemGraphMacOSLobAppRelationshipsRequestBuilderGetQueryParameters the set of direct relationships for this app. +// MobileAppsItemGraphMacOSLobAppRelationshipsRequestBuilderGetQueryParameters list of relationships for this mobile app. type MobileAppsItemGraphMacOSLobAppRelationshipsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewMobileAppsItemGraphMacOSLobAppRelationshipsRequestBuilder(rawUrl string, func (m *MobileAppsItemGraphMacOSLobAppRelationshipsRequestBuilder) Count()(*MobileAppsItemGraphMacOSLobAppRelationshipsCountRequestBuilder) { return NewMobileAppsItemGraphMacOSLobAppRelationshipsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the set of direct relationships for this app. +// Get list of relationships for this mobile app. // returns a MobileAppRelationshipCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphMacOSLobAppRelationshipsRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphMacOSLobAppRelationshipsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *MobileAppsItemGraphMacOSLobAppRelationshipsRequestBuilder) Post(ctx con } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipable), nil } -// ToGetRequestInformation the set of direct relationships for this app. +// ToGetRequestInformation list of relationships for this mobile app. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphMacOSLobAppRelationshipsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphMacOSLobAppRelationshipsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/mobile_apps_item_graph_mac_o_s_pkg_app_relationships_mobile_app_relationship_item_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_mac_o_s_pkg_app_relationships_mobile_app_relationship_item_request_builder.go index c6b0b372c2d..91aa2abe612 100644 --- a/deviceappmanagement/mobile_apps_item_graph_mac_o_s_pkg_app_relationships_mobile_app_relationship_item_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_mac_o_s_pkg_app_relationships_mobile_app_relationship_item_request_builder.go @@ -18,7 +18,7 @@ type MobileAppsItemGraphMacOSPkgAppRelationshipsMobileAppRelationshipItemRequest // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// MobileAppsItemGraphMacOSPkgAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters the set of direct relationships for this app. +// MobileAppsItemGraphMacOSPkgAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters list of relationships for this mobile app. type MobileAppsItemGraphMacOSPkgAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *MobileAppsItemGraphMacOSPkgAppRelationshipsMobileAppRelationshipItemReq } return nil } -// Get the set of direct relationships for this app. +// Get list of relationships for this mobile app. // returns a MobileAppRelationshipable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphMacOSPkgAppRelationshipsMobileAppRelationshipItemRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphMacOSPkgAppRelationshipsMobileAppRelationshipItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipable, error) { @@ -121,7 +121,7 @@ func (m *MobileAppsItemGraphMacOSPkgAppRelationshipsMobileAppRelationshipItemReq requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the set of direct relationships for this app. +// ToGetRequestInformation list of relationships for this mobile app. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphMacOSPkgAppRelationshipsMobileAppRelationshipItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphMacOSPkgAppRelationshipsMobileAppRelationshipItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/mobile_apps_item_graph_mac_o_s_pkg_app_relationships_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_mac_o_s_pkg_app_relationships_request_builder.go index 0c6f76fcd17..1f79e1604fb 100644 --- a/deviceappmanagement/mobile_apps_item_graph_mac_o_s_pkg_app_relationships_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_mac_o_s_pkg_app_relationships_request_builder.go @@ -11,7 +11,7 @@ import ( type MobileAppsItemGraphMacOSPkgAppRelationshipsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// MobileAppsItemGraphMacOSPkgAppRelationshipsRequestBuilderGetQueryParameters the set of direct relationships for this app. +// MobileAppsItemGraphMacOSPkgAppRelationshipsRequestBuilderGetQueryParameters list of relationships for this mobile app. type MobileAppsItemGraphMacOSPkgAppRelationshipsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewMobileAppsItemGraphMacOSPkgAppRelationshipsRequestBuilder(rawUrl string, func (m *MobileAppsItemGraphMacOSPkgAppRelationshipsRequestBuilder) Count()(*MobileAppsItemGraphMacOSPkgAppRelationshipsCountRequestBuilder) { return NewMobileAppsItemGraphMacOSPkgAppRelationshipsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the set of direct relationships for this app. +// Get list of relationships for this mobile app. // returns a MobileAppRelationshipCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphMacOSPkgAppRelationshipsRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphMacOSPkgAppRelationshipsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *MobileAppsItemGraphMacOSPkgAppRelationshipsRequestBuilder) Post(ctx con } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipable), nil } -// ToGetRequestInformation the set of direct relationships for this app. +// ToGetRequestInformation list of relationships for this mobile app. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphMacOSPkgAppRelationshipsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphMacOSPkgAppRelationshipsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/mobile_apps_item_graph_managed_android_lob_app_relationships_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_managed_android_lob_app_relationships_request_builder.go index f45ea1c06da..e0f10f56afa 100644 --- a/deviceappmanagement/mobile_apps_item_graph_managed_android_lob_app_relationships_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_managed_android_lob_app_relationships_request_builder.go @@ -11,7 +11,7 @@ import ( type MobileAppsItemGraphManagedAndroidLobAppRelationshipsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// MobileAppsItemGraphManagedAndroidLobAppRelationshipsRequestBuilderGetQueryParameters the set of direct relationships for this app. +// MobileAppsItemGraphManagedAndroidLobAppRelationshipsRequestBuilderGetQueryParameters list of relationships for this mobile app. type MobileAppsItemGraphManagedAndroidLobAppRelationshipsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewMobileAppsItemGraphManagedAndroidLobAppRelationshipsRequestBuilder(rawUr func (m *MobileAppsItemGraphManagedAndroidLobAppRelationshipsRequestBuilder) Count()(*MobileAppsItemGraphManagedAndroidLobAppRelationshipsCountRequestBuilder) { return NewMobileAppsItemGraphManagedAndroidLobAppRelationshipsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the set of direct relationships for this app. +// Get list of relationships for this mobile app. // returns a MobileAppRelationshipCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphManagedAndroidLobAppRelationshipsRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphManagedAndroidLobAppRelationshipsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *MobileAppsItemGraphManagedAndroidLobAppRelationshipsRequestBuilder) Pos } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipable), nil } -// ToGetRequestInformation the set of direct relationships for this app. +// ToGetRequestInformation list of relationships for this mobile app. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphManagedAndroidLobAppRelationshipsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphManagedAndroidLobAppRelationshipsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/mobile_apps_item_graph_managed_i_o_s_lob_app_relationships_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_managed_i_o_s_lob_app_relationships_request_builder.go index fafe766181d..fdb862d5090 100644 --- a/deviceappmanagement/mobile_apps_item_graph_managed_i_o_s_lob_app_relationships_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_managed_i_o_s_lob_app_relationships_request_builder.go @@ -11,7 +11,7 @@ import ( type MobileAppsItemGraphManagedIOSLobAppRelationshipsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// MobileAppsItemGraphManagedIOSLobAppRelationshipsRequestBuilderGetQueryParameters the set of direct relationships for this app. +// MobileAppsItemGraphManagedIOSLobAppRelationshipsRequestBuilderGetQueryParameters list of relationships for this mobile app. type MobileAppsItemGraphManagedIOSLobAppRelationshipsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewMobileAppsItemGraphManagedIOSLobAppRelationshipsRequestBuilder(rawUrl st func (m *MobileAppsItemGraphManagedIOSLobAppRelationshipsRequestBuilder) Count()(*MobileAppsItemGraphManagedIOSLobAppRelationshipsCountRequestBuilder) { return NewMobileAppsItemGraphManagedIOSLobAppRelationshipsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the set of direct relationships for this app. +// Get list of relationships for this mobile app. // returns a MobileAppRelationshipCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphManagedIOSLobAppRelationshipsRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphManagedIOSLobAppRelationshipsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *MobileAppsItemGraphManagedIOSLobAppRelationshipsRequestBuilder) Post(ct } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipable), nil } -// ToGetRequestInformation the set of direct relationships for this app. +// ToGetRequestInformation list of relationships for this mobile app. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphManagedIOSLobAppRelationshipsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphManagedIOSLobAppRelationshipsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/mobile_apps_item_graph_managed_mobile_lob_app_relationships_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_managed_mobile_lob_app_relationships_request_builder.go index ec8f77796a8..9fb88f603ce 100644 --- a/deviceappmanagement/mobile_apps_item_graph_managed_mobile_lob_app_relationships_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_managed_mobile_lob_app_relationships_request_builder.go @@ -11,7 +11,7 @@ import ( type MobileAppsItemGraphManagedMobileLobAppRelationshipsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// MobileAppsItemGraphManagedMobileLobAppRelationshipsRequestBuilderGetQueryParameters the set of direct relationships for this app. +// MobileAppsItemGraphManagedMobileLobAppRelationshipsRequestBuilderGetQueryParameters list of relationships for this mobile app. type MobileAppsItemGraphManagedMobileLobAppRelationshipsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewMobileAppsItemGraphManagedMobileLobAppRelationshipsRequestBuilder(rawUrl func (m *MobileAppsItemGraphManagedMobileLobAppRelationshipsRequestBuilder) Count()(*MobileAppsItemGraphManagedMobileLobAppRelationshipsCountRequestBuilder) { return NewMobileAppsItemGraphManagedMobileLobAppRelationshipsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the set of direct relationships for this app. +// Get list of relationships for this mobile app. // returns a MobileAppRelationshipCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphManagedMobileLobAppRelationshipsRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphManagedMobileLobAppRelationshipsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *MobileAppsItemGraphManagedMobileLobAppRelationshipsRequestBuilder) Post } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipable), nil } -// ToGetRequestInformation the set of direct relationships for this app. +// ToGetRequestInformation list of relationships for this mobile app. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphManagedMobileLobAppRelationshipsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphManagedMobileLobAppRelationshipsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/mobile_apps_item_graph_microsoft_store_for_business_app_relationships_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_microsoft_store_for_business_app_relationships_request_builder.go index 803fce06664..4d58a737ee9 100644 --- a/deviceappmanagement/mobile_apps_item_graph_microsoft_store_for_business_app_relationships_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_microsoft_store_for_business_app_relationships_request_builder.go @@ -11,7 +11,7 @@ import ( type MobileAppsItemGraphMicrosoftStoreForBusinessAppRelationshipsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// MobileAppsItemGraphMicrosoftStoreForBusinessAppRelationshipsRequestBuilderGetQueryParameters the set of direct relationships for this app. +// MobileAppsItemGraphMicrosoftStoreForBusinessAppRelationshipsRequestBuilderGetQueryParameters list of relationships for this mobile app. type MobileAppsItemGraphMicrosoftStoreForBusinessAppRelationshipsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewMobileAppsItemGraphMicrosoftStoreForBusinessAppRelationshipsRequestBuild func (m *MobileAppsItemGraphMicrosoftStoreForBusinessAppRelationshipsRequestBuilder) Count()(*MobileAppsItemGraphMicrosoftStoreForBusinessAppRelationshipsCountRequestBuilder) { return NewMobileAppsItemGraphMicrosoftStoreForBusinessAppRelationshipsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the set of direct relationships for this app. +// Get list of relationships for this mobile app. // returns a MobileAppRelationshipCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphMicrosoftStoreForBusinessAppRelationshipsRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphMicrosoftStoreForBusinessAppRelationshipsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *MobileAppsItemGraphMicrosoftStoreForBusinessAppRelationshipsRequestBuil } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipable), nil } -// ToGetRequestInformation the set of direct relationships for this app. +// ToGetRequestInformation list of relationships for this mobile app. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphMicrosoftStoreForBusinessAppRelationshipsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphMicrosoftStoreForBusinessAppRelationshipsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/mobile_apps_item_graph_win32_lob_app_relationships_mobile_app_relationship_item_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_win32_lob_app_relationships_mobile_app_relationship_item_request_builder.go index 8106d98fb83..c10df7ed98f 100644 --- a/deviceappmanagement/mobile_apps_item_graph_win32_lob_app_relationships_mobile_app_relationship_item_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_win32_lob_app_relationships_mobile_app_relationship_item_request_builder.go @@ -18,7 +18,7 @@ type MobileAppsItemGraphWin32LobAppRelationshipsMobileAppRelationshipItemRequest // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// MobileAppsItemGraphWin32LobAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters the set of direct relationships for this app. +// MobileAppsItemGraphWin32LobAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters list of relationships for this mobile app. type MobileAppsItemGraphWin32LobAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *MobileAppsItemGraphWin32LobAppRelationshipsMobileAppRelationshipItemReq } return nil } -// Get the set of direct relationships for this app. +// Get list of relationships for this mobile app. // returns a MobileAppRelationshipable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphWin32LobAppRelationshipsMobileAppRelationshipItemRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphWin32LobAppRelationshipsMobileAppRelationshipItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipable, error) { @@ -121,7 +121,7 @@ func (m *MobileAppsItemGraphWin32LobAppRelationshipsMobileAppRelationshipItemReq requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the set of direct relationships for this app. +// ToGetRequestInformation list of relationships for this mobile app. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphWin32LobAppRelationshipsMobileAppRelationshipItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphWin32LobAppRelationshipsMobileAppRelationshipItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/mobile_apps_item_graph_win32_lob_app_relationships_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_win32_lob_app_relationships_request_builder.go index d51a2ffa0f7..396e6132afa 100644 --- a/deviceappmanagement/mobile_apps_item_graph_win32_lob_app_relationships_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_win32_lob_app_relationships_request_builder.go @@ -11,7 +11,7 @@ import ( type MobileAppsItemGraphWin32LobAppRelationshipsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// MobileAppsItemGraphWin32LobAppRelationshipsRequestBuilderGetQueryParameters the set of direct relationships for this app. +// MobileAppsItemGraphWin32LobAppRelationshipsRequestBuilderGetQueryParameters list of relationships for this mobile app. type MobileAppsItemGraphWin32LobAppRelationshipsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewMobileAppsItemGraphWin32LobAppRelationshipsRequestBuilder(rawUrl string, func (m *MobileAppsItemGraphWin32LobAppRelationshipsRequestBuilder) Count()(*MobileAppsItemGraphWin32LobAppRelationshipsCountRequestBuilder) { return NewMobileAppsItemGraphWin32LobAppRelationshipsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the set of direct relationships for this app. +// Get list of relationships for this mobile app. // returns a MobileAppRelationshipCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphWin32LobAppRelationshipsRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphWin32LobAppRelationshipsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *MobileAppsItemGraphWin32LobAppRelationshipsRequestBuilder) Post(ctx con } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipable), nil } -// ToGetRequestInformation the set of direct relationships for this app. +// ToGetRequestInformation list of relationships for this mobile app. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphWin32LobAppRelationshipsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphWin32LobAppRelationshipsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/mobile_apps_item_graph_win_get_app_relationships_mobile_app_relationship_item_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_win_get_app_relationships_mobile_app_relationship_item_request_builder.go index 68525e095d3..0815419459e 100644 --- a/deviceappmanagement/mobile_apps_item_graph_win_get_app_relationships_mobile_app_relationship_item_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_win_get_app_relationships_mobile_app_relationship_item_request_builder.go @@ -18,7 +18,7 @@ type MobileAppsItemGraphWinGetAppRelationshipsMobileAppRelationshipItemRequestBu // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// MobileAppsItemGraphWinGetAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters the set of direct relationships for this app. +// MobileAppsItemGraphWinGetAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters list of relationships for this mobile app. type MobileAppsItemGraphWinGetAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *MobileAppsItemGraphWinGetAppRelationshipsMobileAppRelationshipItemReque } return nil } -// Get the set of direct relationships for this app. +// Get list of relationships for this mobile app. // returns a MobileAppRelationshipable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphWinGetAppRelationshipsMobileAppRelationshipItemRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphWinGetAppRelationshipsMobileAppRelationshipItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipable, error) { @@ -121,7 +121,7 @@ func (m *MobileAppsItemGraphWinGetAppRelationshipsMobileAppRelationshipItemReque requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the set of direct relationships for this app. +// ToGetRequestInformation list of relationships for this mobile app. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphWinGetAppRelationshipsMobileAppRelationshipItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphWinGetAppRelationshipsMobileAppRelationshipItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/mobile_apps_item_graph_win_get_app_relationships_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_win_get_app_relationships_request_builder.go index 8ec9bab5750..a449fb8d3a4 100644 --- a/deviceappmanagement/mobile_apps_item_graph_win_get_app_relationships_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_win_get_app_relationships_request_builder.go @@ -11,7 +11,7 @@ import ( type MobileAppsItemGraphWinGetAppRelationshipsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// MobileAppsItemGraphWinGetAppRelationshipsRequestBuilderGetQueryParameters the set of direct relationships for this app. +// MobileAppsItemGraphWinGetAppRelationshipsRequestBuilderGetQueryParameters list of relationships for this mobile app. type MobileAppsItemGraphWinGetAppRelationshipsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewMobileAppsItemGraphWinGetAppRelationshipsRequestBuilder(rawUrl string, r func (m *MobileAppsItemGraphWinGetAppRelationshipsRequestBuilder) Count()(*MobileAppsItemGraphWinGetAppRelationshipsCountRequestBuilder) { return NewMobileAppsItemGraphWinGetAppRelationshipsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the set of direct relationships for this app. +// Get list of relationships for this mobile app. // returns a MobileAppRelationshipCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphWinGetAppRelationshipsRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphWinGetAppRelationshipsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *MobileAppsItemGraphWinGetAppRelationshipsRequestBuilder) Post(ctx conte } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipable), nil } -// ToGetRequestInformation the set of direct relationships for this app. +// ToGetRequestInformation list of relationships for this mobile app. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphWinGetAppRelationshipsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphWinGetAppRelationshipsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/mobile_apps_item_graph_windows_app_x_relationships_mobile_app_relationship_item_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_windows_app_x_relationships_mobile_app_relationship_item_request_builder.go index 5dd5dab3a7c..d8aec3d4193 100644 --- a/deviceappmanagement/mobile_apps_item_graph_windows_app_x_relationships_mobile_app_relationship_item_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_windows_app_x_relationships_mobile_app_relationship_item_request_builder.go @@ -18,7 +18,7 @@ type MobileAppsItemGraphWindowsAppXRelationshipsMobileAppRelationshipItemRequest // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// MobileAppsItemGraphWindowsAppXRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters the set of direct relationships for this app. +// MobileAppsItemGraphWindowsAppXRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters list of relationships for this mobile app. type MobileAppsItemGraphWindowsAppXRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *MobileAppsItemGraphWindowsAppXRelationshipsMobileAppRelationshipItemReq } return nil } -// Get the set of direct relationships for this app. +// Get list of relationships for this mobile app. // returns a MobileAppRelationshipable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphWindowsAppXRelationshipsMobileAppRelationshipItemRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphWindowsAppXRelationshipsMobileAppRelationshipItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipable, error) { @@ -121,7 +121,7 @@ func (m *MobileAppsItemGraphWindowsAppXRelationshipsMobileAppRelationshipItemReq requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the set of direct relationships for this app. +// ToGetRequestInformation list of relationships for this mobile app. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphWindowsAppXRelationshipsMobileAppRelationshipItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphWindowsAppXRelationshipsMobileAppRelationshipItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/mobile_apps_item_graph_windows_app_x_relationships_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_windows_app_x_relationships_request_builder.go index f9d016bdae4..43ea9050a5a 100644 --- a/deviceappmanagement/mobile_apps_item_graph_windows_app_x_relationships_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_windows_app_x_relationships_request_builder.go @@ -11,7 +11,7 @@ import ( type MobileAppsItemGraphWindowsAppXRelationshipsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// MobileAppsItemGraphWindowsAppXRelationshipsRequestBuilderGetQueryParameters the set of direct relationships for this app. +// MobileAppsItemGraphWindowsAppXRelationshipsRequestBuilderGetQueryParameters list of relationships for this mobile app. type MobileAppsItemGraphWindowsAppXRelationshipsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewMobileAppsItemGraphWindowsAppXRelationshipsRequestBuilder(rawUrl string, func (m *MobileAppsItemGraphWindowsAppXRelationshipsRequestBuilder) Count()(*MobileAppsItemGraphWindowsAppXRelationshipsCountRequestBuilder) { return NewMobileAppsItemGraphWindowsAppXRelationshipsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the set of direct relationships for this app. +// Get list of relationships for this mobile app. // returns a MobileAppRelationshipCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphWindowsAppXRelationshipsRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphWindowsAppXRelationshipsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *MobileAppsItemGraphWindowsAppXRelationshipsRequestBuilder) Post(ctx con } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipable), nil } -// ToGetRequestInformation the set of direct relationships for this app. +// ToGetRequestInformation list of relationships for this mobile app. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphWindowsAppXRelationshipsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphWindowsAppXRelationshipsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/mobile_apps_item_graph_windows_mobile_m_s_i_relationships_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_windows_mobile_m_s_i_relationships_request_builder.go index 31023821c96..a4e70b5781c 100644 --- a/deviceappmanagement/mobile_apps_item_graph_windows_mobile_m_s_i_relationships_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_windows_mobile_m_s_i_relationships_request_builder.go @@ -11,7 +11,7 @@ import ( type MobileAppsItemGraphWindowsMobileMSIRelationshipsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// MobileAppsItemGraphWindowsMobileMSIRelationshipsRequestBuilderGetQueryParameters the set of direct relationships for this app. +// MobileAppsItemGraphWindowsMobileMSIRelationshipsRequestBuilderGetQueryParameters list of relationships for this mobile app. type MobileAppsItemGraphWindowsMobileMSIRelationshipsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewMobileAppsItemGraphWindowsMobileMSIRelationshipsRequestBuilder(rawUrl st func (m *MobileAppsItemGraphWindowsMobileMSIRelationshipsRequestBuilder) Count()(*MobileAppsItemGraphWindowsMobileMSIRelationshipsCountRequestBuilder) { return NewMobileAppsItemGraphWindowsMobileMSIRelationshipsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the set of direct relationships for this app. +// Get list of relationships for this mobile app. // returns a MobileAppRelationshipCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphWindowsMobileMSIRelationshipsRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphWindowsMobileMSIRelationshipsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *MobileAppsItemGraphWindowsMobileMSIRelationshipsRequestBuilder) Post(ct } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipable), nil } -// ToGetRequestInformation the set of direct relationships for this app. +// ToGetRequestInformation list of relationships for this mobile app. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphWindowsMobileMSIRelationshipsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphWindowsMobileMSIRelationshipsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/mobile_apps_item_graph_windows_store_app_relationships_mobile_app_relationship_item_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_windows_store_app_relationships_mobile_app_relationship_item_request_builder.go index 65fc4cb5fe8..867f95a5435 100644 --- a/deviceappmanagement/mobile_apps_item_graph_windows_store_app_relationships_mobile_app_relationship_item_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_windows_store_app_relationships_mobile_app_relationship_item_request_builder.go @@ -18,7 +18,7 @@ type MobileAppsItemGraphWindowsStoreAppRelationshipsMobileAppRelationshipItemReq // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// MobileAppsItemGraphWindowsStoreAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters the set of direct relationships for this app. +// MobileAppsItemGraphWindowsStoreAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters list of relationships for this mobile app. type MobileAppsItemGraphWindowsStoreAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *MobileAppsItemGraphWindowsStoreAppRelationshipsMobileAppRelationshipIte } return nil } -// Get the set of direct relationships for this app. +// Get list of relationships for this mobile app. // returns a MobileAppRelationshipable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphWindowsStoreAppRelationshipsMobileAppRelationshipItemRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphWindowsStoreAppRelationshipsMobileAppRelationshipItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipable, error) { @@ -121,7 +121,7 @@ func (m *MobileAppsItemGraphWindowsStoreAppRelationshipsMobileAppRelationshipIte requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the set of direct relationships for this app. +// ToGetRequestInformation list of relationships for this mobile app. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphWindowsStoreAppRelationshipsMobileAppRelationshipItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphWindowsStoreAppRelationshipsMobileAppRelationshipItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/mobile_apps_item_graph_windows_store_app_relationships_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_windows_store_app_relationships_request_builder.go index cec477b327a..726f73ab2cf 100644 --- a/deviceappmanagement/mobile_apps_item_graph_windows_store_app_relationships_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_windows_store_app_relationships_request_builder.go @@ -11,7 +11,7 @@ import ( type MobileAppsItemGraphWindowsStoreAppRelationshipsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// MobileAppsItemGraphWindowsStoreAppRelationshipsRequestBuilderGetQueryParameters the set of direct relationships for this app. +// MobileAppsItemGraphWindowsStoreAppRelationshipsRequestBuilderGetQueryParameters list of relationships for this mobile app. type MobileAppsItemGraphWindowsStoreAppRelationshipsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewMobileAppsItemGraphWindowsStoreAppRelationshipsRequestBuilder(rawUrl str func (m *MobileAppsItemGraphWindowsStoreAppRelationshipsRequestBuilder) Count()(*MobileAppsItemGraphWindowsStoreAppRelationshipsCountRequestBuilder) { return NewMobileAppsItemGraphWindowsStoreAppRelationshipsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the set of direct relationships for this app. +// Get list of relationships for this mobile app. // returns a MobileAppRelationshipCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphWindowsStoreAppRelationshipsRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphWindowsStoreAppRelationshipsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *MobileAppsItemGraphWindowsStoreAppRelationshipsRequestBuilder) Post(ctx } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipable), nil } -// ToGetRequestInformation the set of direct relationships for this app. +// ToGetRequestInformation list of relationships for this mobile app. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphWindowsStoreAppRelationshipsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphWindowsStoreAppRelationshipsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/mobile_apps_item_graph_windows_universal_app_x_relationships_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_windows_universal_app_x_relationships_request_builder.go index 6bcc2b012ad..d40cc99add4 100644 --- a/deviceappmanagement/mobile_apps_item_graph_windows_universal_app_x_relationships_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_windows_universal_app_x_relationships_request_builder.go @@ -11,7 +11,7 @@ import ( type MobileAppsItemGraphWindowsUniversalAppXRelationshipsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// MobileAppsItemGraphWindowsUniversalAppXRelationshipsRequestBuilderGetQueryParameters the set of direct relationships for this app. +// MobileAppsItemGraphWindowsUniversalAppXRelationshipsRequestBuilderGetQueryParameters list of relationships for this mobile app. type MobileAppsItemGraphWindowsUniversalAppXRelationshipsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewMobileAppsItemGraphWindowsUniversalAppXRelationshipsRequestBuilder(rawUr func (m *MobileAppsItemGraphWindowsUniversalAppXRelationshipsRequestBuilder) Count()(*MobileAppsItemGraphWindowsUniversalAppXRelationshipsCountRequestBuilder) { return NewMobileAppsItemGraphWindowsUniversalAppXRelationshipsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the set of direct relationships for this app. +// Get list of relationships for this mobile app. // returns a MobileAppRelationshipCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphWindowsUniversalAppXRelationshipsRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphWindowsUniversalAppXRelationshipsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *MobileAppsItemGraphWindowsUniversalAppXRelationshipsRequestBuilder) Pos } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipable), nil } -// ToGetRequestInformation the set of direct relationships for this app. +// ToGetRequestInformation list of relationships for this mobile app. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphWindowsUniversalAppXRelationshipsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphWindowsUniversalAppXRelationshipsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/mobile_apps_item_graph_windows_web_app_relationships_mobile_app_relationship_item_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_windows_web_app_relationships_mobile_app_relationship_item_request_builder.go index e337a83c0e5..67ec4fc924c 100644 --- a/deviceappmanagement/mobile_apps_item_graph_windows_web_app_relationships_mobile_app_relationship_item_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_windows_web_app_relationships_mobile_app_relationship_item_request_builder.go @@ -18,7 +18,7 @@ type MobileAppsItemGraphWindowsWebAppRelationshipsMobileAppRelationshipItemReque // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// MobileAppsItemGraphWindowsWebAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters the set of direct relationships for this app. +// MobileAppsItemGraphWindowsWebAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters list of relationships for this mobile app. type MobileAppsItemGraphWindowsWebAppRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *MobileAppsItemGraphWindowsWebAppRelationshipsMobileAppRelationshipItemR } return nil } -// Get the set of direct relationships for this app. +// Get list of relationships for this mobile app. // returns a MobileAppRelationshipable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphWindowsWebAppRelationshipsMobileAppRelationshipItemRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphWindowsWebAppRelationshipsMobileAppRelationshipItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipable, error) { @@ -121,7 +121,7 @@ func (m *MobileAppsItemGraphWindowsWebAppRelationshipsMobileAppRelationshipItemR requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the set of direct relationships for this app. +// ToGetRequestInformation list of relationships for this mobile app. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphWindowsWebAppRelationshipsMobileAppRelationshipItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphWindowsWebAppRelationshipsMobileAppRelationshipItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/mobile_apps_item_graph_windows_web_app_relationships_request_builder.go b/deviceappmanagement/mobile_apps_item_graph_windows_web_app_relationships_request_builder.go index f828e778fb2..3338c21cdc0 100644 --- a/deviceappmanagement/mobile_apps_item_graph_windows_web_app_relationships_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_graph_windows_web_app_relationships_request_builder.go @@ -11,7 +11,7 @@ import ( type MobileAppsItemGraphWindowsWebAppRelationshipsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// MobileAppsItemGraphWindowsWebAppRelationshipsRequestBuilderGetQueryParameters the set of direct relationships for this app. +// MobileAppsItemGraphWindowsWebAppRelationshipsRequestBuilderGetQueryParameters list of relationships for this mobile app. type MobileAppsItemGraphWindowsWebAppRelationshipsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewMobileAppsItemGraphWindowsWebAppRelationshipsRequestBuilder(rawUrl strin func (m *MobileAppsItemGraphWindowsWebAppRelationshipsRequestBuilder) Count()(*MobileAppsItemGraphWindowsWebAppRelationshipsCountRequestBuilder) { return NewMobileAppsItemGraphWindowsWebAppRelationshipsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the set of direct relationships for this app. +// Get list of relationships for this mobile app. // returns a MobileAppRelationshipCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemGraphWindowsWebAppRelationshipsRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemGraphWindowsWebAppRelationshipsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *MobileAppsItemGraphWindowsWebAppRelationshipsRequestBuilder) Post(ctx c } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipable), nil } -// ToGetRequestInformation the set of direct relationships for this app. +// ToGetRequestInformation list of relationships for this mobile app. // returns a *RequestInformation when successful func (m *MobileAppsItemGraphWindowsWebAppRelationshipsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemGraphWindowsWebAppRelationshipsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/mobile_apps_item_relationships_mobile_app_relationship_item_request_builder.go b/deviceappmanagement/mobile_apps_item_relationships_mobile_app_relationship_item_request_builder.go index c735e11f2ca..c50c3f38993 100644 --- a/deviceappmanagement/mobile_apps_item_relationships_mobile_app_relationship_item_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_relationships_mobile_app_relationship_item_request_builder.go @@ -18,7 +18,7 @@ type MobileAppsItemRelationshipsMobileAppRelationshipItemRequestBuilderDeleteReq // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// MobileAppsItemRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters the set of direct relationships for this app. +// MobileAppsItemRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters list of relationships for this mobile app. type MobileAppsItemRelationshipsMobileAppRelationshipItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *MobileAppsItemRelationshipsMobileAppRelationshipItemRequestBuilder) Del } return nil } -// Get the set of direct relationships for this app. +// Get list of relationships for this mobile app. // returns a MobileAppRelationshipable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemRelationshipsMobileAppRelationshipItemRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemRelationshipsMobileAppRelationshipItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipable, error) { @@ -121,7 +121,7 @@ func (m *MobileAppsItemRelationshipsMobileAppRelationshipItemRequestBuilder) ToD requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the set of direct relationships for this app. +// ToGetRequestInformation list of relationships for this mobile app. // returns a *RequestInformation when successful func (m *MobileAppsItemRelationshipsMobileAppRelationshipItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemRelationshipsMobileAppRelationshipItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/deviceappmanagement/mobile_apps_item_relationships_request_builder.go b/deviceappmanagement/mobile_apps_item_relationships_request_builder.go index 93080353eaf..b0ebbdcbc13 100644 --- a/deviceappmanagement/mobile_apps_item_relationships_request_builder.go +++ b/deviceappmanagement/mobile_apps_item_relationships_request_builder.go @@ -11,7 +11,7 @@ import ( type MobileAppsItemRelationshipsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// MobileAppsItemRelationshipsRequestBuilderGetQueryParameters the set of direct relationships for this app. +// MobileAppsItemRelationshipsRequestBuilderGetQueryParameters list of relationships for this mobile app. type MobileAppsItemRelationshipsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewMobileAppsItemRelationshipsRequestBuilder(rawUrl string, requestAdapter func (m *MobileAppsItemRelationshipsRequestBuilder) Count()(*MobileAppsItemRelationshipsCountRequestBuilder) { return NewMobileAppsItemRelationshipsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the set of direct relationships for this app. +// Get list of relationships for this mobile app. // returns a MobileAppRelationshipCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppsItemRelationshipsRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppsItemRelationshipsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *MobileAppsItemRelationshipsRequestBuilder) Post(ctx context.Context, bo } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppRelationshipable), nil } -// ToGetRequestInformation the set of direct relationships for this app. +// ToGetRequestInformation list of relationships for this mobile app. // returns a *RequestInformation when successful func (m *MobileAppsItemRelationshipsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppsItemRelationshipsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/devicemanagement/95e321a00fb64340ba3419701f5ca5ba43c30313e72cd685c8c547371739606e.go b/devicemanagement/95e321a00fb64340ba3419701f5ca5ba43c30313e72cd685c8c547371739606e.go index bb242596140..395a3a31846 100644 --- a/devicemanagement/95e321a00fb64340ba3419701f5ca5ba43c30313e72cd685c8c547371739606e.go +++ b/devicemanagement/95e321a00fb64340ba3419701f5ca5ba43c30313e72cd685c8c547371739606e.go @@ -41,6 +41,7 @@ func NewVirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersUserI return NewVirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersUserItemRequestBuilderInternal(urlParams, requestAdapter) } // Get the assignment targeted users for the provisioning policy. This list of users is computed based on assignments, licenses, group memberships, and policies. This property is read-only. Supports$expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersUserItemRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersUserItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersUser return NewVirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersItemServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation the assignment targeted users for the provisioning policy. This list of users is computed based on assignments, licenses, group memberships, and policies. This property is read-only. Supports$expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersUserItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersUserItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersUser return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersUserItemRequestBuilder when successful func (m *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersUserItemRequestBuilder) WithUrl(rawUrl string)(*VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersUserItemRequestBuilder) { return NewVirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersUserItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/devicemanagement/9b525d93c67b9a22f4d802deafe04b7f56554503e0143f75c95935f82c5d33c1.go b/devicemanagement/9b525d93c67b9a22f4d802deafe04b7f56554503e0143f75c95935f82c5d33c1.go index 6968e4ce513..291a4aeca72 100644 --- a/devicemanagement/9b525d93c67b9a22f4d802deafe04b7f56554503e0143f75c95935f82c5d33c1.go +++ b/devicemanagement/9b525d93c67b9a22f4d802deafe04b7f56554503e0143f75c95935f82c5d33c1.go @@ -58,6 +58,7 @@ func (m *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersItem return NewVirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersItemServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersItemServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersItemServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersItem return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersItemServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersItemServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersItem return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersItemServiceProvisioningErrorsRequestBuilder when successful func (m *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersItemServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersItemServiceProvisioningErrorsRequestBuilder) { return NewVirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersItemServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/devicemanagement/a02f7e7acdc21ad3fa71928e85c0540a9bca0cc41c9ab164146e545e3f8e790c.go b/devicemanagement/a02f7e7acdc21ad3fa71928e85c0540a9bca0cc41c9ab164146e545e3f8e790c.go index dec495f579e..f423fbb0acc 100644 --- a/devicemanagement/a02f7e7acdc21ad3fa71928e85c0540a9bca0cc41c9ab164146e545e3f8e790c.go +++ b/devicemanagement/a02f7e7acdc21ad3fa71928e85c0540a9bca0cc41c9ab164146e545e3f8e790c.go @@ -48,6 +48,7 @@ func NewVirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersItemM return NewVirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersItemMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersItemMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersItemMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersItem return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersItemMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersItemMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersItem return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersItemMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersItemMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersItem return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersItemMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersItemMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersItem return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersItemMailboxSettingsRequestBuilder when successful func (m *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersItemMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersItemMailboxSettingsRequestBuilder) { return NewVirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersItemMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/devicemanagement/a676fbb934aaa05fb4fc321e66f75572867769479909247e1a9fc0e4fdef946b.go b/devicemanagement/a676fbb934aaa05fb4fc321e66f75572867769479909247e1a9fc0e4fdef946b.go index 508fe18459b..29c61b9aa2d 100644 --- a/devicemanagement/a676fbb934aaa05fb4fc321e66f75572867769479909247e1a9fc0e4fdef946b.go +++ b/devicemanagement/a676fbb934aaa05fb4fc321e66f75572867769479909247e1a9fc0e4fdef946b.go @@ -40,6 +40,7 @@ func NewVirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersItemS return NewVirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersItemServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersItemServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersItemServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersItem return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersItemServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersItemServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersItem return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersItemServiceProvisioningErrorsCountRequestBuilder when successful func (m *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersItemServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersItemServiceProvisioningErrorsCountRequestBuilder) { return NewVirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersItemServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/devicemanagement/comanaged_devices_item_users_request_builder.go b/devicemanagement/comanaged_devices_item_users_request_builder.go index eef572c8007..df52445c1a1 100644 --- a/devicemanagement/comanaged_devices_item_users_request_builder.go +++ b/devicemanagement/comanaged_devices_item_users_request_builder.go @@ -53,6 +53,7 @@ func NewComanagedDevicesItemUsersRequestBuilder(rawUrl string, requestAdapter i2 return NewComanagedDevicesItemUsersRequestBuilderInternal(urlParams, requestAdapter) } // Get the primary users associated with the managed device. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ComanagedDevicesItemUsersRequestBuilder) Get(ctx context.Context, requestConfiguration *ComanagedDevicesItemUsersRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable, error) { @@ -73,6 +74,7 @@ func (m *ComanagedDevicesItemUsersRequestBuilder) Get(ctx context.Context, reque return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable), nil } // ToGetRequestInformation the primary users associated with the managed device. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ComanagedDevicesItemUsersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ComanagedDevicesItemUsersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -87,6 +89,7 @@ func (m *ComanagedDevicesItemUsersRequestBuilder) ToGetRequestInformation(ctx co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ComanagedDevicesItemUsersRequestBuilder when successful func (m *ComanagedDevicesItemUsersRequestBuilder) WithUrl(rawUrl string)(*ComanagedDevicesItemUsersRequestBuilder) { return NewComanagedDevicesItemUsersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/devicemanagement/f210dc303781fcb06137dd73f0d2da836067d2e960010b7576538b293618c8a0.go b/devicemanagement/f210dc303781fcb06137dd73f0d2da836067d2e960010b7576538b293618c8a0.go index 3647e44dd61..add8007fa97 100644 --- a/devicemanagement/f210dc303781fcb06137dd73f0d2da836067d2e960010b7576538b293618c8a0.go +++ b/devicemanagement/f210dc303781fcb06137dd73f0d2da836067d2e960010b7576538b293618c8a0.go @@ -18,7 +18,7 @@ type MobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCollectionR // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// MobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCollectionRequestItemRequestBuilderGetQueryParameters indicates collection of App Log Upload Request. +// MobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCollectionRequestItemRequestBuilderGetQueryParameters the collection property of AppLogUploadRequest. type MobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCollectionRequestItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -75,7 +75,7 @@ func (m *MobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCollect } return nil } -// Get indicates collection of App Log Upload Request. +// Get the collection property of AppLogUploadRequest. // returns a AppLogCollectionRequestable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCollectionRequestItemRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCollectionRequestItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AppLogCollectionRequestable, error) { @@ -126,7 +126,7 @@ func (m *MobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCollect requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation indicates collection of App Log Upload Request. +// ToGetRequestInformation the collection property of AppLogUploadRequest. // returns a *RequestInformation when successful func (m *MobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCollectionRequestItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCollectionRequestItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/devicemanagement/managed_devices_item_users_request_builder.go b/devicemanagement/managed_devices_item_users_request_builder.go index 0c2d00180c4..6f06bba1957 100644 --- a/devicemanagement/managed_devices_item_users_request_builder.go +++ b/devicemanagement/managed_devices_item_users_request_builder.go @@ -53,6 +53,7 @@ func NewManagedDevicesItemUsersRequestBuilder(rawUrl string, requestAdapter i2ae return NewManagedDevicesItemUsersRequestBuilderInternal(urlParams, requestAdapter) } // Get the primary users associated with the managed device. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ManagedDevicesItemUsersRequestBuilder) Get(ctx context.Context, requestConfiguration *ManagedDevicesItemUsersRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable, error) { @@ -73,6 +74,7 @@ func (m *ManagedDevicesItemUsersRequestBuilder) Get(ctx context.Context, request return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable), nil } // ToGetRequestInformation the primary users associated with the managed device. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ManagedDevicesItemUsersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ManagedDevicesItemUsersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -87,6 +89,7 @@ func (m *ManagedDevicesItemUsersRequestBuilder) ToGetRequestInformation(ctx cont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ManagedDevicesItemUsersRequestBuilder when successful func (m *ManagedDevicesItemUsersRequestBuilder) WithUrl(rawUrl string)(*ManagedDevicesItemUsersRequestBuilder) { return NewManagedDevicesItemUsersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/devicemanagement/mobile_app_troubleshooting_events_item_app_log_collection_requests_request_builder.go b/devicemanagement/mobile_app_troubleshooting_events_item_app_log_collection_requests_request_builder.go index 9ab489528b6..09ea29a717d 100644 --- a/devicemanagement/mobile_app_troubleshooting_events_item_app_log_collection_requests_request_builder.go +++ b/devicemanagement/mobile_app_troubleshooting_events_item_app_log_collection_requests_request_builder.go @@ -11,7 +11,7 @@ import ( type MobileAppTroubleshootingEventsItemAppLogCollectionRequestsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// MobileAppTroubleshootingEventsItemAppLogCollectionRequestsRequestBuilderGetQueryParameters indicates collection of App Log Upload Request. +// MobileAppTroubleshootingEventsItemAppLogCollectionRequestsRequestBuilderGetQueryParameters the collection property of AppLogUploadRequest. type MobileAppTroubleshootingEventsItemAppLogCollectionRequestsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewMobileAppTroubleshootingEventsItemAppLogCollectionRequestsRequestBuilder func (m *MobileAppTroubleshootingEventsItemAppLogCollectionRequestsRequestBuilder) Count()(*MobileAppTroubleshootingEventsItemAppLogCollectionRequestsCountRequestBuilder) { return NewMobileAppTroubleshootingEventsItemAppLogCollectionRequestsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get indicates collection of App Log Upload Request. +// Get the collection property of AppLogUploadRequest. // returns a AppLogCollectionRequestCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MobileAppTroubleshootingEventsItemAppLogCollectionRequestsRequestBuilder) Get(ctx context.Context, requestConfiguration *MobileAppTroubleshootingEventsItemAppLogCollectionRequestsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AppLogCollectionRequestCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *MobileAppTroubleshootingEventsItemAppLogCollectionRequestsRequestBuilde } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AppLogCollectionRequestable), nil } -// ToGetRequestInformation indicates collection of App Log Upload Request. +// ToGetRequestInformation the collection property of AppLogUploadRequest. // returns a *RequestInformation when successful func (m *MobileAppTroubleshootingEventsItemAppLogCollectionRequestsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MobileAppTroubleshootingEventsItemAppLogCollectionRequestsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/devicemanagement/virtual_endpoint_cloud_p_cs_request_builder.go b/devicemanagement/virtual_endpoint_cloud_p_cs_request_builder.go index 5461123080e..286a1a3ea27 100644 --- a/devicemanagement/virtual_endpoint_cloud_p_cs_request_builder.go +++ b/devicemanagement/virtual_endpoint_cloud_p_cs_request_builder.go @@ -11,7 +11,7 @@ import ( type VirtualEndpointCloudPCsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// VirtualEndpointCloudPCsRequestBuilderGetQueryParameters read the properties and relationships of a specific cloudPC object. +// VirtualEndpointCloudPCsRequestBuilderGetQueryParameters list the cloudPC devices in a tenant. type VirtualEndpointCloudPCsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -81,12 +81,12 @@ func NewVirtualEndpointCloudPCsRequestBuilder(rawUrl string, requestAdapter i2ae func (m *VirtualEndpointCloudPCsRequestBuilder) Count()(*VirtualEndpointCloudPCsCountRequestBuilder) { return NewVirtualEndpointCloudPCsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get read the properties and relationships of a specific cloudPC object. +// Get list the cloudPC devices in a tenant. // returns a CloudPCCollectionResponseable 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/cloudpc-get?view=graph-rest-beta +// [Find more info here]: https://learn.microsoft.com/graph/api/virtualendpoint-list-cloudpcs?view=graph-rest-beta func (m *VirtualEndpointCloudPCsRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEndpointCloudPCsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPCCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -129,7 +129,7 @@ func (m *VirtualEndpointCloudPCsRequestBuilder) Post(ctx context.Context, body i } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPCable), nil } -// ToGetRequestInformation read the properties and relationships of a specific cloudPC object. +// ToGetRequestInformation list the cloudPC devices in a tenant. // returns a *RequestInformation when successful func (m *VirtualEndpointCloudPCsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEndpointCloudPCsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/devicemanagement/virtual_endpoint_provisioning_policies_item_assignments_item_assigned_users_count_request_builder.go b/devicemanagement/virtual_endpoint_provisioning_policies_item_assignments_item_assigned_users_count_request_builder.go index ab7a54a72b0..38e252c78ea 100644 --- a/devicemanagement/virtual_endpoint_provisioning_policies_item_assignments_item_assigned_users_count_request_builder.go +++ b/devicemanagement/virtual_endpoint_provisioning_policies_item_assignments_item_assigned_users_count_request_builder.go @@ -40,6 +40,7 @@ func NewVirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersCount return NewVirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersCountRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersCoun return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersCoun return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersCountRequestBuilder when successful func (m *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersCountRequestBuilder) WithUrl(rawUrl string)(*VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersCountRequestBuilder) { return NewVirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/devicemanagement/virtual_endpoint_provisioning_policies_item_assignments_item_assigned_users_request_builder.go b/devicemanagement/virtual_endpoint_provisioning_policies_item_assignments_item_assigned_users_request_builder.go index 48d4196fc1e..286d24b46f4 100644 --- a/devicemanagement/virtual_endpoint_provisioning_policies_item_assignments_item_assigned_users_request_builder.go +++ b/devicemanagement/virtual_endpoint_provisioning_policies_item_assignments_item_assigned_users_request_builder.go @@ -40,6 +40,7 @@ type VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersRequestB QueryParameters *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersRequestBuilderGetQueryParameters } // ByUserId provides operations to manage the assignedUsers property of the microsoft.graph.cloudPcProvisioningPolicyAssignment entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersUserItemRequestBuilder when successful func (m *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersRequestBuilder) ByUserId(userId string)(*VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersUserItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -70,6 +71,7 @@ func (m *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersRequ return NewVirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the assignment targeted users for the provisioning policy. This list of users is computed based on assignments, licenses, group memberships, and policies. This property is read-only. Supports$expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersRequestBuilder) Get(ctx context.Context, requestConfiguration *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable, error) { @@ -90,6 +92,7 @@ func (m *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersRequ return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable), nil } // ToGetRequestInformation the assignment targeted users for the provisioning policy. This list of users is computed based on assignments, licenses, group memberships, and policies. This property is read-only. Supports$expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -104,6 +107,7 @@ func (m *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersRequestBuilder when successful func (m *VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersRequestBuilder) WithUrl(rawUrl string)(*VirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersRequestBuilder) { return NewVirtualEndpointProvisioningPoliciesItemAssignmentsItemAssignedUsersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/devices/item_registered_owners_graph_user_count_request_builder.go b/devices/item_registered_owners_graph_user_count_request_builder.go index c8579ea9120..63aafbcac42 100644 --- a/devices/item_registered_owners_graph_user_count_request_builder.go +++ b/devices/item_registered_owners_graph_user_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemRegisteredOwnersGraphUserCountRequestBuilder(rawUrl string, requestA return NewItemRegisteredOwnersGraphUserCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemRegisteredOwnersGraphUserCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemRegisteredOwnersGraphUserCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemRegisteredOwnersGraphUserCountRequestBuilder) Get(ctx context.Conte return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemRegisteredOwnersGraphUserCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemRegisteredOwnersGraphUserCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemRegisteredOwnersGraphUserCountRequestBuilder) ToGetRequestInformati return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemRegisteredOwnersGraphUserCountRequestBuilder when successful func (m *ItemRegisteredOwnersGraphUserCountRequestBuilder) WithUrl(rawUrl string)(*ItemRegisteredOwnersGraphUserCountRequestBuilder) { return NewItemRegisteredOwnersGraphUserCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/devices/item_registered_owners_graph_user_request_builder.go b/devices/item_registered_owners_graph_user_request_builder.go index 9be80a02f8c..476449aca90 100644 --- a/devices/item_registered_owners_graph_user_request_builder.go +++ b/devices/item_registered_owners_graph_user_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemRegisteredOwnersGraphUserRequestBuilder) Count()(*ItemRegisteredOwn return NewItemRegisteredOwnersGraphUserCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemRegisteredOwnersGraphUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemRegisteredOwnersGraphUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemRegisteredOwnersGraphUserRequestBuilder) Get(ctx context.Context, r return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable), nil } // ToGetRequestInformation get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemRegisteredOwnersGraphUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemRegisteredOwnersGraphUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemRegisteredOwnersGraphUserRequestBuilder) ToGetRequestInformation(ct return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemRegisteredOwnersGraphUserRequestBuilder when successful func (m *ItemRegisteredOwnersGraphUserRequestBuilder) WithUrl(rawUrl string)(*ItemRegisteredOwnersGraphUserRequestBuilder) { return NewItemRegisteredOwnersGraphUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/devices/item_registered_owners_item_graph_user_request_builder.go b/devices/item_registered_owners_item_graph_user_request_builder.go index 799ed2da15b..7499401d796 100644 --- a/devices/item_registered_owners_item_graph_user_request_builder.go +++ b/devices/item_registered_owners_item_graph_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemRegisteredOwnersItemGraphUserRequestBuilder(rawUrl string, requestAd return NewItemRegisteredOwnersItemGraphUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get the item of type microsoft.graph.directoryObject as microsoft.graph.user +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemRegisteredOwnersItemGraphUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemRegisteredOwnersItemGraphUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -61,6 +62,7 @@ func (m *ItemRegisteredOwnersItemGraphUserRequestBuilder) Get(ctx context.Contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable), nil } // ToGetRequestInformation get the item of type microsoft.graph.directoryObject as microsoft.graph.user +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemRegisteredOwnersItemGraphUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemRegisteredOwnersItemGraphUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemRegisteredOwnersItemGraphUserRequestBuilder) ToGetRequestInformatio return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemRegisteredOwnersItemGraphUserRequestBuilder when successful func (m *ItemRegisteredOwnersItemGraphUserRequestBuilder) WithUrl(rawUrl string)(*ItemRegisteredOwnersItemGraphUserRequestBuilder) { return NewItemRegisteredOwnersItemGraphUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/devices/item_registered_users_graph_user_count_request_builder.go b/devices/item_registered_users_graph_user_count_request_builder.go index 26578581ce2..49f661c2a56 100644 --- a/devices/item_registered_users_graph_user_count_request_builder.go +++ b/devices/item_registered_users_graph_user_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemRegisteredUsersGraphUserCountRequestBuilder(rawUrl string, requestAd return NewItemRegisteredUsersGraphUserCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemRegisteredUsersGraphUserCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemRegisteredUsersGraphUserCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemRegisteredUsersGraphUserCountRequestBuilder) Get(ctx context.Contex return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemRegisteredUsersGraphUserCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemRegisteredUsersGraphUserCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemRegisteredUsersGraphUserCountRequestBuilder) ToGetRequestInformatio return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemRegisteredUsersGraphUserCountRequestBuilder when successful func (m *ItemRegisteredUsersGraphUserCountRequestBuilder) WithUrl(rawUrl string)(*ItemRegisteredUsersGraphUserCountRequestBuilder) { return NewItemRegisteredUsersGraphUserCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/devices/item_registered_users_graph_user_request_builder.go b/devices/item_registered_users_graph_user_request_builder.go index b8f34552cf3..902708a3e77 100644 --- a/devices/item_registered_users_graph_user_request_builder.go +++ b/devices/item_registered_users_graph_user_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemRegisteredUsersGraphUserRequestBuilder) Count()(*ItemRegisteredUser return NewItemRegisteredUsersGraphUserCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemRegisteredUsersGraphUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemRegisteredUsersGraphUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemRegisteredUsersGraphUserRequestBuilder) Get(ctx context.Context, re return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable), nil } // ToGetRequestInformation get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemRegisteredUsersGraphUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemRegisteredUsersGraphUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemRegisteredUsersGraphUserRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemRegisteredUsersGraphUserRequestBuilder when successful func (m *ItemRegisteredUsersGraphUserRequestBuilder) WithUrl(rawUrl string)(*ItemRegisteredUsersGraphUserRequestBuilder) { return NewItemRegisteredUsersGraphUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/devices/item_registered_users_item_graph_user_request_builder.go b/devices/item_registered_users_item_graph_user_request_builder.go index bb9de90632b..536cf0db672 100644 --- a/devices/item_registered_users_item_graph_user_request_builder.go +++ b/devices/item_registered_users_item_graph_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemRegisteredUsersItemGraphUserRequestBuilder(rawUrl string, requestAda return NewItemRegisteredUsersItemGraphUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get the item of type microsoft.graph.directoryObject as microsoft.graph.user +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemRegisteredUsersItemGraphUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemRegisteredUsersItemGraphUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -61,6 +62,7 @@ func (m *ItemRegisteredUsersItemGraphUserRequestBuilder) Get(ctx context.Context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable), nil } // ToGetRequestInformation get the item of type microsoft.graph.directoryObject as microsoft.graph.user +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemRegisteredUsersItemGraphUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemRegisteredUsersItemGraphUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemRegisteredUsersItemGraphUserRequestBuilder) ToGetRequestInformation return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemRegisteredUsersItemGraphUserRequestBuilder when successful func (m *ItemRegisteredUsersItemGraphUserRequestBuilder) WithUrl(rawUrl string)(*ItemRegisteredUsersItemGraphUserRequestBuilder) { return NewItemRegisteredUsersItemGraphUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/directory/administrative_units_item_members_graph_user_count_request_builder.go b/directory/administrative_units_item_members_graph_user_count_request_builder.go index 2b7394d83be..7f15f2791b9 100644 --- a/directory/administrative_units_item_members_graph_user_count_request_builder.go +++ b/directory/administrative_units_item_members_graph_user_count_request_builder.go @@ -40,6 +40,7 @@ func NewAdministrativeUnitsItemMembersGraphUserCountRequestBuilder(rawUrl string return NewAdministrativeUnitsItemMembersGraphUserCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *AdministrativeUnitsItemMembersGraphUserCountRequestBuilder) Get(ctx context.Context, requestConfiguration *AdministrativeUnitsItemMembersGraphUserCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *AdministrativeUnitsItemMembersGraphUserCountRequestBuilder) Get(ctx con return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *AdministrativeUnitsItemMembersGraphUserCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *AdministrativeUnitsItemMembersGraphUserCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *AdministrativeUnitsItemMembersGraphUserCountRequestBuilder) ToGetReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *AdministrativeUnitsItemMembersGraphUserCountRequestBuilder when successful func (m *AdministrativeUnitsItemMembersGraphUserCountRequestBuilder) WithUrl(rawUrl string)(*AdministrativeUnitsItemMembersGraphUserCountRequestBuilder) { return NewAdministrativeUnitsItemMembersGraphUserCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/directory/administrative_units_item_members_graph_user_request_builder.go b/directory/administrative_units_item_members_graph_user_request_builder.go index 871585f212d..6b304d3b82c 100644 --- a/directory/administrative_units_item_members_graph_user_request_builder.go +++ b/directory/administrative_units_item_members_graph_user_request_builder.go @@ -58,6 +58,7 @@ func (m *AdministrativeUnitsItemMembersGraphUserRequestBuilder) Count()(*Adminis return NewAdministrativeUnitsItemMembersGraphUserCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *AdministrativeUnitsItemMembersGraphUserRequestBuilder) Get(ctx context.Context, requestConfiguration *AdministrativeUnitsItemMembersGraphUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *AdministrativeUnitsItemMembersGraphUserRequestBuilder) Get(ctx context. return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable), nil } // ToGetRequestInformation get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *AdministrativeUnitsItemMembersGraphUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *AdministrativeUnitsItemMembersGraphUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *AdministrativeUnitsItemMembersGraphUserRequestBuilder) ToGetRequestInfo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *AdministrativeUnitsItemMembersGraphUserRequestBuilder when successful func (m *AdministrativeUnitsItemMembersGraphUserRequestBuilder) WithUrl(rawUrl string)(*AdministrativeUnitsItemMembersGraphUserRequestBuilder) { return NewAdministrativeUnitsItemMembersGraphUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/directory/administrative_units_item_members_item_graph_user_request_builder.go b/directory/administrative_units_item_members_item_graph_user_request_builder.go index 98c7915becb..c96ea667d8e 100644 --- a/directory/administrative_units_item_members_item_graph_user_request_builder.go +++ b/directory/administrative_units_item_members_item_graph_user_request_builder.go @@ -41,6 +41,7 @@ func NewAdministrativeUnitsItemMembersItemGraphUserRequestBuilder(rawUrl string, return NewAdministrativeUnitsItemMembersItemGraphUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get the item of type microsoft.graph.directoryObject as microsoft.graph.user +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *AdministrativeUnitsItemMembersItemGraphUserRequestBuilder) Get(ctx context.Context, requestConfiguration *AdministrativeUnitsItemMembersItemGraphUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -61,6 +62,7 @@ func (m *AdministrativeUnitsItemMembersItemGraphUserRequestBuilder) Get(ctx cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable), nil } // ToGetRequestInformation get the item of type microsoft.graph.directoryObject as microsoft.graph.user +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *AdministrativeUnitsItemMembersItemGraphUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *AdministrativeUnitsItemMembersItemGraphUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *AdministrativeUnitsItemMembersItemGraphUserRequestBuilder) ToGetRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *AdministrativeUnitsItemMembersItemGraphUserRequestBuilder when successful func (m *AdministrativeUnitsItemMembersItemGraphUserRequestBuilder) WithUrl(rawUrl string)(*AdministrativeUnitsItemMembersItemGraphUserRequestBuilder) { return NewAdministrativeUnitsItemMembersItemGraphUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/directory/deleted_items_graph_user_count_request_builder.go b/directory/deleted_items_graph_user_count_request_builder.go index 5f61d53799b..3f22c59352d 100644 --- a/directory/deleted_items_graph_user_count_request_builder.go +++ b/directory/deleted_items_graph_user_count_request_builder.go @@ -40,6 +40,7 @@ func NewDeletedItemsGraphUserCountRequestBuilder(rawUrl string, requestAdapter i return NewDeletedItemsGraphUserCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *DeletedItemsGraphUserCountRequestBuilder) Get(ctx context.Context, requestConfiguration *DeletedItemsGraphUserCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *DeletedItemsGraphUserCountRequestBuilder) Get(ctx context.Context, requ return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *DeletedItemsGraphUserCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DeletedItemsGraphUserCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *DeletedItemsGraphUserCountRequestBuilder) ToGetRequestInformation(ctx c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *DeletedItemsGraphUserCountRequestBuilder when successful func (m *DeletedItemsGraphUserCountRequestBuilder) WithUrl(rawUrl string)(*DeletedItemsGraphUserCountRequestBuilder) { return NewDeletedItemsGraphUserCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/directory/deleted_items_graph_user_request_builder.go b/directory/deleted_items_graph_user_request_builder.go index 1e1365aa8d1..051e27ce4b5 100644 --- a/directory/deleted_items_graph_user_request_builder.go +++ b/directory/deleted_items_graph_user_request_builder.go @@ -58,6 +58,7 @@ func (m *DeletedItemsGraphUserRequestBuilder) Count()(*DeletedItemsGraphUserCoun return NewDeletedItemsGraphUserCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *DeletedItemsGraphUserRequestBuilder) Get(ctx context.Context, requestConfiguration *DeletedItemsGraphUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *DeletedItemsGraphUserRequestBuilder) Get(ctx context.Context, requestCo return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable), nil } // ToGetRequestInformation get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *DeletedItemsGraphUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DeletedItemsGraphUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *DeletedItemsGraphUserRequestBuilder) ToGetRequestInformation(ctx contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *DeletedItemsGraphUserRequestBuilder when successful func (m *DeletedItemsGraphUserRequestBuilder) WithUrl(rawUrl string)(*DeletedItemsGraphUserRequestBuilder) { return NewDeletedItemsGraphUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/directory/deleted_items_item_graph_user_request_builder.go b/directory/deleted_items_item_graph_user_request_builder.go index 023137fc2e9..16f795480a7 100644 --- a/directory/deleted_items_item_graph_user_request_builder.go +++ b/directory/deleted_items_item_graph_user_request_builder.go @@ -41,6 +41,7 @@ func NewDeletedItemsItemGraphUserRequestBuilder(rawUrl string, requestAdapter i2 return NewDeletedItemsItemGraphUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get the item of type microsoft.graph.directoryObject as microsoft.graph.user +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *DeletedItemsItemGraphUserRequestBuilder) Get(ctx context.Context, requestConfiguration *DeletedItemsItemGraphUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -61,6 +62,7 @@ func (m *DeletedItemsItemGraphUserRequestBuilder) Get(ctx context.Context, reque return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable), nil } // ToGetRequestInformation get the item of type microsoft.graph.directoryObject as microsoft.graph.user +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *DeletedItemsItemGraphUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DeletedItemsItemGraphUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *DeletedItemsItemGraphUserRequestBuilder) ToGetRequestInformation(ctx co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *DeletedItemsItemGraphUserRequestBuilder when successful func (m *DeletedItemsItemGraphUserRequestBuilder) WithUrl(rawUrl string)(*DeletedItemsItemGraphUserRequestBuilder) { return NewDeletedItemsItemGraphUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/directoryroles/item_members_graph_user_count_request_builder.go b/directoryroles/item_members_graph_user_count_request_builder.go index a6a00b45146..42f13dff9a9 100644 --- a/directoryroles/item_members_graph_user_count_request_builder.go +++ b/directoryroles/item_members_graph_user_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemMembersGraphUserCountRequestBuilder(rawUrl string, requestAdapter i2 return NewItemMembersGraphUserCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMembersGraphUserCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMembersGraphUserCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemMembersGraphUserCountRequestBuilder) Get(ctx context.Context, reque return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMembersGraphUserCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMembersGraphUserCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemMembersGraphUserCountRequestBuilder) ToGetRequestInformation(ctx co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMembersGraphUserCountRequestBuilder when successful func (m *ItemMembersGraphUserCountRequestBuilder) WithUrl(rawUrl string)(*ItemMembersGraphUserCountRequestBuilder) { return NewItemMembersGraphUserCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/directoryroles/item_members_graph_user_request_builder.go b/directoryroles/item_members_graph_user_request_builder.go index 7aab8aeff1c..2edf77a3b1f 100644 --- a/directoryroles/item_members_graph_user_request_builder.go +++ b/directoryroles/item_members_graph_user_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemMembersGraphUserRequestBuilder) Count()(*ItemMembersGraphUserCountR return NewItemMembersGraphUserCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMembersGraphUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMembersGraphUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemMembersGraphUserRequestBuilder) Get(ctx context.Context, requestCon return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable), nil } // ToGetRequestInformation get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMembersGraphUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMembersGraphUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemMembersGraphUserRequestBuilder) ToGetRequestInformation(ctx context return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMembersGraphUserRequestBuilder when successful func (m *ItemMembersGraphUserRequestBuilder) WithUrl(rawUrl string)(*ItemMembersGraphUserRequestBuilder) { return NewItemMembersGraphUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/directoryroles/item_members_item_graph_user_request_builder.go b/directoryroles/item_members_item_graph_user_request_builder.go index b7b738cd7fe..0669cdad163 100644 --- a/directoryroles/item_members_item_graph_user_request_builder.go +++ b/directoryroles/item_members_item_graph_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemMembersItemGraphUserRequestBuilder(rawUrl string, requestAdapter i2a return NewItemMembersItemGraphUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get the item of type microsoft.graph.directoryObject as microsoft.graph.user +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMembersItemGraphUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMembersItemGraphUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -61,6 +62,7 @@ func (m *ItemMembersItemGraphUserRequestBuilder) Get(ctx context.Context, reques return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable), nil } // ToGetRequestInformation get the item of type microsoft.graph.directoryObject as microsoft.graph.user +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMembersItemGraphUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMembersItemGraphUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemMembersItemGraphUserRequestBuilder) ToGetRequestInformation(ctx con return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMembersItemGraphUserRequestBuilder when successful func (m *ItemMembersItemGraphUserRequestBuilder) WithUrl(rawUrl string)(*ItemMembersItemGraphUserRequestBuilder) { return NewItemMembersItemGraphUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/drives/00abb45b228d8321b1ec46446958c37e6013fe3150017a8df71a16f04d38d615.go b/drives/00abb45b228d8321b1ec46446958c37e6013fe3150017a8df71a16f04d38d615.go new file mode 100644 index 00000000000..b6127353df9 --- /dev/null +++ b/drives/00abb45b228d8321b1ec46446958c37e6013fe3150017a8df71a16f04d38d615.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMergePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMergePostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMergePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMergePostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMergePostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMergePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMergePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMergePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMergePostRequestBody(), nil +} +// GetAcross gets the across property value. The across property +// returns a *bool when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMergePostRequestBody) GetAcross()(*bool) { + val, err := m.GetBackingStore().Get("across") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + 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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMergePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMergePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMergePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["across"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetAcross(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMergePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("across", m.GetAcross()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAcross sets the across property value. The across property +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMergePostRequestBody) SetAcross(value *bool)() { + err := m.GetBackingStore().Set("across", 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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMergePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMergePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMergePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAcross()(*bool) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetAcross(value *bool)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/03492c1c2b5f9ecbb8fe56479f7327c27a73b8af6f31c6094a6e184efd39a788.go b/drives/03492c1c2b5f9ecbb8fe56479f7327c27a73b8af6f31c6094a6e184efd39a788.go new file mode 100644 index 00000000000..0d8ff972cde --- /dev/null +++ b/drives/03492c1c2b5f9ecbb8fe56479f7327c27a73b8af6f31c6094a6e184efd39a788.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyCellWithRowWithColumnRequestBuilder provides operations to call the cell method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyCellWithRowWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyCellWithRowWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyCellWithRowWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyCellWithRowWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyCellWithRowWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32, row *int32)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyCellWithRowWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyCellWithRowWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/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 +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyCellWithRowWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyCellWithRowWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyCellWithRowWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyCellWithRowWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function cell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyCellWithRowWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function cell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyCellWithRowWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyCellWithRowWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyCellWithRowWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/04f238b4f184861435a08fa4185ced4c2553ec1aee66af86299ef29017c2b049.go b/drives/04f238b4f184861435a08fa4185ced4c2553ec1aee66af86299ef29017c2b049.go new file mode 100644 index 00000000000..25b1041ecd3 --- /dev/null +++ b/drives/04f238b4f184861435a08fa4185ced4c2553ec1aee66af86299ef29017c2b049.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilder provides operations to call the cell method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32, row *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/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 +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function cell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function cell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/061fff47a80a6e82edb42238786d780a2fc11ee92493f9b735374445b8df781d.go b/drives/061fff47a80a6e82edb42238786d780a2fc11ee92493f9b735374445b8df781d.go new file mode 100644 index 00000000000..8684c9cc15d --- /dev/null +++ b/drives/061fff47a80a6e82edb42238786d780a2fc11ee92493f9b735374445b8df781d.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder provides operations to call the resizedRange method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters), + } + if deltaColumns != nil { + m.BaseRequestBuilder.PathParameters["deltaColumns"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaColumns), 10) + } + if deltaRows != nil { + m.BaseRequestBuilder.PathParameters["deltaRows"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaRows), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function resizedRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function resizedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/07e450ff8ffe486a71946c475857d680bd5b47e16ad61e614640ef0ea4efbacf.go b/drives/07e450ff8ffe486a71946c475857d680bd5b47e16ad61e614640ef0ea4efbacf.go new file mode 100644 index 00000000000..e3f4bdca352 --- /dev/null +++ b/drives/07e450ff8ffe486a71946c475857d680bd5b47e16ad61e614640ef0ea4efbacf.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder provides operations to call the resizedRange method. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters), + } + if deltaColumns != nil { + m.BaseRequestBuilder.PathParameters["deltaColumns"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaColumns), 10) + } + if deltaRows != nil { + m.BaseRequestBuilder.PathParameters["deltaRows"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaRows), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function resizedRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function resizedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/08564950f28469d3f60ab42bb8f28333fdf039b8e7559b4592d83fe48dc59342.go b/drives/08564950f28469d3f60ab42bb8f28333fdf039b8e7559b4592d83fe48dc59342.go new file mode 100644 index 00000000000..56c29882b89 --- /dev/null +++ b/drives/08564950f28469d3f60ab42bb8f28333fdf039b8e7559b4592d83fe48dc59342.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/rowsAbove(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/0a4e7ec5fdde7b952150a8469cc1a1333c88a42e40dbedda114ae92338ff1f6e.go b/drives/0a4e7ec5fdde7b952150a8469cc1a1333c88a42e40dbedda114ae92338ff1f6e.go new file mode 100644 index 00000000000..465bbcefb1d --- /dev/null +++ b/drives/0a4e7ec5fdde7b952150a8469cc1a1333c88a42e40dbedda114ae92338ff1f6e.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowWithCountRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/rowsBelow(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/0b1f24ddecb49eb1f04f90febcec5c6cfe9a7453af688309973dcd395f2b854d.go b/drives/0b1f24ddecb49eb1f04f90febcec5c6cfe9a7453af688309973dcd395f2b854d.go new file mode 100644 index 00000000000..e4dc1a94cd5 --- /dev/null +++ b/drives/0b1f24ddecb49eb1f04f90febcec5c6cfe9a7453af688309973dcd395f2b854d.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/columnsAfter(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/0cf449958b85af95693f4498f1c664efaaf25cfe8525bab932544855b46cca25.go b/drives/0cf449958b85af95693f4498f1c664efaaf25cfe8525bab932544855b46cca25.go new file mode 100644 index 00000000000..fcb3ff4d083 --- /dev/null +++ b/drives/0cf449958b85af95693f4498f1c664efaaf25cfe8525bab932544855b46cca25.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/columnsAfter(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/0df12b3b1f170d049d2b8884fb111501a91ddb04f822f1ef9c19eaeeecfb4652.go b/drives/0df12b3b1f170d049d2b8884fb111501a91ddb04f822f1ef9c19eaeeecfb4652.go new file mode 100644 index 00000000000..2aad0f7b785 --- /dev/null +++ b/drives/0df12b3b1f170d049d2b8884fb111501a91ddb04f822f1ef9c19eaeeecfb4652.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder provides operations to call the resizedRange method. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters), + } + if deltaColumns != nil { + m.BaseRequestBuilder.PathParameters["deltaColumns"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaColumns), 10) + } + if deltaRows != nil { + m.BaseRequestBuilder.PathParameters["deltaRows"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaRows), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function resizedRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function resizedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/0dfa067c351c6cde9c88e75d99cb660a50b272aa13a108fd39b91045e565c83c.go b/drives/0dfa067c351c6cde9c88e75d99cb660a50b272aa13a108fd39b91045e565c83c.go new file mode 100644 index 00000000000..4be8e48d744 --- /dev/null +++ b/drives/0dfa067c351c6cde9c88e75d99cb660a50b272aa13a108fd39b91045e565c83c.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeWithValuesOnlyRequestBuilder provides operations to call the usedRange method. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeWithValuesOnlyRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeWithValuesOnlyRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeWithValuesOnlyRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeWithValuesOnlyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, valuesOnly *bool)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeWithValuesOnlyRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeWithValuesOnlyRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/usedRange(valuesOnly={valuesOnly})", pathParameters), + } + if valuesOnly != nil { + m.BaseRequestBuilder.PathParameters["valuesOnly"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatBool(*valuesOnly) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeWithValuesOnlyRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeWithValuesOnlyRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeWithValuesOnlyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeWithValuesOnlyRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeWithValuesOnlyRequestBuilderInternal(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 *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeWithValuesOnlyRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function usedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeWithValuesOnlyRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeWithValuesOnlyRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeWithValuesOnlyRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeWithValuesOnlyRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeWithValuesOnlyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/0e3696b9638462fba691443f1c8371b2d74679e0eed49d58c1d786a3e455a5c9.go b/drives/0e3696b9638462fba691443f1c8371b2d74679e0eed49d58c1d786a3e455a5c9.go new file mode 100644 index 00000000000..9854f2c0b42 --- /dev/null +++ b/drives/0e3696b9638462fba691443f1c8371b2d74679e0eed49d58c1d786a3e455a5c9.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressBoundingRectWithAnotherRangeRequestBuilder provides operations to call the boundingRect method. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressBoundingRectWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressBoundingRectWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressBoundingRectWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressBoundingRectWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeWithAddressBoundingRectWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/boundingRect(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressBoundingRectWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressBoundingRectWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressBoundingRectWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressBoundingRectWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function boundingRect +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressBoundingRectWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function boundingRect +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressBoundingRectWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressBoundingRectWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressBoundingRectWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/0e81f9e7fe3d71e956d24738668b7ea2bbb3f2825a3a7dac509015d95dffcb39.go b/drives/0e81f9e7fe3d71e956d24738668b7ea2bbb3f2825a3a7dac509015d95dffcb39.go new file mode 100644 index 00000000000..b2436cb60b1 --- /dev/null +++ b/drives/0e81f9e7fe3d71e956d24738668b7ea2bbb3f2825a3a7dac509015d95dffcb39.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilder provides operations to call the usedRange method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/usedRange()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilderInternal(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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function usedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/0f20b2d67135f27679b87221a7c6eda5747df17a0c4835cb0643ff877511c93b.go b/drives/0f20b2d67135f27679b87221a7c6eda5747df17a0c4835cb0643ff877511c93b.go new file mode 100644 index 00000000000..85c28c06515 --- /dev/null +++ b/drives/0f20b2d67135f27679b87221a7c6eda5747df17a0c4835cb0643ff877511c93b.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder provides operations to call the resizedRange method. +type ItemItemsItemWorkbookTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters), + } + if deltaColumns != nil { + m.BaseRequestBuilder.PathParameters["deltaColumns"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaColumns), 10) + } + if deltaRows != nil { + m.BaseRequestBuilder.PathParameters["deltaRows"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaRows), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function resizedRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function resizedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/0ff48d3fe031d4c6b96ddaf45b0d3f331e55b144dfe06426005c41c9ab67b157.go b/drives/0ff48d3fe031d4c6b96ddaf45b0d3f331e55b144dfe06426005c41c9ab67b157.go new file mode 100644 index 00000000000..c28c7239906 --- /dev/null +++ b/drives/0ff48d3fe031d4c6b96ddaf45b0d3f331e55b144dfe06426005c41c9ab67b157.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder provides operations to call the offsetRange method. +type ItemItemsItemWorkbookWorksheetsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookWorksheetsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters), + } + if columnOffset != nil { + m.BaseRequestBuilder.PathParameters["columnOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*columnOffset), 10) + } + if rowOffset != nil { + m.BaseRequestBuilder.PathParameters["rowOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*rowOffset), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function offsetRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function offsetRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/10657eda6d5c53928a4eb20bd849670231edf7e2c6fa17076ab3d3b0b35bf4d5.go b/drives/10657eda6d5c53928a4eb20bd849670231edf7e2c6fa17076ab3d3b0b35bf4d5.go index 8f4b42d3ca6..3f3024b12ca 100644 --- a/drives/10657eda6d5c53928a4eb20bd849670231edf7e2c6fa17076ab3d3b0b35bf4d5.go +++ b/drives/10657eda6d5c53928a4eb20bd849670231edf7e2c6fa17076ab3d3b0b35bf4d5.go @@ -11,7 +11,7 @@ import ( type ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilderGetQueryParameters represents a collection of all points in the series. Read-only. +// ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilderGetQueryParameters a collection of all points in the series. Read-only. type ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -59,7 +59,7 @@ func NewItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPoints urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilderInternal(urlParams, requestAdapter) } -// Get represents a collection of all points in the series. Read-only. +// Get 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 *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookChartPointCollectionResponseable, error) { @@ -99,7 +99,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPoint } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookChartPointable), nil } -// ToGetRequestInformation represents a collection of all points in the series. Read-only. +// ToGetRequestInformation a collection of all points in the series. Read-only. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexPointsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/106d01e5b46287431319383ec983df54776c591da712e6d16c49282b27df8f2c.go b/drives/106d01e5b46287431319383ec983df54776c591da712e6d16c49282b27df8f2c.go new file mode 100644 index 00000000000..6d4ddba1e11 --- /dev/null +++ b/drives/106d01e5b46287431319383ec983df54776c591da712e6d16c49282b27df8f2c.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder provides operations to call the resizedRange method. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters), + } + if deltaColumns != nil { + m.BaseRequestBuilder.PathParameters["deltaColumns"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaColumns), 10) + } + if deltaRows != nil { + m.BaseRequestBuilder.PathParameters["deltaRows"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaRows), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function resizedRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function resizedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/109da590fae608ca2a9db811dced7831b2f21ff46107f5a79623a40358de651b.go b/drives/109da590fae608ca2a9db811dced7831b2f21ff46107f5a79623a40358de651b.go new file mode 100644 index 00000000000..58483f5dd78 --- /dev/null +++ b/drives/109da590fae608ca2a9db811dced7831b2f21ff46107f5a79623a40358de651b.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilder provides operations to call the boundingRect method. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/boundingRect(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function boundingRect +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function boundingRect +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/10f8b315c00a28be696edb9eab2a833ba8f1732a841d9a601a40a06bbd2476e6.go b/drives/10f8b315c00a28be696edb9eab2a833ba8f1732a841d9a601a40a06bbd2476e6.go new file mode 100644 index 00000000000..e353d740876 --- /dev/null +++ b/drives/10f8b315c00a28be696edb9eab2a833ba8f1732a841d9a601a40a06bbd2476e6.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnWithColumnRequestBuilder provides operations to call the column method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/column(column={column})", pathParameters), + } + if column != nil { + m.BaseRequestBuilder.PathParameters["column"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*column), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function column +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function column +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/12a16906ef7d4e5652e3ab65c16bd1ffc1edbbee4ba36b9a6faebec7f08389d8.go b/drives/12a16906ef7d4e5652e3ab65c16bd1ffc1edbbee4ba36b9a6faebec7f08389d8.go new file mode 100644 index 00000000000..c6c9f3a7f65 --- /dev/null +++ b/drives/12a16906ef7d4e5652e3ab65c16bd1ffc1edbbee4ba36b9a6faebec7f08389d8.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder provides operations to call the boundingRect method. +type ItemItemsItemWorkbookTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/boundingRect(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function boundingRect +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function boundingRect +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/1408695f2def3f3f127de2b215600a0b3fdbb1a2620ee7b2add954bcdf5ca007.go b/drives/1408695f2def3f3f127de2b215600a0b3fdbb1a2620ee7b2add954bcdf5ca007.go new file mode 100644 index 00000000000..f68a8b21ca5 --- /dev/null +++ b/drives/1408695f2def3f3f127de2b215600a0b3fdbb1a2620ee7b2add954bcdf5ca007.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnWithColumnRequestBuilder provides operations to call the column method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/column(column={column})", pathParameters), + } + if column != nil { + m.BaseRequestBuilder.PathParameters["column"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*column), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function column +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function column +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/14128ea069d06593f846460bfa2cddcca89bc2119acef9a8d810dd8305954ad2.go b/drives/14128ea069d06593f846460bfa2cddcca89bc2119acef9a8d810dd8305954ad2.go new file mode 100644 index 00000000000..60762f9947d --- /dev/null +++ b/drives/14128ea069d06593f846460bfa2cddcca89bc2119acef9a8d810dd8305954ad2.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/columnsAfter(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/14f2ce9665b2ea053692d40caaea09785b1a963c039cade2cd2d648b7d830580.go b/drives/14f2ce9665b2ea053692d40caaea09785b1a963c039cade2cd2d648b7d830580.go new file mode 100644 index 00000000000..f31be3f841d --- /dev/null +++ b/drives/14f2ce9665b2ea053692d40caaea09785b1a963c039cade2cd2d648b7d830580.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/rowsBelow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/151ab42306c105099acf6b6da8946c7dfae27f63dc9bef65a3c1567705063026.go b/drives/151ab42306c105099acf6b6da8946c7dfae27f63dc9bef65a3c1567705063026.go new file mode 100644 index 00000000000..1d5ccd8a5c5 --- /dev/null +++ b/drives/151ab42306c105099acf6b6da8946c7dfae27f63dc9bef65a3c1567705063026.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder provides operations to call the resizedRange method. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters), + } + if deltaColumns != nil { + m.BaseRequestBuilder.PathParameters["deltaColumns"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaColumns), 10) + } + if deltaRows != nil { + m.BaseRequestBuilder.PathParameters["deltaRows"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaRows), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function resizedRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function resizedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/15e3add39e8ba2246d164ab142da01924a9dcd66671044ba76941f08f9bae406.go b/drives/15e3add39e8ba2246d164ab142da01924a9dcd66671044ba76941f08f9bae406.go new file mode 100644 index 00000000000..d6d2ce2c539 --- /dev/null +++ b/drives/15e3add39e8ba2246d164ab142da01924a9dcd66671044ba76941f08f9bae406.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/columnsAfter()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/1720aec6ca16e022b8d66c04acee915eb69322cd9f816d9d1674dde50bc5063a.go b/drives/1720aec6ca16e022b8d66c04acee915eb69322cd9f816d9d1674dde50bc5063a.go new file mode 100644 index 00000000000..b482345238b --- /dev/null +++ b/drives/1720aec6ca16e022b8d66c04acee915eb69322cd9f816d9d1674dde50bc5063a.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilder provides operations to call the visibleView method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/visibleView()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function visibleView +// returns a WorkbookRangeViewable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeViewFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable), nil +} +// ToGetRequestInformation invoke function visibleView +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/17c1bb4b03029d752baece13f0b1478c4db8bc08e1f5b5091d25e6866b0c53dd.go b/drives/17c1bb4b03029d752baece13f0b1478c4db8bc08e1f5b5091d25e6866b0c53dd.go new file mode 100644 index 00000000000..2ccbead3a3e --- /dev/null +++ b/drives/17c1bb4b03029d752baece13f0b1478c4db8bc08e1f5b5091d25e6866b0c53dd.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressCellWithRowWithColumnRequestBuilder provides operations to call the cell method. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressCellWithRowWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressCellWithRowWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressCellWithRowWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressCellWithRowWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressCellWithRowWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32, row *int32)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressCellWithRowWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeWithAddressCellWithRowWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/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 +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressCellWithRowWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressCellWithRowWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressCellWithRowWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressCellWithRowWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function cell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressCellWithRowWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function cell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressCellWithRowWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressCellWithRowWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressCellWithRowWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/17c26ae9619bee3a063022df550693777298f8823de07f9be012226e8dd71ee1.go b/drives/17c26ae9619bee3a063022df550693777298f8823de07f9be012226e8dd71ee1.go new file mode 100644 index 00000000000..727a334d95f --- /dev/null +++ b/drives/17c26ae9619bee3a063022df550693777298f8823de07f9be012226e8dd71ee1.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilder provides operations to call the entireColumn method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/entireColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/1876d36f8e59c07315f2d2916abf727194e3f2607ba2b16d1007a1c27d682da9.go b/drives/1876d36f8e59c07315f2d2916abf727194e3f2607ba2b16d1007a1c27d682da9.go new file mode 100644 index 00000000000..ca7a77fb97c --- /dev/null +++ b/drives/1876d36f8e59c07315f2d2916abf727194e3f2607ba2b16d1007a1c27d682da9.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilder provides operations to call the column method. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/column(column={column})", pathParameters), + } + if column != nil { + m.BaseRequestBuilder.PathParameters["column"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*column), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function column +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function column +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/191f70c2fd55946b0040a27c7abcbf4fef652316edc499f5d3e19c9860ea3daf.go b/drives/191f70c2fd55946b0040a27c7abcbf4fef652316edc499f5d3e19c9860ea3daf.go new file mode 100644 index 00000000000..02d184a919e --- /dev/null +++ b/drives/191f70c2fd55946b0040a27c7abcbf4fef652316edc499f5d3e19c9860ea3daf.go @@ -0,0 +1,64 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilder provides operations to call the unmerge method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/unmerge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unmerge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unmerge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/19f2906d33caf077474a82f72c3e422d3b4301f26d300697b9361025183e259f.go b/drives/19f2906d33caf077474a82f72c3e422d3b4301f26d300697b9361025183e259f.go new file mode 100644 index 00000000000..b7419db4782 --- /dev/null +++ b/drives/19f2906d33caf077474a82f72c3e422d3b4301f26d300697b9361025183e259f.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowWithCountRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/rowsBelow(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/1bcfd6aebe3b52c9fe6e574d1ef3b8d2dce276e91dbf2dec744d194dea00efc6.go b/drives/1bcfd6aebe3b52c9fe6e574d1ef3b8d2dce276e91dbf2dec744d194dea00efc6.go new file mode 100644 index 00000000000..98297a0ce16 --- /dev/null +++ b/drives/1bcfd6aebe3b52c9fe6e574d1ef3b8d2dce276e91dbf2dec744d194dea00efc6.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilder provides operations to call the cell method. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32, row *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/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 +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function cell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function cell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/1c13318737f573c9debc3c7afa35c19a70f00100f98426b7a555e2041918ace1.go b/drives/1c13318737f573c9debc3c7afa35c19a70f00100f98426b7a555e2041918ace1.go new file mode 100644 index 00000000000..a5f185bf480 --- /dev/null +++ b/drives/1c13318737f573c9debc3c7afa35c19a70f00100f98426b7a555e2041918ace1.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder provides operations to call the offsetRange method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters), + } + if columnOffset != nil { + m.BaseRequestBuilder.PathParameters["columnOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*columnOffset), 10) + } + if rowOffset != nil { + m.BaseRequestBuilder.PathParameters["rowOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*rowOffset), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function offsetRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function offsetRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/1c3758ad26b69f6e024889e0a2a9caf84137a0ef283af3ad3bce486c17b88607.go b/drives/1c3758ad26b69f6e024889e0a2a9caf84137a0ef283af3ad3bce486c17b88607.go index d4f6039c305..3810cdfaaaa 100644 --- a/drives/1c3758ad26b69f6e024889e0a2a9caf84137a0ef283af3ad3bce486c17b88607.go +++ b/drives/1c3758ad26b69f6e024889e0a2a9caf84137a0ef283af3ad3bce486c17b88607.go @@ -18,7 +18,7 @@ type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItem // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilderGetQueryParameters represents a collection of all the columns in the table. Read-only. +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilderGetQueryParameters the list of all the columns in the table. Read-only. type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -80,7 +80,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumn func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilder) Filter()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilder) { return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get represents a collection of all the columns in the table. Read-only. +// Get the list 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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableColumnable, error) { @@ -141,7 +141,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumn requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation represents a collection of all the columns in the table. Read-only. +// ToGetRequestInformation the list of all the columns in the table. Read-only. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsWorkbookTableColumnItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/1c830004c5e1ba3d0ef7c02c0b4856261c3b3ef858faa25493fcf0eb15cf81c3.go b/drives/1c830004c5e1ba3d0ef7c02c0b4856261c3b3ef858faa25493fcf0eb15cf81c3.go new file mode 100644 index 00000000000..57a3ce46ded --- /dev/null +++ b/drives/1c830004c5e1ba3d0ef7c02c0b4856261c3b3ef858faa25493fcf0eb15cf81c3.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilder provides operations to call the entireRow method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/entireRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/1cdfc3f194d2d843afae27439d6ef921799b17313c46b7875bad935565ea2f50.go b/drives/1cdfc3f194d2d843afae27439d6ef921799b17313c46b7875bad935565ea2f50.go new file mode 100644 index 00000000000..0779c7d1d9c --- /dev/null +++ b/drives/1cdfc3f194d2d843afae27439d6ef921799b17313c46b7875bad935565ea2f50.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder provides operations to call the intersection method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/intersection(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function intersection +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function intersection +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/1f3699d9abdf2ebd05a200b584501f761f2af3eaca46a81c1b73be93ed14e756.go b/drives/1f3699d9abdf2ebd05a200b584501f761f2af3eaca46a81c1b73be93ed14e756.go new file mode 100644 index 00000000000..cdbbaa4b6ee --- /dev/null +++ b/drives/1f3699d9abdf2ebd05a200b584501f761f2af3eaca46a81c1b73be93ed14e756.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder provides operations to call the intersection method. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/intersection(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function intersection +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function intersection +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/1f7203d1d409ac492892c9ea27d3a8db44d2cbb0e55870448d1796ca9b9f4b9c.go b/drives/1f7203d1d409ac492892c9ea27d3a8db44d2cbb0e55870448d1796ca9b9f4b9c.go new file mode 100644 index 00000000000..27cae894925 --- /dev/null +++ b/drives/1f7203d1d409ac492892c9ea27d3a8db44d2cbb0e55870448d1796ca9b9f4b9c.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/columnsBefore()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/1fa7e28f61035b35ecd9176a93555ead9b5756a34985dd621458f7fbc96193b9.go b/drives/1fa7e28f61035b35ecd9176a93555ead9b5756a34985dd621458f7fbc96193b9.go new file mode 100644 index 00000000000..ae6cfef1907 --- /dev/null +++ b/drives/1fa7e28f61035b35ecd9176a93555ead9b5756a34985dd621458f7fbc96193b9.go @@ -0,0 +1,81 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilder provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilderGetQueryParameters +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/worksheet{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookWorksheetable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookWorksheetFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable), nil +} +// ToGetRequestInformation the worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/20a341e172da9fe817e1ec1628242cb2882e3158638bd1a3f07c0cbedaf7f029.go b/drives/20a341e172da9fe817e1ec1628242cb2882e3158638bd1a3f07c0cbedaf7f029.go new file mode 100644 index 00000000000..a627a401576 --- /dev/null +++ b/drives/20a341e172da9fe817e1ec1628242cb2882e3158638bd1a3f07c0cbedaf7f029.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilder provides operations to call the cell method. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32, row *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/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 +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function cell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function cell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/229a59d2c5d08dd5ed588afb62bf13b799713bc96e9f783ada5ea891e6cfceaf.go b/drives/229a59d2c5d08dd5ed588afb62bf13b799713bc96e9f783ada5ea891e6cfceaf.go new file mode 100644 index 00000000000..5194b8c1a0f --- /dev/null +++ b/drives/229a59d2c5d08dd5ed588afb62bf13b799713bc96e9f783ada5ea891e6cfceaf.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder provides operations to call the usedRange method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, valuesOnly *bool)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/usedRange(valuesOnly={valuesOnly})", pathParameters), + } + if valuesOnly != nil { + m.BaseRequestBuilder.PathParameters["valuesOnly"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatBool(*valuesOnly) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilderInternal(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 *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function usedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/22edca08f64970877d68af0b0ce5cd6d524b650da121071f585c13e72a5e59c2.go b/drives/22edca08f64970877d68af0b0ce5cd6d524b650da121071f585c13e72a5e59c2.go new file mode 100644 index 00000000000..eb380510aa9 --- /dev/null +++ b/drives/22edca08f64970877d68af0b0ce5cd6d524b650da121071f585c13e72a5e59c2.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder provides operations to call the resizedRange method. +type ItemItemsItemWorkbookTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters), + } + if deltaColumns != nil { + m.BaseRequestBuilder.PathParameters["deltaColumns"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaColumns), 10) + } + if deltaRows != nil { + m.BaseRequestBuilder.PathParameters["deltaRows"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaRows), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function resizedRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function resizedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/2523bcdc43ad6ac7caab4888709731959bb2e92edf9285065ca96bf7f475ca65.go b/drives/2523bcdc43ad6ac7caab4888709731959bb2e92edf9285065ca96bf7f475ca65.go new file mode 100644 index 00000000000..8577c5caa36 --- /dev/null +++ b/drives/2523bcdc43ad6ac7caab4888709731959bb2e92edf9285065ca96bf7f475ca65.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveWithCountRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/rowsAbove(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/25a2a037eced84ec68149c6f39b27aeefe1d2b1a5b4932ad7b4c0353bdda35a6.go b/drives/25a2a037eced84ec68149c6f39b27aeefe1d2b1a5b4932ad7b4c0353bdda35a6.go new file mode 100644 index 00000000000..d63c213ba60 --- /dev/null +++ b/drives/25a2a037eced84ec68149c6f39b27aeefe1d2b1a5b4932ad7b4c0353bdda35a6.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilder provides operations to call the entireRow method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/entireRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/26004d1c7c2f910fa76afe24bef7ad658db45ec26a5be98a1c8ed883b2d9c181.go b/drives/26004d1c7c2f910fa76afe24bef7ad658db45ec26a5be98a1c8ed883b2d9c181.go index 8a46a8cfccf..9f1c42b303d 100644 --- a/drives/26004d1c7c2f910fa76afe24bef7ad658db45ec26a5be98a1c8ed883b2d9c181.go +++ b/drives/26004d1c7c2f910fa76afe24bef7ad658db45ec26a5be98a1c8ed883b2d9c181.go @@ -18,7 +18,7 @@ type ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatReq // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilderGetQueryParameters represents the formatting of a chart series, which includes fill and line formatting. Read-only. +// ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilderGetQueryParameters the formatting of a chart series, which includes fill and line formatting. Read-only. type ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexForma } return nil } -// Get represents the formatting of a chart series, which includes fill and line formatting. Read-only. +// Get 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 *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookChartSeriesFormatable, error) { @@ -121,7 +121,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexForma 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. +// ToGetRequestInformation the formatting of a chart series, which includes fill and line formatting. Read-only. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemAtWithIndexFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/284826858ffed207a7d0018ea002fa535a07e3d827c8daf9083c43a5a5df3165.go b/drives/284826858ffed207a7d0018ea002fa535a07e3d827c8daf9083c43a5a5df3165.go new file mode 100644 index 00000000000..ac0d4a45d11 --- /dev/null +++ b/drives/284826858ffed207a7d0018ea002fa535a07e3d827c8daf9083c43a5a5df3165.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder provides operations to call the offsetRange method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters), + } + if columnOffset != nil { + m.BaseRequestBuilder.PathParameters["columnOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*columnOffset), 10) + } + if rowOffset != nil { + m.BaseRequestBuilder.PathParameters["rowOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*rowOffset), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function offsetRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function offsetRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/28861b4dffbfd45f777392f07960d0b66bbbd8fd4740e1f20bf1cbe7e1e24275.go b/drives/28861b4dffbfd45f777392f07960d0b66bbbd8fd4740e1f20bf1cbe7e1e24275.go new file mode 100644 index 00000000000..9490392f0fc --- /dev/null +++ b/drives/28861b4dffbfd45f777392f07960d0b66bbbd8fd4740e1f20bf1cbe7e1e24275.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder provides operations to call the offsetRange method. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters), + } + if columnOffset != nil { + m.BaseRequestBuilder.PathParameters["columnOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*columnOffset), 10) + } + if rowOffset != nil { + m.BaseRequestBuilder.PathParameters["rowOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*rowOffset), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function offsetRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function offsetRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/29da744aa03f84e6efc654438c108bad6385eb86a4b6abc6633413b8bb20c61b.go b/drives/29da744aa03f84e6efc654438c108bad6385eb86a4b6abc6633413b8bb20c61b.go new file mode 100644 index 00000000000..e95da96cf75 --- /dev/null +++ b/drives/29da744aa03f84e6efc654438c108bad6385eb86a4b6abc6633413b8bb20c61b.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder provides operations to call the offsetRange method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters), + } + if columnOffset != nil { + m.BaseRequestBuilder.PathParameters["columnOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*columnOffset), 10) + } + if rowOffset != nil { + m.BaseRequestBuilder.PathParameters["rowOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*rowOffset), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function offsetRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function offsetRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/2ade84887846a19f4fcefe657f48a4314b6bd10c2cbac7732a33422d1878173f.go b/drives/2ade84887846a19f4fcefe657f48a4314b6bd10c2cbac7732a33422d1878173f.go new file mode 100644 index 00000000000..c2bea46beeb --- /dev/null +++ b/drives/2ade84887846a19f4fcefe657f48a4314b6bd10c2cbac7732a33422d1878173f.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastRowRequestBuilder provides operations to call the lastRow method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastRowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/lastRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastRowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/2b2dcfa003db78652d4447e0cca0fef7b1751506b1348d813468e7d882c3fc8b.go b/drives/2b2dcfa003db78652d4447e0cca0fef7b1751506b1348d813468e7d882c3fc8b.go new file mode 100644 index 00000000000..687277d2034 --- /dev/null +++ b/drives/2b2dcfa003db78652d4447e0cca0fef7b1751506b1348d813468e7d882c3fc8b.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilder provides operations to call the intersection method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/intersection(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function intersection +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function intersection +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/303f386425081e156f4ae408608780c084dd88a0cca4c150915f5c036914d687.go b/drives/303f386425081e156f4ae408608780c084dd88a0cca4c150915f5c036914d687.go new file mode 100644 index 00000000000..654fea7a78a --- /dev/null +++ b/drives/303f386425081e156f4ae408608780c084dd88a0cca4c150915f5c036914d687.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder provides operations to call the boundingRect method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/boundingRect(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function boundingRect +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function boundingRect +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/30c5f30f9034e348d4c261ac99fb1725b9ac2bf157aa76e9d7cdea32b05ccf11.go b/drives/30c5f30f9034e348d4c261ac99fb1725b9ac2bf157aa76e9d7cdea32b05ccf11.go new file mode 100644 index 00000000000..b7187e76444 --- /dev/null +++ b/drives/30c5f30f9034e348d4c261ac99fb1725b9ac2bf157aa76e9d7cdea32b05ccf11.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/rowsAbove(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/35079b60608e459570bc7c0c79da2fa66a9dcc34d945b1ca192752a756016bf5.go b/drives/35079b60608e459570bc7c0c79da2fa66a9dcc34d945b1ca192752a756016bf5.go new file mode 100644 index 00000000000..2280a1bc42d --- /dev/null +++ b/drives/35079b60608e459570bc7c0c79da2fa66a9dcc34d945b1ca192752a756016bf5.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterWithCountRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/columnsAfter(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/350c7c73b9817edd1a7f4e29c1b20ee2478bbbe889dde190399f1bd1af792d40.go b/drives/350c7c73b9817edd1a7f4e29c1b20ee2478bbbe889dde190399f1bd1af792d40.go new file mode 100644 index 00000000000..86df0a9ac2e --- /dev/null +++ b/drives/350c7c73b9817edd1a7f4e29c1b20ee2478bbbe889dde190399f1bd1af792d40.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/rowsBelow(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/35c2d4bd3ae7b1ae63d3445278ad03242463f923815ac78d46c2e6803f980e33.go b/drives/35c2d4bd3ae7b1ae63d3445278ad03242463f923815ac78d46c2e6803f980e33.go new file mode 100644 index 00000000000..cbdfeca2e60 --- /dev/null +++ b/drives/35c2d4bd3ae7b1ae63d3445278ad03242463f923815ac78d46c2e6803f980e33.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMergeRequestBuilder provides operations to call the merge method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMergeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/merge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMergeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action merge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMergeRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action merge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMergeRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/36b075f84b69cbb18cb07d13a48e1d9f0a7074ad44e22cbd8936c744f039a6a3.go b/drives/36b075f84b69cbb18cb07d13a48e1d9f0a7074ad44e22cbd8936c744f039a6a3.go index 8be95c895f4..d6ef3d56a85 100644 --- a/drives/36b075f84b69cbb18cb07d13a48e1d9f0a7074ad44e22cbd8936c744f039a6a3.go +++ b/drives/36b075f84b69cbb18cb07d13a48e1d9f0a7074ad44e22cbd8936c744f039a6a3.go @@ -18,7 +18,7 @@ type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesWorkbookCommentRe // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesWorkbookCommentReplyItemRequestBuilderGetQueryParameters get replies from drives +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesWorkbookCommentReplyItemRequestBuilderGetQueryParameters the list of replies to the comment. Read-only. Nullable. type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesWorkbookCommentReplyItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesWorkbookComme } return nil } -// Get get replies from drives +// Get the list of replies to the comment. Read-only. Nullable. // returns a WorkbookCommentReplyable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesWorkbookCommentReplyItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesWorkbookCommentReplyItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentReplyable, error) { @@ -126,7 +126,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesWorkbookComme requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get replies from drives +// ToGetRequestInformation the list of replies to the comment. Read-only. Nullable. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesWorkbookCommentReplyItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesWorkbookCommentReplyItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/3760f0801c7eb526fa1d28d773b8bb7fc05dcbe58114949ee1d5ef5f54ed3afb.go b/drives/3760f0801c7eb526fa1d28d773b8bb7fc05dcbe58114949ee1d5ef5f54ed3afb.go index c2da100e2f0..21ddab636fa 100644 --- a/drives/3760f0801c7eb526fa1d28d773b8bb7fc05dcbe58114949ee1d5ef5f54ed3afb.go +++ b/drives/3760f0801c7eb526fa1d28d773b8bb7fc05dcbe58114949ee1d5ef5f54ed3afb.go @@ -18,7 +18,7 @@ type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRe // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilderGetQueryParameters retrieve the filter applied to the column. Read-only. +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilderGetQueryParameters the filter applied to the column. Read-only. type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilt } return nil } -// Get retrieve the filter applied to the column. Read-only. +// Get 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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookFilterable, error) { @@ -121,7 +121,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilt requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation retrieve the filter applied to the column. Read-only. +// ToGetRequestInformation the filter applied to the column. Read-only. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemAtWithIndexFilterRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/3a07bdd7b0c8e5590a26cccb8fb3431dbd22c86f032dfe55025d19600d4c6656.go b/drives/3a07bdd7b0c8e5590a26cccb8fb3431dbd22c86f032dfe55025d19600d4c6656.go new file mode 100644 index 00000000000..ee7e75b163c --- /dev/null +++ b/drives/3a07bdd7b0c8e5590a26cccb8fb3431dbd22c86f032dfe55025d19600d4c6656.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder provides operations to call the resizedRange method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters), + } + if deltaColumns != nil { + m.BaseRequestBuilder.PathParameters["deltaColumns"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaColumns), 10) + } + if deltaRows != nil { + m.BaseRequestBuilder.PathParameters["deltaRows"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaRows), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function resizedRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function resizedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/3a43e0bbb30ae986b3cb73c21ed4a0dce685ba60fc384a6ad6d350071ed5ac62.go b/drives/3a43e0bbb30ae986b3cb73c21ed4a0dce685ba60fc384a6ad6d350071ed5ac62.go new file mode 100644 index 00000000000..24f9059f51b --- /dev/null +++ b/drives/3a43e0bbb30ae986b3cb73c21ed4a0dce685ba60fc384a6ad6d350071ed5ac62.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder provides operations to call the offsetRange method. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters), + } + if columnOffset != nil { + m.BaseRequestBuilder.PathParameters["columnOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*columnOffset), 10) + } + if rowOffset != nil { + m.BaseRequestBuilder.PathParameters["rowOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*rowOffset), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function offsetRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function offsetRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/3b12c8fab723cbe2e54fcd26cb2d8f361ea4f65ab286fdc9d800be0379998462.go b/drives/3b12c8fab723cbe2e54fcd26cb2d8f361ea4f65ab286fdc9d800be0379998462.go new file mode 100644 index 00000000000..3149bfd347f --- /dev/null +++ b/drives/3b12c8fab723cbe2e54fcd26cb2d8f361ea4f65ab286fdc9d800be0379998462.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder provides operations to call the boundingRect method. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/boundingRect(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function boundingRect +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function boundingRect +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/3c3b919aa2c2919f8eb8b4fa8a318fa4f4df6b8f1ebabbde11ba928bf2156624.go b/drives/3c3b919aa2c2919f8eb8b4fa8a318fa4f4df6b8f1ebabbde11ba928bf2156624.go new file mode 100644 index 00000000000..592d44becf3 --- /dev/null +++ b/drives/3c3b919aa2c2919f8eb8b4fa8a318fa4f4df6b8f1ebabbde11ba928bf2156624.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilder provides operations to call the delete method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/delete", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action delete +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action delete +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/3d485019877f4d5529274a0c3a8b6bc6878985bdaa14fa4d05f2d59ad20ef77e.go b/drives/3d485019877f4d5529274a0c3a8b6bc6878985bdaa14fa4d05f2d59ad20ef77e.go new file mode 100644 index 00000000000..e807ddcf204 --- /dev/null +++ b/drives/3d485019877f4d5529274a0c3a8b6bc6878985bdaa14fa4d05f2d59ad20ef77e.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/columnsAfter(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/3f1a6922480c5b0a42859b0fa12697cc94c6ad46607c5eec1f6f380d9c262575.go b/drives/3f1a6922480c5b0a42859b0fa12697cc94c6ad46607c5eec1f6f380d9c262575.go new file mode 100644 index 00000000000..9f448f7da64 --- /dev/null +++ b/drives/3f1a6922480c5b0a42859b0fa12697cc94c6ad46607c5eec1f6f380d9c262575.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilder provides operations to call the usedRange method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, valuesOnly *bool)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/usedRange(valuesOnly={valuesOnly})", pathParameters), + } + if valuesOnly != nil { + m.BaseRequestBuilder.PathParameters["valuesOnly"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatBool(*valuesOnly) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilderInternal(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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function usedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/3f66b3bbee3ebf4209a4ecbc9622ec7c880db833864b2a7a40142669cc723969.go b/drives/3f66b3bbee3ebf4209a4ecbc9622ec7c880db833864b2a7a40142669cc723969.go new file mode 100644 index 00000000000..bb0baa166b5 --- /dev/null +++ b/drives/3f66b3bbee3ebf4209a4ecbc9622ec7c880db833864b2a7a40142669cc723969.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/rowsBelow(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/40043ff4cc3b15c7053fa8f7460be2c47cfbbd9771fb3fb29fed642ec5d4da76.go b/drives/40043ff4cc3b15c7053fa8f7460be2c47cfbbd9771fb3fb29fed642ec5d4da76.go new file mode 100644 index 00000000000..0c14cf13227 --- /dev/null +++ b/drives/40043ff4cc3b15c7053fa8f7460be2c47cfbbd9771fb3fb29fed642ec5d4da76.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/columnsBefore()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/407bb51204df16d1fb1f16c6418af1ca6280570f2d01606fb1b0dedd204e5b60.go b/drives/407bb51204df16d1fb1f16c6418af1ca6280570f2d01606fb1b0dedd204e5b60.go new file mode 100644 index 00000000000..0d69ea92486 --- /dev/null +++ b/drives/407bb51204df16d1fb1f16c6418af1ca6280570f2d01606fb1b0dedd204e5b60.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder provides operations to call the intersection method. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/intersection(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function intersection +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function intersection +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/411d04a6e60bee0b6d28b99afcec55ee121cf6b8fcf158a9bcaf0030fb3c3907.go b/drives/411d04a6e60bee0b6d28b99afcec55ee121cf6b8fcf158a9bcaf0030fb3c3907.go new file mode 100644 index 00000000000..4b50d2d6245 --- /dev/null +++ b/drives/411d04a6e60bee0b6d28b99afcec55ee121cf6b8fcf158a9bcaf0030fb3c3907.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder provides operations to call the boundingRect method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/boundingRect(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function boundingRect +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function boundingRect +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/42292518f3eedcae2ef5f5f8cdc581b3ec45a9feb2f18a8a65140790b719f265.go b/drives/42292518f3eedcae2ef5f5f8cdc581b3ec45a9feb2f18a8a65140790b719f265.go new file mode 100644 index 00000000000..282c1fabeda --- /dev/null +++ b/drives/42292518f3eedcae2ef5f5f8cdc581b3ec45a9feb2f18a8a65140790b719f265.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/rowsBelow(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/42408318021920345210f0e6e3385e0ff0cbd02876c4438acbd1af2081bdb5ae.go b/drives/42408318021920345210f0e6e3385e0ff0cbd02876c4438acbd1af2081bdb5ae.go new file mode 100644 index 00000000000..8cede26b726 --- /dev/null +++ b/drives/42408318021920345210f0e6e3385e0ff0cbd02876c4438acbd1af2081bdb5ae.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/rowsBelow(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/4458df9b4681ead468a9f720068b85fe473e848d96cba816295800d55336ea24.go b/drives/4458df9b4681ead468a9f720068b85fe473e848d96cba816295800d55336ea24.go new file mode 100644 index 00000000000..c28f35d5abe --- /dev/null +++ b/drives/4458df9b4681ead468a9f720068b85fe473e848d96cba816295800d55336ea24.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/columnsAfter(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/446e1d0648339f7c74ca28ba3272ce29f14428ac6ecf112b27ac92cb4f018b48.go b/drives/446e1d0648339f7c74ca28ba3272ce29f14428ac6ecf112b27ac92cb4f018b48.go new file mode 100644 index 00000000000..7404c214f0e --- /dev/null +++ b/drives/446e1d0648339f7c74ca28ba3272ce29f14428ac6ecf112b27ac92cb4f018b48.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder provides operations to call the offsetRange method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters), + } + if columnOffset != nil { + m.BaseRequestBuilder.PathParameters["columnOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*columnOffset), 10) + } + if rowOffset != nil { + m.BaseRequestBuilder.PathParameters["rowOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*rowOffset), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function offsetRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function offsetRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/4702329fa23417335bf8ffb063fed53bc4118b092560e4fb33297e97b8c66ade.go b/drives/4702329fa23417335bf8ffb063fed53bc4118b092560e4fb33297e97b8c66ade.go new file mode 100644 index 00000000000..a29404dd121 --- /dev/null +++ b/drives/4702329fa23417335bf8ffb063fed53bc4118b092560e4fb33297e97b8c66ade.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMergePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMergePostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMergePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMergePostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMergePostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMergePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMergePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMergePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMergePostRequestBody(), nil +} +// GetAcross gets the across property value. The across property +// returns a *bool when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMergePostRequestBody) GetAcross()(*bool) { + val, err := m.GetBackingStore().Get("across") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + 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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMergePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMergePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMergePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["across"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetAcross(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMergePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("across", m.GetAcross()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAcross sets the across property value. The across property +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMergePostRequestBody) SetAcross(value *bool)() { + err := m.GetBackingStore().Set("across", 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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMergePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMergePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMergePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAcross()(*bool) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetAcross(value *bool)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/474c382a8d41160eff14d45c47f6dcf91815503d455614999fcd8c4529600ff4.go b/drives/474c382a8d41160eff14d45c47f6dcf91815503d455614999fcd8c4529600ff4.go new file mode 100644 index 00000000000..7675c994e2c --- /dev/null +++ b/drives/474c382a8d41160eff14d45c47f6dcf91815503d455614999fcd8c4529600ff4.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilder provides operations to call the lastColumn method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/lastColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/478eb3b544009124f44ced5154d05b575daeed9197ba20a1d0eb0cd76e00baca.go b/drives/478eb3b544009124f44ced5154d05b575daeed9197ba20a1d0eb0cd76e00baca.go new file mode 100644 index 00000000000..87f91292534 --- /dev/null +++ b/drives/478eb3b544009124f44ced5154d05b575daeed9197ba20a1d0eb0cd76e00baca.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder provides operations to call the offsetRange method. +type ItemItemsItemWorkbookTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters), + } + if columnOffset != nil { + m.BaseRequestBuilder.PathParameters["columnOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*columnOffset), 10) + } + if rowOffset != nil { + m.BaseRequestBuilder.PathParameters["rowOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*rowOffset), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function offsetRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function offsetRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/482fb4311ab64b9b5496798dc01bba588a512dc7a1c0de59dae60c8a1daa86e8.go b/drives/482fb4311ab64b9b5496798dc01bba588a512dc7a1c0de59dae60c8a1daa86e8.go new file mode 100644 index 00000000000..1ded93a097a --- /dev/null +++ b/drives/482fb4311ab64b9b5496798dc01bba588a512dc7a1c0de59dae60c8a1daa86e8.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder provides operations to call the offsetRange method. +type ItemItemsItemWorkbookNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + m := &ItemItemsItemWorkbookNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters), + } + if columnOffset != nil { + m.BaseRequestBuilder.PathParameters["columnOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*columnOffset), 10) + } + if rowOffset != nil { + m.BaseRequestBuilder.PathParameters["rowOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*rowOffset), 10) + } + return m +} +// NewItemItemsItemWorkbookNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder instantiates a new ItemItemsItemWorkbookNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function offsetRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function offsetRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/487773dede66bfb35416c0e99589425be80f79d7286c4222c1478654bef86877.go b/drives/487773dede66bfb35416c0e99589425be80f79d7286c4222c1478654bef86877.go new file mode 100644 index 00000000000..3036da4249b --- /dev/null +++ b/drives/487773dede66bfb35416c0e99589425be80f79d7286c4222c1478654bef86877.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeIntersectionWithAnotherRangeRequestBuilder provides operations to call the intersection method. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeIntersectionWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeIntersectionWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeIntersectionWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeIntersectionWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemNamesItemRangeIntersectionWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/intersection(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeIntersectionWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeIntersectionWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeIntersectionWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeIntersectionWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function intersection +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeIntersectionWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function intersection +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeIntersectionWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeIntersectionWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeIntersectionWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/48942d6995214411fed829d4ad81edec077f3354489cf0f935c543d6b6184bbd.go b/drives/48942d6995214411fed829d4ad81edec077f3354489cf0f935c543d6b6184bbd.go new file mode 100644 index 00000000000..d50e935b528 --- /dev/null +++ b/drives/48942d6995214411fed829d4ad81edec077f3354489cf0f935c543d6b6184bbd.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMergeRequestBuilder provides operations to call the merge method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMergeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/merge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMergeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action merge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMergeRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action merge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMergeRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/48f007782102b778b4fa0f803767df9fb095deb17dae8ca88d9c9b985c6a2d42.go b/drives/48f007782102b778b4fa0f803767df9fb095deb17dae8ca88d9c9b985c6a2d42.go new file mode 100644 index 00000000000..967015fcf3b --- /dev/null +++ b/drives/48f007782102b778b4fa0f803767df9fb095deb17dae8ca88d9c9b985c6a2d42.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder provides operations to call the resizedRange method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters), + } + if deltaColumns != nil { + m.BaseRequestBuilder.PathParameters["deltaColumns"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaColumns), 10) + } + if deltaRows != nil { + m.BaseRequestBuilder.PathParameters["deltaRows"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaRows), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function resizedRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function resizedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/4a3dc488c6e7929a80f59a8ed64ced6ce466872293f7af5040f303b19e17fa95.go b/drives/4a3dc488c6e7929a80f59a8ed64ced6ce466872293f7af5040f303b19e17fa95.go new file mode 100644 index 00000000000..75394d82db3 --- /dev/null +++ b/drives/4a3dc488c6e7929a80f59a8ed64ced6ce466872293f7af5040f303b19e17fa95.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/columnsBefore(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/4adf81726844f80029b7af0baba72290679a7d8f9d52dc6b6eae3238b2444a01.go b/drives/4adf81726844f80029b7af0baba72290679a7d8f9d52dc6b6eae3238b2444a01.go new file mode 100644 index 00000000000..5fc9a8374e6 --- /dev/null +++ b/drives/4adf81726844f80029b7af0baba72290679a7d8f9d52dc6b6eae3238b2444a01.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/rowsAbove()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/4c292f350280ef23fe03b14f8fc4d41caa6fd9d6cd7678ba340f01fe50b82419.go b/drives/4c292f350280ef23fe03b14f8fc4d41caa6fd9d6cd7678ba340f01fe50b82419.go new file mode 100644 index 00000000000..efefd379e10 --- /dev/null +++ b/drives/4c292f350280ef23fe03b14f8fc4d41caa6fd9d6cd7678ba340f01fe50b82419.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder provides operations to call the usedRange method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, valuesOnly *bool)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/usedRange(valuesOnly={valuesOnly})", pathParameters), + } + if valuesOnly != nil { + m.BaseRequestBuilder.PathParameters["valuesOnly"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatBool(*valuesOnly) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilderInternal(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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function usedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/4d0afa5e54327800cc4ec9b0e4cdbf1b153cd6b5866fcf983f624b83bebb2620.go b/drives/4d0afa5e54327800cc4ec9b0e4cdbf1b153cd6b5866fcf983f624b83bebb2620.go new file mode 100644 index 00000000000..092f21aff82 --- /dev/null +++ b/drives/4d0afa5e54327800cc4ec9b0e4cdbf1b153cd6b5866fcf983f624b83bebb2620.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveWithCountRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/rowsAbove(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/4d8a6b52838bfb5fd23c521a243b59f79017e21df296b0ba4db01caa344f6b3d.go b/drives/4d8a6b52838bfb5fd23c521a243b59f79017e21df296b0ba4db01caa344f6b3d.go new file mode 100644 index 00000000000..35b82a8dada --- /dev/null +++ b/drives/4d8a6b52838bfb5fd23c521a243b59f79017e21df296b0ba4db01caa344f6b3d.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnWithColumnRequestBuilder provides operations to call the column method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/column(column={column})", pathParameters), + } + if column != nil { + m.BaseRequestBuilder.PathParameters["column"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*column), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function column +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function column +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/4ddb51d742de01a099f5965d39424965fd0ce0c4b4b985989f89799ddd0a9242.go b/drives/4ddb51d742de01a099f5965d39424965fd0ce0c4b4b985989f89799ddd0a9242.go new file mode 100644 index 00000000000..9de09e7b2df --- /dev/null +++ b/drives/4ddb51d742de01a099f5965d39424965fd0ce0c4b4b985989f89799ddd0a9242.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/columnsBefore(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/4dea5b28f689a730b7f75fcadc9f0b1c1aa8f4de768ce7bf68d5bc8f20d359bf.go b/drives/4dea5b28f689a730b7f75fcadc9f0b1c1aa8f4de768ce7bf68d5bc8f20d359bf.go new file mode 100644 index 00000000000..b20c25db523 --- /dev/null +++ b/drives/4dea5b28f689a730b7f75fcadc9f0b1c1aa8f4de768ce7bf68d5bc8f20d359bf.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilder provides operations to call the boundingRect method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/boundingRect(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function boundingRect +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function boundingRect +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/4f8eaca50f64cb6334812ab77100134295317ddba5300482b0d05f9eb5815c64.go b/drives/4f8eaca50f64cb6334812ab77100134295317ddba5300482b0d05f9eb5815c64.go new file mode 100644 index 00000000000..d5fdf7e37e7 --- /dev/null +++ b/drives/4f8eaca50f64cb6334812ab77100134295317ddba5300482b0d05f9eb5815c64.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeDeleteRequestBuilder provides operations to call the delete method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeDeleteRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeDeleteRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/delete", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeDeleteRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action delete +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeDeleteRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action delete +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeDeleteRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/5102d10033d2160ac2d16f65564e82cc412e514b43e9580829c5fc3819d22847.go b/drives/5102d10033d2160ac2d16f65564e82cc412e514b43e9580829c5fc3819d22847.go new file mode 100644 index 00000000000..e936f4c54dd --- /dev/null +++ b/drives/5102d10033d2160ac2d16f65564e82cc412e514b43e9580829c5fc3819d22847.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/rowsBelow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/51152b14abf36598009b0bdfc9a8c4b6e85ed29a0c995387982293eb469c2eb3.go b/drives/51152b14abf36598009b0bdfc9a8c4b6e85ed29a0c995387982293eb469c2eb3.go new file mode 100644 index 00000000000..a8e29f704eb --- /dev/null +++ b/drives/51152b14abf36598009b0bdfc9a8c4b6e85ed29a0c995387982293eb469c2eb3.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder provides operations to call the boundingRect method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/boundingRect(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function boundingRect +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function boundingRect +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/517bb5ff710fbb1baef1ad4b1c668cfd2c079d7de8d009f8b848450fccd20423.go b/drives/517bb5ff710fbb1baef1ad4b1c668cfd2c079d7de8d009f8b848450fccd20423.go new file mode 100644 index 00000000000..b48ff8fdbb8 --- /dev/null +++ b/drives/517bb5ff710fbb1baef1ad4b1c668cfd2c079d7de8d009f8b848450fccd20423.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder provides operations to call the resizedRange method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters), + } + if deltaColumns != nil { + m.BaseRequestBuilder.PathParameters["deltaColumns"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaColumns), 10) + } + if deltaRows != nil { + m.BaseRequestBuilder.PathParameters["deltaRows"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaRows), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function resizedRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function resizedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/53716f9e8d36e7509648bc712e12117ab449960c3fc5ce26b0a3631a96f17a16.go b/drives/53716f9e8d36e7509648bc712e12117ab449960c3fc5ce26b0a3631a96f17a16.go new file mode 100644 index 00000000000..0de20ecf019 --- /dev/null +++ b/drives/53716f9e8d36e7509648bc712e12117ab449960c3fc5ce26b0a3631a96f17a16.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilder provides operations to call the usedRange method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/usedRange()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilderInternal(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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function usedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/53c4c6d2680d1d2f3b96a2c4951cc2515cf3c0050b12d5db0a60387b8b99c493.go b/drives/53c4c6d2680d1d2f3b96a2c4951cc2515cf3c0050b12d5db0a60387b8b99c493.go new file mode 100644 index 00000000000..620f6bb76d5 --- /dev/null +++ b/drives/53c4c6d2680d1d2f3b96a2c4951cc2515cf3c0050b12d5db0a60387b8b99c493.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeInsertRequestBuilder provides operations to call the insert method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeInsertRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeInsertRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeInsertRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeInsertRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeInsertRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeInsertRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeInsertRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/insert", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeInsertRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeInsertRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeInsertRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeInsertRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action insert +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeInsertRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeInsertRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToPostRequestInformation invoke action insert +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeInsertRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeInsertRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeInsertRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeInsertRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeInsertRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/53fa42e06d893ba765d59cf37e21ccb5053356ccef660a412690dad4f4e541ad.go b/drives/53fa42e06d893ba765d59cf37e21ccb5053356ccef660a412690dad4f4e541ad.go new file mode 100644 index 00000000000..9d4e4179ea1 --- /dev/null +++ b/drives/53fa42e06d893ba765d59cf37e21ccb5053356ccef660a412690dad4f4e541ad.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder provides operations to call the resizedRange method. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeWithAddressResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters), + } + if deltaColumns != nil { + m.BaseRequestBuilder.PathParameters["deltaColumns"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaColumns), 10) + } + if deltaRows != nil { + m.BaseRequestBuilder.PathParameters["deltaRows"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaRows), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function resizedRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function resizedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/56c15a1d59682059c250d337aa59ca73910ec15601fbe279257c18cc863b19d6.go b/drives/56c15a1d59682059c250d337aa59ca73910ec15601fbe279257c18cc863b19d6.go new file mode 100644 index 00000000000..56892883a20 --- /dev/null +++ b/drives/56c15a1d59682059c250d337aa59ca73910ec15601fbe279257c18cc863b19d6.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder provides operations to call the offsetRange method. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters), + } + if columnOffset != nil { + m.BaseRequestBuilder.PathParameters["columnOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*columnOffset), 10) + } + if rowOffset != nil { + m.BaseRequestBuilder.PathParameters["rowOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*rowOffset), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function offsetRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function offsetRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/594d7e0de40cba1db2cdb452faade04bcab88e8eca0f136213f37648ad47e448.go b/drives/594d7e0de40cba1db2cdb452faade04bcab88e8eca0f136213f37648ad47e448.go new file mode 100644 index 00000000000..5da763196c2 --- /dev/null +++ b/drives/594d7e0de40cba1db2cdb452faade04bcab88e8eca0f136213f37648ad47e448.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder provides operations to call the boundingRect method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/boundingRect(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function boundingRect +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function boundingRect +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/59a1e3309556ea7e83b8afa4bf20428cda5c839b6ab4009b82ffe7d33d4d6d1a.go b/drives/59a1e3309556ea7e83b8afa4bf20428cda5c839b6ab4009b82ffe7d33d4d6d1a.go new file mode 100644 index 00000000000..1f866454e6b --- /dev/null +++ b/drives/59a1e3309556ea7e83b8afa4bf20428cda5c839b6ab4009b82ffe7d33d4d6d1a.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder provides operations to call the offsetRange method. +type ItemItemsItemWorkbookTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters), + } + if columnOffset != nil { + m.BaseRequestBuilder.PathParameters["columnOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*columnOffset), 10) + } + if rowOffset != nil { + m.BaseRequestBuilder.PathParameters["rowOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*rowOffset), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function offsetRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function offsetRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/59b9df73b4f9e50e7cf10ed7e5927f4b9952a81a821e821159dc8731ae299d8b.go b/drives/59b9df73b4f9e50e7cf10ed7e5927f4b9952a81a821e821159dc8731ae299d8b.go new file mode 100644 index 00000000000..1f0bc55e815 --- /dev/null +++ b/drives/59b9df73b4f9e50e7cf10ed7e5927f4b9952a81a821e821159dc8731ae299d8b.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilder provides operations to call the cell method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32, row *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/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 +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function cell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function cell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/5aad8c69434ee6fb609a3f7a95553289555d5c233af04be4ec371e3058b0a4ab.go b/drives/5aad8c69434ee6fb609a3f7a95553289555d5c233af04be4ec371e3058b0a4ab.go new file mode 100644 index 00000000000..b5be1199291 --- /dev/null +++ b/drives/5aad8c69434ee6fb609a3f7a95553289555d5c233af04be4ec371e3058b0a4ab.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilder provides operations to call the usedRange method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, valuesOnly *bool)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/usedRange(valuesOnly={valuesOnly})", pathParameters), + } + if valuesOnly != nil { + m.BaseRequestBuilder.PathParameters["valuesOnly"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatBool(*valuesOnly) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilderInternal(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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function usedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/5b770d510d457a613a283d7987be7d6a8c5f94cf8dd46e49d768c0f5137b8a2a.go b/drives/5b770d510d457a613a283d7987be7d6a8c5f94cf8dd46e49d768c0f5137b8a2a.go new file mode 100644 index 00000000000..3f4bc090dfb --- /dev/null +++ b/drives/5b770d510d457a613a283d7987be7d6a8c5f94cf8dd46e49d768c0f5137b8a2a.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeFormatRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeFormatRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeFormatRequestBuilderGetQueryParameters returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeFormatRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeFormatRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeFormatRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeFormatRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeFormatRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeFormatRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeFormatRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/format{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeFormatRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeFormatRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeFormatRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property format for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeFormatRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeFormatRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// Patch update the navigation property format in drives +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeFormatRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeFormatRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// ToDeleteRequestInformation delete navigation property format for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeFormatRequestBuilderDeleteRequestConfiguration)(*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 format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeFormatRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeFormatRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeFormatRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/5c4915411bd82d586ac2e07be2cad61b1b5ed2dec51eedfadfc22c2e4b952608.go b/drives/5c4915411bd82d586ac2e07be2cad61b1b5ed2dec51eedfadfc22c2e4b952608.go new file mode 100644 index 00000000000..d946a13bccd --- /dev/null +++ b/drives/5c4915411bd82d586ac2e07be2cad61b1b5ed2dec51eedfadfc22c2e4b952608.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder provides operations to call the resizedRange method. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters), + } + if deltaColumns != nil { + m.BaseRequestBuilder.PathParameters["deltaColumns"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaColumns), 10) + } + if deltaRows != nil { + m.BaseRequestBuilder.PathParameters["deltaRows"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaRows), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function resizedRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function resizedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/5c9638ba1479698721cfc5d9b62bbb965f3f9c9488d6ca9320315ba917492bf1.go b/drives/5c9638ba1479698721cfc5d9b62bbb965f3f9c9488d6ca9320315ba917492bf1.go new file mode 100644 index 00000000000..507ba46252d --- /dev/null +++ b/drives/5c9638ba1479698721cfc5d9b62bbb965f3f9c9488d6ca9320315ba917492bf1.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastRowRequestBuilder provides operations to call the lastRow method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastRowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/lastRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastRowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/5dfc51485a73b29bff9d97ebc657fe9c8e3550b2d33e3af670be608b58edfcc6.go b/drives/5dfc51485a73b29bff9d97ebc657fe9c8e3550b2d33e3af670be608b58edfcc6.go new file mode 100644 index 00000000000..cb0081eb994 --- /dev/null +++ b/drives/5dfc51485a73b29bff9d97ebc657fe9c8e3550b2d33e3af670be608b58edfcc6.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilder provides operations to call the row method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, row *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/row(row={row})", pathParameters), + } + if row != nil { + m.BaseRequestBuilder.PathParameters["row"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*row), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function row +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function row +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/5ed06dc78936e234b6766f006781f9fb880c740c720c232c16c3fca1093529c0.go b/drives/5ed06dc78936e234b6766f006781f9fb880c740c720c232c16c3fca1093529c0.go new file mode 100644 index 00000000000..653abd20167 --- /dev/null +++ b/drives/5ed06dc78936e234b6766f006781f9fb880c740c720c232c16c3fca1093529c0.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnWithColumn1RequestBuilder provides operations to call the column method. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnWithColumn1RequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnWithColumn1RequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnWithColumn1RequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnWithColumn1RequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnWithColumn1RequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnWithColumn1RequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column1 *int32)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnWithColumn1RequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnWithColumn1RequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/column(column={column1})", pathParameters), + } + if column1 != nil { + m.BaseRequestBuilder.PathParameters["column1"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*column1), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnWithColumn1RequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnWithColumn1RequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnWithColumn1RequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnWithColumn1RequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnWithColumn1RequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function column +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnWithColumn1RequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnWithColumn1RequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function column +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnWithColumn1RequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnWithColumn1RequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnWithColumn1RequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnWithColumn1RequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnWithColumn1RequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnWithColumn1RequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/5f3aa2e3acd7683143a7afc44eddec4f013b12e3be88f62c0138320933eb6aae.go b/drives/5f3aa2e3acd7683143a7afc44eddec4f013b12e3be88f62c0138320933eb6aae.go new file mode 100644 index 00000000000..d23ad616214 --- /dev/null +++ b/drives/5f3aa2e3acd7683143a7afc44eddec4f013b12e3be88f62c0138320933eb6aae.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder provides operations to call the resizedRange method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters), + } + if deltaColumns != nil { + m.BaseRequestBuilder.PathParameters["deltaColumns"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaColumns), 10) + } + if deltaRows != nil { + m.BaseRequestBuilder.PathParameters["deltaRows"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaRows), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function resizedRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function resizedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/5fdb38e0addeda0da7c7556d090990f4d954dce949ce44ccd257d67ea64d4624.go b/drives/5fdb38e0addeda0da7c7556d090990f4d954dce949ce44ccd257d67ea64d4624.go new file mode 100644 index 00000000000..edd38677c21 --- /dev/null +++ b/drives/5fdb38e0addeda0da7c7556d090990f4d954dce949ce44ccd257d67ea64d4624.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder provides operations to call the intersection method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/intersection(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function intersection +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function intersection +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/5fe344cdff14c853d239aab34ba5745bc36b2b1928bd5ba1a040265020b83e2b.go b/drives/5fe344cdff14c853d239aab34ba5745bc36b2b1928bd5ba1a040265020b83e2b.go new file mode 100644 index 00000000000..bf214b58f43 --- /dev/null +++ b/drives/5fe344cdff14c853d239aab34ba5745bc36b2b1928bd5ba1a040265020b83e2b.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder provides operations to call the resizedRange method. +type ItemItemsItemWorkbookWorksheetsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookWorksheetsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters), + } + if deltaColumns != nil { + m.BaseRequestBuilder.PathParameters["deltaColumns"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaColumns), 10) + } + if deltaRows != nil { + m.BaseRequestBuilder.PathParameters["deltaRows"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaRows), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function resizedRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function resizedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/606bf6f6402e0c6eea6d604b92a48258a7741b99e89c1a37946871909bb01eff.go b/drives/606bf6f6402e0c6eea6d604b92a48258a7741b99e89c1a37946871909bb01eff.go new file mode 100644 index 00000000000..f3baf17e968 --- /dev/null +++ b/drives/606bf6f6402e0c6eea6d604b92a48258a7741b99e89c1a37946871909bb01eff.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireColumnRequestBuilder provides operations to call the entireColumn method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/entireColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/60d75c01144faac6428a5ffbae658dc20fe0a0aa9b62e3f609e7872a91e8daf0.go b/drives/60d75c01144faac6428a5ffbae658dc20fe0a0aa9b62e3f609e7872a91e8daf0.go new file mode 100644 index 00000000000..50d1db9f2f3 --- /dev/null +++ b/drives/60d75c01144faac6428a5ffbae658dc20fe0a0aa9b62e3f609e7872a91e8daf0.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/columnsBefore(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/610ca918b1f6267878b52a5bd26e8453d0887bad01134d99dcce645ebf023018.go b/drives/610ca918b1f6267878b52a5bd26e8453d0887bad01134d99dcce645ebf023018.go new file mode 100644 index 00000000000..5473722b8bd --- /dev/null +++ b/drives/610ca918b1f6267878b52a5bd26e8453d0887bad01134d99dcce645ebf023018.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder provides operations to call the offsetRange method. +type ItemItemsItemWorkbookTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters), + } + if columnOffset != nil { + m.BaseRequestBuilder.PathParameters["columnOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*columnOffset), 10) + } + if rowOffset != nil { + m.BaseRequestBuilder.PathParameters["rowOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*rowOffset), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function offsetRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function offsetRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/614c7711843d4177501bd4cc66b09835bf6dd9d486f2e1d3b6d6e57f2d41a6f1.go b/drives/614c7711843d4177501bd4cc66b09835bf6dd9d486f2e1d3b6d6e57f2d41a6f1.go new file mode 100644 index 00000000000..86ad2359b32 --- /dev/null +++ b/drives/614c7711843d4177501bd4cc66b09835bf6dd9d486f2e1d3b6d6e57f2d41a6f1.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveWithCountRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/rowsAbove(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/621b7aec45b2ca3e2a8883efc97c70d51f4d5228e874c062d8045545d0a251f9.go b/drives/621b7aec45b2ca3e2a8883efc97c70d51f4d5228e874c062d8045545d0a251f9.go new file mode 100644 index 00000000000..843c194e4e3 --- /dev/null +++ b/drives/621b7aec45b2ca3e2a8883efc97c70d51f4d5228e874c062d8045545d0a251f9.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder provides operations to call the resizedRange method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters), + } + if deltaColumns != nil { + m.BaseRequestBuilder.PathParameters["deltaColumns"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaColumns), 10) + } + if deltaRows != nil { + m.BaseRequestBuilder.PathParameters["deltaRows"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaRows), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function resizedRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function resizedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/62a8d3777aae928b6253549c6e1f249d72e4a4206198603cfb093b7b49fe4828.go b/drives/62a8d3777aae928b6253549c6e1f249d72e4a4206198603cfb093b7b49fe4828.go new file mode 100644 index 00000000000..b5d792a5a35 --- /dev/null +++ b/drives/62a8d3777aae928b6253549c6e1f249d72e4a4206198603cfb093b7b49fe4828.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilder provides operations to call the lastColumn method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/lastColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/63503669e7c0fcad35f1f847c7903c9597e74add6cfe3a879e5e23f186ac7dde.go b/drives/63503669e7c0fcad35f1f847c7903c9597e74add6cfe3a879e5e23f186ac7dde.go new file mode 100644 index 00000000000..f16f9963e29 --- /dev/null +++ b/drives/63503669e7c0fcad35f1f847c7903c9597e74add6cfe3a879e5e23f186ac7dde.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeInsertRequestBuilder provides operations to call the insert method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeInsertRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeInsertRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeInsertRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeInsertRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeInsertRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeInsertRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeInsertRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/insert", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeInsertRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeInsertRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeInsertRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeInsertRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action insert +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeInsertRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeInsertRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToPostRequestInformation invoke action insert +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeInsertRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeInsertRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeInsertRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeInsertRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeInsertRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/64c2a6ca1b46974b303339e394b17a8e45648ce709fbf4585ca0469621b02fb1.go b/drives/64c2a6ca1b46974b303339e394b17a8e45648ce709fbf4585ca0469621b02fb1.go new file mode 100644 index 00000000000..cc5d119f5a5 --- /dev/null +++ b/drives/64c2a6ca1b46974b303339e394b17a8e45648ce709fbf4585ca0469621b02fb1.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/columnsBefore(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/68b908b5e9ddd7defe82c7cae359ae56c52ecc8de1c335f96e40270f468ef4b8.go b/drives/68b908b5e9ddd7defe82c7cae359ae56c52ecc8de1c335f96e40270f468ef4b8.go new file mode 100644 index 00000000000..13505f14cc9 --- /dev/null +++ b/drives/68b908b5e9ddd7defe82c7cae359ae56c52ecc8de1c335f96e40270f468ef4b8.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder provides operations to call the boundingRect method. +type ItemItemsItemWorkbookTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/boundingRect(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function boundingRect +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function boundingRect +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/6b5aa99f5af36d69ea4322d56b2e5d57028ce20d8a5e382a3a4d8567bd427603.go b/drives/6b5aa99f5af36d69ea4322d56b2e5d57028ce20d8a5e382a3a4d8567bd427603.go new file mode 100644 index 00000000000..b67bc97741f --- /dev/null +++ b/drives/6b5aa99f5af36d69ea4322d56b2e5d57028ce20d8a5e382a3a4d8567bd427603.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder provides operations to call the resizedRange method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters), + } + if deltaColumns != nil { + m.BaseRequestBuilder.PathParameters["deltaColumns"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaColumns), 10) + } + if deltaRows != nil { + m.BaseRequestBuilder.PathParameters["deltaRows"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaRows), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function resizedRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function resizedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/6b7e0edb1cb0a9c7d7a32667adf882a481a8d8245328d4816a96cd15a041f6d0.go b/drives/6b7e0edb1cb0a9c7d7a32667adf882a481a8d8245328d4816a96cd15a041f6d0.go new file mode 100644 index 00000000000..65c5f271723 --- /dev/null +++ b/drives/6b7e0edb1cb0a9c7d7a32667adf882a481a8d8245328d4816a96cd15a041f6d0.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnIntersectionWithAnotherRangeRequestBuilder provides operations to call the intersection method. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnIntersectionWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnIntersectionWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnIntersectionWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnIntersectionWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnIntersectionWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/intersection(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnIntersectionWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnIntersectionWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnIntersectionWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnIntersectionWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function intersection +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnIntersectionWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function intersection +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnIntersectionWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnIntersectionWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnIntersectionWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/6dfb47f2ae5062cfdeab09624fe16acfabc25d888640f47c5ece8fffa5dd30a9.go b/drives/6dfb47f2ae5062cfdeab09624fe16acfabc25d888640f47c5ece8fffa5dd30a9.go new file mode 100644 index 00000000000..8b26efd8a65 --- /dev/null +++ b/drives/6dfb47f2ae5062cfdeab09624fe16acfabc25d888640f47c5ece8fffa5dd30a9.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilder provides operations to call the cell method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32, row *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/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 +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function cell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function cell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/6e857bac872dcc8f7e91267ffcf9b7d129b1dfc408928aacb0423dd988fe90a8.go b/drives/6e857bac872dcc8f7e91267ffcf9b7d129b1dfc408928aacb0423dd988fe90a8.go new file mode 100644 index 00000000000..0e341449d12 --- /dev/null +++ b/drives/6e857bac872dcc8f7e91267ffcf9b7d129b1dfc408928aacb0423dd988fe90a8.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder provides operations to call the resizedRange method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters), + } + if deltaColumns != nil { + m.BaseRequestBuilder.PathParameters["deltaColumns"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaColumns), 10) + } + if deltaRows != nil { + m.BaseRequestBuilder.PathParameters["deltaRows"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaRows), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function resizedRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function resizedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/6ebd2ff2aa2e1e346c35d9b05f843c7a9fa392414515e60fe01cd899e3d06eed.go b/drives/6ebd2ff2aa2e1e346c35d9b05f843c7a9fa392414515e60fe01cd899e3d06eed.go new file mode 100644 index 00000000000..bb5149be87a --- /dev/null +++ b/drives/6ebd2ff2aa2e1e346c35d9b05f843c7a9fa392414515e60fe01cd899e3d06eed.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilder provides operations to call the cell method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32, row *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/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 +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function cell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function cell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/6fcb7b304affbaba278c20de53385a355b8c45e029d03e4fe876a67c76a7f586.go b/drives/6fcb7b304affbaba278c20de53385a355b8c45e029d03e4fe876a67c76a7f586.go new file mode 100644 index 00000000000..d011f21bc4a --- /dev/null +++ b/drives/6fcb7b304affbaba278c20de53385a355b8c45e029d03e4fe876a67c76a7f586.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveWithCountRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/rowsAbove(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/70c56924ea1e7a323b3806b657894b6c87b6b4139f7d62e0e1c9c61654ea8ee8.go b/drives/70c56924ea1e7a323b3806b657894b6c87b6b4139f7d62e0e1c9c61654ea8ee8.go new file mode 100644 index 00000000000..b85d67a9976 --- /dev/null +++ b/drives/70c56924ea1e7a323b3806b657894b6c87b6b4139f7d62e0e1c9c61654ea8ee8.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilder provides operations to call the cell method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32, row *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/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 +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function cell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function cell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/71cfabab2bd45103fdb357591f1c460cd293e58f60b52eae358eb2bacd9e1cbd.go b/drives/71cfabab2bd45103fdb357591f1c460cd293e58f60b52eae358eb2bacd9e1cbd.go new file mode 100644 index 00000000000..a10a00eee2f --- /dev/null +++ b/drives/71cfabab2bd45103fdb357591f1c460cd293e58f60b52eae358eb2bacd9e1cbd.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder provides operations to call the intersection method. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/intersection(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function intersection +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function intersection +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/720e0dce420a3fac74dabba5d43f08a3470596b8355c74457c275d2e7caf2f4b.go b/drives/720e0dce420a3fac74dabba5d43f08a3470596b8355c74457c275d2e7caf2f4b.go new file mode 100644 index 00000000000..30d720ff7fc --- /dev/null +++ b/drives/720e0dce420a3fac74dabba5d43f08a3470596b8355c74457c275d2e7caf2f4b.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder provides operations to call the offsetRange method. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters), + } + if columnOffset != nil { + m.BaseRequestBuilder.PathParameters["columnOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*columnOffset), 10) + } + if rowOffset != nil { + m.BaseRequestBuilder.PathParameters["rowOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*rowOffset), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function offsetRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function offsetRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/7280db44106fac6d7dda8804f1eddfbb48b9e4689b115e92cce1fef416afdff7.go b/drives/7280db44106fac6d7dda8804f1eddfbb48b9e4689b115e92cce1fef416afdff7.go new file mode 100644 index 00000000000..c1f4fcca7cd --- /dev/null +++ b/drives/7280db44106fac6d7dda8804f1eddfbb48b9e4689b115e92cce1fef416afdff7.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/columnsAfter(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/7359163fbd6d0de92fe9e41decbb0b28c99ae65bbdeb8803f692db4ba14bbfc3.go b/drives/7359163fbd6d0de92fe9e41decbb0b28c99ae65bbdeb8803f692db4ba14bbfc3.go new file mode 100644 index 00000000000..701ed76f893 --- /dev/null +++ b/drives/7359163fbd6d0de92fe9e41decbb0b28c99ae65bbdeb8803f692db4ba14bbfc3.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder provides operations to call the usedRange method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, valuesOnly *bool)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/usedRange(valuesOnly={valuesOnly})", pathParameters), + } + if valuesOnly != nil { + m.BaseRequestBuilder.PathParameters["valuesOnly"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatBool(*valuesOnly) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilderInternal(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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function usedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/7392c2788cee7acca7d64d384d5820ca3b44a074f8e6be07132422f8cf1d77fc.go b/drives/7392c2788cee7acca7d64d384d5820ca3b44a074f8e6be07132422f8cf1d77fc.go new file mode 100644 index 00000000000..75e1448659c --- /dev/null +++ b/drives/7392c2788cee7acca7d64d384d5820ca3b44a074f8e6be07132422f8cf1d77fc.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowWithCountRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/rowsBelow(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/73cc4f96f689c2eb37f59935c2945a604b605339b092643f13a28b09982578c1.go b/drives/73cc4f96f689c2eb37f59935c2945a604b605339b092643f13a28b09982578c1.go new file mode 100644 index 00000000000..c4a28a6bb05 --- /dev/null +++ b/drives/73cc4f96f689c2eb37f59935c2945a604b605339b092643f13a28b09982578c1.go @@ -0,0 +1,81 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilder provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilderGetQueryParameters +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/worksheet{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookWorksheetable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookWorksheetFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable), nil +} +// ToGetRequestInformation the worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/7c8820fb2dcd91a73caff82dd9fcc3781db4972ad4a37b224cd336033c0f8a54.go b/drives/7c8820fb2dcd91a73caff82dd9fcc3781db4972ad4a37b224cd336033c0f8a54.go new file mode 100644 index 00000000000..19221a0477e --- /dev/null +++ b/drives/7c8820fb2dcd91a73caff82dd9fcc3781db4972ad4a37b224cd336033c0f8a54.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilder provides operations to call the entireRow method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/entireRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/7ccf7c9368ca01bf6fb273b6d99b3ce12813e449d4d30337d520eb893e31adad.go b/drives/7ccf7c9368ca01bf6fb273b6d99b3ce12813e449d4d30337d520eb893e31adad.go new file mode 100644 index 00000000000..8098b473833 --- /dev/null +++ b/drives/7ccf7c9368ca01bf6fb273b6d99b3ce12813e449d4d30337d520eb893e31adad.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/columnsBefore(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/7ecdb165f61e2217d10be35deaa4c64543662e28db6fa6a43693dea06b0a42ed.go b/drives/7ecdb165f61e2217d10be35deaa4c64543662e28db6fa6a43693dea06b0a42ed.go new file mode 100644 index 00000000000..d914116eb0a --- /dev/null +++ b/drives/7ecdb165f61e2217d10be35deaa4c64543662e28db6fa6a43693dea06b0a42ed.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder provides operations to call the boundingRect method. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/boundingRect(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function boundingRect +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function boundingRect +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/7ee5bf470b3a9f25173a45b492635f9c8a557b341c7f2a5210a7a16c8739e042.go b/drives/7ee5bf470b3a9f25173a45b492635f9c8a557b341c7f2a5210a7a16c8739e042.go new file mode 100644 index 00000000000..8fc99ffd12a --- /dev/null +++ b/drives/7ee5bf470b3a9f25173a45b492635f9c8a557b341c7f2a5210a7a16c8739e042.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeBoundingRectWithAnotherRangeRequestBuilder provides operations to call the boundingRect method. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeBoundingRectWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeBoundingRectWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeBoundingRectWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeBoundingRectWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemNamesItemRangeBoundingRectWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/boundingRect(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeBoundingRectWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeBoundingRectWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeBoundingRectWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeBoundingRectWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function boundingRect +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeBoundingRectWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function boundingRect +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeBoundingRectWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeBoundingRectWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeBoundingRectWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/7f3e11c18d3dd50f8a783b40f10528a92b10b99e029440b2ff0c02a4f53f0c0c.go b/drives/7f3e11c18d3dd50f8a783b40f10528a92b10b99e029440b2ff0c02a4f53f0c0c.go new file mode 100644 index 00000000000..deb5d669c22 --- /dev/null +++ b/drives/7f3e11c18d3dd50f8a783b40f10528a92b10b99e029440b2ff0c02a4f53f0c0c.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/columnsBefore(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/7f5178e9e3eb690ddc06c6aef35e8f974d70a9b004bee30e2d8fa1b1f0971bf7.go b/drives/7f5178e9e3eb690ddc06c6aef35e8f974d70a9b004bee30e2d8fa1b1f0971bf7.go new file mode 100644 index 00000000000..918b7e252f3 --- /dev/null +++ b/drives/7f5178e9e3eb690ddc06c6aef35e8f974d70a9b004bee30e2d8fa1b1f0971bf7.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilder provides operations to call the visibleView method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/visibleView()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function visibleView +// returns a WorkbookRangeViewable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeViewFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable), nil +} +// ToGetRequestInformation invoke function visibleView +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/800e22cc68afd374d1f8f275bbbf8c12ce81ca73377dddea9e8ed56d8bb24e62.go b/drives/800e22cc68afd374d1f8f275bbbf8c12ce81ca73377dddea9e8ed56d8bb24e62.go new file mode 100644 index 00000000000..e612f7348ae --- /dev/null +++ b/drives/800e22cc68afd374d1f8f275bbbf8c12ce81ca73377dddea9e8ed56d8bb24e62.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilder provides operations to call the boundingRect method. +type ItemItemsItemWorkbookTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/boundingRect(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function boundingRect +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function boundingRect +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/80284909687ed14895f18b2d22edf72cf4bd3ad1868efe0c66f4ac56ea2b9f55.go b/drives/80284909687ed14895f18b2d22edf72cf4bd3ad1868efe0c66f4ac56ea2b9f55.go new file mode 100644 index 00000000000..f003af67530 --- /dev/null +++ b/drives/80284909687ed14895f18b2d22edf72cf4bd3ad1868efe0c66f4ac56ea2b9f55.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/columnsAfter(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/8058f48c0d39cdbdf9f5fa088c542c020cb3fecf17553fbb9e40fc6bc469474f.go b/drives/8058f48c0d39cdbdf9f5fa088c542c020cb3fecf17553fbb9e40fc6bc469474f.go new file mode 100644 index 00000000000..f59924b0f9e --- /dev/null +++ b/drives/8058f48c0d39cdbdf9f5fa088c542c020cb3fecf17553fbb9e40fc6bc469474f.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder provides operations to call the resizedRange method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters), + } + if deltaColumns != nil { + m.BaseRequestBuilder.PathParameters["deltaColumns"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaColumns), 10) + } + if deltaRows != nil { + m.BaseRequestBuilder.PathParameters["deltaRows"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaRows), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function resizedRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function resizedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/808be9ad099b1e6f40be1591142f0fcc5f25ec4b83e9da82d3578bd71a422e5e.go b/drives/808be9ad099b1e6f40be1591142f0fcc5f25ec4b83e9da82d3578bd71a422e5e.go new file mode 100644 index 00000000000..17a76bbf963 --- /dev/null +++ b/drives/808be9ad099b1e6f40be1591142f0fcc5f25ec4b83e9da82d3578bd71a422e5e.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilder provides operations to call the cell method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32, row *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/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 +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function cell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function cell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/80fba38e091dd738e443c7cac4c97e0611b007e315cd06ddb36442d081eaa4b1.go b/drives/80fba38e091dd738e443c7cac4c97e0611b007e315cd06ddb36442d081eaa4b1.go new file mode 100644 index 00000000000..e77f1c56b39 --- /dev/null +++ b/drives/80fba38e091dd738e443c7cac4c97e0611b007e315cd06ddb36442d081eaa4b1.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder provides operations to call the intersection method. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/intersection(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function intersection +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function intersection +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/8233df9cb758c72d01a2046d6ff1dcb50a6be41036d7911942392e082a9e565d.go b/drives/8233df9cb758c72d01a2046d6ff1dcb50a6be41036d7911942392e082a9e565d.go new file mode 100644 index 00000000000..4a43667d977 --- /dev/null +++ b/drives/8233df9cb758c72d01a2046d6ff1dcb50a6be41036d7911942392e082a9e565d.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder provides operations to call the resizedRange method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters), + } + if deltaColumns != nil { + m.BaseRequestBuilder.PathParameters["deltaColumns"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaColumns), 10) + } + if deltaRows != nil { + m.BaseRequestBuilder.PathParameters["deltaRows"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaRows), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function resizedRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function resizedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/82c0957ad4a69e4bfdf32be9a989b3be62f6b6266cbda2e66fa47cc8a068333b.go b/drives/82c0957ad4a69e4bfdf32be9a989b3be62f6b6266cbda2e66fa47cc8a068333b.go new file mode 100644 index 00000000000..04a873ee461 --- /dev/null +++ b/drives/82c0957ad4a69e4bfdf32be9a989b3be62f6b6266cbda2e66fa47cc8a068333b.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder provides operations to call the offsetRange method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters), + } + if columnOffset != nil { + m.BaseRequestBuilder.PathParameters["columnOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*columnOffset), 10) + } + if rowOffset != nil { + m.BaseRequestBuilder.PathParameters["rowOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*rowOffset), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function offsetRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function offsetRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/82cdb8fae903417b2044ccee390cf84dff1cd02f8f0c5a526c82251d8b2b8518.go b/drives/82cdb8fae903417b2044ccee390cf84dff1cd02f8f0c5a526c82251d8b2b8518.go new file mode 100644 index 00000000000..2c0dfcc81b3 --- /dev/null +++ b/drives/82cdb8fae903417b2044ccee390cf84dff1cd02f8f0c5a526c82251d8b2b8518.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/rowsAbove(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/8464e7da9a51074ba9c3c105fd1c52b71e5c91ecf1ab189e84685f1fc849d403.go b/drives/8464e7da9a51074ba9c3c105fd1c52b71e5c91ecf1ab189e84685f1fc849d403.go new file mode 100644 index 00000000000..2bd514f4bb2 --- /dev/null +++ b/drives/8464e7da9a51074ba9c3c105fd1c52b71e5c91ecf1ab189e84685f1fc849d403.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/columnsBefore(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/856ea05bbbd7ec280e7292c56a52a1842d6993700ac9dd558785e957cde5bb7c.go b/drives/856ea05bbbd7ec280e7292c56a52a1842d6993700ac9dd558785e957cde5bb7c.go new file mode 100644 index 00000000000..3120ea8f963 --- /dev/null +++ b/drives/856ea05bbbd7ec280e7292c56a52a1842d6993700ac9dd558785e957cde5bb7c.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/columnsBefore()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/85f7341c8064e7141b725bdde9fe3f7325987ac8ded32e810abc549580c70d4e.go b/drives/85f7341c8064e7141b725bdde9fe3f7325987ac8ded32e810abc549580c70d4e.go new file mode 100644 index 00000000000..7d293bb1e18 --- /dev/null +++ b/drives/85f7341c8064e7141b725bdde9fe3f7325987ac8ded32e810abc549580c70d4e.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyIntersectionWithAnotherRangeRequestBuilder provides operations to call the intersection method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyIntersectionWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyIntersectionWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyIntersectionWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyIntersectionWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyIntersectionWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/intersection(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyIntersectionWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyIntersectionWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyIntersectionWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyIntersectionWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function intersection +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyIntersectionWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function intersection +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyIntersectionWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyIntersectionWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyIntersectionWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/874e5707f7c940e6814bcd19ef2b650b65c548d0b854c5f08013fc24b79a7afe.go b/drives/874e5707f7c940e6814bcd19ef2b650b65c548d0b854c5f08013fc24b79a7afe.go new file mode 100644 index 00000000000..c92feafb189 --- /dev/null +++ b/drives/874e5707f7c940e6814bcd19ef2b650b65c548d0b854c5f08013fc24b79a7afe.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder provides operations to call the resizedRange method. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters), + } + if deltaColumns != nil { + m.BaseRequestBuilder.PathParameters["deltaColumns"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaColumns), 10) + } + if deltaRows != nil { + m.BaseRequestBuilder.PathParameters["deltaRows"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaRows), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function resizedRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function resizedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/879f25b31f8f1c512c7329d74c430c902b568f124714ec146b55e46f2d2b8450.go b/drives/879f25b31f8f1c512c7329d74c430c902b568f124714ec146b55e46f2d2b8450.go new file mode 100644 index 00000000000..e24c7c75d98 --- /dev/null +++ b/drives/879f25b31f8f1c512c7329d74c430c902b568f124714ec146b55e46f2d2b8450.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder provides operations to call the resizedRange method. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters), + } + if deltaColumns != nil { + m.BaseRequestBuilder.PathParameters["deltaColumns"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaColumns), 10) + } + if deltaRows != nil { + m.BaseRequestBuilder.PathParameters["deltaRows"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaRows), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function resizedRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function resizedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/87eaa9b8926b327a383ba8b05dae47020664243c2bac995fe1b0ee8f1d757b14.go b/drives/87eaa9b8926b327a383ba8b05dae47020664243c2bac995fe1b0ee8f1d757b14.go new file mode 100644 index 00000000000..bcbc98b5c90 --- /dev/null +++ b/drives/87eaa9b8926b327a383ba8b05dae47020664243c2bac995fe1b0ee8f1d757b14.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilder provides operations to call the intersection method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/intersection(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function intersection +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function intersection +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/888768308ac6de6c319f7247576d54a4c28787dd79173a0e17c6e2aa32bdec7b.go b/drives/888768308ac6de6c319f7247576d54a4c28787dd79173a0e17c6e2aa32bdec7b.go new file mode 100644 index 00000000000..13fabbf50d3 --- /dev/null +++ b/drives/888768308ac6de6c319f7247576d54a4c28787dd79173a0e17c6e2aa32bdec7b.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/columnsBefore(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/8bbad9e3cc74dc620a25a4dceafbbf334361f87001dad4c1c9bbdf19c3f6e9e2.go b/drives/8bbad9e3cc74dc620a25a4dceafbbf334361f87001dad4c1c9bbdf19c3f6e9e2.go new file mode 100644 index 00000000000..11dd82dbb12 --- /dev/null +++ b/drives/8bbad9e3cc74dc620a25a4dceafbbf334361f87001dad4c1c9bbdf19c3f6e9e2.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/columnsAfter()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/8c6e68359efefa2138675dd4ae0c87e7b0a54b657acdd5eaf671f3f21856af3f.go b/drives/8c6e68359efefa2138675dd4ae0c87e7b0a54b657acdd5eaf671f3f21856af3f.go new file mode 100644 index 00000000000..c56fb7824ba --- /dev/null +++ b/drives/8c6e68359efefa2138675dd4ae0c87e7b0a54b657acdd5eaf671f3f21856af3f.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder provides operations to call the resizedRange method. +type ItemItemsItemWorkbookNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal instantiates a new ItemItemsItemWorkbookNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + m := &ItemItemsItemWorkbookNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters), + } + if deltaColumns != nil { + m.BaseRequestBuilder.PathParameters["deltaColumns"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaColumns), 10) + } + if deltaRows != nil { + m.BaseRequestBuilder.PathParameters["deltaRows"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaRows), 10) + } + return m +} +// NewItemItemsItemWorkbookNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder instantiates a new ItemItemsItemWorkbookNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function resizedRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function resizedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/8ce79fd7855c853df555fbf0d93481d6c8f9f20cc5f40e7b16284e86e7f3754f.go b/drives/8ce79fd7855c853df555fbf0d93481d6c8f9f20cc5f40e7b16284e86e7f3754f.go new file mode 100644 index 00000000000..67173f88835 --- /dev/null +++ b/drives/8ce79fd7855c853df555fbf0d93481d6c8f9f20cc5f40e7b16284e86e7f3754f.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilder provides operations to call the intersection method. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/intersection(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function intersection +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function intersection +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/8ef6024cddcde6ec567e00fbcc4fb7f55c6d6587f87ca0ee325c0bf56f128071.go b/drives/8ef6024cddcde6ec567e00fbcc4fb7f55c6d6587f87ca0ee325c0bf56f128071.go new file mode 100644 index 00000000000..d27e1b887c1 --- /dev/null +++ b/drives/8ef6024cddcde6ec567e00fbcc4fb7f55c6d6587f87ca0ee325c0bf56f128071.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilder provides operations to call the row method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, row *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/row(row={row})", pathParameters), + } + if row != nil { + m.BaseRequestBuilder.PathParameters["row"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*row), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function row +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function row +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/914d4f6596841b52cce314f68dde7742cf14afd86351da062f2dfc07823ab5fd.go b/drives/914d4f6596841b52cce314f68dde7742cf14afd86351da062f2dfc07823ab5fd.go index 130be7f09b7..aa3c31237d1 100644 --- a/drives/914d4f6596841b52cce314f68dde7742cf14afd86351da062f2dfc07823ab5fd.go +++ b/drives/914d4f6596841b52cce314f68dde7742cf14afd86351da062f2dfc07823ab5fd.go @@ -18,7 +18,7 @@ type ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartP // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilderGetQueryParameters represents a collection of all points in the series. Read-only. +// ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilderGetQueryParameters a collection of all points in the series. Read-only. type ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -75,7 +75,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookCh func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilder) Format()(*ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilder) { return NewItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get represents a collection of all points in the series. Read-only. +// Get 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 *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookChartPointable, error) { @@ -126,7 +126,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookCh requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation represents a collection of all points in the series. Read-only. +// ToGetRequestInformation a collection of all points in the series. Read-only. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsWorkbookChartPointItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/919e245408fa14f21822453c33ce483df86acf01a518edc9f8dda140e78b5fd7.go b/drives/919e245408fa14f21822453c33ce483df86acf01a518edc9f8dda140e78b5fd7.go new file mode 100644 index 00000000000..b4db39866b4 --- /dev/null +++ b/drives/919e245408fa14f21822453c33ce483df86acf01a518edc9f8dda140e78b5fd7.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMergePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMergePostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMergePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMergePostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMergePostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMergePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMergePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMergePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMergePostRequestBody(), nil +} +// GetAcross gets the across property value. The across property +// returns a *bool when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMergePostRequestBody) GetAcross()(*bool) { + val, err := m.GetBackingStore().Get("across") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + 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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMergePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMergePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMergePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["across"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetAcross(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMergePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("across", m.GetAcross()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAcross sets the across property value. The across property +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMergePostRequestBody) SetAcross(value *bool)() { + err := m.GetBackingStore().Set("across", 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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMergePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMergePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMergePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAcross()(*bool) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetAcross(value *bool)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/930e26e16db47b432576065096721006497641760b14ef61eb9690588f859f9a.go b/drives/930e26e16db47b432576065096721006497641760b14ef61eb9690588f859f9a.go new file mode 100644 index 00000000000..762231218e7 --- /dev/null +++ b/drives/930e26e16db47b432576065096721006497641760b14ef61eb9690588f859f9a.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeSortRequestBuilder provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeSortRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeSortRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeSortRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeSortRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeSortRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeSortRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeSortRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeSortRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeSortRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeSortRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeSortRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeSortRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeSortRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeSortRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/sort{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeSortRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeSortRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeSortRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeSortRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property sort for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeSortRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeSortRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeSortRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeSortRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// Patch update the navigation property sort in drives +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeSortRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeSortRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// ToDeleteRequestInformation delete navigation property sort for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeSortRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeSortRequestBuilderDeleteRequestConfiguration)(*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 worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeSortRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeSortRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeSortRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeSortRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeSortRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeSortRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeSortRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/93444fa56e1ab5f948c2d3a7b7d29bcf473502e174d05f372df903da0af8967b.go b/drives/93444fa56e1ab5f948c2d3a7b7d29bcf473502e174d05f372df903da0af8967b.go new file mode 100644 index 00000000000..5bf03eef464 --- /dev/null +++ b/drives/93444fa56e1ab5f948c2d3a7b7d29bcf473502e174d05f372df903da0af8967b.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder provides operations to call the intersection method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/intersection(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function intersection +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function intersection +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/93a8419d0e29ef42b658aa5187cff3f8e566257675094bc2570bed06540b762f.go b/drives/93a8419d0e29ef42b658aa5187cff3f8e566257675094bc2570bed06540b762f.go new file mode 100644 index 00000000000..a142a6a7e25 --- /dev/null +++ b/drives/93a8419d0e29ef42b658aa5187cff3f8e566257675094bc2570bed06540b762f.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/columnsAfter()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/93c96947aa858af812fb0b6e5de901793b0c2d3ada6ee9e543a2cc5c7b4a5fb8.go b/drives/93c96947aa858af812fb0b6e5de901793b0c2d3ada6ee9e543a2cc5c7b4a5fb8.go new file mode 100644 index 00000000000..16c9e1b2c7a --- /dev/null +++ b/drives/93c96947aa858af812fb0b6e5de901793b0c2d3ada6ee9e543a2cc5c7b4a5fb8.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnWithColumnRequestBuilder provides operations to call the column method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/column(column={column})", pathParameters), + } + if column != nil { + m.BaseRequestBuilder.PathParameters["column"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*column), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function column +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function column +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/94e9345de384b614f61c5a5f00bc78a289f2d8dbc279c96ebe321cd65ecc683e.go b/drives/94e9345de384b614f61c5a5f00bc78a289f2d8dbc279c96ebe321cd65ecc683e.go new file mode 100644 index 00000000000..92cda2f8ca2 --- /dev/null +++ b/drives/94e9345de384b614f61c5a5f00bc78a289f2d8dbc279c96ebe321cd65ecc683e.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveWithCountRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/rowsAbove(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/955b60b9552326495ad739d284290c4c044fc3b289be1cabfe715fa07a47a212.go b/drives/955b60b9552326495ad739d284290c4c044fc3b289be1cabfe715fa07a47a212.go new file mode 100644 index 00000000000..614d3d3594a --- /dev/null +++ b/drives/955b60b9552326495ad739d284290c4c044fc3b289be1cabfe715fa07a47a212.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilder provides operations to call the column method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/column(column={column})", pathParameters), + } + if column != nil { + m.BaseRequestBuilder.PathParameters["column"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*column), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function column +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function column +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/95ac00c73324980ba08e3e24c8a4b06d374268eb65f7b93e94f5a316c4882c7a.go b/drives/95ac00c73324980ba08e3e24c8a4b06d374268eb65f7b93e94f5a316c4882c7a.go new file mode 100644 index 00000000000..d101cca4baf --- /dev/null +++ b/drives/95ac00c73324980ba08e3e24c8a4b06d374268eb65f7b93e94f5a316c4882c7a.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowWithCountRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/rowsBelow(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/95f7c30fb82fa9412c16f5d3be91bcfbba439ee29b2ff121f29e04833e26185a.go b/drives/95f7c30fb82fa9412c16f5d3be91bcfbba439ee29b2ff121f29e04833e26185a.go new file mode 100644 index 00000000000..a6b92315475 --- /dev/null +++ b/drives/95f7c30fb82fa9412c16f5d3be91bcfbba439ee29b2ff121f29e04833e26185a.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder provides operations to call the usedRange method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, valuesOnly *bool)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/usedRange(valuesOnly={valuesOnly})", pathParameters), + } + if valuesOnly != nil { + m.BaseRequestBuilder.PathParameters["valuesOnly"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatBool(*valuesOnly) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilderInternal(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 *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function usedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/966efe6a5257a4a7e3ffa3ae839d3712c2a59e04f7d941d64080a27a23940177.go b/drives/966efe6a5257a4a7e3ffa3ae839d3712c2a59e04f7d941d64080a27a23940177.go new file mode 100644 index 00000000000..115d2ddc833 --- /dev/null +++ b/drives/966efe6a5257a4a7e3ffa3ae839d3712c2a59e04f7d941d64080a27a23940177.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder provides operations to call the usedRange method. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, valuesOnly *bool)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/usedRange(valuesOnly={valuesOnly})", pathParameters), + } + if valuesOnly != nil { + m.BaseRequestBuilder.PathParameters["valuesOnly"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatBool(*valuesOnly) + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilderInternal(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 *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function usedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/988bed28f8f1361026724a49a555a6302aac1c836769ea1306a3718b4b701958.go b/drives/988bed28f8f1361026724a49a555a6302aac1c836769ea1306a3718b4b701958.go new file mode 100644 index 00000000000..78858501bd1 --- /dev/null +++ b/drives/988bed28f8f1361026724a49a555a6302aac1c836769ea1306a3718b4b701958.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/columnsAfter()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/992f4fbddef9748e31b721659f31be8e49220274a3afebab08e39869e0a30437.go b/drives/992f4fbddef9748e31b721659f31be8e49220274a3afebab08e39869e0a30437.go new file mode 100644 index 00000000000..73ccdb6b6da --- /dev/null +++ b/drives/992f4fbddef9748e31b721659f31be8e49220274a3afebab08e39869e0a30437.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowWithCountRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/rowsBelow(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/996942a0c76543e17163a50dc43387e2ce5b0640f73ba4c73181dc4c719fa297.go b/drives/996942a0c76543e17163a50dc43387e2ce5b0640f73ba4c73181dc4c719fa297.go new file mode 100644 index 00000000000..417f141bc4a --- /dev/null +++ b/drives/996942a0c76543e17163a50dc43387e2ce5b0640f73ba4c73181dc4c719fa297.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder provides operations to call the intersection method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/intersection(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function intersection +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function intersection +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/9a3295fcca7e40374de7c51dd11dcdfb7423a53e7e1333ff8c0eaa41c12ca80c.go b/drives/9a3295fcca7e40374de7c51dd11dcdfb7423a53e7e1333ff8c0eaa41c12ca80c.go new file mode 100644 index 00000000000..82a57114f70 --- /dev/null +++ b/drives/9a3295fcca7e40374de7c51dd11dcdfb7423a53e7e1333ff8c0eaa41c12ca80c.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder provides operations to call the resizedRange method. +type ItemItemsItemWorkbookTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters), + } + if deltaColumns != nil { + m.BaseRequestBuilder.PathParameters["deltaColumns"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaColumns), 10) + } + if deltaRows != nil { + m.BaseRequestBuilder.PathParameters["deltaRows"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaRows), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function resizedRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function resizedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/9bd6830be52fe9191f16b0ef8a5d01514f031df285cc11553ccb13b71b031864.go b/drives/9bd6830be52fe9191f16b0ef8a5d01514f031df285cc11553ccb13b71b031864.go new file mode 100644 index 00000000000..b0734e4e0d9 --- /dev/null +++ b/drives/9bd6830be52fe9191f16b0ef8a5d01514f031df285cc11553ccb13b71b031864.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeClearPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeClearPostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeClearPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeClearPostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeClearPostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeClearPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeClearPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeClearPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeClearPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeClearPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetApplyTo gets the applyTo property value. The applyTo property +// returns a *string when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeClearPostRequestBody) GetApplyTo()(*string) { + val, err := m.GetBackingStore().Get("applyTo") + 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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeClearPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeClearPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["applyTo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetApplyTo(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeClearPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("applyTo", m.GetApplyTo()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeClearPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetApplyTo sets the applyTo property value. The applyTo property +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeClearPostRequestBody) SetApplyTo(value *string)() { + err := m.GetBackingStore().Set("applyTo", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeClearPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeClearPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetApplyTo()(*string) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetApplyTo(value *string)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/9c0c13b03f559270921c3c0a46f56ec4f4bf6462a8bae71481f22fcde44222d4.go b/drives/9c0c13b03f559270921c3c0a46f56ec4f4bf6462a8bae71481f22fcde44222d4.go new file mode 100644 index 00000000000..761ef0d6e3a --- /dev/null +++ b/drives/9c0c13b03f559270921c3c0a46f56ec4f4bf6462a8bae71481f22fcde44222d4.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/columnsBefore(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/9dca83c417a9bbfbb43662623018535f3e201b27c2722ac66087194ca5d08ac4.go b/drives/9dca83c417a9bbfbb43662623018535f3e201b27c2722ac66087194ca5d08ac4.go new file mode 100644 index 00000000000..940b54a5bdc --- /dev/null +++ b/drives/9dca83c417a9bbfbb43662623018535f3e201b27c2722ac66087194ca5d08ac4.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeDeletePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeDeletePostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeDeletePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeDeletePostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeDeletePostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeDeletePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeDeletePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeDeletePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeDeletePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeDeletePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeDeletePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeDeletePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeDeletePostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeDeletePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeDeletePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeDeletePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeDeletePostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeDeletePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/9e559ee23aa5d6550009c4df8a6e1d968c488c8d9fc27de2c33f52d119a63623.go b/drives/9e559ee23aa5d6550009c4df8a6e1d968c488c8d9fc27de2c33f52d119a63623.go new file mode 100644 index 00000000000..493b13c4102 --- /dev/null +++ b/drives/9e559ee23aa5d6550009c4df8a6e1d968c488c8d9fc27de2c33f52d119a63623.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastCellRequestBuilder provides operations to call the lastCell method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastCellRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastCellRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastCellRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastCellRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastCellRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastCellRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastCellRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/lastCell()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastCellRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastCellRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastCellRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastCellRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastCell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastCellRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastCellRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastCell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastCellRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastCellRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastCellRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastCellRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastCellRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/9e7351a74ab3fce4f5332c8920c9497f83fdaa28283d3dfe97bf7d8ac51cdfb1.go b/drives/9e7351a74ab3fce4f5332c8920c9497f83fdaa28283d3dfe97bf7d8ac51cdfb1.go new file mode 100644 index 00000000000..f1db6815ed8 --- /dev/null +++ b/drives/9e7351a74ab3fce4f5332c8920c9497f83fdaa28283d3dfe97bf7d8ac51cdfb1.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder provides operations to call the boundingRect method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/boundingRect(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function boundingRect +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function boundingRect +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/9e9343d74f9e94300d06e7071fb167c828e1de83822c4f0923069cb595ab97f2.go b/drives/9e9343d74f9e94300d06e7071fb167c828e1de83822c4f0923069cb595ab97f2.go new file mode 100644 index 00000000000..944f54470b2 --- /dev/null +++ b/drives/9e9343d74f9e94300d06e7071fb167c828e1de83822c4f0923069cb595ab97f2.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeDeletePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeDeletePostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeDeletePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeDeletePostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeDeletePostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeDeletePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeDeletePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeDeletePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeDeletePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeDeletePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeDeletePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeDeletePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeDeletePostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeDeletePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeDeletePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeDeletePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeDeletePostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeDeletePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/9fa738702229cb7a5f0776fbcdfca4dcc840677f75d410d6fc9946039335e1fe.go b/drives/9fa738702229cb7a5f0776fbcdfca4dcc840677f75d410d6fc9946039335e1fe.go new file mode 100644 index 00000000000..0a430bb5648 --- /dev/null +++ b/drives/9fa738702229cb7a5f0776fbcdfca4dcc840677f75d410d6fc9946039335e1fe.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/columnsAfter(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/a07fd80c57989269041be5986b9a5593b75e654a0823106d47cb9b58e1fe5fac.go b/drives/a07fd80c57989269041be5986b9a5593b75e654a0823106d47cb9b58e1fe5fac.go new file mode 100644 index 00000000000..725c5a526a0 --- /dev/null +++ b/drives/a07fd80c57989269041be5986b9a5593b75e654a0823106d47cb9b58e1fe5fac.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilder provides operations to call the boundingRect method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/boundingRect(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function boundingRect +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function boundingRect +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/a0d89af0f6e698df8f7eca4bf4f21376f246344f6d3e4d387f261c63e48e2d11.go b/drives/a0d89af0f6e698df8f7eca4bf4f21376f246344f6d3e4d387f261c63e48e2d11.go new file mode 100644 index 00000000000..d4e5c3e9635 --- /dev/null +++ b/drives/a0d89af0f6e698df8f7eca4bf4f21376f246344f6d3e4d387f261c63e48e2d11.go @@ -0,0 +1,81 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilder provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilderGetQueryParameters +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/worksheet{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookWorksheetable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookWorksheetFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable), nil +} +// ToGetRequestInformation the worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/a237d7d4eda13268293cfaf5847195428e240b54b2e28739d02762794da93e09.go b/drives/a237d7d4eda13268293cfaf5847195428e240b54b2e28739d02762794da93e09.go new file mode 100644 index 00000000000..215c04bfc06 --- /dev/null +++ b/drives/a237d7d4eda13268293cfaf5847195428e240b54b2e28739d02762794da93e09.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyBoundingRectWithAnotherRangeRequestBuilder provides operations to call the boundingRect method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyBoundingRectWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyBoundingRectWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyBoundingRectWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyBoundingRectWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyBoundingRectWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/boundingRect(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyBoundingRectWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyBoundingRectWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyBoundingRectWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyBoundingRectWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function boundingRect +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyBoundingRectWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function boundingRect +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyBoundingRectWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyBoundingRectWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyBoundingRectWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/a61c031b92cedbf23b29e4abbcfe42492eb06373a1a5c0c4f6473905ad661f62.go b/drives/a61c031b92cedbf23b29e4abbcfe42492eb06373a1a5c0c4f6473905ad661f62.go new file mode 100644 index 00000000000..e16e3c5f773 --- /dev/null +++ b/drives/a61c031b92cedbf23b29e4abbcfe42492eb06373a1a5c0c4f6473905ad661f62.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeSortRequestBuilder provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeSortRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeSortRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeSortRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeSortRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeSortRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeSortRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeSortRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeSortRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeSortRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeSortRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeSortRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeSortRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeSortRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeSortRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/sort{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeSortRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeSortRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeSortRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeSortRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property sort for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeSortRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeSortRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeSortRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeSortRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// Patch update the navigation property sort in drives +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeSortRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeSortRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// ToDeleteRequestInformation delete navigation property sort for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeSortRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeSortRequestBuilderDeleteRequestConfiguration)(*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 worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeSortRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeSortRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeSortRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeSortRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeSortRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeSortRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeSortRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/a68b594bc7ff98652fa8c57737e0115f54f2022b547a63bf680ef5135c913f92.go b/drives/a68b594bc7ff98652fa8c57737e0115f54f2022b547a63bf680ef5135c913f92.go new file mode 100644 index 00000000000..232e728277d --- /dev/null +++ b/drives/a68b594bc7ff98652fa8c57737e0115f54f2022b547a63bf680ef5135c913f92.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/rowsAbove(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/a752a8f112ccf694518192bcecde2ebd2d66252788b8108c6c371e6492e268c5.go b/drives/a752a8f112ccf694518192bcecde2ebd2d66252788b8108c6c371e6492e268c5.go new file mode 100644 index 00000000000..c003dd88262 --- /dev/null +++ b/drives/a752a8f112ccf694518192bcecde2ebd2d66252788b8108c6c371e6492e268c5.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilder provides operations to call the entireColumn method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/entireColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/a84425b29f0e66d01e73ce7c30ad423dda7b84eef605ebb2c7f2e6a18095354a.go b/drives/a84425b29f0e66d01e73ce7c30ad423dda7b84eef605ebb2c7f2e6a18095354a.go new file mode 100644 index 00000000000..b13b41c51c0 --- /dev/null +++ b/drives/a84425b29f0e66d01e73ce7c30ad423dda7b84eef605ebb2c7f2e6a18095354a.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilder provides operations to call the cell method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32, row *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/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 +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function cell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function cell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/a8a2d3a753940896bb24be3456ca277548680265b15d89522004276a5ca4cbc5.go b/drives/a8a2d3a753940896bb24be3456ca277548680265b15d89522004276a5ca4cbc5.go new file mode 100644 index 00000000000..82549a9b7fd --- /dev/null +++ b/drives/a8a2d3a753940896bb24be3456ca277548680265b15d89522004276a5ca4cbc5.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnWithColumnRequestBuilder provides operations to call the column method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/column(column={column})", pathParameters), + } + if column != nil { + m.BaseRequestBuilder.PathParameters["column"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*column), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function column +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function column +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/a9610b293331709d25c89398a75a0a5cbd46a451110d7c9c8aced4c284d5c500.go b/drives/a9610b293331709d25c89398a75a0a5cbd46a451110d7c9c8aced4c284d5c500.go new file mode 100644 index 00000000000..f1537f31472 --- /dev/null +++ b/drives/a9610b293331709d25c89398a75a0a5cbd46a451110d7c9c8aced4c284d5c500.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeWithCountRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/columnsBefore(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/aef33fae35e867a0c976ccdb46ef51c5286aae50106806fc8c8fbbc11e31e2f0.go b/drives/aef33fae35e867a0c976ccdb46ef51c5286aae50106806fc8c8fbbc11e31e2f0.go new file mode 100644 index 00000000000..866df9e87e9 --- /dev/null +++ b/drives/aef33fae35e867a0c976ccdb46ef51c5286aae50106806fc8c8fbbc11e31e2f0.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeClearPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeClearPostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeClearPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeClearPostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeClearPostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeClearPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeClearPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeClearPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeClearPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeClearPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetApplyTo gets the applyTo property value. The applyTo property +// returns a *string when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeClearPostRequestBody) GetApplyTo()(*string) { + val, err := m.GetBackingStore().Get("applyTo") + 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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeClearPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeClearPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["applyTo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetApplyTo(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeClearPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("applyTo", m.GetApplyTo()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeClearPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetApplyTo sets the applyTo property value. The applyTo property +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeClearPostRequestBody) SetApplyTo(value *string)() { + err := m.GetBackingStore().Set("applyTo", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeClearPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeClearPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetApplyTo()(*string) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetApplyTo(value *string)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/af423366de7a494445b5f3cdf830016c506e4ce701d7b1069745443224e54b10.go b/drives/af423366de7a494445b5f3cdf830016c506e4ce701d7b1069745443224e54b10.go new file mode 100644 index 00000000000..e8f317b549e --- /dev/null +++ b/drives/af423366de7a494445b5f3cdf830016c506e4ce701d7b1069745443224e54b10.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder provides operations to call the usedRange method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, valuesOnly *bool)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/usedRange(valuesOnly={valuesOnly})", pathParameters), + } + if valuesOnly != nil { + m.BaseRequestBuilder.PathParameters["valuesOnly"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatBool(*valuesOnly) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilderInternal(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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function usedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/b19755df470d5d5da4f8616c8ba4d2542f32eedf42b82a0420d9bfff0e53bcf5.go b/drives/b19755df470d5d5da4f8616c8ba4d2542f32eedf42b82a0420d9bfff0e53bcf5.go new file mode 100644 index 00000000000..14fa9bd831b --- /dev/null +++ b/drives/b19755df470d5d5da4f8616c8ba4d2542f32eedf42b82a0420d9bfff0e53bcf5.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder provides operations to call the offsetRange method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters), + } + if columnOffset != nil { + m.BaseRequestBuilder.PathParameters["columnOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*columnOffset), 10) + } + if rowOffset != nil { + m.BaseRequestBuilder.PathParameters["rowOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*rowOffset), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function offsetRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function offsetRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/b231c91fb383ac706038cd872475e85a8d37ec8ae23abbb3d52471f0900818a4.go b/drives/b231c91fb383ac706038cd872475e85a8d37ec8ae23abbb3d52471f0900818a4.go new file mode 100644 index 00000000000..4250905b560 --- /dev/null +++ b/drives/b231c91fb383ac706038cd872475e85a8d37ec8ae23abbb3d52471f0900818a4.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeInsertPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeInsertPostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeInsertPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeInsertPostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeInsertPostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeInsertPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeInsertPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeInsertPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeInsertPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeInsertPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeInsertPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeInsertPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeInsertPostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeInsertPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeInsertPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeInsertPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeInsertPostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeInsertPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/b2d3f9e471c07ef8344e87c21ece1748c6f1fc0254189ef1d762ab290bec85c9.go b/drives/b2d3f9e471c07ef8344e87c21ece1748c6f1fc0254189ef1d762ab290bec85c9.go new file mode 100644 index 00000000000..2f4a9117e2a --- /dev/null +++ b/drives/b2d3f9e471c07ef8344e87c21ece1748c6f1fc0254189ef1d762ab290bec85c9.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeClearPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeClearPostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeClearPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeClearPostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeClearPostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeClearPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeClearPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeClearPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeClearPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeClearPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetApplyTo gets the applyTo property value. The applyTo property +// returns a *string when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeClearPostRequestBody) GetApplyTo()(*string) { + val, err := m.GetBackingStore().Get("applyTo") + 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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeClearPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeClearPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["applyTo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetApplyTo(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeClearPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("applyTo", m.GetApplyTo()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeClearPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetApplyTo sets the applyTo property value. The applyTo property +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeClearPostRequestBody) SetApplyTo(value *string)() { + err := m.GetBackingStore().Set("applyTo", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeClearPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeClearPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetApplyTo()(*string) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetApplyTo(value *string)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/b3fafa2f27f29327b134f28eec23cc4c352eae9658595bc31831736fdf87e362.go b/drives/b3fafa2f27f29327b134f28eec23cc4c352eae9658595bc31831736fdf87e362.go new file mode 100644 index 00000000000..236066cfa9e --- /dev/null +++ b/drives/b3fafa2f27f29327b134f28eec23cc4c352eae9658595bc31831736fdf87e362.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/rowsBelow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/b411af8c7fbad9ae1e7767f95838ded1cee4d25911127d6a30f2d379e4f571cf.go b/drives/b411af8c7fbad9ae1e7767f95838ded1cee4d25911127d6a30f2d379e4f571cf.go new file mode 100644 index 00000000000..f78a76baf9d --- /dev/null +++ b/drives/b411af8c7fbad9ae1e7767f95838ded1cee4d25911127d6a30f2d379e4f571cf.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/rowsAbove(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/b47023ce93620f9b26812878090189abf61c529669512d8c71b338436ca3a49e.go b/drives/b47023ce93620f9b26812878090189abf61c529669512d8c71b338436ca3a49e.go new file mode 100644 index 00000000000..12d0920b865 --- /dev/null +++ b/drives/b47023ce93620f9b26812878090189abf61c529669512d8c71b338436ca3a49e.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeClearRequestBuilder provides operations to call the clear method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeClearRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeClearRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeClearRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeClearRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeClearRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeClearRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeClearRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/clear", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeClearRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeClearRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeClearRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeClearRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action clear +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeClearRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeClearRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action clear +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeClearRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeClearRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeClearRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeClearRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeClearRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/b47ffdd5231321beda1b07218643147a1f94908870d2525a1acde0da08aa644f.go b/drives/b47ffdd5231321beda1b07218643147a1f94908870d2525a1acde0da08aa644f.go new file mode 100644 index 00000000000..79eaa4380f3 --- /dev/null +++ b/drives/b47ffdd5231321beda1b07218643147a1f94908870d2525a1acde0da08aa644f.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/rowsAbove(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/b5f2c59d6d55c916f131eeb39bf0a1a99f45e93b90d58397fef54849ca1f8bc0.go b/drives/b5f2c59d6d55c916f131eeb39bf0a1a99f45e93b90d58397fef54849ca1f8bc0.go new file mode 100644 index 00000000000..e2f2e7840da --- /dev/null +++ b/drives/b5f2c59d6d55c916f131eeb39bf0a1a99f45e93b90d58397fef54849ca1f8bc0.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/rowsAbove()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/b73fba53f7dbbd86c7fe27a53bbb9d965a30e1c11870b08988fd40bdbba59d3f.go b/drives/b73fba53f7dbbd86c7fe27a53bbb9d965a30e1c11870b08988fd40bdbba59d3f.go new file mode 100644 index 00000000000..72b07f645d8 --- /dev/null +++ b/drives/b73fba53f7dbbd86c7fe27a53bbb9d965a30e1c11870b08988fd40bdbba59d3f.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeInsertRequestBuilder provides operations to call the insert method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeInsertRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeInsertRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeInsertRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeInsertRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeInsertRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeInsertRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeInsertRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/insert", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeInsertRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeInsertRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeInsertRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeInsertRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action insert +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeInsertRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeInsertRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToPostRequestInformation invoke action insert +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeInsertRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeInsertRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeInsertRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeInsertRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeInsertRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/b8061ab3bbc48bcda041455f20ef53e7811e2f56aabcd4f093d760b76e3c97bf.go b/drives/b8061ab3bbc48bcda041455f20ef53e7811e2f56aabcd4f093d760b76e3c97bf.go new file mode 100644 index 00000000000..bc45a88991d --- /dev/null +++ b/drives/b8061ab3bbc48bcda041455f20ef53e7811e2f56aabcd4f093d760b76e3c97bf.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnWithColumnRequestBuilder provides operations to call the column method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/column(column={column})", pathParameters), + } + if column != nil { + m.BaseRequestBuilder.PathParameters["column"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*column), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function column +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function column +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/ba327418e68065800e47e9d37fc2530653c0cd7a5aae7c837fb5fdf3487229a3.go b/drives/ba327418e68065800e47e9d37fc2530653c0cd7a5aae7c837fb5fdf3487229a3.go new file mode 100644 index 00000000000..0d67d46f463 --- /dev/null +++ b/drives/ba327418e68065800e47e9d37fc2530653c0cd7a5aae7c837fb5fdf3487229a3.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilder provides operations to call the lastRow method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/lastRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/baa2417870a62947fd26cf67e5f83665a8ed1d2cc403583997595ea44937352a.go b/drives/baa2417870a62947fd26cf67e5f83665a8ed1d2cc403583997595ea44937352a.go new file mode 100644 index 00000000000..9fa25c53690 --- /dev/null +++ b/drives/baa2417870a62947fd26cf67e5f83665a8ed1d2cc403583997595ea44937352a.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder provides operations to call the resizedRange method. +type ItemItemsItemWorkbookTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters), + } + if deltaColumns != nil { + m.BaseRequestBuilder.PathParameters["deltaColumns"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaColumns), 10) + } + if deltaRows != nil { + m.BaseRequestBuilder.PathParameters["deltaRows"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaRows), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function resizedRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function resizedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/bc36bdc8fc6305185c2540fa11b55df5d0bb15ab2ae21264fcebe036a1942f5a.go b/drives/bc36bdc8fc6305185c2540fa11b55df5d0bb15ab2ae21264fcebe036a1942f5a.go new file mode 100644 index 00000000000..650c5f99445 --- /dev/null +++ b/drives/bc36bdc8fc6305185c2540fa11b55df5d0bb15ab2ae21264fcebe036a1942f5a.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder provides operations to call the boundingRect method. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/boundingRect(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function boundingRect +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function boundingRect +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/bd1849aeb7d2051f323b580f7bb4ecc2a0b3392483ef96ac0a7d18a7b0b19e4e.go b/drives/bd1849aeb7d2051f323b580f7bb4ecc2a0b3392483ef96ac0a7d18a7b0b19e4e.go new file mode 100644 index 00000000000..e9ae1a7105d --- /dev/null +++ b/drives/bd1849aeb7d2051f323b580f7bb4ecc2a0b3392483ef96ac0a7d18a7b0b19e4e.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilder provides operations to call the usedRange method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/usedRange()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilderInternal(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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function usedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/bdf2d3a4f9746e52876831050474b7591b22c4f8da7415de851c1a9096201da4.go b/drives/bdf2d3a4f9746e52876831050474b7591b22c4f8da7415de851c1a9096201da4.go new file mode 100644 index 00000000000..8be98dba0ec --- /dev/null +++ b/drives/bdf2d3a4f9746e52876831050474b7591b22c4f8da7415de851c1a9096201da4.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastCellRequestBuilder provides operations to call the lastCell method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastCellRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastCellRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastCellRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastCellRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastCellRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastCellRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastCellRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/lastCell()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastCellRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastCellRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastCellRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastCellRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastCell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastCellRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastCellRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastCell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastCellRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastCellRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastCellRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastCellRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastCellRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/c012f65a28cffc49616b477d6f705e55d2e7b165f68abe6c125cd7bfdc8af161.go b/drives/c012f65a28cffc49616b477d6f705e55d2e7b165f68abe6c125cd7bfdc8af161.go new file mode 100644 index 00000000000..88d5c51cbaa --- /dev/null +++ b/drives/c012f65a28cffc49616b477d6f705e55d2e7b165f68abe6c125cd7bfdc8af161.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeIntersectionWithAnotherRangeRequestBuilder provides operations to call the intersection method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeIntersectionWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeIntersectionWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeIntersectionWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeIntersectionWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRangeIntersectionWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/intersection(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeIntersectionWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeIntersectionWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeIntersectionWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeIntersectionWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function intersection +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeIntersectionWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function intersection +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeIntersectionWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeIntersectionWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeIntersectionWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/c029320b038f86a70f90a3eacea18fed1fe52a6a57e57b389e656772f780851e.go b/drives/c029320b038f86a70f90a3eacea18fed1fe52a6a57e57b389e656772f780851e.go new file mode 100644 index 00000000000..1fac0c650f6 --- /dev/null +++ b/drives/c029320b038f86a70f90a3eacea18fed1fe52a6a57e57b389e656772f780851e.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilder provides operations to call the visibleView method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/visibleView()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function visibleView +// returns a WorkbookRangeViewable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeViewFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable), nil +} +// ToGetRequestInformation invoke function visibleView +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/c0fe57f36c18d8ea44e1dbcca32e77fdb462709e31b1fece7cbda4add35c9ced.go b/drives/c0fe57f36c18d8ea44e1dbcca32e77fdb462709e31b1fece7cbda4add35c9ced.go new file mode 100644 index 00000000000..e27cea4ae4a --- /dev/null +++ b/drives/c0fe57f36c18d8ea44e1dbcca32e77fdb462709e31b1fece7cbda4add35c9ced.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilder provides operations to call the column method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/column(column={column})", pathParameters), + } + if column != nil { + m.BaseRequestBuilder.PathParameters["column"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*column), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function column +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function column +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/c169a78c3108afee484e9d2fafda0d847c0432075c22cab8cd4b775b7034c649.go b/drives/c169a78c3108afee484e9d2fafda0d847c0432075c22cab8cd4b775b7034c649.go new file mode 100644 index 00000000000..bd03c9eac85 --- /dev/null +++ b/drives/c169a78c3108afee484e9d2fafda0d847c0432075c22cab8cd4b775b7034c649.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder provides operations to call the offsetRange method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters), + } + if columnOffset != nil { + m.BaseRequestBuilder.PathParameters["columnOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*columnOffset), 10) + } + if rowOffset != nil { + m.BaseRequestBuilder.PathParameters["rowOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*rowOffset), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function offsetRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function offsetRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/c3176e2d1c9da5a6264a596039c10602a8fc0e42efd3e5e2e359e64b104b3339.go b/drives/c3176e2d1c9da5a6264a596039c10602a8fc0e42efd3e5e2e359e64b104b3339.go new file mode 100644 index 00000000000..cd6fcbbfb2c --- /dev/null +++ b/drives/c3176e2d1c9da5a6264a596039c10602a8fc0e42efd3e5e2e359e64b104b3339.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilder provides operations to call the entireColumn method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/entireColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/c3b658db4c167103c5ab95e39e9fcee4a26267f3a03db81838106b2cf0e93084.go b/drives/c3b658db4c167103c5ab95e39e9fcee4a26267f3a03db81838106b2cf0e93084.go new file mode 100644 index 00000000000..acc828845a0 --- /dev/null +++ b/drives/c3b658db4c167103c5ab95e39e9fcee4a26267f3a03db81838106b2cf0e93084.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnBoundingRectWithAnotherRangeRequestBuilder provides operations to call the boundingRect method. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnBoundingRectWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnBoundingRectWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnBoundingRectWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnBoundingRectWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnBoundingRectWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/boundingRect(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnBoundingRectWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnBoundingRectWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnBoundingRectWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnBoundingRectWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function boundingRect +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnBoundingRectWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function boundingRect +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnBoundingRectWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnBoundingRectWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnBoundingRectWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/c423614498413c4caa101c0b0fb641809d58cae801e29671fe416a1534c2c06c.go b/drives/c423614498413c4caa101c0b0fb641809d58cae801e29671fe416a1534c2c06c.go new file mode 100644 index 00000000000..98860170822 --- /dev/null +++ b/drives/c423614498413c4caa101c0b0fb641809d58cae801e29671fe416a1534c2c06c.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilder provides operations to call the lastCell method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/lastCell()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastCell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastCell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/c69c9ae12a1cdd2d988d2787f37408eaf5871d4379a3679d87ae10cf89da4c28.go b/drives/c69c9ae12a1cdd2d988d2787f37408eaf5871d4379a3679d87ae10cf89da4c28.go new file mode 100644 index 00000000000..17a96bba647 --- /dev/null +++ b/drives/c69c9ae12a1cdd2d988d2787f37408eaf5871d4379a3679d87ae10cf89da4c28.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder provides operations to call the offsetRange method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters), + } + if columnOffset != nil { + m.BaseRequestBuilder.PathParameters["columnOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*columnOffset), 10) + } + if rowOffset != nil { + m.BaseRequestBuilder.PathParameters["rowOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*rowOffset), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function offsetRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function offsetRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/c6dfd0f59057eebaa589df5a7bf1616745d31b0bc44e4e5c61274af96d2fe861.go b/drives/c6dfd0f59057eebaa589df5a7bf1616745d31b0bc44e4e5c61274af96d2fe861.go new file mode 100644 index 00000000000..870862e5353 --- /dev/null +++ b/drives/c6dfd0f59057eebaa589df5a7bf1616745d31b0bc44e4e5c61274af96d2fe861.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeWithValuesOnlyRequestBuilder provides operations to call the usedRange method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeWithValuesOnlyRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeWithValuesOnlyRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeWithValuesOnlyRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeWithValuesOnlyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, valuesOnly *bool)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeWithValuesOnlyRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeWithValuesOnlyRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/usedRange(valuesOnly={valuesOnly})", pathParameters), + } + if valuesOnly != nil { + m.BaseRequestBuilder.PathParameters["valuesOnly"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatBool(*valuesOnly) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeWithValuesOnlyRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeWithValuesOnlyRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeWithValuesOnlyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeWithValuesOnlyRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeWithValuesOnlyRequestBuilderInternal(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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeWithValuesOnlyRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function usedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeWithValuesOnlyRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeWithValuesOnlyRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeWithValuesOnlyRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeWithValuesOnlyRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeWithValuesOnlyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/c8d80e6f0745cdf4842b9574354d4ea057ced93c3a6ed81cf6dd3451b01899b3.go b/drives/c8d80e6f0745cdf4842b9574354d4ea057ced93c3a6ed81cf6dd3451b01899b3.go new file mode 100644 index 00000000000..31dff4fccd8 --- /dev/null +++ b/drives/c8d80e6f0745cdf4842b9574354d4ea057ced93c3a6ed81cf6dd3451b01899b3.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeClearRequestBuilder provides operations to call the clear method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeClearRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeClearRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeClearRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeClearRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeClearRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeClearRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeClearRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/clear", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeClearRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeClearRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeClearRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeClearRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action clear +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeClearRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeClearRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action clear +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeClearRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeClearRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeClearRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeClearRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeClearRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/c8fbaf244b5f87be2b4dbe7ccd4b02c3c9bebadfe3960da517aca2eeff17b78b.go b/drives/c8fbaf244b5f87be2b4dbe7ccd4b02c3c9bebadfe3960da517aca2eeff17b78b.go new file mode 100644 index 00000000000..3762c4142f3 --- /dev/null +++ b/drives/c8fbaf244b5f87be2b4dbe7ccd4b02c3c9bebadfe3960da517aca2eeff17b78b.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/rowsAbove(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/c91a9b1e4e65584683ba53831eb7ffec07974b099918082e9c025b7f4967c0c9.go b/drives/c91a9b1e4e65584683ba53831eb7ffec07974b099918082e9c025b7f4967c0c9.go new file mode 100644 index 00000000000..f154853f47b --- /dev/null +++ b/drives/c91a9b1e4e65584683ba53831eb7ffec07974b099918082e9c025b7f4967c0c9.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeWithValuesOnlyRequestBuilder provides operations to call the usedRange method. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeWithValuesOnlyRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeWithValuesOnlyRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeWithValuesOnlyRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeWithValuesOnlyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, valuesOnly *bool)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeWithValuesOnlyRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeWithValuesOnlyRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/usedRange(valuesOnly={valuesOnly})", pathParameters), + } + if valuesOnly != nil { + m.BaseRequestBuilder.PathParameters["valuesOnly"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatBool(*valuesOnly) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeWithValuesOnlyRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeWithValuesOnlyRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeWithValuesOnlyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeWithValuesOnlyRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeWithValuesOnlyRequestBuilderInternal(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 *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeWithValuesOnlyRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function usedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeWithValuesOnlyRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeWithValuesOnlyRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeWithValuesOnlyRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeWithValuesOnlyRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeWithValuesOnlyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/c9e7adcca07875c0406d07f911232eae7d046c455d8bbd348ec5c872cf21f0da.go b/drives/c9e7adcca07875c0406d07f911232eae7d046c455d8bbd348ec5c872cf21f0da.go new file mode 100644 index 00000000000..3cc571d01f6 --- /dev/null +++ b/drives/c9e7adcca07875c0406d07f911232eae7d046c455d8bbd348ec5c872cf21f0da.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeDeletePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeDeletePostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeDeletePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeDeletePostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeDeletePostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeDeletePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeDeletePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeDeletePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeDeletePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeDeletePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeDeletePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeDeletePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeDeletePostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeDeletePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeDeletePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeDeletePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeDeletePostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeDeletePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/ca14599214c2fe5e8e92dc3200bc01a3dd22698250dc41f0d42c927b59afd5f4.go b/drives/ca14599214c2fe5e8e92dc3200bc01a3dd22698250dc41f0d42c927b59afd5f4.go new file mode 100644 index 00000000000..d684a974e0b --- /dev/null +++ b/drives/ca14599214c2fe5e8e92dc3200bc01a3dd22698250dc41f0d42c927b59afd5f4.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder provides operations to call the intersection method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/intersection(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function intersection +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function intersection +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/cae327c6d720ad8cb7d8464c04f7c185de82a8d798334cf2fda3f802e1bc3208.go b/drives/cae327c6d720ad8cb7d8464c04f7c185de82a8d798334cf2fda3f802e1bc3208.go new file mode 100644 index 00000000000..7c48e10671d --- /dev/null +++ b/drives/cae327c6d720ad8cb7d8464c04f7c185de82a8d798334cf2fda3f802e1bc3208.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/columnsAfter(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/cbbb79c1d849075026eb1122b81c73b28ba0d480c7f71491f110e547ffc98866.go b/drives/cbbb79c1d849075026eb1122b81c73b28ba0d480c7f71491f110e547ffc98866.go new file mode 100644 index 00000000000..6ceb883cf18 --- /dev/null +++ b/drives/cbbb79c1d849075026eb1122b81c73b28ba0d480c7f71491f110e547ffc98866.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeClearRequestBuilder provides operations to call the clear method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeClearRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeClearRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeClearRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeClearRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeClearRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeClearRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeClearRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/clear", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeClearRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeClearRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeClearRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeClearRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action clear +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeClearRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeClearRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action clear +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeClearRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeClearRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeClearRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeClearRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeClearRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/cbc0c95dff28fc001c8a711680014ae1bac050421115fa7b91bdabab4015fee7.go b/drives/cbc0c95dff28fc001c8a711680014ae1bac050421115fa7b91bdabab4015fee7.go index 7415032cbc1..6f2a74869cc 100644 --- a/drives/cbc0c95dff28fc001c8a711680014ae1bac050421115fa7b91bdabab4015fee7.go +++ b/drives/cbc0c95dff28fc001c8a711680014ae1bac050421115fa7b91bdabab4015fee7.go @@ -18,7 +18,7 @@ type ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithInde // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilderGetQueryParameters encapsulates the format properties chart point. Read-only. +// ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilderGetQueryParameters the format properties of the chart point. Read-only. type ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWith } return nil } -// Get encapsulates the format properties chart point. Read-only. +// Get the format properties of the 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 *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookChartPointFormatable, error) { @@ -121,7 +121,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWith requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation encapsulates the format properties chart point. Read-only. +// ToGetRequestInformation the format properties of the chart point. Read-only. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemAtWithIndexFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/cc2f8b2324d9da006bfddba1fa72f300ee6a160eff83ee42f4b2f02cfd59d7d7.go b/drives/cc2f8b2324d9da006bfddba1fa72f300ee6a160eff83ee42f4b2f02cfd59d7d7.go new file mode 100644 index 00000000000..86606f1aace --- /dev/null +++ b/drives/cc2f8b2324d9da006bfddba1fa72f300ee6a160eff83ee42f4b2f02cfd59d7d7.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder provides operations to call the intersection method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/intersection(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function intersection +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function intersection +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/ce239b23d5f939c1751b92116d9b76c6a8e6bd26a95b3d1add2dce8d6ff4b2ec.go b/drives/ce239b23d5f939c1751b92116d9b76c6a8e6bd26a95b3d1add2dce8d6ff4b2ec.go new file mode 100644 index 00000000000..344eac29459 --- /dev/null +++ b/drives/ce239b23d5f939c1751b92116d9b76c6a8e6bd26a95b3d1add2dce8d6ff4b2ec.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeInsertPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeInsertPostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeInsertPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeInsertPostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeInsertPostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeInsertPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeInsertPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeInsertPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeInsertPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeInsertPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeInsertPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeInsertPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeInsertPostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeInsertPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeInsertPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeInsertPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeInsertPostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeInsertPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/cf63142d2a3d0b1ab94a1190910631efbcaa216d519ad7642c2dc5dcdf3d9913.go b/drives/cf63142d2a3d0b1ab94a1190910631efbcaa216d519ad7642c2dc5dcdf3d9913.go new file mode 100644 index 00000000000..015947d96d1 --- /dev/null +++ b/drives/cf63142d2a3d0b1ab94a1190910631efbcaa216d519ad7642c2dc5dcdf3d9913.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterWithCountRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/columnsAfter(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/d0cc2aee5780524c310eb4c1e0b49ae6c2c9d0eb60bdafd930052ad2b59a2996.go b/drives/d0cc2aee5780524c310eb4c1e0b49ae6c2c9d0eb60bdafd930052ad2b59a2996.go new file mode 100644 index 00000000000..0385038d90a --- /dev/null +++ b/drives/d0cc2aee5780524c310eb4c1e0b49ae6c2c9d0eb60bdafd930052ad2b59a2996.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder provides operations to call the offsetRange method. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters), + } + if columnOffset != nil { + m.BaseRequestBuilder.PathParameters["columnOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*columnOffset), 10) + } + if rowOffset != nil { + m.BaseRequestBuilder.PathParameters["rowOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*rowOffset), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function offsetRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function offsetRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/d0d17f326d1d0aa2d66c01a478598121243f28f1b25a186455bce852b76930fc.go b/drives/d0d17f326d1d0aa2d66c01a478598121243f28f1b25a186455bce852b76930fc.go new file mode 100644 index 00000000000..aac356065dd --- /dev/null +++ b/drives/d0d17f326d1d0aa2d66c01a478598121243f28f1b25a186455bce852b76930fc.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/rowsBelow(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/d360c8c6b44de48a8dd4545e6e6cff58614c8eafa1b71001ead130af29c271e4.go b/drives/d360c8c6b44de48a8dd4545e6e6cff58614c8eafa1b71001ead130af29c271e4.go new file mode 100644 index 00000000000..0e7bdd91a95 --- /dev/null +++ b/drives/d360c8c6b44de48a8dd4545e6e6cff58614c8eafa1b71001ead130af29c271e4.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder provides operations to call the offsetRange method. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters), + } + if columnOffset != nil { + m.BaseRequestBuilder.PathParameters["columnOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*columnOffset), 10) + } + if rowOffset != nil { + m.BaseRequestBuilder.PathParameters["rowOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*rowOffset), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function offsetRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function offsetRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/d3915e74efcd672347e5f9ef19a3c4c3362784016a4ca366beb970bb18f36f01.go b/drives/d3915e74efcd672347e5f9ef19a3c4c3362784016a4ca366beb970bb18f36f01.go new file mode 100644 index 00000000000..0bc911053fd --- /dev/null +++ b/drives/d3915e74efcd672347e5f9ef19a3c4c3362784016a4ca366beb970bb18f36f01.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeFormatRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeFormatRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeFormatRequestBuilderGetQueryParameters returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeFormatRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeFormatRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeFormatRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeFormatRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeFormatRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeFormatRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeFormatRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/format{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeFormatRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeFormatRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeFormatRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property format for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeFormatRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeFormatRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// Patch update the navigation property format in drives +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeFormatRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeFormatRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// ToDeleteRequestInformation delete navigation property format for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeFormatRequestBuilderDeleteRequestConfiguration)(*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 format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeFormatRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeFormatRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeFormatRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/d4b48b8a2241d0185e7de04cee09235742ecfc7764189f8e745b452669e91958.go b/drives/d4b48b8a2241d0185e7de04cee09235742ecfc7764189f8e745b452669e91958.go new file mode 100644 index 00000000000..1113ef035c8 --- /dev/null +++ b/drives/d4b48b8a2241d0185e7de04cee09235742ecfc7764189f8e745b452669e91958.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeSortRequestBuilder provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeSortRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeSortRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeSortRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeSortRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeSortRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeSortRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeSortRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeSortRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeSortRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeSortRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeSortRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeSortRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeSortRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeSortRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/sort{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeSortRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeSortRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeSortRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeSortRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property sort for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeSortRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeSortRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeSortRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeSortRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// Patch update the navigation property sort in drives +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeSortRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeSortRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// ToDeleteRequestInformation delete navigation property sort for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeSortRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeSortRequestBuilderDeleteRequestConfiguration)(*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 worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeSortRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeSortRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeSortRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeSortRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeSortRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeSortRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeSortRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/d4c733c6b98ff0130df4d67fd288df047c5827cd1be6561799fdff648ecfedd7.go b/drives/d4c733c6b98ff0130df4d67fd288df047c5827cd1be6561799fdff648ecfedd7.go new file mode 100644 index 00000000000..a8c81974109 --- /dev/null +++ b/drives/d4c733c6b98ff0130df4d67fd288df047c5827cd1be6561799fdff648ecfedd7.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/rowsBelow(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/d656afecdd0c7b9254cdc9efa7b3569159e128638dcf251b0a65cfecd5b19a69.go b/drives/d656afecdd0c7b9254cdc9efa7b3569159e128638dcf251b0a65cfecd5b19a69.go new file mode 100644 index 00000000000..a658b62b92a --- /dev/null +++ b/drives/d656afecdd0c7b9254cdc9efa7b3569159e128638dcf251b0a65cfecd5b19a69.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMergeRequestBuilder provides operations to call the merge method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMergeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/merge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMergeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action merge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMergeRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action merge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMergeRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/d767b4bc8e512dc82129947a944077d1cf09063067d558edea4e912f20c46b26.go b/drives/d767b4bc8e512dc82129947a944077d1cf09063067d558edea4e912f20c46b26.go new file mode 100644 index 00000000000..0ac4a5c6569 --- /dev/null +++ b/drives/d767b4bc8e512dc82129947a944077d1cf09063067d558edea4e912f20c46b26.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder provides operations to call the offsetRange method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters), + } + if columnOffset != nil { + m.BaseRequestBuilder.PathParameters["columnOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*columnOffset), 10) + } + if rowOffset != nil { + m.BaseRequestBuilder.PathParameters["rowOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*rowOffset), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function offsetRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function offsetRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/d7a63a5b490dc7be6344c06e4b7823eac21adab7c56952213399502914ab0692.go b/drives/d7a63a5b490dc7be6344c06e4b7823eac21adab7c56952213399502914ab0692.go new file mode 100644 index 00000000000..379fd1562d9 --- /dev/null +++ b/drives/d7a63a5b490dc7be6344c06e4b7823eac21adab7c56952213399502914ab0692.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressIntersectionWithAnotherRangeRequestBuilder provides operations to call the intersection method. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressIntersectionWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressIntersectionWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressIntersectionWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressIntersectionWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeWithAddressIntersectionWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/intersection(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressIntersectionWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressIntersectionWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressIntersectionWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressIntersectionWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function intersection +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressIntersectionWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function intersection +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressIntersectionWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressIntersectionWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressIntersectionWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/d89cccf85d2d77befa30732fb4ea8e8d7e5897f8048d21c4b5bcb52dc8297a82.go b/drives/d89cccf85d2d77befa30732fb4ea8e8d7e5897f8048d21c4b5bcb52dc8297a82.go new file mode 100644 index 00000000000..22d5d204aef --- /dev/null +++ b/drives/d89cccf85d2d77befa30732fb4ea8e8d7e5897f8048d21c4b5bcb52dc8297a82.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeInsertPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeInsertPostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeInsertPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeInsertPostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeInsertPostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeInsertPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeInsertPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeInsertPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeInsertPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeInsertPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeInsertPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeInsertPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeInsertPostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeInsertPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeInsertPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeInsertPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeInsertPostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeInsertPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/d90076bf9183ed10b95797ab55be668a5f8ac79c420290ccbf3f454593241552.go b/drives/d90076bf9183ed10b95797ab55be668a5f8ac79c420290ccbf3f454593241552.go new file mode 100644 index 00000000000..263389b61c2 --- /dev/null +++ b/drives/d90076bf9183ed10b95797ab55be668a5f8ac79c420290ccbf3f454593241552.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder provides operations to call the usedRange method. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, valuesOnly *bool)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/usedRange(valuesOnly={valuesOnly})", pathParameters), + } + if valuesOnly != nil { + m.BaseRequestBuilder.PathParameters["valuesOnly"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatBool(*valuesOnly) + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilderInternal(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 *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function usedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/d9df9037d5e53270f58c04f89f762294862abc58b201a7d3605c2b1f5739bd72.go b/drives/d9df9037d5e53270f58c04f89f762294862abc58b201a7d3605c2b1f5739bd72.go new file mode 100644 index 00000000000..b399759772c --- /dev/null +++ b/drives/d9df9037d5e53270f58c04f89f762294862abc58b201a7d3605c2b1f5739bd72.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/rowsAbove()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/daf32640d452862e5911b4a7ce8892e8d9904dfe7ae3b2bac0f6c6208562c2c2.go b/drives/daf32640d452862e5911b4a7ce8892e8d9904dfe7ae3b2bac0f6c6208562c2c2.go new file mode 100644 index 00000000000..a6f66d023e2 --- /dev/null +++ b/drives/daf32640d452862e5911b4a7ce8892e8d9904dfe7ae3b2bac0f6c6208562c2c2.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeWithCountRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/columnsBefore(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/db131ce6189f7cee23fcafb66c9e040a2d89dff7334b27bed85408a1f68ccd11.go b/drives/db131ce6189f7cee23fcafb66c9e040a2d89dff7334b27bed85408a1f68ccd11.go new file mode 100644 index 00000000000..fe4cbc528ed --- /dev/null +++ b/drives/db131ce6189f7cee23fcafb66c9e040a2d89dff7334b27bed85408a1f68ccd11.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeWithValuesOnlyRequestBuilder provides operations to call the usedRange method. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeWithValuesOnlyRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeWithValuesOnlyRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeWithValuesOnlyRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeWithValuesOnlyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, valuesOnly *bool)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeWithValuesOnlyRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeWithValuesOnlyRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/usedRange(valuesOnly={valuesOnly})", pathParameters), + } + if valuesOnly != nil { + m.BaseRequestBuilder.PathParameters["valuesOnly"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatBool(*valuesOnly) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeWithValuesOnlyRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeWithValuesOnlyRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeWithValuesOnlyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeWithValuesOnlyRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeWithValuesOnlyRequestBuilderInternal(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 *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeWithValuesOnlyRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function usedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeWithValuesOnlyRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeWithValuesOnlyRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeWithValuesOnlyRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeWithValuesOnlyRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeWithValuesOnlyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/dbe0c8442910edc22f9ba70a0619d47f013ce8c5028686943385ed9d45ce446e.go b/drives/dbe0c8442910edc22f9ba70a0619d47f013ce8c5028686943385ed9d45ce446e.go new file mode 100644 index 00000000000..8531e5eb784 --- /dev/null +++ b/drives/dbe0c8442910edc22f9ba70a0619d47f013ce8c5028686943385ed9d45ce446e.go @@ -0,0 +1,64 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilder provides operations to call the unmerge method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/unmerge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unmerge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unmerge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/dbe1700e4a316bc9426df016a5d1885ffec096821bfe95b0f94ab2b25cfa7c5b.go b/drives/dbe1700e4a316bc9426df016a5d1885ffec096821bfe95b0f94ab2b25cfa7c5b.go new file mode 100644 index 00000000000..908ef916036 --- /dev/null +++ b/drives/dbe1700e4a316bc9426df016a5d1885ffec096821bfe95b0f94ab2b25cfa7c5b.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder provides operations to call the offsetRange method. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters), + } + if columnOffset != nil { + m.BaseRequestBuilder.PathParameters["columnOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*columnOffset), 10) + } + if rowOffset != nil { + m.BaseRequestBuilder.PathParameters["rowOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*rowOffset), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function offsetRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function offsetRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/dc7dfc681a8d6ab515131efd11a466fda38f2ecab20c96ab4857104844e2dd59.go b/drives/dc7dfc681a8d6ab515131efd11a466fda38f2ecab20c96ab4857104844e2dd59.go new file mode 100644 index 00000000000..b1f37e0a4d2 --- /dev/null +++ b/drives/dc7dfc681a8d6ab515131efd11a466fda38f2ecab20c96ab4857104844e2dd59.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder provides operations to call the usedRange method. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, valuesOnly *bool)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/usedRange(valuesOnly={valuesOnly})", pathParameters), + } + if valuesOnly != nil { + m.BaseRequestBuilder.PathParameters["valuesOnly"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatBool(*valuesOnly) + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilderInternal(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 *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function usedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/dcd3f2c91e5bec10ef1ac9d6a9910885dde33a5937a054581f99a2abea9eda82.go b/drives/dcd3f2c91e5bec10ef1ac9d6a9910885dde33a5937a054581f99a2abea9eda82.go new file mode 100644 index 00000000000..4a29def6b93 --- /dev/null +++ b/drives/dcd3f2c91e5bec10ef1ac9d6a9910885dde33a5937a054581f99a2abea9eda82.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder provides operations to call the boundingRect method. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/boundingRect(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function boundingRect +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function boundingRect +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/de0f6569189cce87dd782fb05df52c1ef2a6c395431c8bd0cf58eb89e7129bfe.go b/drives/de0f6569189cce87dd782fb05df52c1ef2a6c395431c8bd0cf58eb89e7129bfe.go new file mode 100644 index 00000000000..eb13d55c9cd --- /dev/null +++ b/drives/de0f6569189cce87dd782fb05df52c1ef2a6c395431c8bd0cf58eb89e7129bfe.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilder provides operations to call the row method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, row *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/row(row={row})", pathParameters), + } + if row != nil { + m.BaseRequestBuilder.PathParameters["row"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*row), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function row +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function row +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/e085af01d84789458b49aa7270711c1db1ad559e5183d40b040c60474571b8ef.go b/drives/e085af01d84789458b49aa7270711c1db1ad559e5183d40b040c60474571b8ef.go new file mode 100644 index 00000000000..d11251ce258 --- /dev/null +++ b/drives/e085af01d84789458b49aa7270711c1db1ad559e5183d40b040c60474571b8ef.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/columnsBefore(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/e10bc21c93cc1595aec7f5b3d093758be65f3b603933340037e2f2caa7ebf230.go b/drives/e10bc21c93cc1595aec7f5b3d093758be65f3b603933340037e2f2caa7ebf230.go new file mode 100644 index 00000000000..77354829f41 --- /dev/null +++ b/drives/e10bc21c93cc1595aec7f5b3d093758be65f3b603933340037e2f2caa7ebf230.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilder provides operations to call the cell method. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32, row *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/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 +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function cell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function cell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/e32e4286196b1e8affd19cb1c9e1dab7d4770a39059f7c01181c7abdd1e29f60.go b/drives/e32e4286196b1e8affd19cb1c9e1dab7d4770a39059f7c01181c7abdd1e29f60.go new file mode 100644 index 00000000000..891694cf60f --- /dev/null +++ b/drives/e32e4286196b1e8affd19cb1c9e1dab7d4770a39059f7c01181c7abdd1e29f60.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder provides operations to call the resizedRange method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/resizedRange(deltaRows={deltaRows},deltaColumns={deltaColumns})", pathParameters), + } + if deltaColumns != nil { + m.BaseRequestBuilder.PathParameters["deltaColumns"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaColumns), 10) + } + if deltaRows != nil { + m.BaseRequestBuilder.PathParameters["deltaRows"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*deltaRows), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function resizedRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function resizedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/e484812d727702ba70fa322e4d101103c54bb30f9282b3aa8480f745af2ba483.go b/drives/e484812d727702ba70fa322e4d101103c54bb30f9282b3aa8480f745af2ba483.go new file mode 100644 index 00000000000..86a46137ece --- /dev/null +++ b/drives/e484812d727702ba70fa322e4d101103c54bb30f9282b3aa8480f745af2ba483.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilder provides operations to call the column method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/column(column={column})", pathParameters), + } + if column != nil { + m.BaseRequestBuilder.PathParameters["column"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*column), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function column +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function column +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/e4b6c1bc3fca772c8c32495310e7b541a48d9983e9af73641648324b8dd9949b.go b/drives/e4b6c1bc3fca772c8c32495310e7b541a48d9983e9af73641648324b8dd9949b.go new file mode 100644 index 00000000000..15b5adb0a00 --- /dev/null +++ b/drives/e4b6c1bc3fca772c8c32495310e7b541a48d9983e9af73641648324b8dd9949b.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeDeleteRequestBuilder provides operations to call the delete method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeDeleteRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeDeleteRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/delete", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeDeleteRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action delete +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeDeleteRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action delete +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeDeleteRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/e612e40df2a50e1cdf38a367cbeb67448e8cdfeab3cd7f41cfe237dfae4342d4.go b/drives/e612e40df2a50e1cdf38a367cbeb67448e8cdfeab3cd7f41cfe237dfae4342d4.go new file mode 100644 index 00000000000..badd399dd31 --- /dev/null +++ b/drives/e612e40df2a50e1cdf38a367cbeb67448e8cdfeab3cd7f41cfe237dfae4342d4.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/rowsBelow(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/e8a7c0620cb185f4f37f53032823a2598f50b1173984b64330068173a52fa3ba.go b/drives/e8a7c0620cb185f4f37f53032823a2598f50b1173984b64330068173a52fa3ba.go new file mode 100644 index 00000000000..cc4db54acfc --- /dev/null +++ b/drives/e8a7c0620cb185f4f37f53032823a2598f50b1173984b64330068173a52fa3ba.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilder provides operations to call the cell method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32, row *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/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 +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function cell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function cell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/e9abbf1b6a5694a11f4e99781c17ec38d87f979849fdf968c0aff062bbb76b45.go b/drives/e9abbf1b6a5694a11f4e99781c17ec38d87f979849fdf968c0aff062bbb76b45.go new file mode 100644 index 00000000000..a12ea129b21 --- /dev/null +++ b/drives/e9abbf1b6a5694a11f4e99781c17ec38d87f979849fdf968c0aff062bbb76b45.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder provides operations to call the offsetRange method. +type ItemItemsItemWorkbookTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters), + } + if columnOffset != nil { + m.BaseRequestBuilder.PathParameters["columnOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*columnOffset), 10) + } + if rowOffset != nil { + m.BaseRequestBuilder.PathParameters["rowOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*rowOffset), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function offsetRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function offsetRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/ec5fa1d824829501a1a5b8461a3f02fe59dcee6bf4ea0386bfb8f60340fa5692.go b/drives/ec5fa1d824829501a1a5b8461a3f02fe59dcee6bf4ea0386bfb8f60340fa5692.go new file mode 100644 index 00000000000..8554a49aab2 --- /dev/null +++ b/drives/ec5fa1d824829501a1a5b8461a3f02fe59dcee6bf4ea0386bfb8f60340fa5692.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/columnsBefore()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/ed8e3e399e750098fd69c6021ce1b062aaa7c25d2988e4722515703e41bedb6f.go b/drives/ed8e3e399e750098fd69c6021ce1b062aaa7c25d2988e4722515703e41bedb6f.go new file mode 100644 index 00000000000..e20dc3ed76e --- /dev/null +++ b/drives/ed8e3e399e750098fd69c6021ce1b062aaa7c25d2988e4722515703e41bedb6f.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeFormatRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeFormatRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeFormatRequestBuilderGetQueryParameters returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeFormatRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeFormatRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeFormatRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeFormatRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeFormatRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeFormatRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeFormatRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/format{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeFormatRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeFormatRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeFormatRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property format for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeFormatRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeFormatRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// Patch update the navigation property format in drives +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeFormatRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeFormatRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// ToDeleteRequestInformation delete navigation property format for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeFormatRequestBuilderDeleteRequestConfiguration)(*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 format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeFormatRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeFormatRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeFormatRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/eddaa112bb73c0b5120e068ab8bb92617c50e037ba78374dc8ffff48bc0c928d.go b/drives/eddaa112bb73c0b5120e068ab8bb92617c50e037ba78374dc8ffff48bc0c928d.go new file mode 100644 index 00000000000..ddc996dfc04 --- /dev/null +++ b/drives/eddaa112bb73c0b5120e068ab8bb92617c50e037ba78374dc8ffff48bc0c928d.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder provides operations to call the usedRange method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, valuesOnly *bool)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/usedRange(valuesOnly={valuesOnly})", pathParameters), + } + if valuesOnly != nil { + m.BaseRequestBuilder.PathParameters["valuesOnly"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatBool(*valuesOnly) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilderInternal(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 *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function usedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/f18253cfb8793fa0ccb1111b9f9b0eda3ffc26f896e31c77aa4b04da6005fd96.go b/drives/f18253cfb8793fa0ccb1111b9f9b0eda3ffc26f896e31c77aa4b04da6005fd96.go new file mode 100644 index 00000000000..e355e6c0357 --- /dev/null +++ b/drives/f18253cfb8793fa0ccb1111b9f9b0eda3ffc26f896e31c77aa4b04da6005fd96.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/rowsBelow(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/f20d11e30c5e75e1bfa58e46be59bb50e52544dda27a5aaf90b707466475cb81.go b/drives/f20d11e30c5e75e1bfa58e46be59bb50e52544dda27a5aaf90b707466475cb81.go new file mode 100644 index 00000000000..59d4384ed51 --- /dev/null +++ b/drives/f20d11e30c5e75e1bfa58e46be59bb50e52544dda27a5aaf90b707466475cb81.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder provides operations to call the offsetRange method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters), + } + if columnOffset != nil { + m.BaseRequestBuilder.PathParameters["columnOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*columnOffset), 10) + } + if rowOffset != nil { + m.BaseRequestBuilder.PathParameters["rowOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*rowOffset), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function offsetRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function offsetRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/f25fac71264fc64526a1c51c90412a976fa43d935d55906ebea72ce8d6ba5547.go b/drives/f25fac71264fc64526a1c51c90412a976fa43d935d55906ebea72ce8d6ba5547.go new file mode 100644 index 00000000000..c71025acb33 --- /dev/null +++ b/drives/f25fac71264fc64526a1c51c90412a976fa43d935d55906ebea72ce8d6ba5547.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeBoundingRectWithAnotherRangeRequestBuilder provides operations to call the boundingRect method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeBoundingRectWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeBoundingRectWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeBoundingRectWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeBoundingRectWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRangeBoundingRectWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/boundingRect(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeBoundingRectWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeBoundingRectWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeBoundingRectWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeBoundingRectWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function boundingRect +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeBoundingRectWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function boundingRect +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeBoundingRectWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeBoundingRectWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeBoundingRectWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/f2ad6af2cee5345f201f5c72667677c5265fcb860cab31f08a0e9f781010cc92.go b/drives/f2ad6af2cee5345f201f5c72667677c5265fcb860cab31f08a0e9f781010cc92.go new file mode 100644 index 00000000000..0f9c7cf2bbe --- /dev/null +++ b/drives/f2ad6af2cee5345f201f5c72667677c5265fcb860cab31f08a0e9f781010cc92.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder provides operations to call the boundingRect method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/boundingRect(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function boundingRect +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function boundingRect +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/f4aeda8377c61a8a4cc33b130d3befa1ca902a2b3eaf051d2fa6f4317861d0ac.go b/drives/f4aeda8377c61a8a4cc33b130d3befa1ca902a2b3eaf051d2fa6f4317861d0ac.go new file mode 100644 index 00000000000..f3766290507 --- /dev/null +++ b/drives/f4aeda8377c61a8a4cc33b130d3befa1ca902a2b3eaf051d2fa6f4317861d0ac.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/columnsAfter(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/f4babfca4b2fbff5313fe9f22f0e610e72e20f153a054e3a4e573647fd5e12d4.go b/drives/f4babfca4b2fbff5313fe9f22f0e610e72e20f153a054e3a4e573647fd5e12d4.go new file mode 100644 index 00000000000..cb54827578a --- /dev/null +++ b/drives/f4babfca4b2fbff5313fe9f22f0e610e72e20f153a054e3a4e573647fd5e12d4.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/rowsAbove(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/f4ea0d149e3eef4ec298766dc8000bae7765d9e8b47eda5c92606f36d90c4212.go b/drives/f4ea0d149e3eef4ec298766dc8000bae7765d9e8b47eda5c92606f36d90c4212.go new file mode 100644 index 00000000000..c7a50260f70 --- /dev/null +++ b/drives/f4ea0d149e3eef4ec298766dc8000bae7765d9e8b47eda5c92606f36d90c4212.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilder provides operations to call the lastColumn method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/lastColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/f5cf5eb035f7503235bbe4ff205259343a3ce1c14c724f5c5671335d869d1f13.go b/drives/f5cf5eb035f7503235bbe4ff205259343a3ce1c14c724f5c5671335d869d1f13.go new file mode 100644 index 00000000000..96fe09d6b70 --- /dev/null +++ b/drives/f5cf5eb035f7503235bbe4ff205259343a3ce1c14c724f5c5671335d869d1f13.go @@ -0,0 +1,64 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilder provides operations to call the unmerge method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/unmerge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unmerge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unmerge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/f8eb13cb941f5e168f35f447646c842218105a326b7118e2c9f60387db97a53b.go b/drives/f8eb13cb941f5e168f35f447646c842218105a326b7118e2c9f60387db97a53b.go new file mode 100644 index 00000000000..7283c7b7f51 --- /dev/null +++ b/drives/f8eb13cb941f5e168f35f447646c842218105a326b7118e2c9f60387db97a53b.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/columnsAfter(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/f9a3169265302e3392f820d6480e2a47685872411bea49e5120fbbdba07f2871.go b/drives/f9a3169265302e3392f820d6480e2a47685872411bea49e5120fbbdba07f2871.go index f3e9a2f00b7..ce71ffc0dc3 100644 --- a/drives/f9a3169265302e3392f820d6480e2a47685872411bea49e5120fbbdba07f2871.go +++ b/drives/f9a3169265302e3392f820d6480e2a47685872411bea49e5120fbbdba07f2871.go @@ -18,7 +18,7 @@ type ItemItemsItemWorkbookCommentsItemTaskCommentRepliesWorkbookCommentReplyItem // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemItemsItemWorkbookCommentsItemTaskCommentRepliesWorkbookCommentReplyItemRequestBuilderGetQueryParameters get replies from drives +// ItemItemsItemWorkbookCommentsItemTaskCommentRepliesWorkbookCommentReplyItemRequestBuilderGetQueryParameters the list of replies to the comment. Read-only. Nullable. type ItemItemsItemWorkbookCommentsItemTaskCommentRepliesWorkbookCommentReplyItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesWorkbookCommentReply } return nil } -// Get get replies from drives +// Get the list of replies to the comment. Read-only. Nullable. // returns a WorkbookCommentReplyable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesWorkbookCommentReplyItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesWorkbookCommentReplyItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentReplyable, error) { @@ -126,7 +126,7 @@ func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesWorkbookCommentReply requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get replies from drives +// ToGetRequestInformation the list of replies to the comment. Read-only. Nullable. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesWorkbookCommentReplyItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesWorkbookCommentReplyItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/fa070f659b3feb4613890903513e343747d05cd3230f8a4cc85fa3419b0c8ebb.go b/drives/fa070f659b3feb4613890903513e343747d05cd3230f8a4cc85fa3419b0c8ebb.go new file mode 100644 index 00000000000..de01e843750 --- /dev/null +++ b/drives/fa070f659b3feb4613890903513e343747d05cd3230f8a4cc85fa3419b0c8ebb.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder provides operations to call the offsetRange method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters), + } + if columnOffset != nil { + m.BaseRequestBuilder.PathParameters["columnOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*columnOffset), 10) + } + if rowOffset != nil { + m.BaseRequestBuilder.PathParameters["rowOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*rowOffset), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function offsetRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function offsetRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/fa5bb474185f4c671424068566e0f60e444470ff5c037f4f55d667bf5af0c50e.go b/drives/fa5bb474185f4c671424068566e0f60e444470ff5c037f4f55d667bf5af0c50e.go new file mode 100644 index 00000000000..2588efc6114 --- /dev/null +++ b/drives/fa5bb474185f4c671424068566e0f60e444470ff5c037f4f55d667bf5af0c50e.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/columnsBefore(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/fc3da78b849408b02ad24dc6feefd3a01dc8443300f6137455061847b28a6160.go b/drives/fc3da78b849408b02ad24dc6feefd3a01dc8443300f6137455061847b28a6160.go new file mode 100644 index 00000000000..a95f9bf2556 --- /dev/null +++ b/drives/fc3da78b849408b02ad24dc6feefd3a01dc8443300f6137455061847b28a6160.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder provides operations to call the offsetRange method. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeWithAddressOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/offsetRange(rowOffset={rowOffset},columnOffset={columnOffset})", pathParameters), + } + if columnOffset != nil { + m.BaseRequestBuilder.PathParameters["columnOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*columnOffset), 10) + } + if rowOffset != nil { + m.BaseRequestBuilder.PathParameters["rowOffset"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*rowOffset), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function offsetRange +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function offsetRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/fff6057223e625c02b8106ae56c23147c6978715a342c8a4bb63b8fa867276c3.go b/drives/fff6057223e625c02b8106ae56c23147c6978715a342c8a4bb63b8fa867276c3.go new file mode 100644 index 00000000000..2bc270e9a33 --- /dev/null +++ b/drives/fff6057223e625c02b8106ae56c23147c6978715a342c8a4bb63b8fa867276c3.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeWithCountRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/columnsBefore(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_created_by_user_mailbox_settings_request_builder.go b/drives/item_created_by_user_mailbox_settings_request_builder.go index afe4250743f..a9aa3f2d57d 100644 --- a/drives/item_created_by_user_mailbox_settings_request_builder.go +++ b/drives/item_created_by_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewItemCreatedByUserMailboxSettingsRequestBuilder(rawUrl string, requestAda return NewItemCreatedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCreatedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *ItemCreatedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCreatedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *ItemCreatedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCreatedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *ItemCreatedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCreatedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemCreatedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformati return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCreatedByUserMailboxSettingsRequestBuilder when successful func (m *ItemCreatedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemCreatedByUserMailboxSettingsRequestBuilder) { return NewItemCreatedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/drives/item_created_by_user_request_builder.go b/drives/item_created_by_user_request_builder.go index 0da8b92e14b..887c2178e26 100644 --- a/drives/item_created_by_user_request_builder.go +++ b/drives/item_created_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemCreatedByUserRequestBuilder(rawUrl string, requestAdapter i2ae4187f7 return NewItemCreatedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get createdByUser from drives +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCreatedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCreatedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *ItemCreatedByUserRequestBuilder) ServiceProvisioningErrors()(*ItemCreat return NewItemCreatedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get createdByUser from drives +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCreatedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCreatedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemCreatedByUserRequestBuilder) ToGetRequestInformation(ctx context.Co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCreatedByUserRequestBuilder when successful func (m *ItemCreatedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemCreatedByUserRequestBuilder) { return NewItemCreatedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/drives/item_created_by_user_service_provisioning_errors_count_request_builder.go b/drives/item_created_by_user_service_provisioning_errors_count_request_builder.go index d730e7b3819..304d75dd2fb 100644 --- a/drives/item_created_by_user_service_provisioning_errors_count_request_builder.go +++ b/drives/item_created_by_user_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl str return NewItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *ItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/drives/item_created_by_user_service_provisioning_errors_request_builder.go b/drives/item_created_by_user_service_provisioning_errors_request_builder.go index d6ccd23b71d..52e5f5595d7 100644 --- a/drives/item_created_by_user_service_provisioning_errors_request_builder.go +++ b/drives/item_created_by_user_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemCreatedByUserServiceProvisioningErrorsRequestBuilder) Count()(*Item return NewItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCreatedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemCreatedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCreatedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemCreatedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCreatedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *ItemCreatedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*ItemCreatedByUserServiceProvisioningErrorsRequestBuilder) { return NewItemCreatedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/drives/item_items_item_created_by_user_mailbox_settings_request_builder.go b/drives/item_items_item_created_by_user_mailbox_settings_request_builder.go index b73514187d5..cd4f523570c 100644 --- a/drives/item_items_item_created_by_user_mailbox_settings_request_builder.go +++ b/drives/item_items_item_created_by_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewItemItemsItemCreatedByUserMailboxSettingsRequestBuilder(rawUrl string, r return NewItemItemsItemCreatedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemItemsItemCreatedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *ItemItemsItemCreatedByUserMailboxSettingsRequestBuilder) Get(ctx contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemItemsItemCreatedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemItemsItemCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *ItemItemsItemCreatedByUserMailboxSettingsRequestBuilder) Patch(ctx cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemItemsItemCreatedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *ItemItemsItemCreatedByUserMailboxSettingsRequestBuilder) ToGetRequestIn return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemItemsItemCreatedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemItemsItemCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemItemsItemCreatedByUserMailboxSettingsRequestBuilder) ToPatchRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemItemsItemCreatedByUserMailboxSettingsRequestBuilder when successful func (m *ItemItemsItemCreatedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemCreatedByUserMailboxSettingsRequestBuilder) { return NewItemItemsItemCreatedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/drives/item_items_item_created_by_user_request_builder.go b/drives/item_items_item_created_by_user_request_builder.go index 4895dcb2930..3cec4326169 100644 --- a/drives/item_items_item_created_by_user_request_builder.go +++ b/drives/item_items_item_created_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemItemsItemCreatedByUserRequestBuilder(rawUrl string, requestAdapter i return NewItemItemsItemCreatedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get createdByUser from drives +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemItemsItemCreatedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemCreatedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *ItemItemsItemCreatedByUserRequestBuilder) ServiceProvisioningErrors()(* return NewItemItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get createdByUser from drives +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemItemsItemCreatedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemCreatedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemItemsItemCreatedByUserRequestBuilder) ToGetRequestInformation(ctx c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemItemsItemCreatedByUserRequestBuilder when successful func (m *ItemItemsItemCreatedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemCreatedByUserRequestBuilder) { return NewItemItemsItemCreatedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/drives/item_items_item_created_by_user_service_provisioning_errors_count_request_builder.go b/drives/item_items_item_created_by_user_service_provisioning_errors_count_request_builder.go index c7af0b91bd7..d109d5a6806 100644 --- a/drives/item_items_item_created_by_user_service_provisioning_errors_count_request_builder.go +++ b/drives/item_items_item_created_by_user_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder(r return NewItemItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *ItemItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewItemItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/drives/item_items_item_created_by_user_service_provisioning_errors_request_builder.go b/drives/item_items_item_created_by_user_service_provisioning_errors_request_builder.go index 30f44567a09..6a19ab32d5f 100644 --- a/drives/item_items_item_created_by_user_service_provisioning_errors_request_builder.go +++ b/drives/item_items_item_created_by_user_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) Coun return NewItemItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) Get( return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) ToGe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *ItemItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) { return NewItemItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/drives/item_items_item_last_modified_by_user_mailbox_settings_request_builder.go b/drives/item_items_item_last_modified_by_user_mailbox_settings_request_builder.go index b4fdbe559b3..10b233376b4 100644 --- a/drives/item_items_item_last_modified_by_user_mailbox_settings_request_builder.go +++ b/drives/item_items_item_last_modified_by_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilder(rawUrl stri return NewItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *ItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) Get(ctx c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *ItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) Patch(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *ItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) ToGetRequ return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) ToPatchRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilder when successful func (m *ItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) { return NewItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/drives/item_items_item_last_modified_by_user_request_builder.go b/drives/item_items_item_last_modified_by_user_request_builder.go index bf7e74a7130..800f4756bc9 100644 --- a/drives/item_items_item_last_modified_by_user_request_builder.go +++ b/drives/item_items_item_last_modified_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemItemsItemLastModifiedByUserRequestBuilder(rawUrl string, requestAdap return NewItemItemsItemLastModifiedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get lastModifiedByUser from drives +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemItemsItemLastModifiedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemLastModifiedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *ItemItemsItemLastModifiedByUserRequestBuilder) ServiceProvisioningError return NewItemItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get lastModifiedByUser from drives +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemItemsItemLastModifiedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemLastModifiedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemItemsItemLastModifiedByUserRequestBuilder) ToGetRequestInformation( return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemItemsItemLastModifiedByUserRequestBuilder when successful func (m *ItemItemsItemLastModifiedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemLastModifiedByUserRequestBuilder) { return NewItemItemsItemLastModifiedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/drives/item_items_item_last_modified_by_user_service_provisioning_errors_count_request_builder.go b/drives/item_items_item_last_modified_by_user_service_provisioning_errors_count_request_builder.go index c0dcfd2b0ba..aefce515806 100644 --- a/drives/item_items_item_last_modified_by_user_service_provisioning_errors_count_request_builder.go +++ b/drives/item_items_item_last_modified_by_user_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuil return NewItemItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBui return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBui return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *ItemItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewItemItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/drives/item_items_item_last_modified_by_user_service_provisioning_errors_request_builder.go b/drives/item_items_item_last_modified_by_user_service_provisioning_errors_request_builder.go index 49ef0676006..ee54d83e3a1 100644 --- a/drives/item_items_item_last_modified_by_user_service_provisioning_errors_request_builder.go +++ b/drives/item_items_item_last_modified_by_user_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) return NewItemItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *ItemItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) { return NewItemItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/drives/item_items_item_retention_label_request_builder.go b/drives/item_items_item_retention_label_request_builder.go index 8eff23647db..8381d121be7 100644 --- a/drives/item_items_item_retention_label_request_builder.go +++ b/drives/item_items_item_retention_label_request_builder.go @@ -93,12 +93,12 @@ func (m *ItemItemsItemRetentionLabelRequestBuilder) Get(ctx context.Context, req } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemRetentionLabelable), nil } -// Patch lock or unlock a retention label on a driveItem that classifies content as records. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. For more information about how you can lock and unlock retention labels, see Use record versioning to update records stored in SharePoint or OneDrive. +// Patch apply (set) a retention label on a driveItem (files and folders). Retention labels don't need to be published in a retention label policy to be applied using this method. When a retention label is applied to a folder, all the items in the folder are tagged with the same retention label. For information about conflict resolution for retention labels, see Will an existing label be overridden or removed. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. // returns a ItemRetentionLabelable 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-lockorunlockrecord?view=graph-rest-beta +// [Find more info here]: https://learn.microsoft.com/graph/api/driveitem-setretentionlabel?view=graph-rest-beta func (m *ItemItemsItemRetentionLabelRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemRetentionLabelable, requestConfiguration *ItemItemsItemRetentionLabelRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemRetentionLabelable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -141,7 +141,7 @@ func (m *ItemItemsItemRetentionLabelRequestBuilder) ToGetRequestInformation(ctx requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation lock or unlock a retention label on a driveItem that classifies content as records. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. For more information about how you can lock and unlock retention labels, see Use record versioning to update records stored in SharePoint or OneDrive. +// ToPatchRequestInformation apply (set) a retention label on a driveItem (files and folders). Retention labels don't need to be published in a retention label policy to be applied using this method. When a retention label is applied to a folder, all the items in the folder are tagged with the same retention label. For information about conflict resolution for retention labels, see Will an existing label be overridden or removed. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. // returns a *RequestInformation when successful func (m *ItemItemsItemRetentionLabelRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemRetentionLabelable, requestConfiguration *ItemItemsItemRetentionLabelRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_workbook_comments_item_replies_request_builder.go b/drives/item_items_item_workbook_comments_item_replies_request_builder.go index 7626e6e8ea4..e120b377ca2 100644 --- a/drives/item_items_item_workbook_comments_item_replies_request_builder.go +++ b/drives/item_items_item_workbook_comments_item_replies_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemItemsItemWorkbookCommentsItemRepliesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemItemsItemWorkbookCommentsItemRepliesRequestBuilderGetQueryParameters get replies from drives +// ItemItemsItemWorkbookCommentsItemRepliesRequestBuilderGetQueryParameters the list of replies to the comment. Read-only. Nullable. type ItemItemsItemWorkbookCommentsItemRepliesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewItemItemsItemWorkbookCommentsItemRepliesRequestBuilder(rawUrl string, re func (m *ItemItemsItemWorkbookCommentsItemRepliesRequestBuilder) Count()(*ItemItemsItemWorkbookCommentsItemRepliesCountRequestBuilder) { return NewItemItemsItemWorkbookCommentsItemRepliesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get replies from drives +// Get the list of replies to the comment. Read-only. Nullable. // returns a WorkbookCommentReplyCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemItemsItemWorkbookCommentsItemRepliesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentReplyCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *ItemItemsItemWorkbookCommentsItemRepliesRequestBuilder) Post(ctx contex } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentReplyable), nil } -// ToGetRequestInformation get replies from drives +// ToGetRequestInformation the list of replies to the comment. Read-only. Nullable. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookCommentsItemRepliesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_workbook_comments_item_replies_workbook_comment_reply_item_request_builder.go b/drives/item_items_item_workbook_comments_item_replies_workbook_comment_reply_item_request_builder.go index 70238114c73..e8d37eb2649 100644 --- a/drives/item_items_item_workbook_comments_item_replies_workbook_comment_reply_item_request_builder.go +++ b/drives/item_items_item_workbook_comments_item_replies_workbook_comment_reply_item_request_builder.go @@ -18,7 +18,7 @@ type ItemItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuil // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilderGetQueryParameters get replies from drives +// ItemItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilderGetQueryParameters the list of replies to the comment. Read-only. Nullable. type ItemItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *ItemItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequest } return nil } -// Get get replies from drives +// Get the list of replies to the comment. Read-only. Nullable. // returns a WorkbookCommentReplyable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentReplyable, error) { @@ -126,7 +126,7 @@ func (m *ItemItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequest requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get replies from drives +// ToGetRequestInformation the list of replies to the comment. Read-only. Nullable. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemRepliesWorkbookCommentReplyItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_workbook_comments_item_task_comment_replies_request_builder.go b/drives/item_items_item_workbook_comments_item_task_comment_replies_request_builder.go index 40c9798c00f..94919289c24 100644 --- a/drives/item_items_item_workbook_comments_item_task_comment_replies_request_builder.go +++ b/drives/item_items_item_workbook_comments_item_task_comment_replies_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemItemsItemWorkbookCommentsItemTaskCommentRepliesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemItemsItemWorkbookCommentsItemTaskCommentRepliesRequestBuilderGetQueryParameters get replies from drives +// ItemItemsItemWorkbookCommentsItemTaskCommentRepliesRequestBuilderGetQueryParameters the list of replies to the comment. Read-only. Nullable. type ItemItemsItemWorkbookCommentsItemTaskCommentRepliesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesRequestBuilder(rawUrl func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesRequestBuilder) Count()(*ItemItemsItemWorkbookCommentsItemTaskCommentRepliesCountRequestBuilder) { return NewItemItemsItemWorkbookCommentsItemTaskCommentRepliesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get replies from drives +// Get the list of replies to the comment. Read-only. Nullable. // returns a WorkbookCommentReplyCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentReplyCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesRequestBuilder) Post } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentReplyable), nil } -// ToGetRequestInformation get replies from drives +// ToGetRequestInformation the list of replies to the comment. Read-only. Nullable. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookCommentsItemTaskCommentRepliesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_workbook_names_item_range_bounding_rect_with_another_range_request_builder.go b/drives/item_items_item_workbook_names_item_range_bounding_rect_with_another_range_request_builder.go new file mode 100644 index 00000000000..6e0ad2060f2 --- /dev/null +++ b/drives/item_items_item_workbook_names_item_range_bounding_rect_with_another_range_request_builder.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookNamesItemRangeBoundingRectWithAnotherRangeRequestBuilder provides operations to call the boundingRect method. +type ItemItemsItemWorkbookNamesItemRangeBoundingRectWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookNamesItemRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookNamesItemRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookNamesItemRangeBoundingRectWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookNamesItemRangeBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeBoundingRectWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookNamesItemRangeBoundingRectWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookNamesItemRangeBoundingRectWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/boundingRect(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookNamesItemRangeBoundingRectWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookNamesItemRangeBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeBoundingRectWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeBoundingRectWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookNamesItemRangeBoundingRectWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function boundingRect +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookNamesItemRangeBoundingRectWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function boundingRect +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookNamesItemRangeBoundingRectWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookNamesItemRangeBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeBoundingRectWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookNamesItemRangeBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeBoundingRectWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_names_item_range_cell_with_row_with_column_request_builder.go b/drives/item_items_item_workbook_names_item_range_cell_with_row_with_column_request_builder.go new file mode 100644 index 00000000000..e59170e4a72 --- /dev/null +++ b/drives/item_items_item_workbook_names_item_range_cell_with_row_with_column_request_builder.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookNamesItemRangeCellWithRowWithColumnRequestBuilder provides operations to call the cell method. +type ItemItemsItemWorkbookNamesItemRangeCellWithRowWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookNamesItemRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookNamesItemRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookNamesItemRangeCellWithRowWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookNamesItemRangeCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeCellWithRowWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32, row *int32)(*ItemItemsItemWorkbookNamesItemRangeCellWithRowWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookNamesItemRangeCellWithRowWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/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 +} +// NewItemItemsItemWorkbookNamesItemRangeCellWithRowWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookNamesItemRangeCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeCellWithRowWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeCellWithRowWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookNamesItemRangeCellWithRowWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function cell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookNamesItemRangeCellWithRowWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function cell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookNamesItemRangeCellWithRowWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookNamesItemRangeCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeCellWithRowWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookNamesItemRangeCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeCellWithRowWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_names_item_range_clear_post_request_body.go b/drives/item_items_item_workbook_names_item_range_clear_post_request_body.go new file mode 100644 index 00000000000..09fe1fd7422 --- /dev/null +++ b/drives/item_items_item_workbook_names_item_range_clear_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookNamesItemRangeClearPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookNamesItemRangeClearPostRequestBody instantiates a new ItemItemsItemWorkbookNamesItemRangeClearPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeClearPostRequestBody()(*ItemItemsItemWorkbookNamesItemRangeClearPostRequestBody) { + m := &ItemItemsItemWorkbookNamesItemRangeClearPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookNamesItemRangeClearPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookNamesItemRangeClearPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookNamesItemRangeClearPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookNamesItemRangeClearPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetApplyTo gets the applyTo property value. The applyTo property +// returns a *string when successful +func (m *ItemItemsItemWorkbookNamesItemRangeClearPostRequestBody) GetApplyTo()(*string) { + val, err := m.GetBackingStore().Get("applyTo") + 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 *ItemItemsItemWorkbookNamesItemRangeClearPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookNamesItemRangeClearPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["applyTo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetApplyTo(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookNamesItemRangeClearPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("applyTo", m.GetApplyTo()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookNamesItemRangeClearPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetApplyTo sets the applyTo property value. The applyTo property +func (m *ItemItemsItemWorkbookNamesItemRangeClearPostRequestBody) SetApplyTo(value *string)() { + err := m.GetBackingStore().Set("applyTo", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookNamesItemRangeClearPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookNamesItemRangeClearPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetApplyTo()(*string) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetApplyTo(value *string)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/item_items_item_workbook_names_item_range_clear_request_builder.go b/drives/item_items_item_workbook_names_item_range_clear_request_builder.go new file mode 100644 index 00000000000..9a6740bda0f --- /dev/null +++ b/drives/item_items_item_workbook_names_item_range_clear_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookNamesItemRangeClearRequestBuilder provides operations to call the clear method. +type ItemItemsItemWorkbookNamesItemRangeClearRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookNamesItemRangeClearRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookNamesItemRangeClearRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookNamesItemRangeClearRequestBuilderInternal instantiates a new ItemItemsItemWorkbookNamesItemRangeClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeClearRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeClearRequestBuilder) { + m := &ItemItemsItemWorkbookNamesItemRangeClearRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/clear", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookNamesItemRangeClearRequestBuilder instantiates a new ItemItemsItemWorkbookNamesItemRangeClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeClearRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeClearRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookNamesItemRangeClearRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action clear +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookNamesItemRangeClearRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookNamesItemRangeClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeClearRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action clear +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookNamesItemRangeClearRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookNamesItemRangeClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeClearRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookNamesItemRangeClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeClearRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookNamesItemRangeClearRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeClearRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_names_item_range_column_with_column_request_builder.go b/drives/item_items_item_workbook_names_item_range_column_with_column_request_builder.go new file mode 100644 index 00000000000..4d4b7315ab2 --- /dev/null +++ b/drives/item_items_item_workbook_names_item_range_column_with_column_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookNamesItemRangeColumnWithColumnRequestBuilder provides operations to call the column method. +type ItemItemsItemWorkbookNamesItemRangeColumnWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookNamesItemRangeColumnWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookNamesItemRangeColumnWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookNamesItemRangeColumnWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookNamesItemRangeColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeColumnWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32)(*ItemItemsItemWorkbookNamesItemRangeColumnWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookNamesItemRangeColumnWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/column(column={column})", pathParameters), + } + if column != nil { + m.BaseRequestBuilder.PathParameters["column"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*column), 10) + } + return m +} +// NewItemItemsItemWorkbookNamesItemRangeColumnWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookNamesItemRangeColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeColumnWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeColumnWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookNamesItemRangeColumnWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function column +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookNamesItemRangeColumnWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeColumnWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function column +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookNamesItemRangeColumnWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeColumnWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookNamesItemRangeColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeColumnWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookNamesItemRangeColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeColumnWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_names_item_range_columns_after_request_builder.go b/drives/item_items_item_workbook_names_item_range_columns_after_request_builder.go new file mode 100644 index 00000000000..3dca452c8cd --- /dev/null +++ b/drives/item_items_item_workbook_names_item_range_columns_after_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookNamesItemRangeColumnsAfterRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookNamesItemRangeColumnsAfterRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookNamesItemRangeColumnsAfterRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookNamesItemRangeColumnsAfterRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookNamesItemRangeColumnsAfterRequestBuilderInternal instantiates a new ItemItemsItemWorkbookNamesItemRangeColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeColumnsAfterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeColumnsAfterRequestBuilder) { + m := &ItemItemsItemWorkbookNamesItemRangeColumnsAfterRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/columnsAfter()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookNamesItemRangeColumnsAfterRequestBuilder instantiates a new ItemItemsItemWorkbookNamesItemRangeColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeColumnsAfterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeColumnsAfterRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookNamesItemRangeColumnsAfterRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookNamesItemRangeColumnsAfterRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeColumnsAfterRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookNamesItemRangeColumnsAfterRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeColumnsAfterRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookNamesItemRangeColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeColumnsAfterRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookNamesItemRangeColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeColumnsAfterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_names_item_range_columns_after_with_count_request_builder.go b/drives/item_items_item_workbook_names_item_range_columns_after_with_count_request_builder.go new file mode 100644 index 00000000000..de91ba07ff6 --- /dev/null +++ b/drives/item_items_item_workbook_names_item_range_columns_after_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookNamesItemRangeColumnsAfterWithCountRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookNamesItemRangeColumnsAfterWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookNamesItemRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookNamesItemRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookNamesItemRangeColumnsAfterWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookNamesItemRangeColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeColumnsAfterWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookNamesItemRangeColumnsAfterWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookNamesItemRangeColumnsAfterWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/columnsAfter(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookNamesItemRangeColumnsAfterWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookNamesItemRangeColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeColumnsAfterWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeColumnsAfterWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookNamesItemRangeColumnsAfterWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookNamesItemRangeColumnsAfterWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookNamesItemRangeColumnsAfterWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookNamesItemRangeColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeColumnsAfterWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookNamesItemRangeColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeColumnsAfterWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_names_item_range_columns_before_request_builder.go b/drives/item_items_item_workbook_names_item_range_columns_before_request_builder.go new file mode 100644 index 00000000000..a007560f0e1 --- /dev/null +++ b/drives/item_items_item_workbook_names_item_range_columns_before_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookNamesItemRangeColumnsBeforeRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookNamesItemRangeColumnsBeforeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookNamesItemRangeColumnsBeforeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookNamesItemRangeColumnsBeforeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookNamesItemRangeColumnsBeforeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookNamesItemRangeColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeColumnsBeforeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeColumnsBeforeRequestBuilder) { + m := &ItemItemsItemWorkbookNamesItemRangeColumnsBeforeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/columnsBefore()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookNamesItemRangeColumnsBeforeRequestBuilder instantiates a new ItemItemsItemWorkbookNamesItemRangeColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeColumnsBeforeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeColumnsBeforeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookNamesItemRangeColumnsBeforeRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookNamesItemRangeColumnsBeforeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeColumnsBeforeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookNamesItemRangeColumnsBeforeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeColumnsBeforeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookNamesItemRangeColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeColumnsBeforeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookNamesItemRangeColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeColumnsBeforeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_names_item_range_columns_before_with_count_request_builder.go b/drives/item_items_item_workbook_names_item_range_columns_before_with_count_request_builder.go new file mode 100644 index 00000000000..559c949adb1 --- /dev/null +++ b/drives/item_items_item_workbook_names_item_range_columns_before_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookNamesItemRangeColumnsBeforeWithCountRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookNamesItemRangeColumnsBeforeWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookNamesItemRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookNamesItemRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookNamesItemRangeColumnsBeforeWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookNamesItemRangeColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeColumnsBeforeWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookNamesItemRangeColumnsBeforeWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookNamesItemRangeColumnsBeforeWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/columnsBefore(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookNamesItemRangeColumnsBeforeWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookNamesItemRangeColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeColumnsBeforeWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeColumnsBeforeWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookNamesItemRangeColumnsBeforeWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookNamesItemRangeColumnsBeforeWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookNamesItemRangeColumnsBeforeWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookNamesItemRangeColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeColumnsBeforeWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookNamesItemRangeColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeColumnsBeforeWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_names_item_range_delete_post_request_body.go b/drives/item_items_item_workbook_names_item_range_delete_post_request_body.go new file mode 100644 index 00000000000..ba2c0c4a76f --- /dev/null +++ b/drives/item_items_item_workbook_names_item_range_delete_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookNamesItemRangeDeletePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookNamesItemRangeDeletePostRequestBody instantiates a new ItemItemsItemWorkbookNamesItemRangeDeletePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeDeletePostRequestBody()(*ItemItemsItemWorkbookNamesItemRangeDeletePostRequestBody) { + m := &ItemItemsItemWorkbookNamesItemRangeDeletePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookNamesItemRangeDeletePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookNamesItemRangeDeletePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookNamesItemRangeDeletePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookNamesItemRangeDeletePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookNamesItemRangeDeletePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookNamesItemRangeDeletePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookNamesItemRangeDeletePostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookNamesItemRangeDeletePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookNamesItemRangeDeletePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookNamesItemRangeDeletePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookNamesItemRangeDeletePostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookNamesItemRangeDeletePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/item_items_item_workbook_names_item_range_delete_request_builder.go b/drives/item_items_item_workbook_names_item_range_delete_request_builder.go new file mode 100644 index 00000000000..5b60be299ae --- /dev/null +++ b/drives/item_items_item_workbook_names_item_range_delete_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookNamesItemRangeDeleteRequestBuilder provides operations to call the delete method. +type ItemItemsItemWorkbookNamesItemRangeDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookNamesItemRangeDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookNamesItemRangeDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookNamesItemRangeDeleteRequestBuilderInternal instantiates a new ItemItemsItemWorkbookNamesItemRangeDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeDeleteRequestBuilder) { + m := &ItemItemsItemWorkbookNamesItemRangeDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/delete", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookNamesItemRangeDeleteRequestBuilder instantiates a new ItemItemsItemWorkbookNamesItemRangeDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookNamesItemRangeDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action delete +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookNamesItemRangeDeleteRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookNamesItemRangeDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action delete +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookNamesItemRangeDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookNamesItemRangeDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookNamesItemRangeDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookNamesItemRangeDeleteRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_names_item_range_entire_column_request_builder.go b/drives/item_items_item_workbook_names_item_range_entire_column_request_builder.go new file mode 100644 index 00000000000..959fa4a6e7b --- /dev/null +++ b/drives/item_items_item_workbook_names_item_range_entire_column_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookNamesItemRangeEntireColumnRequestBuilder provides operations to call the entireColumn method. +type ItemItemsItemWorkbookNamesItemRangeEntireColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookNamesItemRangeEntireColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookNamesItemRangeEntireColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookNamesItemRangeEntireColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookNamesItemRangeEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeEntireColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeEntireColumnRequestBuilder) { + m := &ItemItemsItemWorkbookNamesItemRangeEntireColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/entireColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookNamesItemRangeEntireColumnRequestBuilder instantiates a new ItemItemsItemWorkbookNamesItemRangeEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeEntireColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeEntireColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookNamesItemRangeEntireColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookNamesItemRangeEntireColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeEntireColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookNamesItemRangeEntireColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeEntireColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookNamesItemRangeEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeEntireColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookNamesItemRangeEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeEntireColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_names_item_range_entire_row_request_builder.go b/drives/item_items_item_workbook_names_item_range_entire_row_request_builder.go new file mode 100644 index 00000000000..aa52a5071ed --- /dev/null +++ b/drives/item_items_item_workbook_names_item_range_entire_row_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookNamesItemRangeEntireRowRequestBuilder provides operations to call the entireRow method. +type ItemItemsItemWorkbookNamesItemRangeEntireRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookNamesItemRangeEntireRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookNamesItemRangeEntireRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookNamesItemRangeEntireRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookNamesItemRangeEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeEntireRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeEntireRowRequestBuilder) { + m := &ItemItemsItemWorkbookNamesItemRangeEntireRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/entireRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookNamesItemRangeEntireRowRequestBuilder instantiates a new ItemItemsItemWorkbookNamesItemRangeEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeEntireRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeEntireRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookNamesItemRangeEntireRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookNamesItemRangeEntireRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeEntireRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookNamesItemRangeEntireRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeEntireRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookNamesItemRangeEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeEntireRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookNamesItemRangeEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeEntireRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_names_item_range_format_request_builder.go b/drives/item_items_item_workbook_names_item_range_format_request_builder.go new file mode 100644 index 00000000000..738ffcc7465 --- /dev/null +++ b/drives/item_items_item_workbook_names_item_range_format_request_builder.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookNamesItemRangeFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookNamesItemRangeFormatRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookNamesItemRangeFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookNamesItemRangeFormatRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookNamesItemRangeFormatRequestBuilderGetQueryParameters returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +type ItemItemsItemWorkbookNamesItemRangeFormatRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookNamesItemRangeFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookNamesItemRangeFormatRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookNamesItemRangeFormatRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookNamesItemRangeFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookNamesItemRangeFormatRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookNamesItemRangeFormatRequestBuilderInternal instantiates a new ItemItemsItemWorkbookNamesItemRangeFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeFormatRequestBuilder) { + m := &ItemItemsItemWorkbookNamesItemRangeFormatRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/format{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookNamesItemRangeFormatRequestBuilder instantiates a new ItemItemsItemWorkbookNamesItemRangeFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeFormatRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookNamesItemRangeFormatRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property format for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookNamesItemRangeFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeFormatRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookNamesItemRangeFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeFormatRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// Patch update the navigation property format in drives +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookNamesItemRangeFormatRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeFormatRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// ToDeleteRequestInformation delete navigation property format for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookNamesItemRangeFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeFormatRequestBuilderDeleteRequestConfiguration)(*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 format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookNamesItemRangeFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookNamesItemRangeFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeFormatRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookNamesItemRangeFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeFormatRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookNamesItemRangeFormatRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_names_item_range_insert_post_request_body.go b/drives/item_items_item_workbook_names_item_range_insert_post_request_body.go new file mode 100644 index 00000000000..e3273bcf97a --- /dev/null +++ b/drives/item_items_item_workbook_names_item_range_insert_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookNamesItemRangeInsertPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookNamesItemRangeInsertPostRequestBody instantiates a new ItemItemsItemWorkbookNamesItemRangeInsertPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeInsertPostRequestBody()(*ItemItemsItemWorkbookNamesItemRangeInsertPostRequestBody) { + m := &ItemItemsItemWorkbookNamesItemRangeInsertPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookNamesItemRangeInsertPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookNamesItemRangeInsertPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookNamesItemRangeInsertPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookNamesItemRangeInsertPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookNamesItemRangeInsertPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookNamesItemRangeInsertPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookNamesItemRangeInsertPostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookNamesItemRangeInsertPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookNamesItemRangeInsertPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookNamesItemRangeInsertPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookNamesItemRangeInsertPostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookNamesItemRangeInsertPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/item_items_item_workbook_names_item_range_insert_request_builder.go b/drives/item_items_item_workbook_names_item_range_insert_request_builder.go new file mode 100644 index 00000000000..d493b7743ef --- /dev/null +++ b/drives/item_items_item_workbook_names_item_range_insert_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookNamesItemRangeInsertRequestBuilder provides operations to call the insert method. +type ItemItemsItemWorkbookNamesItemRangeInsertRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookNamesItemRangeInsertRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookNamesItemRangeInsertRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookNamesItemRangeInsertRequestBuilderInternal instantiates a new ItemItemsItemWorkbookNamesItemRangeInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeInsertRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeInsertRequestBuilder) { + m := &ItemItemsItemWorkbookNamesItemRangeInsertRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/insert", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookNamesItemRangeInsertRequestBuilder instantiates a new ItemItemsItemWorkbookNamesItemRangeInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeInsertRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeInsertRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookNamesItemRangeInsertRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action insert +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookNamesItemRangeInsertRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookNamesItemRangeInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeInsertRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToPostRequestInformation invoke action insert +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookNamesItemRangeInsertRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookNamesItemRangeInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeInsertRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookNamesItemRangeInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeInsertRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookNamesItemRangeInsertRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeInsertRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_names_item_range_intersection_with_another_range_request_builder.go b/drives/item_items_item_workbook_names_item_range_intersection_with_another_range_request_builder.go new file mode 100644 index 00000000000..c8e87fd469a --- /dev/null +++ b/drives/item_items_item_workbook_names_item_range_intersection_with_another_range_request_builder.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookNamesItemRangeIntersectionWithAnotherRangeRequestBuilder provides operations to call the intersection method. +type ItemItemsItemWorkbookNamesItemRangeIntersectionWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookNamesItemRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookNamesItemRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookNamesItemRangeIntersectionWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookNamesItemRangeIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeIntersectionWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookNamesItemRangeIntersectionWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookNamesItemRangeIntersectionWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/intersection(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookNamesItemRangeIntersectionWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookNamesItemRangeIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeIntersectionWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeIntersectionWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookNamesItemRangeIntersectionWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function intersection +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookNamesItemRangeIntersectionWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function intersection +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookNamesItemRangeIntersectionWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookNamesItemRangeIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeIntersectionWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookNamesItemRangeIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeIntersectionWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_names_item_range_last_cell_request_builder.go b/drives/item_items_item_workbook_names_item_range_last_cell_request_builder.go new file mode 100644 index 00000000000..f1a3bbe2fdb --- /dev/null +++ b/drives/item_items_item_workbook_names_item_range_last_cell_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookNamesItemRangeLastCellRequestBuilder provides operations to call the lastCell method. +type ItemItemsItemWorkbookNamesItemRangeLastCellRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookNamesItemRangeLastCellRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookNamesItemRangeLastCellRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookNamesItemRangeLastCellRequestBuilderInternal instantiates a new ItemItemsItemWorkbookNamesItemRangeLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeLastCellRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeLastCellRequestBuilder) { + m := &ItemItemsItemWorkbookNamesItemRangeLastCellRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/lastCell()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookNamesItemRangeLastCellRequestBuilder instantiates a new ItemItemsItemWorkbookNamesItemRangeLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeLastCellRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeLastCellRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookNamesItemRangeLastCellRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastCell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookNamesItemRangeLastCellRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeLastCellRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastCell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookNamesItemRangeLastCellRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeLastCellRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookNamesItemRangeLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeLastCellRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookNamesItemRangeLastCellRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeLastCellRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_names_item_range_last_column_request_builder.go b/drives/item_items_item_workbook_names_item_range_last_column_request_builder.go new file mode 100644 index 00000000000..ff1f7665a98 --- /dev/null +++ b/drives/item_items_item_workbook_names_item_range_last_column_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookNamesItemRangeLastColumnRequestBuilder provides operations to call the lastColumn method. +type ItemItemsItemWorkbookNamesItemRangeLastColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookNamesItemRangeLastColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookNamesItemRangeLastColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookNamesItemRangeLastColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookNamesItemRangeLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeLastColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeLastColumnRequestBuilder) { + m := &ItemItemsItemWorkbookNamesItemRangeLastColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/lastColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookNamesItemRangeLastColumnRequestBuilder instantiates a new ItemItemsItemWorkbookNamesItemRangeLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeLastColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeLastColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookNamesItemRangeLastColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookNamesItemRangeLastColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeLastColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookNamesItemRangeLastColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeLastColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookNamesItemRangeLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeLastColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookNamesItemRangeLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeLastColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_names_item_range_last_row_request_builder.go b/drives/item_items_item_workbook_names_item_range_last_row_request_builder.go new file mode 100644 index 00000000000..7d3316fd81c --- /dev/null +++ b/drives/item_items_item_workbook_names_item_range_last_row_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookNamesItemRangeLastRowRequestBuilder provides operations to call the lastRow method. +type ItemItemsItemWorkbookNamesItemRangeLastRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookNamesItemRangeLastRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookNamesItemRangeLastRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookNamesItemRangeLastRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookNamesItemRangeLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeLastRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeLastRowRequestBuilder) { + m := &ItemItemsItemWorkbookNamesItemRangeLastRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/lastRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookNamesItemRangeLastRowRequestBuilder instantiates a new ItemItemsItemWorkbookNamesItemRangeLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeLastRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeLastRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookNamesItemRangeLastRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookNamesItemRangeLastRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeLastRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookNamesItemRangeLastRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeLastRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookNamesItemRangeLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeLastRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookNamesItemRangeLastRowRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeLastRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_names_item_range_merge_post_request_body.go b/drives/item_items_item_workbook_names_item_range_merge_post_request_body.go new file mode 100644 index 00000000000..d63ab37c0b1 --- /dev/null +++ b/drives/item_items_item_workbook_names_item_range_merge_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookNamesItemRangeMergePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookNamesItemRangeMergePostRequestBody instantiates a new ItemItemsItemWorkbookNamesItemRangeMergePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeMergePostRequestBody()(*ItemItemsItemWorkbookNamesItemRangeMergePostRequestBody) { + m := &ItemItemsItemWorkbookNamesItemRangeMergePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookNamesItemRangeMergePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookNamesItemRangeMergePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookNamesItemRangeMergePostRequestBody(), nil +} +// GetAcross gets the across property value. The across property +// returns a *bool when successful +func (m *ItemItemsItemWorkbookNamesItemRangeMergePostRequestBody) GetAcross()(*bool) { + val, err := m.GetBackingStore().Get("across") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + 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 *ItemItemsItemWorkbookNamesItemRangeMergePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookNamesItemRangeMergePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookNamesItemRangeMergePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["across"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetAcross(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookNamesItemRangeMergePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("across", m.GetAcross()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAcross sets the across property value. The across property +func (m *ItemItemsItemWorkbookNamesItemRangeMergePostRequestBody) SetAcross(value *bool)() { + err := m.GetBackingStore().Set("across", 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 *ItemItemsItemWorkbookNamesItemRangeMergePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookNamesItemRangeMergePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookNamesItemRangeMergePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAcross()(*bool) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetAcross(value *bool)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/item_items_item_workbook_names_item_range_merge_request_builder.go b/drives/item_items_item_workbook_names_item_range_merge_request_builder.go new file mode 100644 index 00000000000..2eeebb8d846 --- /dev/null +++ b/drives/item_items_item_workbook_names_item_range_merge_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookNamesItemRangeMergeRequestBuilder provides operations to call the merge method. +type ItemItemsItemWorkbookNamesItemRangeMergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookNamesItemRangeMergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookNamesItemRangeMergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookNamesItemRangeMergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookNamesItemRangeMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeMergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeMergeRequestBuilder) { + m := &ItemItemsItemWorkbookNamesItemRangeMergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/merge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookNamesItemRangeMergeRequestBuilder instantiates a new ItemItemsItemWorkbookNamesItemRangeMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeMergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeMergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookNamesItemRangeMergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action merge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookNamesItemRangeMergeRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookNamesItemRangeMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeMergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action merge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookNamesItemRangeMergeRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookNamesItemRangeMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeMergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookNamesItemRangeMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeMergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookNamesItemRangeMergeRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeMergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} 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 9050f6571c2..a39978bcfb4 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 @@ -18,6 +18,46 @@ type ItemItemsItemWorkbookNamesItemRangeRequestBuilderGetRequestConfiguration st // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// BoundingRectWithAnotherRange provides operations to call the boundingRect method. +// returns a *ItemItemsItemWorkbookNamesItemRangeBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeRequestBuilder) BoundingRectWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookNamesItemRangeBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeBoundingRectWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// CellWithRowWithColumn provides operations to call the cell method. +// returns a *ItemItemsItemWorkbookNamesItemRangeCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeRequestBuilder) CellWithRowWithColumn(column *int32, row *int32)(*ItemItemsItemWorkbookNamesItemRangeCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeCellWithRowWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column, row) +} +// Clear provides operations to call the clear method. +// returns a *ItemItemsItemWorkbookNamesItemRangeClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeRequestBuilder) Clear()(*ItemItemsItemWorkbookNamesItemRangeClearRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeClearRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfter provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookNamesItemRangeColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeRequestBuilder) ColumnsAfter()(*ItemItemsItemWorkbookNamesItemRangeColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeColumnsAfterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfterWithCount provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookNamesItemRangeColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeRequestBuilder) ColumnsAfterWithCount(count *int32)(*ItemItemsItemWorkbookNamesItemRangeColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeColumnsAfterWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnsBefore provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookNamesItemRangeColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeRequestBuilder) ColumnsBefore()(*ItemItemsItemWorkbookNamesItemRangeColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeColumnsBeforeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsBeforeWithCount provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookNamesItemRangeColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeRequestBuilder) ColumnsBeforeWithCount(count *int32)(*ItemItemsItemWorkbookNamesItemRangeColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeColumnsBeforeWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnWithColumn provides operations to call the column method. +// returns a *ItemItemsItemWorkbookNamesItemRangeColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeRequestBuilder) ColumnWithColumn(column *int32)(*ItemItemsItemWorkbookNamesItemRangeColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeColumnWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column) +} // NewItemItemsItemWorkbookNamesItemRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookNamesItemRangeRequestBuilder and sets the default values. func NewItemItemsItemWorkbookNamesItemRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeRequestBuilder) { m := &ItemItemsItemWorkbookNamesItemRangeRequestBuilder{ @@ -31,12 +71,32 @@ func NewItemItemsItemWorkbookNamesItemRangeRequestBuilder(rawUrl string, request urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookNamesItemRangeRequestBuilderInternal(urlParams, requestAdapter) } -// Get returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. +// DeletePath provides operations to call the delete method. +// returns a *ItemItemsItemWorkbookNamesItemRangeDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeRequestBuilder) DeletePath()(*ItemItemsItemWorkbookNamesItemRangeDeleteRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireColumn provides operations to call the entireColumn method. +// returns a *ItemItemsItemWorkbookNamesItemRangeEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeRequestBuilder) EntireColumn()(*ItemItemsItemWorkbookNamesItemRangeEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeEntireColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireRow provides operations to call the entireRow method. +// returns a *ItemItemsItemWorkbookNamesItemRangeEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeRequestBuilder) EntireRow()(*ItemItemsItemWorkbookNamesItemRangeEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeEntireRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Format provides operations to manage the format property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookNamesItemRangeFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeRequestBuilder) Format()(*ItemItemsItemWorkbookNamesItemRangeFormatRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.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/nameditem-range?view=graph-rest-beta +// [Find more info here]: https://learn.microsoft.com/graph/api/range-get?view=graph-rest-beta func (m *ItemItemsItemWorkbookNamesItemRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -54,7 +114,77 @@ func (m *ItemItemsItemWorkbookNamesItemRangeRequestBuilder) Get(ctx context.Cont } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil } -// ToGetRequestInformation returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. +// Insert provides operations to call the insert method. +// returns a *ItemItemsItemWorkbookNamesItemRangeInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeRequestBuilder) Insert()(*ItemItemsItemWorkbookNamesItemRangeInsertRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeInsertRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// IntersectionWithAnotherRange provides operations to call the intersection method. +// returns a *ItemItemsItemWorkbookNamesItemRangeIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeRequestBuilder) IntersectionWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookNamesItemRangeIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeIntersectionWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// LastCell provides operations to call the lastCell method. +// returns a *ItemItemsItemWorkbookNamesItemRangeLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeRequestBuilder) LastCell()(*ItemItemsItemWorkbookNamesItemRangeLastCellRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeLastCellRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastColumn provides operations to call the lastColumn method. +// returns a *ItemItemsItemWorkbookNamesItemRangeLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeRequestBuilder) LastColumn()(*ItemItemsItemWorkbookNamesItemRangeLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeLastColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastRow provides operations to call the lastRow method. +// returns a *ItemItemsItemWorkbookNamesItemRangeLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeRequestBuilder) LastRow()(*ItemItemsItemWorkbookNamesItemRangeLastRowRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeLastRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Merge provides operations to call the merge method. +// returns a *ItemItemsItemWorkbookNamesItemRangeMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeRequestBuilder) Merge()(*ItemItemsItemWorkbookNamesItemRangeMergeRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeMergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// OffsetRangeWithRowOffsetWithColumnOffset provides operations to call the offsetRange method. +// returns a *ItemItemsItemWorkbookNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeRequestBuilder) OffsetRangeWithRowOffsetWithColumnOffset(columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, columnOffset, rowOffset) +} +// ResizedRangeWithDeltaRowsWithDeltaColumns provides operations to call the resizedRange method. +// returns a *ItemItemsItemWorkbookNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeRequestBuilder) ResizedRangeWithDeltaRowsWithDeltaColumns(deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, deltaColumns, deltaRows) +} +// RowsAbove provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookNamesItemRangeRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeRequestBuilder) RowsAbove()(*ItemItemsItemWorkbookNamesItemRangeRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeRowsAboveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsAboveWithCount provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookNamesItemRangeRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeRequestBuilder) RowsAboveWithCount(count *int32)(*ItemItemsItemWorkbookNamesItemRangeRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeRowsAboveWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowsBelow provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookNamesItemRangeRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeRequestBuilder) RowsBelow()(*ItemItemsItemWorkbookNamesItemRangeRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeRowsBelowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsBelowWithCount provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookNamesItemRangeRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeRequestBuilder) RowsBelowWithCount(count *int32)(*ItemItemsItemWorkbookNamesItemRangeRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeRowsBelowWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowWithRow provides operations to call the row method. +// returns a *ItemItemsItemWorkbookNamesItemRangeRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeRequestBuilder) RowWithRow(row *int32)(*ItemItemsItemWorkbookNamesItemRangeRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeRowWithRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, row) +} +// Sort provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookNamesItemRangeSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeRequestBuilder) Sort()(*ItemItemsItemWorkbookNamesItemRangeSortRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeSortRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToGetRequestInformation retrieve the properties and relationships of range object. // 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) @@ -65,8 +195,33 @@ func (m *ItemItemsItemWorkbookNamesItemRangeRequestBuilder) ToGetRequestInformat requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } +// Unmerge provides operations to call the unmerge method. +// returns a *ItemItemsItemWorkbookNamesItemRangeUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeRequestBuilder) Unmerge()(*ItemItemsItemWorkbookNamesItemRangeUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeUnmergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// UsedRange provides operations to call the usedRange method. +// returns a *ItemItemsItemWorkbookNamesItemRangeUsedRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeRequestBuilder) UsedRange()(*ItemItemsItemWorkbookNamesItemRangeUsedRangeRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeUsedRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// UsedRangeWithValuesOnly provides operations to call the usedRange method. +// returns a *ItemItemsItemWorkbookNamesItemRangeUsedRangeWithValuesOnlyRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeRequestBuilder) UsedRangeWithValuesOnly(valuesOnly *bool)(*ItemItemsItemWorkbookNamesItemRangeUsedRangeWithValuesOnlyRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeUsedRangeWithValuesOnlyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, valuesOnly) +} +// VisibleView provides operations to call the visibleView method. +// returns a *ItemItemsItemWorkbookNamesItemRangeVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeRequestBuilder) VisibleView()(*ItemItemsItemWorkbookNamesItemRangeVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeVisibleViewRequestBuilderInternal(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 *ItemItemsItemWorkbookNamesItemRangeRequestBuilder when successful func (m *ItemItemsItemWorkbookNamesItemRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookNamesItemRangeRequestBuilder) { return NewItemItemsItemWorkbookNamesItemRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); } +// Worksheet provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookNamesItemRangeWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeRequestBuilder) Worksheet()(*ItemItemsItemWorkbookNamesItemRangeWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeWorksheetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} diff --git a/drives/item_items_item_workbook_names_item_range_row_with_row_request_builder.go b/drives/item_items_item_workbook_names_item_range_row_with_row_request_builder.go new file mode 100644 index 00000000000..350696d5ccb --- /dev/null +++ b/drives/item_items_item_workbook_names_item_range_row_with_row_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookNamesItemRangeRowWithRowRequestBuilder provides operations to call the row method. +type ItemItemsItemWorkbookNamesItemRangeRowWithRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookNamesItemRangeRowWithRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookNamesItemRangeRowWithRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookNamesItemRangeRowWithRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookNamesItemRangeRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeRowWithRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, row *int32)(*ItemItemsItemWorkbookNamesItemRangeRowWithRowRequestBuilder) { + m := &ItemItemsItemWorkbookNamesItemRangeRowWithRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/row(row={row})", pathParameters), + } + if row != nil { + m.BaseRequestBuilder.PathParameters["row"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*row), 10) + } + return m +} +// NewItemItemsItemWorkbookNamesItemRangeRowWithRowRequestBuilder instantiates a new ItemItemsItemWorkbookNamesItemRangeRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeRowWithRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeRowWithRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookNamesItemRangeRowWithRowRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function row +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookNamesItemRangeRowWithRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeRowWithRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function row +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookNamesItemRangeRowWithRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeRowWithRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookNamesItemRangeRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeRowWithRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookNamesItemRangeRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeRowWithRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_names_item_range_rows_above_request_builder.go b/drives/item_items_item_workbook_names_item_range_rows_above_request_builder.go new file mode 100644 index 00000000000..0f7f0289845 --- /dev/null +++ b/drives/item_items_item_workbook_names_item_range_rows_above_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookNamesItemRangeRowsAboveRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookNamesItemRangeRowsAboveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookNamesItemRangeRowsAboveRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookNamesItemRangeRowsAboveRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookNamesItemRangeRowsAboveRequestBuilderInternal instantiates a new ItemItemsItemWorkbookNamesItemRangeRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeRowsAboveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeRowsAboveRequestBuilder) { + m := &ItemItemsItemWorkbookNamesItemRangeRowsAboveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/rowsAbove()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookNamesItemRangeRowsAboveRequestBuilder instantiates a new ItemItemsItemWorkbookNamesItemRangeRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeRowsAboveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeRowsAboveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookNamesItemRangeRowsAboveRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookNamesItemRangeRowsAboveRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeRowsAboveRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookNamesItemRangeRowsAboveRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeRowsAboveRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookNamesItemRangeRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeRowsAboveRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookNamesItemRangeRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeRowsAboveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_names_item_range_rows_above_with_count_request_builder.go b/drives/item_items_item_workbook_names_item_range_rows_above_with_count_request_builder.go new file mode 100644 index 00000000000..92cfd565c24 --- /dev/null +++ b/drives/item_items_item_workbook_names_item_range_rows_above_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookNamesItemRangeRowsAboveWithCountRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookNamesItemRangeRowsAboveWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookNamesItemRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookNamesItemRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookNamesItemRangeRowsAboveWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookNamesItemRangeRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeRowsAboveWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookNamesItemRangeRowsAboveWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookNamesItemRangeRowsAboveWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/rowsAbove(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookNamesItemRangeRowsAboveWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookNamesItemRangeRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeRowsAboveWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeRowsAboveWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookNamesItemRangeRowsAboveWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookNamesItemRangeRowsAboveWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookNamesItemRangeRowsAboveWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookNamesItemRangeRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeRowsAboveWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookNamesItemRangeRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeRowsAboveWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_names_item_range_rows_below_request_builder.go b/drives/item_items_item_workbook_names_item_range_rows_below_request_builder.go new file mode 100644 index 00000000000..4d3046daf6b --- /dev/null +++ b/drives/item_items_item_workbook_names_item_range_rows_below_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookNamesItemRangeRowsBelowRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookNamesItemRangeRowsBelowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookNamesItemRangeRowsBelowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookNamesItemRangeRowsBelowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookNamesItemRangeRowsBelowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookNamesItemRangeRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeRowsBelowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeRowsBelowRequestBuilder) { + m := &ItemItemsItemWorkbookNamesItemRangeRowsBelowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/rowsBelow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookNamesItemRangeRowsBelowRequestBuilder instantiates a new ItemItemsItemWorkbookNamesItemRangeRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeRowsBelowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeRowsBelowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookNamesItemRangeRowsBelowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookNamesItemRangeRowsBelowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeRowsBelowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookNamesItemRangeRowsBelowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeRowsBelowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookNamesItemRangeRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeRowsBelowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookNamesItemRangeRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeRowsBelowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_names_item_range_rows_below_with_count_request_builder.go b/drives/item_items_item_workbook_names_item_range_rows_below_with_count_request_builder.go new file mode 100644 index 00000000000..a87319d6c17 --- /dev/null +++ b/drives/item_items_item_workbook_names_item_range_rows_below_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookNamesItemRangeRowsBelowWithCountRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookNamesItemRangeRowsBelowWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookNamesItemRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookNamesItemRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookNamesItemRangeRowsBelowWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookNamesItemRangeRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeRowsBelowWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookNamesItemRangeRowsBelowWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookNamesItemRangeRowsBelowWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/rowsBelow(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookNamesItemRangeRowsBelowWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookNamesItemRangeRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeRowsBelowWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeRowsBelowWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookNamesItemRangeRowsBelowWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookNamesItemRangeRowsBelowWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookNamesItemRangeRowsBelowWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookNamesItemRangeRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeRowsBelowWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookNamesItemRangeRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeRowsBelowWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_names_item_range_sort_request_builder.go b/drives/item_items_item_workbook_names_item_range_sort_request_builder.go new file mode 100644 index 00000000000..ccb7454da81 --- /dev/null +++ b/drives/item_items_item_workbook_names_item_range_sort_request_builder.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookNamesItemRangeSortRequestBuilder provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookNamesItemRangeSortRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookNamesItemRangeSortRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookNamesItemRangeSortRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookNamesItemRangeSortRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookNamesItemRangeSortRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookNamesItemRangeSortRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookNamesItemRangeSortRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookNamesItemRangeSortRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookNamesItemRangeSortRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookNamesItemRangeSortRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookNamesItemRangeSortRequestBuilderInternal instantiates a new ItemItemsItemWorkbookNamesItemRangeSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeSortRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeSortRequestBuilder) { + m := &ItemItemsItemWorkbookNamesItemRangeSortRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/sort{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookNamesItemRangeSortRequestBuilder instantiates a new ItemItemsItemWorkbookNamesItemRangeSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeSortRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeSortRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookNamesItemRangeSortRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property sort for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookNamesItemRangeSortRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeSortRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookNamesItemRangeSortRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeSortRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// Patch update the navigation property sort in drives +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookNamesItemRangeSortRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeSortRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// ToDeleteRequestInformation delete navigation property sort for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookNamesItemRangeSortRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeSortRequestBuilderDeleteRequestConfiguration)(*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 worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookNamesItemRangeSortRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeSortRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookNamesItemRangeSortRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeSortRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookNamesItemRangeSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeSortRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookNamesItemRangeSortRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeSortRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_names_item_range_unmerge_request_builder.go b/drives/item_items_item_workbook_names_item_range_unmerge_request_builder.go new file mode 100644 index 00000000000..7f5da73934d --- /dev/null +++ b/drives/item_items_item_workbook_names_item_range_unmerge_request_builder.go @@ -0,0 +1,64 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookNamesItemRangeUnmergeRequestBuilder provides operations to call the unmerge method. +type ItemItemsItemWorkbookNamesItemRangeUnmergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookNamesItemRangeUnmergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookNamesItemRangeUnmergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookNamesItemRangeUnmergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookNamesItemRangeUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeUnmergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeUnmergeRequestBuilder) { + m := &ItemItemsItemWorkbookNamesItemRangeUnmergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/unmerge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookNamesItemRangeUnmergeRequestBuilder instantiates a new ItemItemsItemWorkbookNamesItemRangeUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeUnmergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeUnmergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookNamesItemRangeUnmergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unmerge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookNamesItemRangeUnmergeRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeUnmergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unmerge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookNamesItemRangeUnmergeRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeUnmergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemItemsItemWorkbookNamesItemRangeUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeUnmergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookNamesItemRangeUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeUnmergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_names_item_range_used_range_request_builder.go b/drives/item_items_item_workbook_names_item_range_used_range_request_builder.go new file mode 100644 index 00000000000..2f92124940f --- /dev/null +++ b/drives/item_items_item_workbook_names_item_range_used_range_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookNamesItemRangeUsedRangeRequestBuilder provides operations to call the usedRange method. +type ItemItemsItemWorkbookNamesItemRangeUsedRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookNamesItemRangeUsedRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookNamesItemRangeUsedRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookNamesItemRangeUsedRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookNamesItemRangeUsedRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeUsedRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeUsedRangeRequestBuilder) { + m := &ItemItemsItemWorkbookNamesItemRangeUsedRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/usedRange()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookNamesItemRangeUsedRangeRequestBuilder instantiates a new ItemItemsItemWorkbookNamesItemRangeUsedRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeUsedRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeUsedRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookNamesItemRangeUsedRangeRequestBuilderInternal(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 *ItemItemsItemWorkbookNamesItemRangeUsedRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeUsedRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function usedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookNamesItemRangeUsedRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeUsedRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookNamesItemRangeUsedRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeUsedRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookNamesItemRangeUsedRangeRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeUsedRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_names_item_range_used_range_with_values_only_request_builder.go b/drives/item_items_item_workbook_names_item_range_used_range_with_values_only_request_builder.go new file mode 100644 index 00000000000..0ac4de1ed81 --- /dev/null +++ b/drives/item_items_item_workbook_names_item_range_used_range_with_values_only_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookNamesItemRangeUsedRangeWithValuesOnlyRequestBuilder provides operations to call the usedRange method. +type ItemItemsItemWorkbookNamesItemRangeUsedRangeWithValuesOnlyRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookNamesItemRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookNamesItemRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookNamesItemRangeUsedRangeWithValuesOnlyRequestBuilderInternal instantiates a new ItemItemsItemWorkbookNamesItemRangeUsedRangeWithValuesOnlyRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeUsedRangeWithValuesOnlyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, valuesOnly *bool)(*ItemItemsItemWorkbookNamesItemRangeUsedRangeWithValuesOnlyRequestBuilder) { + m := &ItemItemsItemWorkbookNamesItemRangeUsedRangeWithValuesOnlyRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/usedRange(valuesOnly={valuesOnly})", pathParameters), + } + if valuesOnly != nil { + m.BaseRequestBuilder.PathParameters["valuesOnly"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatBool(*valuesOnly) + } + return m +} +// NewItemItemsItemWorkbookNamesItemRangeUsedRangeWithValuesOnlyRequestBuilder instantiates a new ItemItemsItemWorkbookNamesItemRangeUsedRangeWithValuesOnlyRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeUsedRangeWithValuesOnlyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeUsedRangeWithValuesOnlyRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookNamesItemRangeUsedRangeWithValuesOnlyRequestBuilderInternal(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 *ItemItemsItemWorkbookNamesItemRangeUsedRangeWithValuesOnlyRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function usedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookNamesItemRangeUsedRangeWithValuesOnlyRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookNamesItemRangeUsedRangeWithValuesOnlyRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeUsedRangeWithValuesOnlyRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookNamesItemRangeUsedRangeWithValuesOnlyRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeUsedRangeWithValuesOnlyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_names_item_range_visible_view_request_builder.go b/drives/item_items_item_workbook_names_item_range_visible_view_request_builder.go new file mode 100644 index 00000000000..ee2d91c3970 --- /dev/null +++ b/drives/item_items_item_workbook_names_item_range_visible_view_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookNamesItemRangeVisibleViewRequestBuilder provides operations to call the visibleView method. +type ItemItemsItemWorkbookNamesItemRangeVisibleViewRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookNamesItemRangeVisibleViewRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookNamesItemRangeVisibleViewRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookNamesItemRangeVisibleViewRequestBuilderInternal instantiates a new ItemItemsItemWorkbookNamesItemRangeVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeVisibleViewRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeVisibleViewRequestBuilder) { + m := &ItemItemsItemWorkbookNamesItemRangeVisibleViewRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/visibleView()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookNamesItemRangeVisibleViewRequestBuilder instantiates a new ItemItemsItemWorkbookNamesItemRangeVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeVisibleViewRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeVisibleViewRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookNamesItemRangeVisibleViewRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function visibleView +// returns a WorkbookRangeViewable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookNamesItemRangeVisibleViewRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeVisibleViewRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeViewFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable), nil +} +// ToGetRequestInformation invoke function visibleView +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookNamesItemRangeVisibleViewRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeVisibleViewRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookNamesItemRangeVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeVisibleViewRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookNamesItemRangeVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeVisibleViewRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_names_item_range_worksheet_request_builder.go b/drives/item_items_item_workbook_names_item_range_worksheet_request_builder.go new file mode 100644 index 00000000000..1e6d4c559b2 --- /dev/null +++ b/drives/item_items_item_workbook_names_item_range_worksheet_request_builder.go @@ -0,0 +1,81 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookNamesItemRangeWorksheetRequestBuilder provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookNamesItemRangeWorksheetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookNamesItemRangeWorksheetRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookNamesItemRangeWorksheetRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookNamesItemRangeWorksheetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookNamesItemRangeWorksheetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookNamesItemRangeWorksheetRequestBuilderGetQueryParameters +} +// NewItemItemsItemWorkbookNamesItemRangeWorksheetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookNamesItemRangeWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeWorksheetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeWorksheetRequestBuilder) { + m := &ItemItemsItemWorkbookNamesItemRangeWorksheetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()/worksheet{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookNamesItemRangeWorksheetRequestBuilder instantiates a new ItemItemsItemWorkbookNamesItemRangeWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookNamesItemRangeWorksheetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookNamesItemRangeWorksheetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookNamesItemRangeWorksheetRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookWorksheetable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookNamesItemRangeWorksheetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeWorksheetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookWorksheetFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable), nil +} +// ToGetRequestInformation the worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookNamesItemRangeWorksheetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemRangeWorksheetRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 *ItemItemsItemWorkbookNamesItemRangeWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookNamesItemRangeWorksheetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookNamesItemRangeWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookNamesItemRangeWorksheetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_names_item_worksheet_request_builder.go b/drives/item_items_item_workbook_names_item_worksheet_request_builder.go index 6bdbf0c0a18..2521cc7c659 100644 --- a/drives/item_items_item_workbook_names_item_worksheet_request_builder.go +++ b/drives/item_items_item_workbook_names_item_worksheet_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemItemsItemWorkbookNamesItemWorksheetRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemItemsItemWorkbookNamesItemWorksheetRequestBuilderGetQueryParameters returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. +// ItemItemsItemWorkbookNamesItemWorksheetRequestBuilderGetQueryParameters return the worksheet to which the named item is scoped. Available only if the item is scoped to the worksheet. Read-only. type ItemItemsItemWorkbookNamesItemWorksheetRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewItemItemsItemWorkbookNamesItemWorksheetRequestBuilder(rawUrl string, req urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookNamesItemWorksheetRequestBuilderInternal(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. +// Get return the worksheet to which the named item is scoped. 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 *ItemItemsItemWorkbookNamesItemWorksheetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemWorksheetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable, error) { @@ -60,7 +60,7 @@ func (m *ItemItemsItemWorkbookNamesItemWorksheetRequestBuilder) Get(ctx context. } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. +// ToGetRequestInformation return the worksheet to which the named item is scoped. Available only if the item is scoped to the worksheet. Read-only. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookNamesItemWorksheetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookNamesItemWorksheetRequestBuilderGetRequestConfiguration)(*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 e66bdebf683..ee3f7ca3d60 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 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 thrown. +// 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/tablecollection-add?view=graph-rest-beta +// [Find more info here]: https://learn.microsoft.com/graph/api/workbook-post-tables?view=graph-rest-beta func (m *ItemItemsItemWorkbookTablesAddRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookTablesAddPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesAddRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableable), nil } -// 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 thrown. +// ToPostRequestInformation use this API to create a new Table. // 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_tables_item_at_with_index_columns_request_builder.go b/drives/item_items_item_workbook_tables_item_at_with_index_columns_request_builder.go index 9ece92accb9..ba2c39872ed 100644 --- a/drives/item_items_item_workbook_tables_item_at_with_index_columns_request_builder.go +++ b/drives/item_items_item_workbook_tables_item_at_with_index_columns_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilderGetQueryParameters represents a collection of all the columns in the table. Read-only. +// ItemItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilderGetQueryParameters the list of all the columns in the table. Read-only. type ItemItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -59,7 +59,7 @@ func NewItemItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilder(rawUrl s urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilderInternal(urlParams, requestAdapter) } -// Get represents a collection of all the columns in the table. Read-only. +// Get the list 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 *ItemItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableColumnCollectionResponseable, error) { @@ -99,7 +99,7 @@ func (m *ItemItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilder) Post(c } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableColumnable), nil } -// ToGetRequestInformation represents a collection of all the columns in the table. Read-only. +// ToGetRequestInformation the list of all the columns in the table. Read-only. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemAtWithIndexColumnsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_workbook_tables_item_at_with_index_rows_request_builder.go b/drives/item_items_item_workbook_tables_item_at_with_index_rows_request_builder.go index aba9d756fad..3871b716691 100644 --- a/drives/item_items_item_workbook_tables_item_at_with_index_rows_request_builder.go +++ b/drives/item_items_item_workbook_tables_item_at_with_index_rows_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilderGetQueryParameters represents a collection of all the rows in the table. Read-only. +// ItemItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilderGetQueryParameters the list of all the rows in the table. Read-only. type ItemItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -59,7 +59,7 @@ func NewItemItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilder(rawUrl stri urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilderInternal(urlParams, requestAdapter) } -// Get represents a collection of all the rows in the table. Read-only. +// Get the list 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 *ItemItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableRowCollectionResponseable, error) { @@ -99,7 +99,7 @@ func (m *ItemItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilder) Post(ctx } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableRowable), nil } -// ToGetRequestInformation represents a collection of all the rows in the table. Read-only. +// ToGetRequestInformation the list of all the rows in the table. Read-only. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemAtWithIndexRowsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_workbook_tables_item_at_with_index_sort_request_builder.go b/drives/item_items_item_workbook_tables_item_at_with_index_sort_request_builder.go index 210862d5acd..c2878a8ae9d 100644 --- a/drives/item_items_item_workbook_tables_item_at_with_index_sort_request_builder.go +++ b/drives/item_items_item_workbook_tables_item_at_with_index_sort_request_builder.go @@ -18,7 +18,7 @@ type ItemItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilderDeleteRequestCo // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilderGetQueryParameters represents the sorting for the table. Read-only. +// ItemItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilderGetQueryParameters the sorting for the table. Read-only. type ItemItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *ItemItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilder) Delete(ct } return nil } -// Get represents the sorting for the table. Read-only. +// Get 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 *ItemItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableSortable, error) { @@ -121,7 +121,7 @@ func (m *ItemItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilder) ToDeleteR requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation represents the sorting for the table. Read-only. +// ToGetRequestInformation the sorting for the table. Read-only. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemAtWithIndexSortRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_workbook_tables_item_columns_item_at_with_index_filter_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_at_with_index_filter_request_builder.go index d80a9a572a9..802ad04792d 100644 --- a/drives/item_items_item_workbook_tables_item_columns_item_at_with_index_filter_request_builder.go +++ b/drives/item_items_item_workbook_tables_item_columns_item_at_with_index_filter_request_builder.go @@ -18,7 +18,7 @@ type ItemItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilderDe // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilderGetQueryParameters retrieve the filter applied to the column. Read-only. +// ItemItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilderGetQueryParameters the filter applied to the column. Read-only. type ItemItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *ItemItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuild } return nil } -// Get retrieve the filter applied to the column. Read-only. +// Get 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 *ItemItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookFilterable, error) { @@ -121,7 +121,7 @@ func (m *ItemItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuild requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation retrieve the filter applied to the column. Read-only. +// ToGetRequestInformation the filter applied to the column. Read-only. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemAtWithIndexFilterRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_clear_post_request_body.go b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_clear_post_request_body.go new file mode 100644 index 00000000000..ecb7b127fcf --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_clear_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeClearPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeClearPostRequestBody instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeClearPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeClearPostRequestBody()(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeClearPostRequestBody) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeClearPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeClearPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeClearPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeClearPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeClearPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetApplyTo gets the applyTo property value. The applyTo property +// returns a *string when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeClearPostRequestBody) GetApplyTo()(*string) { + val, err := m.GetBackingStore().Get("applyTo") + 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 *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeClearPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeClearPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["applyTo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetApplyTo(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeClearPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("applyTo", m.GetApplyTo()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeClearPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetApplyTo sets the applyTo property value. The applyTo property +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeClearPostRequestBody) SetApplyTo(value *string)() { + err := m.GetBackingStore().Set("applyTo", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeClearPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeClearPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetApplyTo()(*string) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetApplyTo(value *string)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_clear_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_clear_request_builder.go new file mode 100644 index 00000000000..539dbce52e6 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_clear_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeClearRequestBuilder provides operations to call the clear method. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeClearRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeClearRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeClearRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeClearRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeClearRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeClearRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeClearRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/clear", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeClearRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeClearRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeClearRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeClearRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action clear +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeClearRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeClearRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action clear +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeClearRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeClearRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeClearRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeClearRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeClearRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_column_with_column_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_column_with_column_request_builder.go new file mode 100644 index 00000000000..a7c38460571 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_column_with_column_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilder provides operations to call the column method. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/column(column={column})", pathParameters), + } + if column != nil { + m.BaseRequestBuilder.PathParameters["column"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*column), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function column +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function column +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_columns_after_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_columns_after_request_builder.go new file mode 100644 index 00000000000..f7ae47446c5 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_columns_after_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/columnsAfter()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_columns_before_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_columns_before_request_builder.go new file mode 100644 index 00000000000..04a6ce88897 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_columns_before_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/columnsBefore()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_delete_post_request_body.go b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_delete_post_request_body.go new file mode 100644 index 00000000000..2ddef9fbbf7 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_delete_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeDeletePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeDeletePostRequestBody instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeDeletePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeDeletePostRequestBody()(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeDeletePostRequestBody) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeDeletePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeDeletePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeDeletePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeDeletePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeDeletePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeDeletePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeDeletePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeDeletePostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeDeletePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeDeletePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeDeletePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeDeletePostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeDeletePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_delete_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_delete_request_builder.go new file mode 100644 index 00000000000..54030ab3540 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_delete_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeDeleteRequestBuilder provides operations to call the delete method. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeDeleteRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeDeleteRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/delete", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeDeleteRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action delete +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeDeleteRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action delete +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeDeleteRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_entire_column_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_entire_column_request_builder.go new file mode 100644 index 00000000000..dc2e0019749 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_entire_column_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilder provides operations to call the entireColumn method. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/entireColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_entire_row_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_entire_row_request_builder.go new file mode 100644 index 00000000000..518b9ee8c4a --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_entire_row_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilder provides operations to call the entireRow method. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/entireRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_format_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_format_request_builder.go new file mode 100644 index 00000000000..46c9a304899 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_format_request_builder.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeFormatRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeFormatRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeFormatRequestBuilderGetQueryParameters returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeFormatRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeFormatRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeFormatRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeFormatRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeFormatRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeFormatRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeFormatRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/format{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeFormatRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeFormatRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeFormatRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property format for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeFormatRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeFormatRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// Patch update the navigation property format in drives +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeFormatRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeFormatRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// ToDeleteRequestInformation delete navigation property format for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeFormatRequestBuilderDeleteRequestConfiguration)(*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 format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeFormatRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeFormatRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeFormatRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_insert_post_request_body.go b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_insert_post_request_body.go new file mode 100644 index 00000000000..c7b766abb60 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_insert_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeInsertPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeInsertPostRequestBody instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeInsertPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeInsertPostRequestBody()(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeInsertPostRequestBody) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeInsertPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeInsertPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeInsertPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeInsertPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeInsertPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeInsertPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeInsertPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeInsertPostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeInsertPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeInsertPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeInsertPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeInsertPostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeInsertPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_insert_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_insert_request_builder.go new file mode 100644 index 00000000000..acd2f8af835 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_insert_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeInsertRequestBuilder provides operations to call the insert method. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeInsertRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeInsertRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeInsertRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeInsertRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeInsertRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeInsertRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeInsertRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/insert", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeInsertRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeInsertRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeInsertRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeInsertRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action insert +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeInsertRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeInsertRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToPostRequestInformation invoke action insert +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeInsertRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeInsertRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeInsertRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeInsertRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeInsertRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_last_cell_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_last_cell_request_builder.go new file mode 100644 index 00000000000..8c7403df5e2 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_last_cell_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastCellRequestBuilder provides operations to call the lastCell method. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastCellRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastCellRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastCellRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastCellRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastCellRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastCellRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastCellRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/lastCell()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastCellRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastCellRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastCellRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastCellRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastCell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastCellRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastCellRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastCell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastCellRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastCellRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastCellRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastCellRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastCellRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_last_column_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_last_column_request_builder.go new file mode 100644 index 00000000000..64a1d178095 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_last_column_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilder provides operations to call the lastColumn method. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/lastColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_last_row_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_last_row_request_builder.go new file mode 100644 index 00000000000..4ce55a758aa --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_last_row_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastRowRequestBuilder provides operations to call the lastRow method. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastRowRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/lastRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastRowRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_merge_post_request_body.go b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_merge_post_request_body.go new file mode 100644 index 00000000000..9e057241cc5 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_merge_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergePostRequestBody instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergePostRequestBody()(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergePostRequestBody) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergePostRequestBody(), nil +} +// GetAcross gets the across property value. The across property +// returns a *bool when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergePostRequestBody) GetAcross()(*bool) { + val, err := m.GetBackingStore().Get("across") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + 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 *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["across"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetAcross(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("across", m.GetAcross()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAcross sets the across property value. The across property +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergePostRequestBody) SetAcross(value *bool)() { + err := m.GetBackingStore().Set("across", 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 *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAcross()(*bool) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetAcross(value *bool)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_merge_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_merge_request_builder.go new file mode 100644 index 00000000000..ef37159be33 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_merge_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergeRequestBuilder provides operations to call the merge method. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/merge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action merge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergeRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action merge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergeRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_request_builder.go index aed0b67e8b2..4461499c80a 100644 --- a/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_request_builder.go +++ b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_request_builder.go @@ -18,6 +18,46 @@ type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilderGetReq // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// BoundingRectWithAnotherRange provides operations to call the boundingRect method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder) BoundingRectWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// CellWithRowWithColumn provides operations to call the cell method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder) CellWithRowWithColumn(column *int32, row *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column, row) +} +// Clear provides operations to call the clear method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder) Clear()(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeClearRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeClearRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfter provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder) ColumnsAfter()(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfterWithCount provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder) ColumnsAfterWithCount(count *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnsBefore provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder) ColumnsBefore()(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsBeforeWithCount provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder) ColumnsBeforeWithCount(count *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnWithColumn provides operations to call the column method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder) ColumnWithColumn(column *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column) +} // NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder and sets the default values. func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder) { m := &ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder{ @@ -31,6 +71,26 @@ func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder(ra urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilderInternal(urlParams, requestAdapter) } +// DeletePath provides operations to call the delete method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder) DeletePath()(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeDeleteRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireColumn provides operations to call the entireColumn method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder) EntireColumn()(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireRow provides operations to call the entireRow method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder) EntireRow()(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Format provides operations to manage the format property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder) Format()(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeFormatRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.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 @@ -54,6 +114,76 @@ func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder) } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil } +// Insert provides operations to call the insert method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder) Insert()(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeInsertRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeInsertRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// IntersectionWithAnotherRange provides operations to call the intersection method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder) IntersectionWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// LastCell provides operations to call the lastCell method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder) LastCell()(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastCellRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastCellRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastColumn provides operations to call the lastColumn method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder) LastColumn()(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastRow provides operations to call the lastRow method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder) LastRow()(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeLastRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Merge provides operations to call the merge method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder) Merge()(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeMergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// OffsetRangeWithRowOffsetWithColumnOffset provides operations to call the offsetRange method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder) OffsetRangeWithRowOffsetWithColumnOffset(columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, columnOffset, rowOffset) +} +// ResizedRangeWithDeltaRowsWithDeltaColumns provides operations to call the resizedRange method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder) ResizedRangeWithDeltaRowsWithDeltaColumns(deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, deltaColumns, deltaRows) +} +// RowsAbove provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder) RowsAbove()(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsAboveWithCount provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder) RowsAboveWithCount(count *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowsBelow provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder) RowsBelow()(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsBelowWithCount provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder) RowsBelowWithCount(count *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowWithRow provides operations to call the row method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder) RowWithRow(row *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, row) +} +// Sort provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder) Sort()(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeSortRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeSortRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToGetRequestInformation gets the range object associated with the data body of the column. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { @@ -65,8 +195,33 @@ func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder) requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } +// Unmerge provides operations to call the unmerge method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder) Unmerge()(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// UsedRange provides operations to call the usedRange method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder) UsedRange()(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// UsedRangeWithValuesOnly provides operations to call the usedRange method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder) UsedRangeWithValuesOnly(valuesOnly *bool)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, valuesOnly) +} +// VisibleView provides operations to call the visibleView method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder) VisibleView()(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilderInternal(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 *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder when successful func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder) { return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); } +// Worksheet provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRequestBuilder) Worksheet()(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_row_with_row_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_row_with_row_request_builder.go new file mode 100644 index 00000000000..2b34cd70bc9 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_row_with_row_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilder provides operations to call the row method. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, row *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/row(row={row})", pathParameters), + } + if row != nil { + m.BaseRequestBuilder.PathParameters["row"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*row), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function row +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function row +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_rows_above_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_rows_above_request_builder.go new file mode 100644 index 00000000000..d9a5c22d464 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_rows_above_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/rowsAbove()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_rows_below_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_rows_below_request_builder.go new file mode 100644 index 00000000000..4d70354f7e8 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_rows_below_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/rowsBelow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_sort_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_sort_request_builder.go new file mode 100644 index 00000000000..ba7dd9daf13 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_sort_request_builder.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeSortRequestBuilder provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeSortRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeSortRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeSortRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeSortRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeSortRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeSortRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeSortRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeSortRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeSortRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeSortRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeSortRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeSortRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeSortRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeSortRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/sort{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeSortRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeSortRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeSortRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeSortRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property sort for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeSortRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeSortRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeSortRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeSortRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// Patch update the navigation property sort in drives +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeSortRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeSortRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// ToDeleteRequestInformation delete navigation property sort for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeSortRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeSortRequestBuilderDeleteRequestConfiguration)(*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 worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeSortRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeSortRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeSortRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeSortRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeSortRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeSortRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeSortRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_unmerge_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_unmerge_request_builder.go new file mode 100644 index 00000000000..bc2b6c8c903 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_unmerge_request_builder.go @@ -0,0 +1,64 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilder provides operations to call the unmerge method. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/unmerge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unmerge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unmerge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_used_range_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_used_range_request_builder.go new file mode 100644 index 00000000000..8e96d22aba8 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_used_range_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilder provides operations to call the usedRange method. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/usedRange()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilderInternal(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 *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function usedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_visible_view_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_visible_view_request_builder.go new file mode 100644 index 00000000000..cd8233062a9 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_visible_view_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilder provides operations to call the visibleView method. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/visibleView()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function visibleView +// returns a WorkbookRangeViewable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeViewFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable), nil +} +// ToGetRequestInformation invoke function visibleView +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_worksheet_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_worksheet_request_builder.go new file mode 100644 index 00000000000..3887e03f8a3 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_data_body_range_worksheet_request_builder.go @@ -0,0 +1,81 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilder provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilderGetQueryParameters +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/dataBodyRange()/worksheet{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookWorksheetable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookWorksheetFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable), nil +} +// ToGetRequestInformation the worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_filter_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_filter_request_builder.go index 596f8f2c707..3d2068aefeb 100644 --- a/drives/item_items_item_workbook_tables_item_columns_item_filter_request_builder.go +++ b/drives/item_items_item_workbook_tables_item_columns_item_filter_request_builder.go @@ -18,7 +18,7 @@ type ItemItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilderDeleteRequest // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilderGetQueryParameters retrieve the filter applied to the column. Read-only. +// ItemItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilderGetQueryParameters the filter applied to the column. Read-only. type ItemItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -130,7 +130,7 @@ func (m *ItemItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilder) Delete( } return nil } -// Get retrieve the filter applied to the column. Read-only. +// Get 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 *ItemItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookFilterable, error) { @@ -181,7 +181,7 @@ func (m *ItemItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilder) ToDelet requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation retrieve the filter applied to the column. Read-only. +// ToGetRequestInformation the filter applied to the column. Read-only. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_clear_post_request_body.go b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_clear_post_request_body.go new file mode 100644 index 00000000000..7e5d10b54e8 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_clear_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeClearPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeClearPostRequestBody instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeClearPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeClearPostRequestBody()(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeClearPostRequestBody) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeClearPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeClearPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeClearPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeClearPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeClearPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetApplyTo gets the applyTo property value. The applyTo property +// returns a *string when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeClearPostRequestBody) GetApplyTo()(*string) { + val, err := m.GetBackingStore().Get("applyTo") + 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 *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeClearPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeClearPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["applyTo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetApplyTo(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeClearPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("applyTo", m.GetApplyTo()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeClearPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetApplyTo sets the applyTo property value. The applyTo property +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeClearPostRequestBody) SetApplyTo(value *string)() { + err := m.GetBackingStore().Set("applyTo", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeClearPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeClearPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetApplyTo()(*string) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetApplyTo(value *string)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_clear_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_clear_request_builder.go new file mode 100644 index 00000000000..5aec7d10f21 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_clear_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeClearRequestBuilder provides operations to call the clear method. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeClearRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeClearRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeClearRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeClearRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeClearRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeClearRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeClearRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/clear", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeClearRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeClearRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeClearRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeClearRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action clear +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeClearRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeClearRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action clear +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeClearRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeClearRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeClearRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeClearRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeClearRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_columns_after_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_columns_after_request_builder.go new file mode 100644 index 00000000000..0db1eca6f90 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_columns_after_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/columnsAfter()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_columns_before_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_columns_before_request_builder.go new file mode 100644 index 00000000000..3f928d00d61 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_columns_before_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/columnsBefore()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_delete_post_request_body.go b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_delete_post_request_body.go new file mode 100644 index 00000000000..d4bf7bceb50 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_delete_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeDeletePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeDeletePostRequestBody instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeDeletePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeDeletePostRequestBody()(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeDeletePostRequestBody) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeDeletePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeDeletePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeDeletePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeDeletePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeDeletePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeDeletePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeDeletePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeDeletePostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeDeletePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeDeletePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeDeletePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeDeletePostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeDeletePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_delete_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_delete_request_builder.go new file mode 100644 index 00000000000..69190709469 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_delete_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilder provides operations to call the delete method. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/delete", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action delete +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action delete +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_entire_column_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_entire_column_request_builder.go new file mode 100644 index 00000000000..7ba8ef1d036 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_entire_column_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilder provides operations to call the entireColumn method. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/entireColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_entire_row_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_entire_row_request_builder.go new file mode 100644 index 00000000000..edaf3623c7a --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_entire_row_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilder provides operations to call the entireRow method. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/entireRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_format_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_format_request_builder.go new file mode 100644 index 00000000000..0ca453b3143 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_format_request_builder.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeFormatRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeFormatRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeFormatRequestBuilderGetQueryParameters returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeFormatRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeFormatRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeFormatRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeFormatRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeFormatRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeFormatRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeFormatRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/format{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeFormatRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeFormatRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeFormatRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property format for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeFormatRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeFormatRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// Patch update the navigation property format in drives +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeFormatRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeFormatRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// ToDeleteRequestInformation delete navigation property format for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeFormatRequestBuilderDeleteRequestConfiguration)(*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 format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeFormatRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeFormatRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeFormatRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_insert_post_request_body.go b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_insert_post_request_body.go new file mode 100644 index 00000000000..781aac38ba1 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_insert_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeInsertPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeInsertPostRequestBody instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeInsertPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeInsertPostRequestBody()(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeInsertPostRequestBody) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeInsertPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeInsertPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeInsertPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeInsertPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeInsertPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeInsertPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeInsertPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeInsertPostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeInsertPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeInsertPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeInsertPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeInsertPostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeInsertPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_insert_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_insert_request_builder.go new file mode 100644 index 00000000000..59842054f91 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_insert_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeInsertRequestBuilder provides operations to call the insert method. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeInsertRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeInsertRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeInsertRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeInsertRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeInsertRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeInsertRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeInsertRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/insert", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeInsertRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeInsertRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeInsertRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeInsertRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action insert +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeInsertRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeInsertRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToPostRequestInformation invoke action insert +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeInsertRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeInsertRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeInsertRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeInsertRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeInsertRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_last_cell_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_last_cell_request_builder.go new file mode 100644 index 00000000000..e903d4fbac3 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_last_cell_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilder provides operations to call the lastCell method. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/lastCell()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastCell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastCell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_last_column_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_last_column_request_builder.go new file mode 100644 index 00000000000..51ae998dbd9 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_last_column_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilder provides operations to call the lastColumn method. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/lastColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_last_row_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_last_row_request_builder.go new file mode 100644 index 00000000000..e304a46e8c5 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_last_row_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilder provides operations to call the lastRow method. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/lastRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_merge_post_request_body.go b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_merge_post_request_body.go new file mode 100644 index 00000000000..068101b8069 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_merge_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergePostRequestBody instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergePostRequestBody()(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergePostRequestBody) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergePostRequestBody(), nil +} +// GetAcross gets the across property value. The across property +// returns a *bool when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergePostRequestBody) GetAcross()(*bool) { + val, err := m.GetBackingStore().Get("across") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + 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 *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["across"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetAcross(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("across", m.GetAcross()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAcross sets the across property value. The across property +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergePostRequestBody) SetAcross(value *bool)() { + err := m.GetBackingStore().Set("across", 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 *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAcross()(*bool) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetAcross(value *bool)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_merge_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_merge_request_builder.go new file mode 100644 index 00000000000..7c4ec1953af --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_merge_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergeRequestBuilder provides operations to call the merge method. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/merge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action merge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergeRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action merge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergeRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_request_builder.go index 76442f26f95..fc283f062e2 100644 --- a/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_request_builder.go +++ b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_request_builder.go @@ -18,6 +18,46 @@ type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilderGetRe // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// BoundingRectWithAnotherRange provides operations to call the boundingRect method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder) BoundingRectWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// CellWithRowWithColumn provides operations to call the cell method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder) CellWithRowWithColumn(column *int32, row *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column, row) +} +// Clear provides operations to call the clear method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder) Clear()(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeClearRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeClearRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfter provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder) ColumnsAfter()(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfterWithCount provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder) ColumnsAfterWithCount(count *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnsBefore provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder) ColumnsBefore()(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsBeforeWithCount provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder) ColumnsBeforeWithCount(count *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnWithColumn provides operations to call the column method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder) ColumnWithColumn(column *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column) +} // NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder and sets the default values. func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder) { m := &ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder{ @@ -31,6 +71,26 @@ func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder(r urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilderInternal(urlParams, requestAdapter) } +// DeletePath provides operations to call the delete method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder) DeletePath()(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireColumn provides operations to call the entireColumn method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder) EntireColumn()(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireRow provides operations to call the entireRow method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder) EntireRow()(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Format provides operations to manage the format property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder) Format()(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeFormatRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.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 @@ -54,6 +114,76 @@ func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder) } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil } +// Insert provides operations to call the insert method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder) Insert()(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeInsertRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeInsertRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// IntersectionWithAnotherRange provides operations to call the intersection method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder) IntersectionWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// LastCell provides operations to call the lastCell method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder) LastCell()(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastColumn provides operations to call the lastColumn method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder) LastColumn()(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastRow provides operations to call the lastRow method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder) LastRow()(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Merge provides operations to call the merge method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder) Merge()(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeMergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// OffsetRangeWithRowOffsetWithColumnOffset provides operations to call the offsetRange method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder) OffsetRangeWithRowOffsetWithColumnOffset(columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, columnOffset, rowOffset) +} +// ResizedRangeWithDeltaRowsWithDeltaColumns provides operations to call the resizedRange method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder) ResizedRangeWithDeltaRowsWithDeltaColumns(deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, deltaColumns, deltaRows) +} +// RowsAbove provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder) RowsAbove()(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsAboveWithCount provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder) RowsAboveWithCount(count *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowsBelow provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder) RowsBelow()(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsBelowWithCount provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder) RowsBelowWithCount(count *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowWithRow provides operations to call the row method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder) RowWithRow(row *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, row) +} +// Sort provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder) Sort()(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeSortRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeSortRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToGetRequestInformation gets the range object associated with the header row of the column. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { @@ -65,8 +195,33 @@ func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder) requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } +// Unmerge provides operations to call the unmerge method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder) Unmerge()(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// UsedRange provides operations to call the usedRange method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder) UsedRange()(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// UsedRangeWithValuesOnly provides operations to call the usedRange method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder) UsedRangeWithValuesOnly(valuesOnly *bool)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, valuesOnly) +} +// VisibleView provides operations to call the visibleView method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder) VisibleView()(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilderInternal(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 *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder when successful func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder) { return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); } +// Worksheet provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRequestBuilder) Worksheet()(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_row_with_row_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_row_with_row_request_builder.go new file mode 100644 index 00000000000..16a49503b7c --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_row_with_row_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilder provides operations to call the row method. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, row *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/row(row={row})", pathParameters), + } + if row != nil { + m.BaseRequestBuilder.PathParameters["row"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*row), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function row +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function row +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_rows_above_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_rows_above_request_builder.go new file mode 100644 index 00000000000..0dcce4d1810 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_rows_above_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/rowsAbove()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_rows_below_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_rows_below_request_builder.go new file mode 100644 index 00000000000..cbd06e812df --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_rows_below_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/rowsBelow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_sort_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_sort_request_builder.go new file mode 100644 index 00000000000..b3f45324cda --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_sort_request_builder.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeSortRequestBuilder provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeSortRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeSortRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeSortRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeSortRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeSortRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeSortRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeSortRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeSortRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeSortRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeSortRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeSortRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeSortRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeSortRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeSortRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/sort{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeSortRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeSortRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeSortRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeSortRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property sort for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeSortRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeSortRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeSortRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeSortRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// Patch update the navigation property sort in drives +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeSortRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeSortRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// ToDeleteRequestInformation delete navigation property sort for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeSortRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeSortRequestBuilderDeleteRequestConfiguration)(*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 worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeSortRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeSortRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeSortRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeSortRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeSortRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeSortRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeSortRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_unmerge_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_unmerge_request_builder.go new file mode 100644 index 00000000000..248fefaf585 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_unmerge_request_builder.go @@ -0,0 +1,64 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilder provides operations to call the unmerge method. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/unmerge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unmerge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unmerge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_used_range_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_used_range_request_builder.go new file mode 100644 index 00000000000..2ab155b7db9 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_used_range_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilder provides operations to call the usedRange method. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/usedRange()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilderInternal(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 *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function usedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_visible_view_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_visible_view_request_builder.go new file mode 100644 index 00000000000..788db64947b --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_visible_view_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilder provides operations to call the visibleView method. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/visibleView()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function visibleView +// returns a WorkbookRangeViewable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeViewFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable), nil +} +// ToGetRequestInformation invoke function visibleView +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_worksheet_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_worksheet_request_builder.go new file mode 100644 index 00000000000..2027beb6921 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_header_row_range_worksheet_request_builder.go @@ -0,0 +1,81 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilder provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilderGetQueryParameters +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/headerRowRange()/worksheet{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookWorksheetable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookWorksheetFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable), nil +} +// ToGetRequestInformation the worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_range_cell_with_row_with_column_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_range_cell_with_row_with_column_request_builder.go new file mode 100644 index 00000000000..f4d010c5d88 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_range_cell_with_row_with_column_request_builder.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilder provides operations to call the cell method. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32, row *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/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 +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function cell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function cell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_range_clear_post_request_body.go b/drives/item_items_item_workbook_tables_item_columns_item_range_clear_post_request_body.go new file mode 100644 index 00000000000..feb1197d6d1 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_range_clear_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookTablesItemColumnsItemRangeClearPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeClearPostRequestBody instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeClearPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeClearPostRequestBody()(*ItemItemsItemWorkbookTablesItemColumnsItemRangeClearPostRequestBody) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemRangeClearPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookTablesItemColumnsItemRangeClearPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookTablesItemColumnsItemRangeClearPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeClearPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeClearPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetApplyTo gets the applyTo property value. The applyTo property +// returns a *string when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeClearPostRequestBody) GetApplyTo()(*string) { + val, err := m.GetBackingStore().Get("applyTo") + 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 *ItemItemsItemWorkbookTablesItemColumnsItemRangeClearPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeClearPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["applyTo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetApplyTo(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeClearPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("applyTo", m.GetApplyTo()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeClearPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetApplyTo sets the applyTo property value. The applyTo property +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeClearPostRequestBody) SetApplyTo(value *string)() { + err := m.GetBackingStore().Set("applyTo", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeClearPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookTablesItemColumnsItemRangeClearPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetApplyTo()(*string) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetApplyTo(value *string)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_range_clear_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_range_clear_request_builder.go new file mode 100644 index 00000000000..547fc162ddd --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_range_clear_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemRangeClearRequestBuilder provides operations to call the clear method. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeClearRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemRangeClearRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeClearRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeClearRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeClearRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeClearRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemRangeClearRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/clear", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeClearRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeClearRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeClearRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeClearRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action clear +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeClearRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookTablesItemColumnsItemRangeClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeClearRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action clear +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeClearRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookTablesItemColumnsItemRangeClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeClearRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemRangeClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeClearRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeClearRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeClearRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_range_column_with_column_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_range_column_with_column_request_builder.go new file mode 100644 index 00000000000..3cf4234e337 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_range_column_with_column_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnWithColumnRequestBuilder provides operations to call the column method. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeColumnWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeColumnWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/column(column={column})", pathParameters), + } + if column != nil { + m.BaseRequestBuilder.PathParameters["column"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*column), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeColumnWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeColumnWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeColumnWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function column +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function column +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeColumnWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_range_columns_after_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_range_columns_after_request_builder.go new file mode 100644 index 00000000000..4b42cc771b9 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_range_columns_after_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/columnsAfter()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_range_columns_after_with_count_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_range_columns_after_with_count_request_builder.go new file mode 100644 index 00000000000..f26af61f2a8 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_range_columns_after_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/columnsAfter(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_range_columns_before_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_range_columns_before_request_builder.go new file mode 100644 index 00000000000..83d8648f817 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_range_columns_before_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/columnsBefore()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_range_columns_before_with_count_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_range_columns_before_with_count_request_builder.go new file mode 100644 index 00000000000..2ad227bbfa9 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_range_columns_before_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/columnsBefore(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_range_delete_post_request_body.go b/drives/item_items_item_workbook_tables_item_columns_item_range_delete_post_request_body.go new file mode 100644 index 00000000000..95498369cc7 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_range_delete_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookTablesItemColumnsItemRangeDeletePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeDeletePostRequestBody instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeDeletePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeDeletePostRequestBody()(*ItemItemsItemWorkbookTablesItemColumnsItemRangeDeletePostRequestBody) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemRangeDeletePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookTablesItemColumnsItemRangeDeletePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookTablesItemColumnsItemRangeDeletePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeDeletePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeDeletePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeDeletePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeDeletePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeDeletePostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeDeletePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeDeletePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeDeletePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeDeletePostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookTablesItemColumnsItemRangeDeletePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_range_delete_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_range_delete_request_builder.go new file mode 100644 index 00000000000..00407e4081b --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_range_delete_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemRangeDeleteRequestBuilder provides operations to call the delete method. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemRangeDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeDeleteRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeDeleteRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemRangeDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/delete", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeDeleteRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action delete +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeDeleteRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookTablesItemColumnsItemRangeDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action delete +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookTablesItemColumnsItemRangeDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemRangeDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeDeleteRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_range_entire_column_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_range_entire_column_request_builder.go new file mode 100644 index 00000000000..2dc936b7e5c --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_range_entire_column_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemRangeEntireColumnRequestBuilder provides operations to call the entireColumn method. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeEntireColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemRangeEntireColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeEntireColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeEntireColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeEntireColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeEntireColumnRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemRangeEntireColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/entireColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeEntireColumnRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeEntireColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeEntireColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeEntireColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeEntireColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeEntireColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeEntireColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeEntireColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemRangeEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeEntireColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeEntireColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_range_entire_row_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_range_entire_row_request_builder.go new file mode 100644 index 00000000000..10d345dc0a5 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_range_entire_row_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemRangeEntireRowRequestBuilder provides operations to call the entireRow method. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeEntireRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemRangeEntireRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeEntireRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeEntireRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeEntireRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeEntireRowRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemRangeEntireRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/entireRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeEntireRowRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeEntireRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeEntireRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeEntireRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeEntireRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeEntireRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeEntireRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeEntireRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemRangeEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeEntireRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeEntireRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_range_format_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_range_format_request_builder.go new file mode 100644 index 00000000000..ab1e3230cb4 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_range_format_request_builder.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemRangeFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeFormatRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemRangeFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeFormatRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookTablesItemColumnsItemRangeFormatRequestBuilderGetQueryParameters returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeFormatRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookTablesItemColumnsItemRangeFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeFormatRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookTablesItemColumnsItemRangeFormatRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookTablesItemColumnsItemRangeFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeFormatRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeFormatRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeFormatRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemRangeFormatRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/format{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeFormatRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeFormatRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeFormatRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property format for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeFormatRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeFormatRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// Patch update the navigation property format in drives +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeFormatRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeFormatRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// ToDeleteRequestInformation delete navigation property format for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeFormatRequestBuilderDeleteRequestConfiguration)(*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 format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeFormatRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemRangeFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeFormatRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeFormatRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_range_insert_post_request_body.go b/drives/item_items_item_workbook_tables_item_columns_item_range_insert_post_request_body.go new file mode 100644 index 00000000000..081dc398f45 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_range_insert_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookTablesItemColumnsItemRangeInsertPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeInsertPostRequestBody instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeInsertPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeInsertPostRequestBody()(*ItemItemsItemWorkbookTablesItemColumnsItemRangeInsertPostRequestBody) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemRangeInsertPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookTablesItemColumnsItemRangeInsertPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookTablesItemColumnsItemRangeInsertPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeInsertPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeInsertPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeInsertPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeInsertPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeInsertPostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeInsertPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeInsertPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeInsertPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeInsertPostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookTablesItemColumnsItemRangeInsertPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_range_insert_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_range_insert_request_builder.go new file mode 100644 index 00000000000..9b402edcc46 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_range_insert_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemRangeInsertRequestBuilder provides operations to call the insert method. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeInsertRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemRangeInsertRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeInsertRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeInsertRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeInsertRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeInsertRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemRangeInsertRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/insert", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeInsertRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeInsertRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeInsertRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeInsertRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action insert +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeInsertRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookTablesItemColumnsItemRangeInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeInsertRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToPostRequestInformation invoke action insert +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeInsertRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookTablesItemColumnsItemRangeInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeInsertRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemRangeInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeInsertRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeInsertRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeInsertRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_range_last_cell_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_range_last_cell_request_builder.go new file mode 100644 index 00000000000..a7a40ec0920 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_range_last_cell_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemRangeLastCellRequestBuilder provides operations to call the lastCell method. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeLastCellRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemRangeLastCellRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeLastCellRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeLastCellRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeLastCellRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeLastCellRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemRangeLastCellRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/lastCell()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeLastCellRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeLastCellRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeLastCellRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeLastCellRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastCell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeLastCellRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeLastCellRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastCell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeLastCellRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeLastCellRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemRangeLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeLastCellRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeLastCellRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeLastCellRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_range_last_column_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_range_last_column_request_builder.go new file mode 100644 index 00000000000..ac29c9dc8c4 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_range_last_column_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemRangeLastColumnRequestBuilder provides operations to call the lastColumn method. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeLastColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemRangeLastColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeLastColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeLastColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeLastColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeLastColumnRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemRangeLastColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/lastColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeLastColumnRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeLastColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeLastColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeLastColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeLastColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeLastColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeLastColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeLastColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemRangeLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeLastColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeLastColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_range_last_row_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_range_last_row_request_builder.go new file mode 100644 index 00000000000..8676942357f --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_range_last_row_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemRangeLastRowRequestBuilder provides operations to call the lastRow method. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeLastRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemRangeLastRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeLastRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeLastRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeLastRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeLastRowRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemRangeLastRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/lastRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeLastRowRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeLastRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeLastRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeLastRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeLastRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeLastRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeLastRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeLastRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemRangeLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeLastRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeLastRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeLastRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_range_merge_post_request_body.go b/drives/item_items_item_workbook_tables_item_columns_item_range_merge_post_request_body.go new file mode 100644 index 00000000000..ee0b6179796 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_range_merge_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookTablesItemColumnsItemRangeMergePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeMergePostRequestBody instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeMergePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeMergePostRequestBody()(*ItemItemsItemWorkbookTablesItemColumnsItemRangeMergePostRequestBody) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemRangeMergePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookTablesItemColumnsItemRangeMergePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookTablesItemColumnsItemRangeMergePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeMergePostRequestBody(), nil +} +// GetAcross gets the across property value. The across property +// returns a *bool when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeMergePostRequestBody) GetAcross()(*bool) { + val, err := m.GetBackingStore().Get("across") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + 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 *ItemItemsItemWorkbookTablesItemColumnsItemRangeMergePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeMergePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeMergePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["across"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetAcross(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeMergePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("across", m.GetAcross()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAcross sets the across property value. The across property +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeMergePostRequestBody) SetAcross(value *bool)() { + err := m.GetBackingStore().Set("across", 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 *ItemItemsItemWorkbookTablesItemColumnsItemRangeMergePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeMergePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookTablesItemColumnsItemRangeMergePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAcross()(*bool) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetAcross(value *bool)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_range_merge_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_range_merge_request_builder.go new file mode 100644 index 00000000000..e6fe339beec --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_range_merge_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemRangeMergeRequestBuilder provides operations to call the merge method. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeMergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemRangeMergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeMergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeMergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeMergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeMergeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemRangeMergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/merge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeMergeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeMergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeMergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeMergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action merge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeMergeRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookTablesItemColumnsItemRangeMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeMergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action merge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeMergeRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookTablesItemColumnsItemRangeMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeMergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemRangeMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeMergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeMergeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeMergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_range_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_range_request_builder.go index 999ed7f8a2f..a5b518c8cd1 100644 --- a/drives/item_items_item_workbook_tables_item_columns_item_range_request_builder.go +++ b/drives/item_items_item_workbook_tables_item_columns_item_range_request_builder.go @@ -18,6 +18,46 @@ type ItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilderGetRequestConf // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// BoundingRectWithAnotherRange provides operations to call the boundingRect method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder) BoundingRectWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// CellWithRowWithColumn provides operations to call the cell method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder) CellWithRowWithColumn(column *int32, row *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column, row) +} +// Clear provides operations to call the clear method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemRangeClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder) Clear()(*ItemItemsItemWorkbookTablesItemColumnsItemRangeClearRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeClearRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfter provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder) ColumnsAfter()(*ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfterWithCount provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder) ColumnsAfterWithCount(count *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnsBefore provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder) ColumnsBefore()(*ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsBeforeWithCount provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder) ColumnsBeforeWithCount(count *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnWithColumn provides operations to call the column method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder) ColumnWithColumn(column *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeColumnWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column) +} // NewItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder and sets the default values. func NewItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder) { m := &ItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder{ @@ -31,6 +71,26 @@ func NewItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder(rawUrl str urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilderInternal(urlParams, requestAdapter) } +// DeletePath provides operations to call the delete method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemRangeDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder) DeletePath()(*ItemItemsItemWorkbookTablesItemColumnsItemRangeDeleteRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireColumn provides operations to call the entireColumn method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemRangeEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder) EntireColumn()(*ItemItemsItemWorkbookTablesItemColumnsItemRangeEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeEntireColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireRow provides operations to call the entireRow method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemRangeEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder) EntireRow()(*ItemItemsItemWorkbookTablesItemColumnsItemRangeEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeEntireRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Format provides operations to manage the format property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemRangeFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder) Format()(*ItemItemsItemWorkbookTablesItemColumnsItemRangeFormatRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.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 @@ -54,6 +114,76 @@ func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder) Get(ctx } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil } +// Insert provides operations to call the insert method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemRangeInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder) Insert()(*ItemItemsItemWorkbookTablesItemColumnsItemRangeInsertRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeInsertRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// IntersectionWithAnotherRange provides operations to call the intersection method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder) IntersectionWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// LastCell provides operations to call the lastCell method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemRangeLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder) LastCell()(*ItemItemsItemWorkbookTablesItemColumnsItemRangeLastCellRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeLastCellRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastColumn provides operations to call the lastColumn method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemRangeLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder) LastColumn()(*ItemItemsItemWorkbookTablesItemColumnsItemRangeLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeLastColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastRow provides operations to call the lastRow method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemRangeLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder) LastRow()(*ItemItemsItemWorkbookTablesItemColumnsItemRangeLastRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeLastRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Merge provides operations to call the merge method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemRangeMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder) Merge()(*ItemItemsItemWorkbookTablesItemColumnsItemRangeMergeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeMergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// OffsetRangeWithRowOffsetWithColumnOffset provides operations to call the offsetRange method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder) OffsetRangeWithRowOffsetWithColumnOffset(columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, columnOffset, rowOffset) +} +// ResizedRangeWithDeltaRowsWithDeltaColumns provides operations to call the resizedRange method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder) ResizedRangeWithDeltaRowsWithDeltaColumns(deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, deltaColumns, deltaRows) +} +// RowsAbove provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder) RowsAbove()(*ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsAboveWithCount provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder) RowsAboveWithCount(count *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowsBelow provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder) RowsBelow()(*ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsBelowWithCount provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder) RowsBelowWithCount(count *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowWithRow provides operations to call the row method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemRangeRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder) RowWithRow(row *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeRowWithRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, row) +} +// Sort provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemRangeSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder) Sort()(*ItemItemsItemWorkbookTablesItemColumnsItemRangeSortRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeSortRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToGetRequestInformation gets the range object associated with the entire column. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { @@ -65,8 +195,33 @@ func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder) ToGetReq requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } +// Unmerge provides operations to call the unmerge method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemRangeUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder) Unmerge()(*ItemItemsItemWorkbookTablesItemColumnsItemRangeUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeUnmergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// UsedRange provides operations to call the usedRange method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder) UsedRange()(*ItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// UsedRangeWithValuesOnly provides operations to call the usedRange method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder) UsedRangeWithValuesOnly(valuesOnly *bool)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, valuesOnly) +} +// VisibleView provides operations to call the visibleView method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemRangeVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder) VisibleView()(*ItemItemsItemWorkbookTablesItemColumnsItemRangeVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeVisibleViewRequestBuilderInternal(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 *ItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder when successful func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder) { return NewItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); } +// Worksheet provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemRangeWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRequestBuilder) Worksheet()(*ItemItemsItemWorkbookTablesItemColumnsItemRangeWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeWorksheetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_range_row_with_row_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_range_row_with_row_request_builder.go new file mode 100644 index 00000000000..f7c58171b49 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_range_row_with_row_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemRangeRowWithRowRequestBuilder provides operations to call the row method. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeRowWithRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemRangeRowWithRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeRowWithRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeRowWithRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeRowWithRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, row *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeRowWithRowRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemRangeRowWithRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/row(row={row})", pathParameters), + } + if row != nil { + m.BaseRequestBuilder.PathParameters["row"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*row), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeRowWithRowRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeRowWithRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeRowWithRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeRowWithRowRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function row +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRowWithRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeRowWithRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function row +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRowWithRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeRowWithRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemRangeRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRowWithRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeRowWithRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_range_rows_above_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_range_rows_above_request_builder.go new file mode 100644 index 00000000000..7ad9cd260b4 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_range_rows_above_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/rowsAbove()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_range_rows_above_with_count_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_range_rows_above_with_count_request_builder.go new file mode 100644 index 00000000000..d53a479091e --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_range_rows_above_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/rowsAbove(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_range_rows_below_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_range_rows_below_request_builder.go new file mode 100644 index 00000000000..c014f131ecc --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_range_rows_below_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/rowsBelow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_range_rows_below_with_count_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_range_rows_below_with_count_request_builder.go new file mode 100644 index 00000000000..021172f8f20 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_range_rows_below_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/rowsBelow(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_range_sort_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_range_sort_request_builder.go new file mode 100644 index 00000000000..c7851884101 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_range_sort_request_builder.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemRangeSortRequestBuilder provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeSortRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemRangeSortRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeSortRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookTablesItemColumnsItemRangeSortRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeSortRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookTablesItemColumnsItemRangeSortRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeSortRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookTablesItemColumnsItemRangeSortRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookTablesItemColumnsItemRangeSortRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeSortRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeSortRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeSortRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeSortRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemRangeSortRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/sort{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeSortRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeSortRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeSortRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeSortRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property sort for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeSortRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeSortRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeSortRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeSortRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// Patch update the navigation property sort in drives +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeSortRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeSortRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// ToDeleteRequestInformation delete navigation property sort for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeSortRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeSortRequestBuilderDeleteRequestConfiguration)(*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 worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeSortRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeSortRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeSortRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeSortRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemRangeSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeSortRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeSortRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeSortRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_range_unmerge_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_range_unmerge_request_builder.go new file mode 100644 index 00000000000..b9d1a02ae5a --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_range_unmerge_request_builder.go @@ -0,0 +1,64 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemRangeUnmergeRequestBuilder provides operations to call the unmerge method. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeUnmergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemRangeUnmergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeUnmergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeUnmergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeUnmergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeUnmergeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemRangeUnmergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/unmerge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeUnmergeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeUnmergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeUnmergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeUnmergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unmerge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeUnmergeRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeUnmergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unmerge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeUnmergeRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeUnmergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemItemsItemWorkbookTablesItemColumnsItemRangeUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeUnmergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeUnmergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_range_used_range_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_range_used_range_request_builder.go new file mode 100644 index 00000000000..4067edb3448 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_range_used_range_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeRequestBuilder provides operations to call the usedRange method. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/usedRange()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeRequestBuilderInternal(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 *ItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function usedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_range_used_range_with_values_only_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_range_used_range_with_values_only_request_builder.go new file mode 100644 index 00000000000..75d26853d36 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_range_used_range_with_values_only_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilder provides operations to call the usedRange method. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, valuesOnly *bool)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/usedRange(valuesOnly={valuesOnly})", pathParameters), + } + if valuesOnly != nil { + m.BaseRequestBuilder.PathParameters["valuesOnly"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatBool(*valuesOnly) + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilderInternal(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 *ItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function usedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_range_visible_view_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_range_visible_view_request_builder.go new file mode 100644 index 00000000000..938e7e7d761 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_range_visible_view_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemRangeVisibleViewRequestBuilder provides operations to call the visibleView method. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeVisibleViewRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemRangeVisibleViewRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeVisibleViewRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeVisibleViewRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeVisibleViewRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeVisibleViewRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemRangeVisibleViewRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/visibleView()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeVisibleViewRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeVisibleViewRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeVisibleViewRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeVisibleViewRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function visibleView +// returns a WorkbookRangeViewable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeVisibleViewRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeVisibleViewRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeViewFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable), nil +} +// ToGetRequestInformation invoke function visibleView +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeVisibleViewRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeVisibleViewRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemRangeVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeVisibleViewRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeVisibleViewRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_range_worksheet_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_range_worksheet_request_builder.go new file mode 100644 index 00000000000..d2e7c8e2fe2 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_range_worksheet_request_builder.go @@ -0,0 +1,81 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemRangeWorksheetRequestBuilder provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeWorksheetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemRangeWorksheetRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeWorksheetRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookTablesItemColumnsItemRangeWorksheetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemRangeWorksheetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookTablesItemColumnsItemRangeWorksheetRequestBuilderGetQueryParameters +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeWorksheetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeWorksheetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeWorksheetRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemRangeWorksheetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/worksheet{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemRangeWorksheetRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemRangeWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemRangeWorksheetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeWorksheetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeWorksheetRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookWorksheetable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeWorksheetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeWorksheetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookWorksheetFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable), nil +} +// ToGetRequestInformation the worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeWorksheetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemRangeWorksheetRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 *ItemItemsItemWorkbookTablesItemColumnsItemRangeWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemRangeWorksheetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemRangeWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemRangeWorksheetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_clear_post_request_body.go b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_clear_post_request_body.go new file mode 100644 index 00000000000..482bd231353 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_clear_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeClearPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeClearPostRequestBody instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeClearPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeClearPostRequestBody()(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeClearPostRequestBody) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeClearPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeClearPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeClearPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeClearPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeClearPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetApplyTo gets the applyTo property value. The applyTo property +// returns a *string when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeClearPostRequestBody) GetApplyTo()(*string) { + val, err := m.GetBackingStore().Get("applyTo") + 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 *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeClearPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeClearPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["applyTo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetApplyTo(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeClearPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("applyTo", m.GetApplyTo()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeClearPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetApplyTo sets the applyTo property value. The applyTo property +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeClearPostRequestBody) SetApplyTo(value *string)() { + err := m.GetBackingStore().Set("applyTo", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeClearPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeClearPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetApplyTo()(*string) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetApplyTo(value *string)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_clear_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_clear_request_builder.go new file mode 100644 index 00000000000..5ed7ad8ed38 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_clear_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeClearRequestBuilder provides operations to call the clear method. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeClearRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeClearRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeClearRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeClearRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeClearRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeClearRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeClearRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/clear", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeClearRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeClearRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeClearRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeClearRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action clear +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeClearRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeClearRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action clear +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeClearRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeClearRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeClearRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeClearRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeClearRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_column_with_column_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_column_with_column_request_builder.go new file mode 100644 index 00000000000..299c1a5a8ce --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_column_with_column_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilder provides operations to call the column method. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/column(column={column})", pathParameters), + } + if column != nil { + m.BaseRequestBuilder.PathParameters["column"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*column), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function column +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function column +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_columns_after_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_columns_after_request_builder.go new file mode 100644 index 00000000000..8f87c8c73ef --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_columns_after_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/columnsAfter()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_columns_before_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_columns_before_request_builder.go new file mode 100644 index 00000000000..38b33ab65bc --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_columns_before_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/columnsBefore()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_delete_post_request_body.go b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_delete_post_request_body.go new file mode 100644 index 00000000000..12bbf105db1 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_delete_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeDeletePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeDeletePostRequestBody instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeDeletePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeDeletePostRequestBody()(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeDeletePostRequestBody) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeDeletePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeDeletePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeDeletePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeDeletePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeDeletePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeDeletePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeDeletePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeDeletePostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeDeletePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeDeletePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeDeletePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeDeletePostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeDeletePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_delete_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_delete_request_builder.go new file mode 100644 index 00000000000..a465ef83df6 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_delete_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeDeleteRequestBuilder provides operations to call the delete method. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeDeleteRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeDeleteRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/delete", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeDeleteRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action delete +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeDeleteRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action delete +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeDeleteRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_entire_column_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_entire_column_request_builder.go new file mode 100644 index 00000000000..fd72f2207c3 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_entire_column_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilder provides operations to call the entireColumn method. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/entireColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_entire_row_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_entire_row_request_builder.go new file mode 100644 index 00000000000..c0f7dd056cc --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_entire_row_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilder provides operations to call the entireRow method. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/entireRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_format_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_format_request_builder.go new file mode 100644 index 00000000000..fe04dc6ee55 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_format_request_builder.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeFormatRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeFormatRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeFormatRequestBuilderGetQueryParameters returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeFormatRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeFormatRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeFormatRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeFormatRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeFormatRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeFormatRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeFormatRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/format{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeFormatRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeFormatRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeFormatRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property format for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeFormatRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeFormatRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// Patch update the navigation property format in drives +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeFormatRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeFormatRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// ToDeleteRequestInformation delete navigation property format for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeFormatRequestBuilderDeleteRequestConfiguration)(*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 format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeFormatRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeFormatRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeFormatRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_insert_post_request_body.go b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_insert_post_request_body.go new file mode 100644 index 00000000000..5c496a49065 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_insert_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeInsertPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeInsertPostRequestBody instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeInsertPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeInsertPostRequestBody()(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeInsertPostRequestBody) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeInsertPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeInsertPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeInsertPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeInsertPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeInsertPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeInsertPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeInsertPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeInsertPostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeInsertPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeInsertPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeInsertPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeInsertPostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeInsertPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_insert_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_insert_request_builder.go new file mode 100644 index 00000000000..ab12e7bec89 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_insert_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeInsertRequestBuilder provides operations to call the insert method. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeInsertRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeInsertRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeInsertRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeInsertRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeInsertRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeInsertRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeInsertRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/insert", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeInsertRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeInsertRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeInsertRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeInsertRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action insert +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeInsertRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeInsertRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToPostRequestInformation invoke action insert +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeInsertRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeInsertRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeInsertRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeInsertRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeInsertRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_last_cell_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_last_cell_request_builder.go new file mode 100644 index 00000000000..152397b0591 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_last_cell_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastCellRequestBuilder provides operations to call the lastCell method. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastCellRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastCellRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastCellRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastCellRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastCellRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastCellRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastCellRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/lastCell()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastCellRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastCellRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastCellRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastCellRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastCell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastCellRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastCellRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastCell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastCellRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastCellRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastCellRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastCellRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastCellRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_last_column_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_last_column_request_builder.go new file mode 100644 index 00000000000..58c82f1cc4d --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_last_column_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilder provides operations to call the lastColumn method. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/lastColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_last_row_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_last_row_request_builder.go new file mode 100644 index 00000000000..784f85ce794 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_last_row_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastRowRequestBuilder provides operations to call the lastRow method. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastRowRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/lastRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastRowRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_merge_post_request_body.go b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_merge_post_request_body.go new file mode 100644 index 00000000000..e974357e3a7 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_merge_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergePostRequestBody instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergePostRequestBody()(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergePostRequestBody) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergePostRequestBody(), nil +} +// GetAcross gets the across property value. The across property +// returns a *bool when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergePostRequestBody) GetAcross()(*bool) { + val, err := m.GetBackingStore().Get("across") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + 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 *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["across"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetAcross(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("across", m.GetAcross()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAcross sets the across property value. The across property +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergePostRequestBody) SetAcross(value *bool)() { + err := m.GetBackingStore().Set("across", 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 *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAcross()(*bool) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetAcross(value *bool)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_merge_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_merge_request_builder.go new file mode 100644 index 00000000000..5a751bc24e5 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_merge_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergeRequestBuilder provides operations to call the merge method. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/merge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action merge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergeRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action merge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergeRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_request_builder.go index e551152fddb..be80fa896dc 100644 --- a/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_request_builder.go +++ b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_request_builder.go @@ -18,6 +18,46 @@ type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilderGetReq // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// BoundingRectWithAnotherRange provides operations to call the boundingRect method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder) BoundingRectWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// CellWithRowWithColumn provides operations to call the cell method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder) CellWithRowWithColumn(column *int32, row *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column, row) +} +// Clear provides operations to call the clear method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder) Clear()(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeClearRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeClearRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfter provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder) ColumnsAfter()(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfterWithCount provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder) ColumnsAfterWithCount(count *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnsBefore provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder) ColumnsBefore()(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsBeforeWithCount provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder) ColumnsBeforeWithCount(count *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnWithColumn provides operations to call the column method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder) ColumnWithColumn(column *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column) +} // NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder and sets the default values. func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder) { m := &ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder{ @@ -31,6 +71,26 @@ func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder(ra urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilderInternal(urlParams, requestAdapter) } +// DeletePath provides operations to call the delete method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder) DeletePath()(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeDeleteRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireColumn provides operations to call the entireColumn method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder) EntireColumn()(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireRow provides operations to call the entireRow method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder) EntireRow()(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Format provides operations to manage the format property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder) Format()(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeFormatRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.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 @@ -54,6 +114,76 @@ func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder) } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil } +// Insert provides operations to call the insert method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder) Insert()(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeInsertRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeInsertRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// IntersectionWithAnotherRange provides operations to call the intersection method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder) IntersectionWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// LastCell provides operations to call the lastCell method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder) LastCell()(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastCellRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastCellRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastColumn provides operations to call the lastColumn method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder) LastColumn()(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastRow provides operations to call the lastRow method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder) LastRow()(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeLastRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Merge provides operations to call the merge method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder) Merge()(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeMergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// OffsetRangeWithRowOffsetWithColumnOffset provides operations to call the offsetRange method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder) OffsetRangeWithRowOffsetWithColumnOffset(columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, columnOffset, rowOffset) +} +// ResizedRangeWithDeltaRowsWithDeltaColumns provides operations to call the resizedRange method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder) ResizedRangeWithDeltaRowsWithDeltaColumns(deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, deltaColumns, deltaRows) +} +// RowsAbove provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder) RowsAbove()(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsAboveWithCount provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder) RowsAboveWithCount(count *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowsBelow provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder) RowsBelow()(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsBelowWithCount provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder) RowsBelowWithCount(count *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowWithRow provides operations to call the row method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder) RowWithRow(row *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, row) +} +// Sort provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder) Sort()(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeSortRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeSortRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToGetRequestInformation gets the range object associated with the totals row of the column. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { @@ -65,8 +195,33 @@ func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder) requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } +// Unmerge provides operations to call the unmerge method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder) Unmerge()(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// UsedRange provides operations to call the usedRange method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder) UsedRange()(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// UsedRangeWithValuesOnly provides operations to call the usedRange method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder) UsedRangeWithValuesOnly(valuesOnly *bool)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, valuesOnly) +} +// VisibleView provides operations to call the visibleView method. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder) VisibleView()(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilderInternal(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 *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder when successful func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder) { return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); } +// Worksheet provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRequestBuilder) Worksheet()(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_row_with_row_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_row_with_row_request_builder.go new file mode 100644 index 00000000000..5847007a22b --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_row_with_row_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilder provides operations to call the row method. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, row *int32)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/row(row={row})", pathParameters), + } + if row != nil { + m.BaseRequestBuilder.PathParameters["row"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*row), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function row +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function row +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_rows_above_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_rows_above_request_builder.go new file mode 100644 index 00000000000..f4e762a6a58 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_rows_above_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/rowsAbove()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_rows_below_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_rows_below_request_builder.go new file mode 100644 index 00000000000..83955a0f6c6 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_rows_below_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/rowsBelow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_sort_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_sort_request_builder.go new file mode 100644 index 00000000000..cb75d2aad81 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_sort_request_builder.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeSortRequestBuilder provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeSortRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeSortRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeSortRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeSortRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeSortRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeSortRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeSortRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeSortRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeSortRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeSortRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeSortRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeSortRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeSortRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeSortRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/sort{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeSortRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeSortRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeSortRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeSortRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property sort for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeSortRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeSortRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeSortRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeSortRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// Patch update the navigation property sort in drives +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeSortRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeSortRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// ToDeleteRequestInformation delete navigation property sort for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeSortRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeSortRequestBuilderDeleteRequestConfiguration)(*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 worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeSortRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeSortRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeSortRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeSortRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeSortRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeSortRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeSortRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_unmerge_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_unmerge_request_builder.go new file mode 100644 index 00000000000..20a1cdfdc4e --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_unmerge_request_builder.go @@ -0,0 +1,64 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilder provides operations to call the unmerge method. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/unmerge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unmerge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unmerge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_used_range_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_used_range_request_builder.go new file mode 100644 index 00000000000..d89f77f37fb --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_used_range_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilder provides operations to call the usedRange method. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/usedRange()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilderInternal(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 *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function usedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_visible_view_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_visible_view_request_builder.go new file mode 100644 index 00000000000..b2f6c8aed3c --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_visible_view_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilder provides operations to call the visibleView method. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/visibleView()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function visibleView +// returns a WorkbookRangeViewable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeViewFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable), nil +} +// ToGetRequestInformation invoke function visibleView +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_worksheet_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_worksheet_request_builder.go new file mode 100644 index 00000000000..e59229557f3 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_columns_item_total_row_range_worksheet_request_builder.go @@ -0,0 +1,81 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilder provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilderGetQueryParameters +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/totalRowRange()/worksheet{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookWorksheetable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookWorksheetFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable), nil +} +// ToGetRequestInformation the worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_columns_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_request_builder.go index ba687f1eea0..679ecd1c200 100644 --- a/drives/item_items_item_workbook_tables_item_columns_request_builder.go +++ b/drives/item_items_item_workbook_tables_item_columns_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemItemsItemWorkbookTablesItemColumnsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemItemsItemWorkbookTablesItemColumnsRequestBuilderGetQueryParameters represents a collection of all the columns in the table. Read-only. +// ItemItemsItemWorkbookTablesItemColumnsRequestBuilderGetQueryParameters the list of all the columns in the table. Read-only. type ItemItemsItemWorkbookTablesItemColumnsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -81,7 +81,7 @@ func NewItemItemsItemWorkbookTablesItemColumnsRequestBuilder(rawUrl string, requ func (m *ItemItemsItemWorkbookTablesItemColumnsRequestBuilder) Count()(*ItemItemsItemWorkbookTablesItemColumnsCountRequestBuilder) { return NewItemItemsItemWorkbookTablesItemColumnsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get represents a collection of all the columns in the table. Read-only. +// Get the list 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 *ItemItemsItemWorkbookTablesItemColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableColumnCollectionResponseable, error) { @@ -126,7 +126,7 @@ func (m *ItemItemsItemWorkbookTablesItemColumnsRequestBuilder) Post(ctx context. } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableColumnable), nil } -// ToGetRequestInformation represents a collection of all the columns in the table. Read-only. +// ToGetRequestInformation the list of all the columns in the table. Read-only. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookTablesItemColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_workbook_tables_item_columns_workbook_table_column_item_request_builder.go b/drives/item_items_item_workbook_tables_item_columns_workbook_table_column_item_request_builder.go index 7146a71e8ab..65e42d57302 100644 --- a/drives/item_items_item_workbook_tables_item_columns_workbook_table_column_item_request_builder.go +++ b/drives/item_items_item_workbook_tables_item_columns_workbook_table_column_item_request_builder.go @@ -18,7 +18,7 @@ type ItemItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilder // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilderGetQueryParameters represents a collection of all the columns in the table. Read-only. +// ItemItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilderGetQueryParameters the list of all the columns in the table. Read-only. type ItemItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -80,7 +80,7 @@ func (m *ItemItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBui func (m *ItemItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilder) Filter()(*ItemItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilder) { return NewItemItemsItemWorkbookTablesItemColumnsItemFilterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get represents a collection of all the columns in the table. Read-only. +// Get the list 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 *ItemItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableColumnable, error) { @@ -141,7 +141,7 @@ func (m *ItemItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBui requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation represents a collection of all the columns in the table. Read-only. +// ToGetRequestInformation the list of all the columns in the table. Read-only. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemColumnsWorkbookTableColumnItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_workbook_tables_item_data_body_range_cell_with_row_with_column_request_builder.go b/drives/item_items_item_workbook_tables_item_data_body_range_cell_with_row_with_column_request_builder.go new file mode 100644 index 00000000000..8b39594b8e7 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_data_body_range_cell_with_row_with_column_request_builder.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilder provides operations to call the cell method. +type ItemItemsItemWorkbookTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32, row *int32)(*ItemItemsItemWorkbookTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/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 +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function cell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function cell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_data_body_range_clear_post_request_body.go b/drives/item_items_item_workbook_tables_item_data_body_range_clear_post_request_body.go new file mode 100644 index 00000000000..50d4ce1d820 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_data_body_range_clear_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookTablesItemDataBodyRangeClearPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeClearPostRequestBody instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeClearPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeClearPostRequestBody()(*ItemItemsItemWorkbookTablesItemDataBodyRangeClearPostRequestBody) { + m := &ItemItemsItemWorkbookTablesItemDataBodyRangeClearPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookTablesItemDataBodyRangeClearPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookTablesItemDataBodyRangeClearPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeClearPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeClearPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetApplyTo gets the applyTo property value. The applyTo property +// returns a *string when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeClearPostRequestBody) GetApplyTo()(*string) { + val, err := m.GetBackingStore().Get("applyTo") + 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 *ItemItemsItemWorkbookTablesItemDataBodyRangeClearPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeClearPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["applyTo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetApplyTo(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeClearPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("applyTo", m.GetApplyTo()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeClearPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetApplyTo sets the applyTo property value. The applyTo property +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeClearPostRequestBody) SetApplyTo(value *string)() { + err := m.GetBackingStore().Set("applyTo", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeClearPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookTablesItemDataBodyRangeClearPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetApplyTo()(*string) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetApplyTo(value *string)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/item_items_item_workbook_tables_item_data_body_range_clear_request_builder.go b/drives/item_items_item_workbook_tables_item_data_body_range_clear_request_builder.go new file mode 100644 index 00000000000..ba682ffaf90 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_data_body_range_clear_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemDataBodyRangeClearRequestBuilder provides operations to call the clear method. +type ItemItemsItemWorkbookTablesItemDataBodyRangeClearRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemDataBodyRangeClearRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemDataBodyRangeClearRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeClearRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeClearRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeClearRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemDataBodyRangeClearRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/clear", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeClearRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeClearRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeClearRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemDataBodyRangeClearRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action clear +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeClearRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookTablesItemDataBodyRangeClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeClearRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action clear +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeClearRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookTablesItemDataBodyRangeClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeClearRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookTablesItemDataBodyRangeClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeClearRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemDataBodyRangeClearRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeClearRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_data_body_range_column_with_column_request_builder.go b/drives/item_items_item_workbook_tables_item_data_body_range_column_with_column_request_builder.go new file mode 100644 index 00000000000..8d8c12fcc93 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_data_body_range_column_with_column_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemDataBodyRangeColumnWithColumnRequestBuilder provides operations to call the column method. +type ItemItemsItemWorkbookTablesItemDataBodyRangeColumnWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemDataBodyRangeColumnWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemDataBodyRangeColumnWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeColumnWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeColumnWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32)(*ItemItemsItemWorkbookTablesItemDataBodyRangeColumnWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemDataBodyRangeColumnWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/column(column={column})", pathParameters), + } + if column != nil { + m.BaseRequestBuilder.PathParameters["column"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*column), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeColumnWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeColumnWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeColumnWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemDataBodyRangeColumnWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function column +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeColumnWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeColumnWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function column +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeColumnWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeColumnWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemDataBodyRangeColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeColumnWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemDataBodyRangeColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeColumnWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_data_body_range_columns_after_request_builder.go b/drives/item_items_item_workbook_tables_item_data_body_range_columns_after_request_builder.go new file mode 100644 index 00000000000..201e1fbdd3d --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_data_body_range_columns_after_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/columnsAfter()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_data_body_range_columns_after_with_count_request_builder.go b/drives/item_items_item_workbook_tables_item_data_body_range_columns_after_with_count_request_builder.go new file mode 100644 index 00000000000..fd6ba0f40bc --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_data_body_range_columns_after_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/columnsAfter(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_data_body_range_columns_before_request_builder.go b/drives/item_items_item_workbook_tables_item_data_body_range_columns_before_request_builder.go new file mode 100644 index 00000000000..818fb2c4bac --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_data_body_range_columns_before_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/columnsBefore()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_data_body_range_columns_before_with_count_request_builder.go b/drives/item_items_item_workbook_tables_item_data_body_range_columns_before_with_count_request_builder.go new file mode 100644 index 00000000000..11a9166290e --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_data_body_range_columns_before_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/columnsBefore(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_data_body_range_delete_post_request_body.go b/drives/item_items_item_workbook_tables_item_data_body_range_delete_post_request_body.go new file mode 100644 index 00000000000..2b856bfe739 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_data_body_range_delete_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookTablesItemDataBodyRangeDeletePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeDeletePostRequestBody instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeDeletePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeDeletePostRequestBody()(*ItemItemsItemWorkbookTablesItemDataBodyRangeDeletePostRequestBody) { + m := &ItemItemsItemWorkbookTablesItemDataBodyRangeDeletePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookTablesItemDataBodyRangeDeletePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookTablesItemDataBodyRangeDeletePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeDeletePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeDeletePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeDeletePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeDeletePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeDeletePostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeDeletePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeDeletePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeDeletePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeDeletePostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookTablesItemDataBodyRangeDeletePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/item_items_item_workbook_tables_item_data_body_range_delete_request_builder.go b/drives/item_items_item_workbook_tables_item_data_body_range_delete_request_builder.go new file mode 100644 index 00000000000..2d9ebae41ce --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_data_body_range_delete_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemDataBodyRangeDeleteRequestBuilder provides operations to call the delete method. +type ItemItemsItemWorkbookTablesItemDataBodyRangeDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemDataBodyRangeDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemDataBodyRangeDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeDeleteRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeDeleteRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemDataBodyRangeDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/delete", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeDeleteRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemDataBodyRangeDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action delete +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeDeleteRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookTablesItemDataBodyRangeDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action delete +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookTablesItemDataBodyRangeDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookTablesItemDataBodyRangeDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemDataBodyRangeDeleteRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_data_body_range_entire_column_request_builder.go b/drives/item_items_item_workbook_tables_item_data_body_range_entire_column_request_builder.go new file mode 100644 index 00000000000..cc3f1845a57 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_data_body_range_entire_column_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemDataBodyRangeEntireColumnRequestBuilder provides operations to call the entireColumn method. +type ItemItemsItemWorkbookTablesItemDataBodyRangeEntireColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemDataBodyRangeEntireColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemDataBodyRangeEntireColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeEntireColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeEntireColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeEntireColumnRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemDataBodyRangeEntireColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/entireColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeEntireColumnRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeEntireColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeEntireColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemDataBodyRangeEntireColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeEntireColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeEntireColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeEntireColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeEntireColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemDataBodyRangeEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeEntireColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemDataBodyRangeEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeEntireColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_data_body_range_entire_row_request_builder.go b/drives/item_items_item_workbook_tables_item_data_body_range_entire_row_request_builder.go new file mode 100644 index 00000000000..373ad72b249 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_data_body_range_entire_row_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemDataBodyRangeEntireRowRequestBuilder provides operations to call the entireRow method. +type ItemItemsItemWorkbookTablesItemDataBodyRangeEntireRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemDataBodyRangeEntireRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemDataBodyRangeEntireRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeEntireRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeEntireRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeEntireRowRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemDataBodyRangeEntireRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/entireRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeEntireRowRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeEntireRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeEntireRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemDataBodyRangeEntireRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeEntireRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeEntireRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeEntireRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeEntireRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemDataBodyRangeEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeEntireRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemDataBodyRangeEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeEntireRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_data_body_range_format_request_builder.go b/drives/item_items_item_workbook_tables_item_data_body_range_format_request_builder.go new file mode 100644 index 00000000000..e4499299f28 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_data_body_range_format_request_builder.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemDataBodyRangeFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookTablesItemDataBodyRangeFormatRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemDataBodyRangeFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemDataBodyRangeFormatRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookTablesItemDataBodyRangeFormatRequestBuilderGetQueryParameters returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +type ItemItemsItemWorkbookTablesItemDataBodyRangeFormatRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookTablesItemDataBodyRangeFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemDataBodyRangeFormatRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookTablesItemDataBodyRangeFormatRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookTablesItemDataBodyRangeFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemDataBodyRangeFormatRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeFormatRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeFormatRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemDataBodyRangeFormatRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/format{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeFormatRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeFormatRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemDataBodyRangeFormatRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property format for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeFormatRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeFormatRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// Patch update the navigation property format in drives +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeFormatRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeFormatRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// ToDeleteRequestInformation delete navigation property format for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeFormatRequestBuilderDeleteRequestConfiguration)(*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 format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeFormatRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemDataBodyRangeFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeFormatRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemDataBodyRangeFormatRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_data_body_range_insert_post_request_body.go b/drives/item_items_item_workbook_tables_item_data_body_range_insert_post_request_body.go new file mode 100644 index 00000000000..23258178d35 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_data_body_range_insert_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookTablesItemDataBodyRangeInsertPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeInsertPostRequestBody instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeInsertPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeInsertPostRequestBody()(*ItemItemsItemWorkbookTablesItemDataBodyRangeInsertPostRequestBody) { + m := &ItemItemsItemWorkbookTablesItemDataBodyRangeInsertPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookTablesItemDataBodyRangeInsertPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookTablesItemDataBodyRangeInsertPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeInsertPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeInsertPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeInsertPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeInsertPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeInsertPostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeInsertPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeInsertPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeInsertPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeInsertPostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookTablesItemDataBodyRangeInsertPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/item_items_item_workbook_tables_item_data_body_range_insert_request_builder.go b/drives/item_items_item_workbook_tables_item_data_body_range_insert_request_builder.go new file mode 100644 index 00000000000..ebd301a2a43 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_data_body_range_insert_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemDataBodyRangeInsertRequestBuilder provides operations to call the insert method. +type ItemItemsItemWorkbookTablesItemDataBodyRangeInsertRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemDataBodyRangeInsertRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemDataBodyRangeInsertRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeInsertRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeInsertRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeInsertRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemDataBodyRangeInsertRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/insert", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeInsertRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeInsertRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeInsertRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemDataBodyRangeInsertRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action insert +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeInsertRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookTablesItemDataBodyRangeInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeInsertRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToPostRequestInformation invoke action insert +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeInsertRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookTablesItemDataBodyRangeInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeInsertRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookTablesItemDataBodyRangeInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeInsertRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemDataBodyRangeInsertRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeInsertRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_data_body_range_intersection_with_another_range_request_builder.go b/drives/item_items_item_workbook_tables_item_data_body_range_intersection_with_another_range_request_builder.go new file mode 100644 index 00000000000..418dc643b1a --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_data_body_range_intersection_with_another_range_request_builder.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder provides operations to call the intersection method. +type ItemItemsItemWorkbookTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/intersection(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function intersection +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function intersection +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_data_body_range_last_cell_request_builder.go b/drives/item_items_item_workbook_tables_item_data_body_range_last_cell_request_builder.go new file mode 100644 index 00000000000..f369b0dfdcb --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_data_body_range_last_cell_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemDataBodyRangeLastCellRequestBuilder provides operations to call the lastCell method. +type ItemItemsItemWorkbookTablesItemDataBodyRangeLastCellRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemDataBodyRangeLastCellRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemDataBodyRangeLastCellRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeLastCellRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeLastCellRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeLastCellRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemDataBodyRangeLastCellRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/lastCell()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeLastCellRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeLastCellRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeLastCellRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemDataBodyRangeLastCellRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastCell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeLastCellRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeLastCellRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastCell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeLastCellRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeLastCellRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemDataBodyRangeLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeLastCellRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemDataBodyRangeLastCellRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeLastCellRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_data_body_range_last_column_request_builder.go b/drives/item_items_item_workbook_tables_item_data_body_range_last_column_request_builder.go new file mode 100644 index 00000000000..944e7145252 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_data_body_range_last_column_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemDataBodyRangeLastColumnRequestBuilder provides operations to call the lastColumn method. +type ItemItemsItemWorkbookTablesItemDataBodyRangeLastColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemDataBodyRangeLastColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemDataBodyRangeLastColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeLastColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeLastColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeLastColumnRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemDataBodyRangeLastColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/lastColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeLastColumnRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeLastColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeLastColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemDataBodyRangeLastColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeLastColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeLastColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeLastColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeLastColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemDataBodyRangeLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeLastColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemDataBodyRangeLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeLastColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_data_body_range_last_row_request_builder.go b/drives/item_items_item_workbook_tables_item_data_body_range_last_row_request_builder.go new file mode 100644 index 00000000000..05fef5ac500 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_data_body_range_last_row_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemDataBodyRangeLastRowRequestBuilder provides operations to call the lastRow method. +type ItemItemsItemWorkbookTablesItemDataBodyRangeLastRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemDataBodyRangeLastRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemDataBodyRangeLastRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeLastRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeLastRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeLastRowRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemDataBodyRangeLastRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/lastRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeLastRowRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeLastRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeLastRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemDataBodyRangeLastRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeLastRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeLastRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeLastRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeLastRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemDataBodyRangeLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeLastRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemDataBodyRangeLastRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeLastRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_data_body_range_merge_post_request_body.go b/drives/item_items_item_workbook_tables_item_data_body_range_merge_post_request_body.go new file mode 100644 index 00000000000..b45f967df81 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_data_body_range_merge_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookTablesItemDataBodyRangeMergePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeMergePostRequestBody instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeMergePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeMergePostRequestBody()(*ItemItemsItemWorkbookTablesItemDataBodyRangeMergePostRequestBody) { + m := &ItemItemsItemWorkbookTablesItemDataBodyRangeMergePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookTablesItemDataBodyRangeMergePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookTablesItemDataBodyRangeMergePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeMergePostRequestBody(), nil +} +// GetAcross gets the across property value. The across property +// returns a *bool when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeMergePostRequestBody) GetAcross()(*bool) { + val, err := m.GetBackingStore().Get("across") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + 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 *ItemItemsItemWorkbookTablesItemDataBodyRangeMergePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeMergePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeMergePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["across"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetAcross(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeMergePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("across", m.GetAcross()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAcross sets the across property value. The across property +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeMergePostRequestBody) SetAcross(value *bool)() { + err := m.GetBackingStore().Set("across", 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 *ItemItemsItemWorkbookTablesItemDataBodyRangeMergePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeMergePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookTablesItemDataBodyRangeMergePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAcross()(*bool) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetAcross(value *bool)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/item_items_item_workbook_tables_item_data_body_range_merge_request_builder.go b/drives/item_items_item_workbook_tables_item_data_body_range_merge_request_builder.go new file mode 100644 index 00000000000..3e70bd96ca9 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_data_body_range_merge_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemDataBodyRangeMergeRequestBuilder provides operations to call the merge method. +type ItemItemsItemWorkbookTablesItemDataBodyRangeMergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemDataBodyRangeMergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemDataBodyRangeMergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeMergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeMergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeMergeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemDataBodyRangeMergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/merge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeMergeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeMergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeMergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemDataBodyRangeMergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action merge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeMergeRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookTablesItemDataBodyRangeMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeMergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action merge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeMergeRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookTablesItemDataBodyRangeMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeMergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookTablesItemDataBodyRangeMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeMergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemDataBodyRangeMergeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeMergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_data_body_range_request_builder.go b/drives/item_items_item_workbook_tables_item_data_body_range_request_builder.go index 94d4bf6beae..001f58b354f 100644 --- a/drives/item_items_item_workbook_tables_item_data_body_range_request_builder.go +++ b/drives/item_items_item_workbook_tables_item_data_body_range_request_builder.go @@ -18,6 +18,46 @@ type ItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilderGetRequestConfigu // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// BoundingRectWithAnotherRange provides operations to call the boundingRect method. +// returns a *ItemItemsItemWorkbookTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder) BoundingRectWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// CellWithRowWithColumn provides operations to call the cell method. +// returns a *ItemItemsItemWorkbookTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder) CellWithRowWithColumn(column *int32, row *int32)(*ItemItemsItemWorkbookTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column, row) +} +// Clear provides operations to call the clear method. +// returns a *ItemItemsItemWorkbookTablesItemDataBodyRangeClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder) Clear()(*ItemItemsItemWorkbookTablesItemDataBodyRangeClearRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeClearRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfter provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder) ColumnsAfter()(*ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfterWithCount provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder) ColumnsAfterWithCount(count *int32)(*ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnsBefore provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder) ColumnsBefore()(*ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsBeforeWithCount provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder) ColumnsBeforeWithCount(count *int32)(*ItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnWithColumn provides operations to call the column method. +// returns a *ItemItemsItemWorkbookTablesItemDataBodyRangeColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder) ColumnWithColumn(column *int32)(*ItemItemsItemWorkbookTablesItemDataBodyRangeColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeColumnWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column) +} // NewItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder and sets the default values. func NewItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder) { m := &ItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder{ @@ -31,6 +71,26 @@ func NewItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder(rawUrl string urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilderInternal(urlParams, requestAdapter) } +// DeletePath provides operations to call the delete method. +// returns a *ItemItemsItemWorkbookTablesItemDataBodyRangeDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder) DeletePath()(*ItemItemsItemWorkbookTablesItemDataBodyRangeDeleteRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireColumn provides operations to call the entireColumn method. +// returns a *ItemItemsItemWorkbookTablesItemDataBodyRangeEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder) EntireColumn()(*ItemItemsItemWorkbookTablesItemDataBodyRangeEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeEntireColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireRow provides operations to call the entireRow method. +// returns a *ItemItemsItemWorkbookTablesItemDataBodyRangeEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder) EntireRow()(*ItemItemsItemWorkbookTablesItemDataBodyRangeEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeEntireRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Format provides operations to manage the format property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookTablesItemDataBodyRangeFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder) Format()(*ItemItemsItemWorkbookTablesItemDataBodyRangeFormatRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.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 @@ -54,6 +114,76 @@ func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder) Get(ctx con } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil } +// Insert provides operations to call the insert method. +// returns a *ItemItemsItemWorkbookTablesItemDataBodyRangeInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder) Insert()(*ItemItemsItemWorkbookTablesItemDataBodyRangeInsertRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeInsertRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// IntersectionWithAnotherRange provides operations to call the intersection method. +// returns a *ItemItemsItemWorkbookTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder) IntersectionWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// LastCell provides operations to call the lastCell method. +// returns a *ItemItemsItemWorkbookTablesItemDataBodyRangeLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder) LastCell()(*ItemItemsItemWorkbookTablesItemDataBodyRangeLastCellRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeLastCellRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastColumn provides operations to call the lastColumn method. +// returns a *ItemItemsItemWorkbookTablesItemDataBodyRangeLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder) LastColumn()(*ItemItemsItemWorkbookTablesItemDataBodyRangeLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeLastColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastRow provides operations to call the lastRow method. +// returns a *ItemItemsItemWorkbookTablesItemDataBodyRangeLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder) LastRow()(*ItemItemsItemWorkbookTablesItemDataBodyRangeLastRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeLastRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Merge provides operations to call the merge method. +// returns a *ItemItemsItemWorkbookTablesItemDataBodyRangeMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder) Merge()(*ItemItemsItemWorkbookTablesItemDataBodyRangeMergeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeMergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// OffsetRangeWithRowOffsetWithColumnOffset provides operations to call the offsetRange method. +// returns a *ItemItemsItemWorkbookTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder) OffsetRangeWithRowOffsetWithColumnOffset(columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, columnOffset, rowOffset) +} +// ResizedRangeWithDeltaRowsWithDeltaColumns provides operations to call the resizedRange method. +// returns a *ItemItemsItemWorkbookTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder) ResizedRangeWithDeltaRowsWithDeltaColumns(deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, deltaColumns, deltaRows) +} +// RowsAbove provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder) RowsAbove()(*ItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsAboveWithCount provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder) RowsAboveWithCount(count *int32)(*ItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowsBelow provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder) RowsBelow()(*ItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsBelowWithCount provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder) RowsBelowWithCount(count *int32)(*ItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowWithRow provides operations to call the row method. +// returns a *ItemItemsItemWorkbookTablesItemDataBodyRangeRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder) RowWithRow(row *int32)(*ItemItemsItemWorkbookTablesItemDataBodyRangeRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeRowWithRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, row) +} +// Sort provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookTablesItemDataBodyRangeSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder) Sort()(*ItemItemsItemWorkbookTablesItemDataBodyRangeSortRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeSortRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToGetRequestInformation gets the range object associated with the data body of the table. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { @@ -65,8 +195,33 @@ func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder) ToGetReques requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } +// Unmerge provides operations to call the unmerge method. +// returns a *ItemItemsItemWorkbookTablesItemDataBodyRangeUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder) Unmerge()(*ItemItemsItemWorkbookTablesItemDataBodyRangeUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeUnmergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// UsedRange provides operations to call the usedRange method. +// returns a *ItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder) UsedRange()(*ItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// UsedRangeWithValuesOnly provides operations to call the usedRange method. +// returns a *ItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder) UsedRangeWithValuesOnly(valuesOnly *bool)(*ItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, valuesOnly) +} +// VisibleView provides operations to call the visibleView method. +// returns a *ItemItemsItemWorkbookTablesItemDataBodyRangeVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder) VisibleView()(*ItemItemsItemWorkbookTablesItemDataBodyRangeVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeVisibleViewRequestBuilderInternal(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 *ItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder when successful func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder) { return NewItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); } +// Worksheet provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookTablesItemDataBodyRangeWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRequestBuilder) Worksheet()(*ItemItemsItemWorkbookTablesItemDataBodyRangeWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeWorksheetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} diff --git a/drives/item_items_item_workbook_tables_item_data_body_range_row_with_row_request_builder.go b/drives/item_items_item_workbook_tables_item_data_body_range_row_with_row_request_builder.go new file mode 100644 index 00000000000..7af9edba2a4 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_data_body_range_row_with_row_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemDataBodyRangeRowWithRowRequestBuilder provides operations to call the row method. +type ItemItemsItemWorkbookTablesItemDataBodyRangeRowWithRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemDataBodyRangeRowWithRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemDataBodyRangeRowWithRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeRowWithRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeRowWithRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, row *int32)(*ItemItemsItemWorkbookTablesItemDataBodyRangeRowWithRowRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemDataBodyRangeRowWithRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/row(row={row})", pathParameters), + } + if row != nil { + m.BaseRequestBuilder.PathParameters["row"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*row), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeRowWithRowRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeRowWithRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeRowWithRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemDataBodyRangeRowWithRowRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function row +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRowWithRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeRowWithRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function row +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRowWithRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeRowWithRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemDataBodyRangeRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRowWithRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemDataBodyRangeRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeRowWithRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_data_body_range_rows_above_request_builder.go b/drives/item_items_item_workbook_tables_item_data_body_range_rows_above_request_builder.go new file mode 100644 index 00000000000..659c78b3e75 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_data_body_range_rows_above_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/rowsAbove()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_data_body_range_rows_above_with_count_request_builder.go b/drives/item_items_item_workbook_tables_item_data_body_range_rows_above_with_count_request_builder.go new file mode 100644 index 00000000000..f060d328459 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_data_body_range_rows_above_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveWithCountRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/rowsAbove(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeRowsAboveWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_data_body_range_rows_below_request_builder.go b/drives/item_items_item_workbook_tables_item_data_body_range_rows_below_request_builder.go new file mode 100644 index 00000000000..16dc8bf8efe --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_data_body_range_rows_below_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/rowsBelow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_data_body_range_rows_below_with_count_request_builder.go b/drives/item_items_item_workbook_tables_item_data_body_range_rows_below_with_count_request_builder.go new file mode 100644 index 00000000000..4051c2d4ee1 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_data_body_range_rows_below_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowWithCountRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/rowsBelow(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeRowsBelowWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_data_body_range_sort_request_builder.go b/drives/item_items_item_workbook_tables_item_data_body_range_sort_request_builder.go new file mode 100644 index 00000000000..ddd8d9f0a66 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_data_body_range_sort_request_builder.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemDataBodyRangeSortRequestBuilder provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookTablesItemDataBodyRangeSortRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemDataBodyRangeSortRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemDataBodyRangeSortRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookTablesItemDataBodyRangeSortRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookTablesItemDataBodyRangeSortRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookTablesItemDataBodyRangeSortRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemDataBodyRangeSortRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookTablesItemDataBodyRangeSortRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookTablesItemDataBodyRangeSortRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemDataBodyRangeSortRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeSortRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeSortRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeSortRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemDataBodyRangeSortRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/sort{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeSortRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeSortRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeSortRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemDataBodyRangeSortRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property sort for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeSortRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeSortRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeSortRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeSortRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// Patch update the navigation property sort in drives +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeSortRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeSortRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// ToDeleteRequestInformation delete navigation property sort for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeSortRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeSortRequestBuilderDeleteRequestConfiguration)(*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 worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeSortRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeSortRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeSortRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeSortRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemDataBodyRangeSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeSortRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemDataBodyRangeSortRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeSortRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_data_body_range_unmerge_request_builder.go b/drives/item_items_item_workbook_tables_item_data_body_range_unmerge_request_builder.go new file mode 100644 index 00000000000..2c9328ed155 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_data_body_range_unmerge_request_builder.go @@ -0,0 +1,64 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemDataBodyRangeUnmergeRequestBuilder provides operations to call the unmerge method. +type ItemItemsItemWorkbookTablesItemDataBodyRangeUnmergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemDataBodyRangeUnmergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemDataBodyRangeUnmergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeUnmergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeUnmergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeUnmergeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemDataBodyRangeUnmergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/unmerge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeUnmergeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeUnmergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeUnmergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemDataBodyRangeUnmergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unmerge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeUnmergeRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeUnmergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unmerge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeUnmergeRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeUnmergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemItemsItemWorkbookTablesItemDataBodyRangeUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeUnmergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemDataBodyRangeUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeUnmergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_data_body_range_used_range_request_builder.go b/drives/item_items_item_workbook_tables_item_data_body_range_used_range_request_builder.go new file mode 100644 index 00000000000..d3d6dbaff82 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_data_body_range_used_range_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeRequestBuilder provides operations to call the usedRange method. +type ItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/usedRange()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeRequestBuilderInternal(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 *ItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function usedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_data_body_range_used_range_with_values_only_request_builder.go b/drives/item_items_item_workbook_tables_item_data_body_range_used_range_with_values_only_request_builder.go new file mode 100644 index 00000000000..a7b17bf87ac --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_data_body_range_used_range_with_values_only_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder provides operations to call the usedRange method. +type ItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, valuesOnly *bool)(*ItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/usedRange(valuesOnly={valuesOnly})", pathParameters), + } + if valuesOnly != nil { + m.BaseRequestBuilder.PathParameters["valuesOnly"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatBool(*valuesOnly) + } + return m +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilderInternal(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 *ItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function usedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_data_body_range_visible_view_request_builder.go b/drives/item_items_item_workbook_tables_item_data_body_range_visible_view_request_builder.go new file mode 100644 index 00000000000..1b7b5749504 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_data_body_range_visible_view_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemDataBodyRangeVisibleViewRequestBuilder provides operations to call the visibleView method. +type ItemItemsItemWorkbookTablesItemDataBodyRangeVisibleViewRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemDataBodyRangeVisibleViewRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemDataBodyRangeVisibleViewRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeVisibleViewRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeVisibleViewRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeVisibleViewRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemDataBodyRangeVisibleViewRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/visibleView()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeVisibleViewRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeVisibleViewRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeVisibleViewRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemDataBodyRangeVisibleViewRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function visibleView +// returns a WorkbookRangeViewable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeVisibleViewRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeVisibleViewRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeViewFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable), nil +} +// ToGetRequestInformation invoke function visibleView +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeVisibleViewRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeVisibleViewRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemDataBodyRangeVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeVisibleViewRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemDataBodyRangeVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeVisibleViewRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_data_body_range_worksheet_request_builder.go b/drives/item_items_item_workbook_tables_item_data_body_range_worksheet_request_builder.go new file mode 100644 index 00000000000..5d3c3f9f32e --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_data_body_range_worksheet_request_builder.go @@ -0,0 +1,81 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemDataBodyRangeWorksheetRequestBuilder provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookTablesItemDataBodyRangeWorksheetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemDataBodyRangeWorksheetRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookTablesItemDataBodyRangeWorksheetRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookTablesItemDataBodyRangeWorksheetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemDataBodyRangeWorksheetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookTablesItemDataBodyRangeWorksheetRequestBuilderGetQueryParameters +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeWorksheetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeWorksheetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeWorksheetRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemDataBodyRangeWorksheetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/dataBodyRange()/worksheet{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemDataBodyRangeWorksheetRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemDataBodyRangeWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemDataBodyRangeWorksheetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemDataBodyRangeWorksheetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemDataBodyRangeWorksheetRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookWorksheetable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeWorksheetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeWorksheetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookWorksheetFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable), nil +} +// ToGetRequestInformation the worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeWorksheetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemDataBodyRangeWorksheetRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 *ItemItemsItemWorkbookTablesItemDataBodyRangeWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemDataBodyRangeWorksheetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemDataBodyRangeWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemDataBodyRangeWorksheetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_header_row_range_cell_with_row_with_column_request_builder.go b/drives/item_items_item_workbook_tables_item_header_row_range_cell_with_row_with_column_request_builder.go new file mode 100644 index 00000000000..049daae5e00 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_header_row_range_cell_with_row_with_column_request_builder.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilder provides operations to call the cell method. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32, row *int32)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/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 +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function cell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function cell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_header_row_range_clear_post_request_body.go b/drives/item_items_item_workbook_tables_item_header_row_range_clear_post_request_body.go new file mode 100644 index 00000000000..b2c61b0faeb --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_header_row_range_clear_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookTablesItemHeaderRowRangeClearPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeClearPostRequestBody instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeClearPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeClearPostRequestBody()(*ItemItemsItemWorkbookTablesItemHeaderRowRangeClearPostRequestBody) { + m := &ItemItemsItemWorkbookTablesItemHeaderRowRangeClearPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookTablesItemHeaderRowRangeClearPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookTablesItemHeaderRowRangeClearPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeClearPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeClearPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetApplyTo gets the applyTo property value. The applyTo property +// returns a *string when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeClearPostRequestBody) GetApplyTo()(*string) { + val, err := m.GetBackingStore().Get("applyTo") + 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 *ItemItemsItemWorkbookTablesItemHeaderRowRangeClearPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeClearPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["applyTo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetApplyTo(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeClearPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("applyTo", m.GetApplyTo()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeClearPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetApplyTo sets the applyTo property value. The applyTo property +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeClearPostRequestBody) SetApplyTo(value *string)() { + err := m.GetBackingStore().Set("applyTo", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeClearPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookTablesItemHeaderRowRangeClearPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetApplyTo()(*string) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetApplyTo(value *string)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/item_items_item_workbook_tables_item_header_row_range_clear_request_builder.go b/drives/item_items_item_workbook_tables_item_header_row_range_clear_request_builder.go new file mode 100644 index 00000000000..7ba0f583ea3 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_header_row_range_clear_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemHeaderRowRangeClearRequestBuilder provides operations to call the clear method. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeClearRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemHeaderRowRangeClearRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeClearRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeClearRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeClearRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeClearRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemHeaderRowRangeClearRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/clear", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeClearRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeClearRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeClearRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeClearRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action clear +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeClearRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookTablesItemHeaderRowRangeClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeClearRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action clear +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeClearRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookTablesItemHeaderRowRangeClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeClearRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookTablesItemHeaderRowRangeClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeClearRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeClearRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeClearRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_header_row_range_column_with_column_request_builder.go b/drives/item_items_item_workbook_tables_item_header_row_range_column_with_column_request_builder.go new file mode 100644 index 00000000000..6e585a94e7c --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_header_row_range_column_with_column_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnWithColumnRequestBuilder provides operations to call the column method. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeColumnWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeColumnWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/column(column={column})", pathParameters), + } + if column != nil { + m.BaseRequestBuilder.PathParameters["column"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*column), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeColumnWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeColumnWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeColumnWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function column +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function column +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeColumnWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_header_row_range_columns_after_request_builder.go b/drives/item_items_item_workbook_tables_item_header_row_range_columns_after_request_builder.go new file mode 100644 index 00000000000..ff1c92345c8 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_header_row_range_columns_after_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/columnsAfter()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_header_row_range_columns_after_with_count_request_builder.go b/drives/item_items_item_workbook_tables_item_header_row_range_columns_after_with_count_request_builder.go new file mode 100644 index 00000000000..dfb98950122 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_header_row_range_columns_after_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/columnsAfter(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_header_row_range_columns_before_request_builder.go b/drives/item_items_item_workbook_tables_item_header_row_range_columns_before_request_builder.go new file mode 100644 index 00000000000..3e793a2ed3c --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_header_row_range_columns_before_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/columnsBefore()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_header_row_range_columns_before_with_count_request_builder.go b/drives/item_items_item_workbook_tables_item_header_row_range_columns_before_with_count_request_builder.go new file mode 100644 index 00000000000..213a6bb3143 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_header_row_range_columns_before_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/columnsBefore(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_header_row_range_delete_post_request_body.go b/drives/item_items_item_workbook_tables_item_header_row_range_delete_post_request_body.go new file mode 100644 index 00000000000..bc3529fdeb5 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_header_row_range_delete_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookTablesItemHeaderRowRangeDeletePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeDeletePostRequestBody instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeDeletePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeDeletePostRequestBody()(*ItemItemsItemWorkbookTablesItemHeaderRowRangeDeletePostRequestBody) { + m := &ItemItemsItemWorkbookTablesItemHeaderRowRangeDeletePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookTablesItemHeaderRowRangeDeletePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookTablesItemHeaderRowRangeDeletePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeDeletePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeDeletePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeDeletePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeDeletePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeDeletePostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeDeletePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeDeletePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeDeletePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeDeletePostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookTablesItemHeaderRowRangeDeletePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/item_items_item_workbook_tables_item_header_row_range_delete_request_builder.go b/drives/item_items_item_workbook_tables_item_header_row_range_delete_request_builder.go new file mode 100644 index 00000000000..e58a11e2a82 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_header_row_range_delete_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemHeaderRowRangeDeleteRequestBuilder provides operations to call the delete method. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemHeaderRowRangeDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeDeleteRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeDeleteRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemHeaderRowRangeDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/delete", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeDeleteRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action delete +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeDeleteRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookTablesItemHeaderRowRangeDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action delete +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookTablesItemHeaderRowRangeDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookTablesItemHeaderRowRangeDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeDeleteRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_header_row_range_entire_column_request_builder.go b/drives/item_items_item_workbook_tables_item_header_row_range_entire_column_request_builder.go new file mode 100644 index 00000000000..2adf1447e53 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_header_row_range_entire_column_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemHeaderRowRangeEntireColumnRequestBuilder provides operations to call the entireColumn method. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeEntireColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemHeaderRowRangeEntireColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeEntireColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeEntireColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeEntireColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeEntireColumnRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemHeaderRowRangeEntireColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/entireColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeEntireColumnRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeEntireColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeEntireColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeEntireColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeEntireColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeEntireColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeEntireColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeEntireColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemHeaderRowRangeEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeEntireColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeEntireColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_header_row_range_entire_row_request_builder.go b/drives/item_items_item_workbook_tables_item_header_row_range_entire_row_request_builder.go new file mode 100644 index 00000000000..05a38539591 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_header_row_range_entire_row_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemHeaderRowRangeEntireRowRequestBuilder provides operations to call the entireRow method. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeEntireRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemHeaderRowRangeEntireRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeEntireRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeEntireRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeEntireRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeEntireRowRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemHeaderRowRangeEntireRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/entireRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeEntireRowRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeEntireRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeEntireRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeEntireRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeEntireRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeEntireRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeEntireRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeEntireRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemHeaderRowRangeEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeEntireRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeEntireRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_header_row_range_format_request_builder.go b/drives/item_items_item_workbook_tables_item_header_row_range_format_request_builder.go new file mode 100644 index 00000000000..daeda5150c5 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_header_row_range_format_request_builder.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemHeaderRowRangeFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeFormatRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemHeaderRowRangeFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeFormatRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookTablesItemHeaderRowRangeFormatRequestBuilderGetQueryParameters returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeFormatRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookTablesItemHeaderRowRangeFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeFormatRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookTablesItemHeaderRowRangeFormatRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookTablesItemHeaderRowRangeFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeFormatRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeFormatRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeFormatRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemHeaderRowRangeFormatRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/format{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeFormatRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeFormatRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeFormatRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property format for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeFormatRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeFormatRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// Patch update the navigation property format in drives +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeFormatRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeFormatRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// ToDeleteRequestInformation delete navigation property format for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeFormatRequestBuilderDeleteRequestConfiguration)(*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 format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeFormatRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemHeaderRowRangeFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeFormatRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeFormatRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_header_row_range_insert_post_request_body.go b/drives/item_items_item_workbook_tables_item_header_row_range_insert_post_request_body.go new file mode 100644 index 00000000000..92c2eb282c1 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_header_row_range_insert_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookTablesItemHeaderRowRangeInsertPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeInsertPostRequestBody instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeInsertPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeInsertPostRequestBody()(*ItemItemsItemWorkbookTablesItemHeaderRowRangeInsertPostRequestBody) { + m := &ItemItemsItemWorkbookTablesItemHeaderRowRangeInsertPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookTablesItemHeaderRowRangeInsertPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookTablesItemHeaderRowRangeInsertPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeInsertPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeInsertPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeInsertPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeInsertPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeInsertPostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeInsertPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeInsertPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeInsertPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeInsertPostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookTablesItemHeaderRowRangeInsertPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/item_items_item_workbook_tables_item_header_row_range_insert_request_builder.go b/drives/item_items_item_workbook_tables_item_header_row_range_insert_request_builder.go new file mode 100644 index 00000000000..eb3905cc987 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_header_row_range_insert_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemHeaderRowRangeInsertRequestBuilder provides operations to call the insert method. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeInsertRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemHeaderRowRangeInsertRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeInsertRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeInsertRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeInsertRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeInsertRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemHeaderRowRangeInsertRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/insert", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeInsertRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeInsertRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeInsertRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeInsertRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action insert +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeInsertRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookTablesItemHeaderRowRangeInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeInsertRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToPostRequestInformation invoke action insert +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeInsertRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookTablesItemHeaderRowRangeInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeInsertRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookTablesItemHeaderRowRangeInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeInsertRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeInsertRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeInsertRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_header_row_range_last_cell_request_builder.go b/drives/item_items_item_workbook_tables_item_header_row_range_last_cell_request_builder.go new file mode 100644 index 00000000000..9a73f2ab136 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_header_row_range_last_cell_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemHeaderRowRangeLastCellRequestBuilder provides operations to call the lastCell method. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeLastCellRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemHeaderRowRangeLastCellRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeLastCellRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeLastCellRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeLastCellRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeLastCellRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemHeaderRowRangeLastCellRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/lastCell()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeLastCellRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeLastCellRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeLastCellRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeLastCellRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastCell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeLastCellRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeLastCellRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastCell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeLastCellRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeLastCellRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemHeaderRowRangeLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeLastCellRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeLastCellRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeLastCellRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_header_row_range_last_column_request_builder.go b/drives/item_items_item_workbook_tables_item_header_row_range_last_column_request_builder.go new file mode 100644 index 00000000000..9c1bccd7dfc --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_header_row_range_last_column_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemHeaderRowRangeLastColumnRequestBuilder provides operations to call the lastColumn method. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeLastColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemHeaderRowRangeLastColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeLastColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeLastColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeLastColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeLastColumnRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemHeaderRowRangeLastColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/lastColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeLastColumnRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeLastColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeLastColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeLastColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeLastColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeLastColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeLastColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeLastColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemHeaderRowRangeLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeLastColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeLastColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_header_row_range_last_row_request_builder.go b/drives/item_items_item_workbook_tables_item_header_row_range_last_row_request_builder.go new file mode 100644 index 00000000000..c008a66c7fc --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_header_row_range_last_row_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemHeaderRowRangeLastRowRequestBuilder provides operations to call the lastRow method. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeLastRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemHeaderRowRangeLastRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeLastRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeLastRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeLastRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeLastRowRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemHeaderRowRangeLastRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/lastRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeLastRowRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeLastRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeLastRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeLastRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeLastRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeLastRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeLastRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeLastRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemHeaderRowRangeLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeLastRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeLastRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeLastRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_header_row_range_merge_post_request_body.go b/drives/item_items_item_workbook_tables_item_header_row_range_merge_post_request_body.go new file mode 100644 index 00000000000..86b274f79a4 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_header_row_range_merge_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookTablesItemHeaderRowRangeMergePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeMergePostRequestBody instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeMergePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeMergePostRequestBody()(*ItemItemsItemWorkbookTablesItemHeaderRowRangeMergePostRequestBody) { + m := &ItemItemsItemWorkbookTablesItemHeaderRowRangeMergePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookTablesItemHeaderRowRangeMergePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookTablesItemHeaderRowRangeMergePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeMergePostRequestBody(), nil +} +// GetAcross gets the across property value. The across property +// returns a *bool when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeMergePostRequestBody) GetAcross()(*bool) { + val, err := m.GetBackingStore().Get("across") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + 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 *ItemItemsItemWorkbookTablesItemHeaderRowRangeMergePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeMergePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeMergePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["across"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetAcross(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeMergePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("across", m.GetAcross()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAcross sets the across property value. The across property +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeMergePostRequestBody) SetAcross(value *bool)() { + err := m.GetBackingStore().Set("across", 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 *ItemItemsItemWorkbookTablesItemHeaderRowRangeMergePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeMergePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookTablesItemHeaderRowRangeMergePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAcross()(*bool) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetAcross(value *bool)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/item_items_item_workbook_tables_item_header_row_range_merge_request_builder.go b/drives/item_items_item_workbook_tables_item_header_row_range_merge_request_builder.go new file mode 100644 index 00000000000..2ef839fdaa0 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_header_row_range_merge_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemHeaderRowRangeMergeRequestBuilder provides operations to call the merge method. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeMergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemHeaderRowRangeMergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeMergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeMergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeMergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeMergeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemHeaderRowRangeMergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/merge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeMergeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeMergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeMergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeMergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action merge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeMergeRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookTablesItemHeaderRowRangeMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeMergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action merge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeMergeRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookTablesItemHeaderRowRangeMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeMergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookTablesItemHeaderRowRangeMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeMergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeMergeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeMergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_header_row_range_request_builder.go b/drives/item_items_item_workbook_tables_item_header_row_range_request_builder.go index 5f47df4030b..bf22a9f0145 100644 --- a/drives/item_items_item_workbook_tables_item_header_row_range_request_builder.go +++ b/drives/item_items_item_workbook_tables_item_header_row_range_request_builder.go @@ -18,6 +18,46 @@ type ItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilderGetRequestConfig // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// BoundingRectWithAnotherRange provides operations to call the boundingRect method. +// returns a *ItemItemsItemWorkbookTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder) BoundingRectWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// CellWithRowWithColumn provides operations to call the cell method. +// returns a *ItemItemsItemWorkbookTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder) CellWithRowWithColumn(column *int32, row *int32)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column, row) +} +// Clear provides operations to call the clear method. +// returns a *ItemItemsItemWorkbookTablesItemHeaderRowRangeClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder) Clear()(*ItemItemsItemWorkbookTablesItemHeaderRowRangeClearRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeClearRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfter provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder) ColumnsAfter()(*ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfterWithCount provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder) ColumnsAfterWithCount(count *int32)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnsBefore provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder) ColumnsBefore()(*ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsBeforeWithCount provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder) ColumnsBeforeWithCount(count *int32)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnWithColumn provides operations to call the column method. +// returns a *ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder) ColumnWithColumn(column *int32)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeColumnWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column) +} // NewItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder and sets the default values. func NewItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder) { m := &ItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder{ @@ -31,6 +71,26 @@ func NewItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder(rawUrl strin urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilderInternal(urlParams, requestAdapter) } +// DeletePath provides operations to call the delete method. +// returns a *ItemItemsItemWorkbookTablesItemHeaderRowRangeDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder) DeletePath()(*ItemItemsItemWorkbookTablesItemHeaderRowRangeDeleteRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireColumn provides operations to call the entireColumn method. +// returns a *ItemItemsItemWorkbookTablesItemHeaderRowRangeEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder) EntireColumn()(*ItemItemsItemWorkbookTablesItemHeaderRowRangeEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeEntireColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireRow provides operations to call the entireRow method. +// returns a *ItemItemsItemWorkbookTablesItemHeaderRowRangeEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder) EntireRow()(*ItemItemsItemWorkbookTablesItemHeaderRowRangeEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeEntireRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Format provides operations to manage the format property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookTablesItemHeaderRowRangeFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder) Format()(*ItemItemsItemWorkbookTablesItemHeaderRowRangeFormatRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.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 @@ -54,6 +114,76 @@ func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder) Get(ctx co } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil } +// Insert provides operations to call the insert method. +// returns a *ItemItemsItemWorkbookTablesItemHeaderRowRangeInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder) Insert()(*ItemItemsItemWorkbookTablesItemHeaderRowRangeInsertRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeInsertRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// IntersectionWithAnotherRange provides operations to call the intersection method. +// returns a *ItemItemsItemWorkbookTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder) IntersectionWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// LastCell provides operations to call the lastCell method. +// returns a *ItemItemsItemWorkbookTablesItemHeaderRowRangeLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder) LastCell()(*ItemItemsItemWorkbookTablesItemHeaderRowRangeLastCellRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeLastCellRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastColumn provides operations to call the lastColumn method. +// returns a *ItemItemsItemWorkbookTablesItemHeaderRowRangeLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder) LastColumn()(*ItemItemsItemWorkbookTablesItemHeaderRowRangeLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeLastColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastRow provides operations to call the lastRow method. +// returns a *ItemItemsItemWorkbookTablesItemHeaderRowRangeLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder) LastRow()(*ItemItemsItemWorkbookTablesItemHeaderRowRangeLastRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeLastRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Merge provides operations to call the merge method. +// returns a *ItemItemsItemWorkbookTablesItemHeaderRowRangeMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder) Merge()(*ItemItemsItemWorkbookTablesItemHeaderRowRangeMergeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeMergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// OffsetRangeWithRowOffsetWithColumnOffset provides operations to call the offsetRange method. +// returns a *ItemItemsItemWorkbookTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder) OffsetRangeWithRowOffsetWithColumnOffset(columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, columnOffset, rowOffset) +} +// ResizedRangeWithDeltaRowsWithDeltaColumns provides operations to call the resizedRange method. +// returns a *ItemItemsItemWorkbookTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder) ResizedRangeWithDeltaRowsWithDeltaColumns(deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, deltaColumns, deltaRows) +} +// RowsAbove provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder) RowsAbove()(*ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsAboveWithCount provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder) RowsAboveWithCount(count *int32)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowsBelow provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder) RowsBelow()(*ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsBelowWithCount provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder) RowsBelowWithCount(count *int32)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowWithRow provides operations to call the row method. +// returns a *ItemItemsItemWorkbookTablesItemHeaderRowRangeRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder) RowWithRow(row *int32)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeRowWithRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, row) +} +// Sort provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookTablesItemHeaderRowRangeSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder) Sort()(*ItemItemsItemWorkbookTablesItemHeaderRowRangeSortRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeSortRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToGetRequestInformation gets the range object associated with header row of the table. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { @@ -65,8 +195,33 @@ func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder) ToGetReque requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } +// Unmerge provides operations to call the unmerge method. +// returns a *ItemItemsItemWorkbookTablesItemHeaderRowRangeUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder) Unmerge()(*ItemItemsItemWorkbookTablesItemHeaderRowRangeUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeUnmergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// UsedRange provides operations to call the usedRange method. +// returns a *ItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder) UsedRange()(*ItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// UsedRangeWithValuesOnly provides operations to call the usedRange method. +// returns a *ItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder) UsedRangeWithValuesOnly(valuesOnly *bool)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, valuesOnly) +} +// VisibleView provides operations to call the visibleView method. +// returns a *ItemItemsItemWorkbookTablesItemHeaderRowRangeVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder) VisibleView()(*ItemItemsItemWorkbookTablesItemHeaderRowRangeVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeVisibleViewRequestBuilderInternal(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 *ItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder when successful func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder) { return NewItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); } +// Worksheet provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookTablesItemHeaderRowRangeWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRequestBuilder) Worksheet()(*ItemItemsItemWorkbookTablesItemHeaderRowRangeWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeWorksheetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} diff --git a/drives/item_items_item_workbook_tables_item_header_row_range_row_with_row_request_builder.go b/drives/item_items_item_workbook_tables_item_header_row_range_row_with_row_request_builder.go new file mode 100644 index 00000000000..8296c512ed0 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_header_row_range_row_with_row_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemHeaderRowRangeRowWithRowRequestBuilder provides operations to call the row method. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeRowWithRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemHeaderRowRangeRowWithRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeRowWithRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeRowWithRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeRowWithRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, row *int32)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeRowWithRowRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemHeaderRowRangeRowWithRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/row(row={row})", pathParameters), + } + if row != nil { + m.BaseRequestBuilder.PathParameters["row"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*row), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeRowWithRowRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeRowWithRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeRowWithRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeRowWithRowRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function row +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRowWithRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeRowWithRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function row +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRowWithRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeRowWithRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemHeaderRowRangeRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRowWithRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeRowWithRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_header_row_range_rows_above_request_builder.go b/drives/item_items_item_workbook_tables_item_header_row_range_rows_above_request_builder.go new file mode 100644 index 00000000000..f1d95f1afa7 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_header_row_range_rows_above_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/rowsAbove()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_header_row_range_rows_above_with_count_request_builder.go b/drives/item_items_item_workbook_tables_item_header_row_range_rows_above_with_count_request_builder.go new file mode 100644 index 00000000000..6f4813aacd9 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_header_row_range_rows_above_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/rowsAbove(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_header_row_range_rows_below_request_builder.go b/drives/item_items_item_workbook_tables_item_header_row_range_rows_below_request_builder.go new file mode 100644 index 00000000000..2e18c8181e9 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_header_row_range_rows_below_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/rowsBelow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_header_row_range_rows_below_with_count_request_builder.go b/drives/item_items_item_workbook_tables_item_header_row_range_rows_below_with_count_request_builder.go new file mode 100644 index 00000000000..39e92fd7bfd --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_header_row_range_rows_below_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/rowsBelow(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_header_row_range_sort_request_builder.go b/drives/item_items_item_workbook_tables_item_header_row_range_sort_request_builder.go new file mode 100644 index 00000000000..f9d076830cb --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_header_row_range_sort_request_builder.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemHeaderRowRangeSortRequestBuilder provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeSortRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemHeaderRowRangeSortRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeSortRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookTablesItemHeaderRowRangeSortRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeSortRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookTablesItemHeaderRowRangeSortRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeSortRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookTablesItemHeaderRowRangeSortRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookTablesItemHeaderRowRangeSortRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeSortRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeSortRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeSortRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeSortRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemHeaderRowRangeSortRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/sort{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeSortRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeSortRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeSortRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeSortRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property sort for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeSortRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeSortRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeSortRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeSortRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// Patch update the navigation property sort in drives +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeSortRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeSortRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// ToDeleteRequestInformation delete navigation property sort for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeSortRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeSortRequestBuilderDeleteRequestConfiguration)(*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 worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeSortRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeSortRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeSortRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeSortRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemHeaderRowRangeSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeSortRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeSortRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeSortRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_header_row_range_unmerge_request_builder.go b/drives/item_items_item_workbook_tables_item_header_row_range_unmerge_request_builder.go new file mode 100644 index 00000000000..57b968bdd93 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_header_row_range_unmerge_request_builder.go @@ -0,0 +1,64 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemHeaderRowRangeUnmergeRequestBuilder provides operations to call the unmerge method. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeUnmergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemHeaderRowRangeUnmergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeUnmergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeUnmergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeUnmergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeUnmergeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemHeaderRowRangeUnmergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/unmerge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeUnmergeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeUnmergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeUnmergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeUnmergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unmerge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeUnmergeRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeUnmergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unmerge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeUnmergeRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeUnmergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemItemsItemWorkbookTablesItemHeaderRowRangeUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeUnmergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeUnmergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_header_row_range_used_range_request_builder.go b/drives/item_items_item_workbook_tables_item_header_row_range_used_range_request_builder.go new file mode 100644 index 00000000000..abba008f45e --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_header_row_range_used_range_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeRequestBuilder provides operations to call the usedRange method. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/usedRange()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeRequestBuilderInternal(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 *ItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function usedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_header_row_range_used_range_with_values_only_request_builder.go b/drives/item_items_item_workbook_tables_item_header_row_range_used_range_with_values_only_request_builder.go new file mode 100644 index 00000000000..e947704ba4e --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_header_row_range_used_range_with_values_only_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder provides operations to call the usedRange method. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, valuesOnly *bool)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/usedRange(valuesOnly={valuesOnly})", pathParameters), + } + if valuesOnly != nil { + m.BaseRequestBuilder.PathParameters["valuesOnly"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatBool(*valuesOnly) + } + return m +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilderInternal(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 *ItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function usedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_header_row_range_visible_view_request_builder.go b/drives/item_items_item_workbook_tables_item_header_row_range_visible_view_request_builder.go new file mode 100644 index 00000000000..eea246f03f6 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_header_row_range_visible_view_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemHeaderRowRangeVisibleViewRequestBuilder provides operations to call the visibleView method. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeVisibleViewRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemHeaderRowRangeVisibleViewRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeVisibleViewRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeVisibleViewRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeVisibleViewRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeVisibleViewRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemHeaderRowRangeVisibleViewRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/visibleView()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeVisibleViewRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeVisibleViewRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeVisibleViewRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeVisibleViewRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function visibleView +// returns a WorkbookRangeViewable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeVisibleViewRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeVisibleViewRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeViewFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable), nil +} +// ToGetRequestInformation invoke function visibleView +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeVisibleViewRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeVisibleViewRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemHeaderRowRangeVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeVisibleViewRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeVisibleViewRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_header_row_range_worksheet_request_builder.go b/drives/item_items_item_workbook_tables_item_header_row_range_worksheet_request_builder.go new file mode 100644 index 00000000000..59467c6078d --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_header_row_range_worksheet_request_builder.go @@ -0,0 +1,81 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemHeaderRowRangeWorksheetRequestBuilder provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeWorksheetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemHeaderRowRangeWorksheetRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeWorksheetRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookTablesItemHeaderRowRangeWorksheetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemHeaderRowRangeWorksheetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookTablesItemHeaderRowRangeWorksheetRequestBuilderGetQueryParameters +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeWorksheetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeWorksheetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeWorksheetRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemHeaderRowRangeWorksheetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/headerRowRange()/worksheet{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemHeaderRowRangeWorksheetRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemHeaderRowRangeWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemHeaderRowRangeWorksheetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeWorksheetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeWorksheetRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookWorksheetable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeWorksheetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeWorksheetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookWorksheetFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable), nil +} +// ToGetRequestInformation the worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeWorksheetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemHeaderRowRangeWorksheetRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 *ItemItemsItemWorkbookTablesItemHeaderRowRangeWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemHeaderRowRangeWorksheetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemHeaderRowRangeWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemHeaderRowRangeWorksheetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_range_bounding_rect_with_another_range_request_builder.go b/drives/item_items_item_workbook_tables_item_range_bounding_rect_with_another_range_request_builder.go new file mode 100644 index 00000000000..b953c1cb9e5 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_range_bounding_rect_with_another_range_request_builder.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRangeBoundingRectWithAnotherRangeRequestBuilder provides operations to call the boundingRect method. +type ItemItemsItemWorkbookTablesItemRangeBoundingRectWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRangeBoundingRectWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRangeBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeBoundingRectWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookTablesItemRangeBoundingRectWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRangeBoundingRectWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/boundingRect(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookTablesItemRangeBoundingRectWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRangeBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeBoundingRectWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeBoundingRectWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRangeBoundingRectWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function boundingRect +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRangeBoundingRectWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function boundingRect +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRangeBoundingRectWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRangeBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeBoundingRectWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRangeBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeBoundingRectWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_range_cell_with_row_with_column_request_builder.go b/drives/item_items_item_workbook_tables_item_range_cell_with_row_with_column_request_builder.go new file mode 100644 index 00000000000..65b6a0b5376 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_range_cell_with_row_with_column_request_builder.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRangeCellWithRowWithColumnRequestBuilder provides operations to call the cell method. +type ItemItemsItemWorkbookTablesItemRangeCellWithRowWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRangeCellWithRowWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRangeCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeCellWithRowWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32, row *int32)(*ItemItemsItemWorkbookTablesItemRangeCellWithRowWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRangeCellWithRowWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/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 +} +// NewItemItemsItemWorkbookTablesItemRangeCellWithRowWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRangeCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeCellWithRowWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeCellWithRowWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRangeCellWithRowWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function cell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRangeCellWithRowWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function cell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRangeCellWithRowWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRangeCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeCellWithRowWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRangeCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeCellWithRowWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_range_clear_post_request_body.go b/drives/item_items_item_workbook_tables_item_range_clear_post_request_body.go new file mode 100644 index 00000000000..99ac4d26710 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_range_clear_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookTablesItemRangeClearPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookTablesItemRangeClearPostRequestBody instantiates a new ItemItemsItemWorkbookTablesItemRangeClearPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeClearPostRequestBody()(*ItemItemsItemWorkbookTablesItemRangeClearPostRequestBody) { + m := &ItemItemsItemWorkbookTablesItemRangeClearPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookTablesItemRangeClearPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookTablesItemRangeClearPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookTablesItemRangeClearPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookTablesItemRangeClearPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetApplyTo gets the applyTo property value. The applyTo property +// returns a *string when successful +func (m *ItemItemsItemWorkbookTablesItemRangeClearPostRequestBody) GetApplyTo()(*string) { + val, err := m.GetBackingStore().Get("applyTo") + 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 *ItemItemsItemWorkbookTablesItemRangeClearPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookTablesItemRangeClearPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["applyTo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetApplyTo(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookTablesItemRangeClearPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("applyTo", m.GetApplyTo()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookTablesItemRangeClearPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetApplyTo sets the applyTo property value. The applyTo property +func (m *ItemItemsItemWorkbookTablesItemRangeClearPostRequestBody) SetApplyTo(value *string)() { + err := m.GetBackingStore().Set("applyTo", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookTablesItemRangeClearPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookTablesItemRangeClearPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetApplyTo()(*string) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetApplyTo(value *string)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/item_items_item_workbook_tables_item_range_clear_request_builder.go b/drives/item_items_item_workbook_tables_item_range_clear_request_builder.go new file mode 100644 index 00000000000..1cf2887c06c --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_range_clear_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRangeClearRequestBuilder provides operations to call the clear method. +type ItemItemsItemWorkbookTablesItemRangeClearRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRangeClearRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRangeClearRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRangeClearRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRangeClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeClearRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeClearRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRangeClearRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/clear", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemRangeClearRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRangeClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeClearRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeClearRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRangeClearRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action clear +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRangeClearRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookTablesItemRangeClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeClearRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action clear +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRangeClearRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookTablesItemRangeClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeClearRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookTablesItemRangeClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeClearRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRangeClearRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeClearRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_range_column_with_column_request_builder.go b/drives/item_items_item_workbook_tables_item_range_column_with_column_request_builder.go new file mode 100644 index 00000000000..7b80c441278 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_range_column_with_column_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRangeColumnWithColumnRequestBuilder provides operations to call the column method. +type ItemItemsItemWorkbookTablesItemRangeColumnWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRangeColumnWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRangeColumnWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRangeColumnWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRangeColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeColumnWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32)(*ItemItemsItemWorkbookTablesItemRangeColumnWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRangeColumnWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/column(column={column})", pathParameters), + } + if column != nil { + m.BaseRequestBuilder.PathParameters["column"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*column), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemRangeColumnWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRangeColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeColumnWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeColumnWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRangeColumnWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function column +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRangeColumnWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeColumnWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function column +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRangeColumnWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeColumnWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRangeColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeColumnWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRangeColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeColumnWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_range_columns_after_request_builder.go b/drives/item_items_item_workbook_tables_item_range_columns_after_request_builder.go new file mode 100644 index 00000000000..fe4937fc213 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_range_columns_after_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRangeColumnsAfterRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookTablesItemRangeColumnsAfterRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRangeColumnsAfterRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRangeColumnsAfterRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRangeColumnsAfterRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRangeColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeColumnsAfterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeColumnsAfterRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRangeColumnsAfterRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/columnsAfter()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemRangeColumnsAfterRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRangeColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeColumnsAfterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeColumnsAfterRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRangeColumnsAfterRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRangeColumnsAfterRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeColumnsAfterRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRangeColumnsAfterRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeColumnsAfterRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRangeColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeColumnsAfterRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRangeColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeColumnsAfterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_range_columns_after_with_count_request_builder.go b/drives/item_items_item_workbook_tables_item_range_columns_after_with_count_request_builder.go new file mode 100644 index 00000000000..0f8cd1ba339 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_range_columns_after_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRangeColumnsAfterWithCountRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookTablesItemRangeColumnsAfterWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRangeColumnsAfterWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRangeColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeColumnsAfterWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookTablesItemRangeColumnsAfterWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRangeColumnsAfterWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/columnsAfter(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemRangeColumnsAfterWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRangeColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeColumnsAfterWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeColumnsAfterWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRangeColumnsAfterWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRangeColumnsAfterWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRangeColumnsAfterWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRangeColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeColumnsAfterWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRangeColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeColumnsAfterWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_range_columns_before_request_builder.go b/drives/item_items_item_workbook_tables_item_range_columns_before_request_builder.go new file mode 100644 index 00000000000..02066709817 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_range_columns_before_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRangeColumnsBeforeRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookTablesItemRangeColumnsBeforeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRangeColumnsBeforeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRangeColumnsBeforeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRangeColumnsBeforeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRangeColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeColumnsBeforeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeColumnsBeforeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRangeColumnsBeforeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/columnsBefore()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemRangeColumnsBeforeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRangeColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeColumnsBeforeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeColumnsBeforeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRangeColumnsBeforeRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRangeColumnsBeforeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeColumnsBeforeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRangeColumnsBeforeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeColumnsBeforeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRangeColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeColumnsBeforeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRangeColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeColumnsBeforeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_range_columns_before_with_count_request_builder.go b/drives/item_items_item_workbook_tables_item_range_columns_before_with_count_request_builder.go new file mode 100644 index 00000000000..cf988bbbd55 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_range_columns_before_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRangeColumnsBeforeWithCountRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookTablesItemRangeColumnsBeforeWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRangeColumnsBeforeWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRangeColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeColumnsBeforeWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookTablesItemRangeColumnsBeforeWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRangeColumnsBeforeWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/columnsBefore(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemRangeColumnsBeforeWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRangeColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeColumnsBeforeWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeColumnsBeforeWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRangeColumnsBeforeWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRangeColumnsBeforeWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRangeColumnsBeforeWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRangeColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeColumnsBeforeWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRangeColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeColumnsBeforeWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_range_delete_post_request_body.go b/drives/item_items_item_workbook_tables_item_range_delete_post_request_body.go new file mode 100644 index 00000000000..841480a7bdd --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_range_delete_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookTablesItemRangeDeletePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookTablesItemRangeDeletePostRequestBody instantiates a new ItemItemsItemWorkbookTablesItemRangeDeletePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeDeletePostRequestBody()(*ItemItemsItemWorkbookTablesItemRangeDeletePostRequestBody) { + m := &ItemItemsItemWorkbookTablesItemRangeDeletePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookTablesItemRangeDeletePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookTablesItemRangeDeletePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookTablesItemRangeDeletePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookTablesItemRangeDeletePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookTablesItemRangeDeletePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookTablesItemRangeDeletePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookTablesItemRangeDeletePostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookTablesItemRangeDeletePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookTablesItemRangeDeletePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookTablesItemRangeDeletePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookTablesItemRangeDeletePostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookTablesItemRangeDeletePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/item_items_item_workbook_tables_item_range_delete_request_builder.go b/drives/item_items_item_workbook_tables_item_range_delete_request_builder.go new file mode 100644 index 00000000000..5598f39583e --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_range_delete_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRangeDeleteRequestBuilder provides operations to call the delete method. +type ItemItemsItemWorkbookTablesItemRangeDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRangeDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRangeDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRangeDeleteRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRangeDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeDeleteRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRangeDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/delete", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemRangeDeleteRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRangeDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRangeDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action delete +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRangeDeleteRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookTablesItemRangeDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action delete +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRangeDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookTablesItemRangeDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookTablesItemRangeDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRangeDeleteRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_range_entire_column_request_builder.go b/drives/item_items_item_workbook_tables_item_range_entire_column_request_builder.go new file mode 100644 index 00000000000..2f585a1199a --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_range_entire_column_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRangeEntireColumnRequestBuilder provides operations to call the entireColumn method. +type ItemItemsItemWorkbookTablesItemRangeEntireColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRangeEntireColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRangeEntireColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRangeEntireColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRangeEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeEntireColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeEntireColumnRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRangeEntireColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/entireColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemRangeEntireColumnRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRangeEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeEntireColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeEntireColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRangeEntireColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRangeEntireColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeEntireColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRangeEntireColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeEntireColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRangeEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeEntireColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRangeEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeEntireColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_range_entire_row_request_builder.go b/drives/item_items_item_workbook_tables_item_range_entire_row_request_builder.go new file mode 100644 index 00000000000..604d1fef2ce --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_range_entire_row_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRangeEntireRowRequestBuilder provides operations to call the entireRow method. +type ItemItemsItemWorkbookTablesItemRangeEntireRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRangeEntireRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRangeEntireRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRangeEntireRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRangeEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeEntireRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeEntireRowRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRangeEntireRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/entireRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemRangeEntireRowRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRangeEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeEntireRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeEntireRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRangeEntireRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRangeEntireRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeEntireRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRangeEntireRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeEntireRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRangeEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeEntireRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRangeEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeEntireRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_range_format_request_builder.go b/drives/item_items_item_workbook_tables_item_range_format_request_builder.go new file mode 100644 index 00000000000..30c198e460e --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_range_format_request_builder.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRangeFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookTablesItemRangeFormatRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRangeFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRangeFormatRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookTablesItemRangeFormatRequestBuilderGetQueryParameters returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +type ItemItemsItemWorkbookTablesItemRangeFormatRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookTablesItemRangeFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRangeFormatRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookTablesItemRangeFormatRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookTablesItemRangeFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRangeFormatRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRangeFormatRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRangeFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeFormatRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRangeFormatRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/format{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemRangeFormatRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRangeFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeFormatRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRangeFormatRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property format for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRangeFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeFormatRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRangeFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeFormatRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// Patch update the navigation property format in drives +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRangeFormatRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeFormatRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// ToDeleteRequestInformation delete navigation property format for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRangeFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeFormatRequestBuilderDeleteRequestConfiguration)(*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 format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRangeFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRangeFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeFormatRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRangeFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeFormatRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRangeFormatRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_range_insert_post_request_body.go b/drives/item_items_item_workbook_tables_item_range_insert_post_request_body.go new file mode 100644 index 00000000000..04a774b7195 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_range_insert_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookTablesItemRangeInsertPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookTablesItemRangeInsertPostRequestBody instantiates a new ItemItemsItemWorkbookTablesItemRangeInsertPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeInsertPostRequestBody()(*ItemItemsItemWorkbookTablesItemRangeInsertPostRequestBody) { + m := &ItemItemsItemWorkbookTablesItemRangeInsertPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookTablesItemRangeInsertPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookTablesItemRangeInsertPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookTablesItemRangeInsertPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookTablesItemRangeInsertPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookTablesItemRangeInsertPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookTablesItemRangeInsertPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookTablesItemRangeInsertPostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookTablesItemRangeInsertPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookTablesItemRangeInsertPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookTablesItemRangeInsertPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookTablesItemRangeInsertPostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookTablesItemRangeInsertPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/item_items_item_workbook_tables_item_range_insert_request_builder.go b/drives/item_items_item_workbook_tables_item_range_insert_request_builder.go new file mode 100644 index 00000000000..9b223b9fad9 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_range_insert_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRangeInsertRequestBuilder provides operations to call the insert method. +type ItemItemsItemWorkbookTablesItemRangeInsertRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRangeInsertRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRangeInsertRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRangeInsertRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRangeInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeInsertRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeInsertRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRangeInsertRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/insert", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemRangeInsertRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRangeInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeInsertRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeInsertRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRangeInsertRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action insert +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRangeInsertRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookTablesItemRangeInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeInsertRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToPostRequestInformation invoke action insert +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRangeInsertRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookTablesItemRangeInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeInsertRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookTablesItemRangeInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeInsertRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRangeInsertRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeInsertRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_range_intersection_with_another_range_request_builder.go b/drives/item_items_item_workbook_tables_item_range_intersection_with_another_range_request_builder.go new file mode 100644 index 00000000000..80386d56eb0 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_range_intersection_with_another_range_request_builder.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRangeIntersectionWithAnotherRangeRequestBuilder provides operations to call the intersection method. +type ItemItemsItemWorkbookTablesItemRangeIntersectionWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRangeIntersectionWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRangeIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeIntersectionWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookTablesItemRangeIntersectionWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRangeIntersectionWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/intersection(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookTablesItemRangeIntersectionWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRangeIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeIntersectionWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeIntersectionWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRangeIntersectionWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function intersection +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRangeIntersectionWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function intersection +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRangeIntersectionWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRangeIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeIntersectionWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRangeIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeIntersectionWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_range_last_cell_request_builder.go b/drives/item_items_item_workbook_tables_item_range_last_cell_request_builder.go new file mode 100644 index 00000000000..b974ba2c2d8 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_range_last_cell_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRangeLastCellRequestBuilder provides operations to call the lastCell method. +type ItemItemsItemWorkbookTablesItemRangeLastCellRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRangeLastCellRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRangeLastCellRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRangeLastCellRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRangeLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeLastCellRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeLastCellRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRangeLastCellRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/lastCell()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemRangeLastCellRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRangeLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeLastCellRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeLastCellRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRangeLastCellRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastCell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRangeLastCellRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeLastCellRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastCell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRangeLastCellRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeLastCellRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRangeLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeLastCellRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRangeLastCellRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeLastCellRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_range_last_column_request_builder.go b/drives/item_items_item_workbook_tables_item_range_last_column_request_builder.go new file mode 100644 index 00000000000..8897bd65f71 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_range_last_column_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRangeLastColumnRequestBuilder provides operations to call the lastColumn method. +type ItemItemsItemWorkbookTablesItemRangeLastColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRangeLastColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRangeLastColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRangeLastColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRangeLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeLastColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeLastColumnRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRangeLastColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/lastColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemRangeLastColumnRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRangeLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeLastColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeLastColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRangeLastColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRangeLastColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeLastColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRangeLastColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeLastColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRangeLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeLastColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRangeLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeLastColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_range_last_row_request_builder.go b/drives/item_items_item_workbook_tables_item_range_last_row_request_builder.go new file mode 100644 index 00000000000..e4574b31ae0 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_range_last_row_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRangeLastRowRequestBuilder provides operations to call the lastRow method. +type ItemItemsItemWorkbookTablesItemRangeLastRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRangeLastRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRangeLastRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRangeLastRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRangeLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeLastRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeLastRowRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRangeLastRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/lastRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemRangeLastRowRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRangeLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeLastRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeLastRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRangeLastRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRangeLastRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeLastRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRangeLastRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeLastRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRangeLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeLastRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRangeLastRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeLastRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_range_merge_post_request_body.go b/drives/item_items_item_workbook_tables_item_range_merge_post_request_body.go new file mode 100644 index 00000000000..051344a44a7 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_range_merge_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookTablesItemRangeMergePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookTablesItemRangeMergePostRequestBody instantiates a new ItemItemsItemWorkbookTablesItemRangeMergePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeMergePostRequestBody()(*ItemItemsItemWorkbookTablesItemRangeMergePostRequestBody) { + m := &ItemItemsItemWorkbookTablesItemRangeMergePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookTablesItemRangeMergePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookTablesItemRangeMergePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookTablesItemRangeMergePostRequestBody(), nil +} +// GetAcross gets the across property value. The across property +// returns a *bool when successful +func (m *ItemItemsItemWorkbookTablesItemRangeMergePostRequestBody) GetAcross()(*bool) { + val, err := m.GetBackingStore().Get("across") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + 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 *ItemItemsItemWorkbookTablesItemRangeMergePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookTablesItemRangeMergePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookTablesItemRangeMergePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["across"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetAcross(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookTablesItemRangeMergePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("across", m.GetAcross()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAcross sets the across property value. The across property +func (m *ItemItemsItemWorkbookTablesItemRangeMergePostRequestBody) SetAcross(value *bool)() { + err := m.GetBackingStore().Set("across", 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 *ItemItemsItemWorkbookTablesItemRangeMergePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookTablesItemRangeMergePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookTablesItemRangeMergePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAcross()(*bool) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetAcross(value *bool)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/item_items_item_workbook_tables_item_range_merge_request_builder.go b/drives/item_items_item_workbook_tables_item_range_merge_request_builder.go new file mode 100644 index 00000000000..61504487cb4 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_range_merge_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRangeMergeRequestBuilder provides operations to call the merge method. +type ItemItemsItemWorkbookTablesItemRangeMergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRangeMergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRangeMergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRangeMergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRangeMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeMergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeMergeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRangeMergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/merge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemRangeMergeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRangeMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeMergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeMergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRangeMergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action merge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRangeMergeRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookTablesItemRangeMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeMergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action merge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRangeMergeRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookTablesItemRangeMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeMergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookTablesItemRangeMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeMergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRangeMergeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeMergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_range_request_builder.go b/drives/item_items_item_workbook_tables_item_range_request_builder.go index 1bf10f82f28..5c5b8bdc5b4 100644 --- a/drives/item_items_item_workbook_tables_item_range_request_builder.go +++ b/drives/item_items_item_workbook_tables_item_range_request_builder.go @@ -18,6 +18,46 @@ type ItemItemsItemWorkbookTablesItemRangeRequestBuilderGetRequestConfiguration s // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// BoundingRectWithAnotherRange provides operations to call the boundingRect method. +// returns a *ItemItemsItemWorkbookTablesItemRangeBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeRequestBuilder) BoundingRectWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookTablesItemRangeBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeBoundingRectWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// CellWithRowWithColumn provides operations to call the cell method. +// returns a *ItemItemsItemWorkbookTablesItemRangeCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeRequestBuilder) CellWithRowWithColumn(column *int32, row *int32)(*ItemItemsItemWorkbookTablesItemRangeCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeCellWithRowWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column, row) +} +// Clear provides operations to call the clear method. +// returns a *ItemItemsItemWorkbookTablesItemRangeClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeRequestBuilder) Clear()(*ItemItemsItemWorkbookTablesItemRangeClearRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeClearRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfter provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookTablesItemRangeColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeRequestBuilder) ColumnsAfter()(*ItemItemsItemWorkbookTablesItemRangeColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeColumnsAfterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfterWithCount provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookTablesItemRangeColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeRequestBuilder) ColumnsAfterWithCount(count *int32)(*ItemItemsItemWorkbookTablesItemRangeColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeColumnsAfterWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnsBefore provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookTablesItemRangeColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeRequestBuilder) ColumnsBefore()(*ItemItemsItemWorkbookTablesItemRangeColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeColumnsBeforeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsBeforeWithCount provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookTablesItemRangeColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeRequestBuilder) ColumnsBeforeWithCount(count *int32)(*ItemItemsItemWorkbookTablesItemRangeColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeColumnsBeforeWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnWithColumn provides operations to call the column method. +// returns a *ItemItemsItemWorkbookTablesItemRangeColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeRequestBuilder) ColumnWithColumn(column *int32)(*ItemItemsItemWorkbookTablesItemRangeColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeColumnWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column) +} // NewItemItemsItemWorkbookTablesItemRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRangeRequestBuilder and sets the default values. func NewItemItemsItemWorkbookTablesItemRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeRequestBuilder) { m := &ItemItemsItemWorkbookTablesItemRangeRequestBuilder{ @@ -31,6 +71,26 @@ func NewItemItemsItemWorkbookTablesItemRangeRequestBuilder(rawUrl string, reques urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookTablesItemRangeRequestBuilderInternal(urlParams, requestAdapter) } +// DeletePath provides operations to call the delete method. +// returns a *ItemItemsItemWorkbookTablesItemRangeDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeRequestBuilder) DeletePath()(*ItemItemsItemWorkbookTablesItemRangeDeleteRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireColumn provides operations to call the entireColumn method. +// returns a *ItemItemsItemWorkbookTablesItemRangeEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeRequestBuilder) EntireColumn()(*ItemItemsItemWorkbookTablesItemRangeEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeEntireColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireRow provides operations to call the entireRow method. +// returns a *ItemItemsItemWorkbookTablesItemRangeEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeRequestBuilder) EntireRow()(*ItemItemsItemWorkbookTablesItemRangeEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeEntireRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Format provides operations to manage the format property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookTablesItemRangeFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeRequestBuilder) Format()(*ItemItemsItemWorkbookTablesItemRangeFormatRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Get gets 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 @@ -54,6 +114,76 @@ func (m *ItemItemsItemWorkbookTablesItemRangeRequestBuilder) Get(ctx context.Con } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil } +// Insert provides operations to call the insert method. +// returns a *ItemItemsItemWorkbookTablesItemRangeInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeRequestBuilder) Insert()(*ItemItemsItemWorkbookTablesItemRangeInsertRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeInsertRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// IntersectionWithAnotherRange provides operations to call the intersection method. +// returns a *ItemItemsItemWorkbookTablesItemRangeIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeRequestBuilder) IntersectionWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookTablesItemRangeIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeIntersectionWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// LastCell provides operations to call the lastCell method. +// returns a *ItemItemsItemWorkbookTablesItemRangeLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeRequestBuilder) LastCell()(*ItemItemsItemWorkbookTablesItemRangeLastCellRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeLastCellRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastColumn provides operations to call the lastColumn method. +// returns a *ItemItemsItemWorkbookTablesItemRangeLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeRequestBuilder) LastColumn()(*ItemItemsItemWorkbookTablesItemRangeLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeLastColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastRow provides operations to call the lastRow method. +// returns a *ItemItemsItemWorkbookTablesItemRangeLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeRequestBuilder) LastRow()(*ItemItemsItemWorkbookTablesItemRangeLastRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeLastRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Merge provides operations to call the merge method. +// returns a *ItemItemsItemWorkbookTablesItemRangeMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeRequestBuilder) Merge()(*ItemItemsItemWorkbookTablesItemRangeMergeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeMergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// OffsetRangeWithRowOffsetWithColumnOffset provides operations to call the offsetRange method. +// returns a *ItemItemsItemWorkbookTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeRequestBuilder) OffsetRangeWithRowOffsetWithColumnOffset(columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, columnOffset, rowOffset) +} +// ResizedRangeWithDeltaRowsWithDeltaColumns provides operations to call the resizedRange method. +// returns a *ItemItemsItemWorkbookTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeRequestBuilder) ResizedRangeWithDeltaRowsWithDeltaColumns(deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, deltaColumns, deltaRows) +} +// RowsAbove provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookTablesItemRangeRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeRequestBuilder) RowsAbove()(*ItemItemsItemWorkbookTablesItemRangeRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeRowsAboveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsAboveWithCount provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookTablesItemRangeRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeRequestBuilder) RowsAboveWithCount(count *int32)(*ItemItemsItemWorkbookTablesItemRangeRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeRowsAboveWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowsBelow provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookTablesItemRangeRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeRequestBuilder) RowsBelow()(*ItemItemsItemWorkbookTablesItemRangeRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeRowsBelowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsBelowWithCount provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookTablesItemRangeRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeRequestBuilder) RowsBelowWithCount(count *int32)(*ItemItemsItemWorkbookTablesItemRangeRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeRowsBelowWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowWithRow provides operations to call the row method. +// returns a *ItemItemsItemWorkbookTablesItemRangeRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeRequestBuilder) RowWithRow(row *int32)(*ItemItemsItemWorkbookTablesItemRangeRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeRowWithRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, row) +} +// Sort provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookTablesItemRangeSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeRequestBuilder) Sort()(*ItemItemsItemWorkbookTablesItemRangeSortRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeSortRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToGetRequestInformation gets the range object associated with the entire table. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookTablesItemRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { @@ -65,8 +195,33 @@ func (m *ItemItemsItemWorkbookTablesItemRangeRequestBuilder) ToGetRequestInforma requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } +// Unmerge provides operations to call the unmerge method. +// returns a *ItemItemsItemWorkbookTablesItemRangeUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeRequestBuilder) Unmerge()(*ItemItemsItemWorkbookTablesItemRangeUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeUnmergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// UsedRange provides operations to call the usedRange method. +// returns a *ItemItemsItemWorkbookTablesItemRangeUsedRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeRequestBuilder) UsedRange()(*ItemItemsItemWorkbookTablesItemRangeUsedRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeUsedRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// UsedRangeWithValuesOnly provides operations to call the usedRange method. +// returns a *ItemItemsItemWorkbookTablesItemRangeUsedRangeWithValuesOnlyRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeRequestBuilder) UsedRangeWithValuesOnly(valuesOnly *bool)(*ItemItemsItemWorkbookTablesItemRangeUsedRangeWithValuesOnlyRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeUsedRangeWithValuesOnlyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, valuesOnly) +} +// VisibleView provides operations to call the visibleView method. +// returns a *ItemItemsItemWorkbookTablesItemRangeVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeRequestBuilder) VisibleView()(*ItemItemsItemWorkbookTablesItemRangeVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeVisibleViewRequestBuilderInternal(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 *ItemItemsItemWorkbookTablesItemRangeRequestBuilder when successful func (m *ItemItemsItemWorkbookTablesItemRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRangeRequestBuilder) { return NewItemItemsItemWorkbookTablesItemRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); } +// Worksheet provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookTablesItemRangeWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeRequestBuilder) Worksheet()(*ItemItemsItemWorkbookTablesItemRangeWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeWorksheetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} diff --git a/drives/item_items_item_workbook_tables_item_range_row_with_row_request_builder.go b/drives/item_items_item_workbook_tables_item_range_row_with_row_request_builder.go new file mode 100644 index 00000000000..570cfdf45f3 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_range_row_with_row_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRangeRowWithRowRequestBuilder provides operations to call the row method. +type ItemItemsItemWorkbookTablesItemRangeRowWithRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRangeRowWithRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRangeRowWithRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRangeRowWithRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRangeRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeRowWithRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, row *int32)(*ItemItemsItemWorkbookTablesItemRangeRowWithRowRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRangeRowWithRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/row(row={row})", pathParameters), + } + if row != nil { + m.BaseRequestBuilder.PathParameters["row"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*row), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemRangeRowWithRowRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRangeRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeRowWithRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeRowWithRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRangeRowWithRowRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function row +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRangeRowWithRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeRowWithRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function row +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRangeRowWithRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeRowWithRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRangeRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeRowWithRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRangeRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeRowWithRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_range_rows_above_request_builder.go b/drives/item_items_item_workbook_tables_item_range_rows_above_request_builder.go new file mode 100644 index 00000000000..985bd6b3716 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_range_rows_above_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRangeRowsAboveRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookTablesItemRangeRowsAboveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRangeRowsAboveRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRangeRowsAboveRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRangeRowsAboveRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRangeRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeRowsAboveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeRowsAboveRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRangeRowsAboveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/rowsAbove()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemRangeRowsAboveRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRangeRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeRowsAboveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeRowsAboveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRangeRowsAboveRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRangeRowsAboveRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeRowsAboveRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRangeRowsAboveRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeRowsAboveRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRangeRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeRowsAboveRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRangeRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeRowsAboveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_range_rows_above_with_count_request_builder.go b/drives/item_items_item_workbook_tables_item_range_rows_above_with_count_request_builder.go new file mode 100644 index 00000000000..44e04601eea --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_range_rows_above_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRangeRowsAboveWithCountRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookTablesItemRangeRowsAboveWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRangeRowsAboveWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRangeRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeRowsAboveWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookTablesItemRangeRowsAboveWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRangeRowsAboveWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/rowsAbove(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemRangeRowsAboveWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRangeRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeRowsAboveWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeRowsAboveWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRangeRowsAboveWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRangeRowsAboveWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRangeRowsAboveWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRangeRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeRowsAboveWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRangeRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeRowsAboveWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_range_rows_below_request_builder.go b/drives/item_items_item_workbook_tables_item_range_rows_below_request_builder.go new file mode 100644 index 00000000000..388e000878c --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_range_rows_below_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRangeRowsBelowRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookTablesItemRangeRowsBelowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRangeRowsBelowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRangeRowsBelowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRangeRowsBelowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRangeRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeRowsBelowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeRowsBelowRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRangeRowsBelowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/rowsBelow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemRangeRowsBelowRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRangeRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeRowsBelowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeRowsBelowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRangeRowsBelowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRangeRowsBelowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeRowsBelowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRangeRowsBelowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeRowsBelowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRangeRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeRowsBelowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRangeRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeRowsBelowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_range_rows_below_with_count_request_builder.go b/drives/item_items_item_workbook_tables_item_range_rows_below_with_count_request_builder.go new file mode 100644 index 00000000000..434cee2cb13 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_range_rows_below_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRangeRowsBelowWithCountRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookTablesItemRangeRowsBelowWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRangeRowsBelowWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRangeRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeRowsBelowWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookTablesItemRangeRowsBelowWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRangeRowsBelowWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/rowsBelow(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemRangeRowsBelowWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRangeRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeRowsBelowWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeRowsBelowWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRangeRowsBelowWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRangeRowsBelowWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRangeRowsBelowWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRangeRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeRowsBelowWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRangeRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeRowsBelowWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_range_sort_request_builder.go b/drives/item_items_item_workbook_tables_item_range_sort_request_builder.go new file mode 100644 index 00000000000..d8158d0c69d --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_range_sort_request_builder.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRangeSortRequestBuilder provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookTablesItemRangeSortRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRangeSortRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRangeSortRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookTablesItemRangeSortRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookTablesItemRangeSortRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookTablesItemRangeSortRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRangeSortRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookTablesItemRangeSortRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookTablesItemRangeSortRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRangeSortRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRangeSortRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRangeSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeSortRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeSortRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRangeSortRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/sort{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemRangeSortRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRangeSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeSortRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeSortRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRangeSortRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property sort for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRangeSortRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeSortRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRangeSortRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeSortRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// Patch update the navigation property sort in drives +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRangeSortRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeSortRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// ToDeleteRequestInformation delete navigation property sort for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRangeSortRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeSortRequestBuilderDeleteRequestConfiguration)(*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 worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRangeSortRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeSortRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRangeSortRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeSortRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRangeSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeSortRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRangeSortRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeSortRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_range_unmerge_request_builder.go b/drives/item_items_item_workbook_tables_item_range_unmerge_request_builder.go new file mode 100644 index 00000000000..47e7b774315 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_range_unmerge_request_builder.go @@ -0,0 +1,64 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRangeUnmergeRequestBuilder provides operations to call the unmerge method. +type ItemItemsItemWorkbookTablesItemRangeUnmergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRangeUnmergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRangeUnmergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRangeUnmergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRangeUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeUnmergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeUnmergeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRangeUnmergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/unmerge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemRangeUnmergeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRangeUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeUnmergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeUnmergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRangeUnmergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unmerge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRangeUnmergeRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeUnmergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unmerge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRangeUnmergeRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeUnmergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemItemsItemWorkbookTablesItemRangeUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeUnmergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRangeUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeUnmergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_range_used_range_request_builder.go b/drives/item_items_item_workbook_tables_item_range_used_range_request_builder.go new file mode 100644 index 00000000000..a2d8f1e257e --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_range_used_range_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRangeUsedRangeRequestBuilder provides operations to call the usedRange method. +type ItemItemsItemWorkbookTablesItemRangeUsedRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRangeUsedRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRangeUsedRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRangeUsedRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRangeUsedRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeUsedRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeUsedRangeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRangeUsedRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/usedRange()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemRangeUsedRangeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRangeUsedRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeUsedRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeUsedRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRangeUsedRangeRequestBuilderInternal(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 *ItemItemsItemWorkbookTablesItemRangeUsedRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeUsedRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function usedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRangeUsedRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeUsedRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRangeUsedRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeUsedRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRangeUsedRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeUsedRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_range_used_range_with_values_only_request_builder.go b/drives/item_items_item_workbook_tables_item_range_used_range_with_values_only_request_builder.go new file mode 100644 index 00000000000..4b565718889 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_range_used_range_with_values_only_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRangeUsedRangeWithValuesOnlyRequestBuilder provides operations to call the usedRange method. +type ItemItemsItemWorkbookTablesItemRangeUsedRangeWithValuesOnlyRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRangeUsedRangeWithValuesOnlyRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRangeUsedRangeWithValuesOnlyRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeUsedRangeWithValuesOnlyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, valuesOnly *bool)(*ItemItemsItemWorkbookTablesItemRangeUsedRangeWithValuesOnlyRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRangeUsedRangeWithValuesOnlyRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/usedRange(valuesOnly={valuesOnly})", pathParameters), + } + if valuesOnly != nil { + m.BaseRequestBuilder.PathParameters["valuesOnly"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatBool(*valuesOnly) + } + return m +} +// NewItemItemsItemWorkbookTablesItemRangeUsedRangeWithValuesOnlyRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRangeUsedRangeWithValuesOnlyRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeUsedRangeWithValuesOnlyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeUsedRangeWithValuesOnlyRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRangeUsedRangeWithValuesOnlyRequestBuilderInternal(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 *ItemItemsItemWorkbookTablesItemRangeUsedRangeWithValuesOnlyRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function usedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRangeUsedRangeWithValuesOnlyRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRangeUsedRangeWithValuesOnlyRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeUsedRangeWithValuesOnlyRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRangeUsedRangeWithValuesOnlyRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeUsedRangeWithValuesOnlyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_range_visible_view_request_builder.go b/drives/item_items_item_workbook_tables_item_range_visible_view_request_builder.go new file mode 100644 index 00000000000..6274112f206 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_range_visible_view_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRangeVisibleViewRequestBuilder provides operations to call the visibleView method. +type ItemItemsItemWorkbookTablesItemRangeVisibleViewRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRangeVisibleViewRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRangeVisibleViewRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRangeVisibleViewRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRangeVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeVisibleViewRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeVisibleViewRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRangeVisibleViewRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/visibleView()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemRangeVisibleViewRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRangeVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeVisibleViewRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeVisibleViewRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRangeVisibleViewRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function visibleView +// returns a WorkbookRangeViewable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRangeVisibleViewRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeVisibleViewRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeViewFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable), nil +} +// ToGetRequestInformation invoke function visibleView +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRangeVisibleViewRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeVisibleViewRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRangeVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeVisibleViewRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRangeVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeVisibleViewRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_range_worksheet_request_builder.go b/drives/item_items_item_workbook_tables_item_range_worksheet_request_builder.go new file mode 100644 index 00000000000..813c5828f3a --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_range_worksheet_request_builder.go @@ -0,0 +1,81 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRangeWorksheetRequestBuilder provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookTablesItemRangeWorksheetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRangeWorksheetRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookTablesItemRangeWorksheetRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookTablesItemRangeWorksheetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRangeWorksheetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookTablesItemRangeWorksheetRequestBuilderGetQueryParameters +} +// NewItemItemsItemWorkbookTablesItemRangeWorksheetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRangeWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeWorksheetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeWorksheetRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRangeWorksheetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/range()/worksheet{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemRangeWorksheetRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRangeWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRangeWorksheetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRangeWorksheetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRangeWorksheetRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookWorksheetable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRangeWorksheetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeWorksheetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookWorksheetFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable), nil +} +// ToGetRequestInformation the worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRangeWorksheetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRangeWorksheetRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 *ItemItemsItemWorkbookTablesItemRangeWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRangeWorksheetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRangeWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRangeWorksheetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_rows_item_range_cell_with_row_with_column_request_builder.go b/drives/item_items_item_workbook_tables_item_rows_item_range_cell_with_row_with_column_request_builder.go new file mode 100644 index 00000000000..9ea1f4a020d --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_rows_item_range_cell_with_row_with_column_request_builder.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilder provides operations to call the cell method. +type ItemItemsItemWorkbookTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32, row *int32)(*ItemItemsItemWorkbookTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/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 +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function cell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function cell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_rows_item_range_clear_post_request_body.go b/drives/item_items_item_workbook_tables_item_rows_item_range_clear_post_request_body.go new file mode 100644 index 00000000000..4048cece2df --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_rows_item_range_clear_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookTablesItemRowsItemRangeClearPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeClearPostRequestBody instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeClearPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeClearPostRequestBody()(*ItemItemsItemWorkbookTablesItemRowsItemRangeClearPostRequestBody) { + m := &ItemItemsItemWorkbookTablesItemRowsItemRangeClearPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookTablesItemRowsItemRangeClearPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookTablesItemRowsItemRangeClearPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeClearPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeClearPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetApplyTo gets the applyTo property value. The applyTo property +// returns a *string when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeClearPostRequestBody) GetApplyTo()(*string) { + val, err := m.GetBackingStore().Get("applyTo") + 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 *ItemItemsItemWorkbookTablesItemRowsItemRangeClearPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeClearPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["applyTo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetApplyTo(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeClearPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("applyTo", m.GetApplyTo()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeClearPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetApplyTo sets the applyTo property value. The applyTo property +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeClearPostRequestBody) SetApplyTo(value *string)() { + err := m.GetBackingStore().Set("applyTo", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeClearPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookTablesItemRowsItemRangeClearPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetApplyTo()(*string) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetApplyTo(value *string)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/item_items_item_workbook_tables_item_rows_item_range_clear_request_builder.go b/drives/item_items_item_workbook_tables_item_rows_item_range_clear_request_builder.go new file mode 100644 index 00000000000..cbbda1aae9f --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_rows_item_range_clear_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRowsItemRangeClearRequestBuilder provides operations to call the clear method. +type ItemItemsItemWorkbookTablesItemRowsItemRangeClearRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRowsItemRangeClearRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRowsItemRangeClearRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeClearRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeClearRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeClearRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRowsItemRangeClearRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/clear", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeClearRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeClearRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeClearRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRowsItemRangeClearRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action clear +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeClearRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookTablesItemRowsItemRangeClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeClearRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action clear +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeClearRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookTablesItemRowsItemRangeClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeClearRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookTablesItemRowsItemRangeClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeClearRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRowsItemRangeClearRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeClearRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_rows_item_range_column_with_column_request_builder.go b/drives/item_items_item_workbook_tables_item_rows_item_range_column_with_column_request_builder.go new file mode 100644 index 00000000000..69334084fed --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_rows_item_range_column_with_column_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRowsItemRangeColumnWithColumnRequestBuilder provides operations to call the column method. +type ItemItemsItemWorkbookTablesItemRowsItemRangeColumnWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRowsItemRangeColumnWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRowsItemRangeColumnWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeColumnWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeColumnWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32)(*ItemItemsItemWorkbookTablesItemRowsItemRangeColumnWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRowsItemRangeColumnWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/column(column={column})", pathParameters), + } + if column != nil { + m.BaseRequestBuilder.PathParameters["column"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*column), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeColumnWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeColumnWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeColumnWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRowsItemRangeColumnWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function column +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeColumnWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeColumnWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function column +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeColumnWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeColumnWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRowsItemRangeColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeColumnWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRowsItemRangeColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeColumnWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_rows_item_range_columns_after_request_builder.go b/drives/item_items_item_workbook_tables_item_rows_item_range_columns_after_request_builder.go new file mode 100644 index 00000000000..3e249da2693 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_rows_item_range_columns_after_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/columnsAfter()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_rows_item_range_columns_after_with_count_request_builder.go b/drives/item_items_item_workbook_tables_item_rows_item_range_columns_after_with_count_request_builder.go new file mode 100644 index 00000000000..bac02d885dd --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_rows_item_range_columns_after_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/columnsAfter(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_rows_item_range_columns_before_request_builder.go b/drives/item_items_item_workbook_tables_item_rows_item_range_columns_before_request_builder.go new file mode 100644 index 00000000000..ae07362e556 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_rows_item_range_columns_before_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/columnsBefore()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_rows_item_range_columns_before_with_count_request_builder.go b/drives/item_items_item_workbook_tables_item_rows_item_range_columns_before_with_count_request_builder.go new file mode 100644 index 00000000000..19a2fe89449 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_rows_item_range_columns_before_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/columnsBefore(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_rows_item_range_delete_post_request_body.go b/drives/item_items_item_workbook_tables_item_rows_item_range_delete_post_request_body.go new file mode 100644 index 00000000000..59dcf7a87ad --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_rows_item_range_delete_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookTablesItemRowsItemRangeDeletePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeDeletePostRequestBody instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeDeletePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeDeletePostRequestBody()(*ItemItemsItemWorkbookTablesItemRowsItemRangeDeletePostRequestBody) { + m := &ItemItemsItemWorkbookTablesItemRowsItemRangeDeletePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookTablesItemRowsItemRangeDeletePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookTablesItemRowsItemRangeDeletePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeDeletePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeDeletePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeDeletePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeDeletePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeDeletePostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeDeletePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeDeletePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeDeletePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeDeletePostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookTablesItemRowsItemRangeDeletePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/item_items_item_workbook_tables_item_rows_item_range_delete_request_builder.go b/drives/item_items_item_workbook_tables_item_rows_item_range_delete_request_builder.go new file mode 100644 index 00000000000..260ad76a005 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_rows_item_range_delete_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRowsItemRangeDeleteRequestBuilder provides operations to call the delete method. +type ItemItemsItemWorkbookTablesItemRowsItemRangeDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRowsItemRangeDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRowsItemRangeDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeDeleteRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeDeleteRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRowsItemRangeDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/delete", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeDeleteRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRowsItemRangeDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action delete +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeDeleteRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookTablesItemRowsItemRangeDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action delete +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookTablesItemRowsItemRangeDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookTablesItemRowsItemRangeDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRowsItemRangeDeleteRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_rows_item_range_entire_column_request_builder.go b/drives/item_items_item_workbook_tables_item_rows_item_range_entire_column_request_builder.go new file mode 100644 index 00000000000..c8a0c31f2c4 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_rows_item_range_entire_column_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRowsItemRangeEntireColumnRequestBuilder provides operations to call the entireColumn method. +type ItemItemsItemWorkbookTablesItemRowsItemRangeEntireColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRowsItemRangeEntireColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRowsItemRangeEntireColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeEntireColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeEntireColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeEntireColumnRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRowsItemRangeEntireColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/entireColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeEntireColumnRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeEntireColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeEntireColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRowsItemRangeEntireColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeEntireColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeEntireColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeEntireColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeEntireColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRowsItemRangeEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeEntireColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRowsItemRangeEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeEntireColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_rows_item_range_entire_row_request_builder.go b/drives/item_items_item_workbook_tables_item_rows_item_range_entire_row_request_builder.go new file mode 100644 index 00000000000..71f8d30e532 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_rows_item_range_entire_row_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRowsItemRangeEntireRowRequestBuilder provides operations to call the entireRow method. +type ItemItemsItemWorkbookTablesItemRowsItemRangeEntireRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRowsItemRangeEntireRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRowsItemRangeEntireRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeEntireRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeEntireRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeEntireRowRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRowsItemRangeEntireRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/entireRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeEntireRowRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeEntireRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeEntireRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRowsItemRangeEntireRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeEntireRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeEntireRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeEntireRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeEntireRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRowsItemRangeEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeEntireRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRowsItemRangeEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeEntireRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_rows_item_range_format_request_builder.go b/drives/item_items_item_workbook_tables_item_rows_item_range_format_request_builder.go new file mode 100644 index 00000000000..a55a15e9138 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_rows_item_range_format_request_builder.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRowsItemRangeFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookTablesItemRowsItemRangeFormatRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRowsItemRangeFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRowsItemRangeFormatRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookTablesItemRowsItemRangeFormatRequestBuilderGetQueryParameters returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +type ItemItemsItemWorkbookTablesItemRowsItemRangeFormatRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookTablesItemRowsItemRangeFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRowsItemRangeFormatRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookTablesItemRowsItemRangeFormatRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookTablesItemRowsItemRangeFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRowsItemRangeFormatRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeFormatRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeFormatRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRowsItemRangeFormatRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/format{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeFormatRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeFormatRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRowsItemRangeFormatRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property format for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeFormatRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeFormatRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// Patch update the navigation property format in drives +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeFormatRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeFormatRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// ToDeleteRequestInformation delete navigation property format for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeFormatRequestBuilderDeleteRequestConfiguration)(*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 format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeFormatRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRowsItemRangeFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeFormatRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRowsItemRangeFormatRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_rows_item_range_insert_post_request_body.go b/drives/item_items_item_workbook_tables_item_rows_item_range_insert_post_request_body.go new file mode 100644 index 00000000000..f7aef6e14e7 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_rows_item_range_insert_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookTablesItemRowsItemRangeInsertPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeInsertPostRequestBody instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeInsertPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeInsertPostRequestBody()(*ItemItemsItemWorkbookTablesItemRowsItemRangeInsertPostRequestBody) { + m := &ItemItemsItemWorkbookTablesItemRowsItemRangeInsertPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookTablesItemRowsItemRangeInsertPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookTablesItemRowsItemRangeInsertPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeInsertPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeInsertPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeInsertPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeInsertPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeInsertPostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeInsertPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeInsertPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeInsertPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeInsertPostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookTablesItemRowsItemRangeInsertPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/item_items_item_workbook_tables_item_rows_item_range_insert_request_builder.go b/drives/item_items_item_workbook_tables_item_rows_item_range_insert_request_builder.go new file mode 100644 index 00000000000..a466d022374 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_rows_item_range_insert_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRowsItemRangeInsertRequestBuilder provides operations to call the insert method. +type ItemItemsItemWorkbookTablesItemRowsItemRangeInsertRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRowsItemRangeInsertRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRowsItemRangeInsertRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeInsertRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeInsertRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeInsertRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRowsItemRangeInsertRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/insert", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeInsertRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeInsertRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeInsertRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRowsItemRangeInsertRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action insert +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeInsertRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookTablesItemRowsItemRangeInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeInsertRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToPostRequestInformation invoke action insert +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeInsertRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookTablesItemRowsItemRangeInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeInsertRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookTablesItemRowsItemRangeInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeInsertRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRowsItemRangeInsertRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeInsertRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_rows_item_range_intersection_with_another_range_request_builder.go b/drives/item_items_item_workbook_tables_item_rows_item_range_intersection_with_another_range_request_builder.go new file mode 100644 index 00000000000..a3ce5c12605 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_rows_item_range_intersection_with_another_range_request_builder.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilder provides operations to call the intersection method. +type ItemItemsItemWorkbookTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/intersection(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function intersection +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function intersection +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_rows_item_range_last_cell_request_builder.go b/drives/item_items_item_workbook_tables_item_rows_item_range_last_cell_request_builder.go new file mode 100644 index 00000000000..7697e79e613 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_rows_item_range_last_cell_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRowsItemRangeLastCellRequestBuilder provides operations to call the lastCell method. +type ItemItemsItemWorkbookTablesItemRowsItemRangeLastCellRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRowsItemRangeLastCellRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRowsItemRangeLastCellRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeLastCellRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeLastCellRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeLastCellRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRowsItemRangeLastCellRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/lastCell()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeLastCellRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeLastCellRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeLastCellRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRowsItemRangeLastCellRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastCell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeLastCellRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeLastCellRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastCell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeLastCellRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeLastCellRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRowsItemRangeLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeLastCellRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRowsItemRangeLastCellRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeLastCellRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_rows_item_range_last_column_request_builder.go b/drives/item_items_item_workbook_tables_item_rows_item_range_last_column_request_builder.go new file mode 100644 index 00000000000..e6cf03f6643 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_rows_item_range_last_column_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRowsItemRangeLastColumnRequestBuilder provides operations to call the lastColumn method. +type ItemItemsItemWorkbookTablesItemRowsItemRangeLastColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRowsItemRangeLastColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRowsItemRangeLastColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeLastColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeLastColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeLastColumnRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRowsItemRangeLastColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/lastColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeLastColumnRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeLastColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeLastColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRowsItemRangeLastColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeLastColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeLastColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeLastColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeLastColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRowsItemRangeLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeLastColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRowsItemRangeLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeLastColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_rows_item_range_last_row_request_builder.go b/drives/item_items_item_workbook_tables_item_rows_item_range_last_row_request_builder.go new file mode 100644 index 00000000000..f463ca0e73d --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_rows_item_range_last_row_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRowsItemRangeLastRowRequestBuilder provides operations to call the lastRow method. +type ItemItemsItemWorkbookTablesItemRowsItemRangeLastRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRowsItemRangeLastRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRowsItemRangeLastRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeLastRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeLastRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeLastRowRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRowsItemRangeLastRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/lastRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeLastRowRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeLastRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeLastRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRowsItemRangeLastRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeLastRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeLastRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeLastRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeLastRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRowsItemRangeLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeLastRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRowsItemRangeLastRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeLastRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_rows_item_range_merge_post_request_body.go b/drives/item_items_item_workbook_tables_item_rows_item_range_merge_post_request_body.go new file mode 100644 index 00000000000..b15e7035843 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_rows_item_range_merge_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookTablesItemRowsItemRangeMergePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeMergePostRequestBody instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeMergePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeMergePostRequestBody()(*ItemItemsItemWorkbookTablesItemRowsItemRangeMergePostRequestBody) { + m := &ItemItemsItemWorkbookTablesItemRowsItemRangeMergePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookTablesItemRowsItemRangeMergePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookTablesItemRowsItemRangeMergePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeMergePostRequestBody(), nil +} +// GetAcross gets the across property value. The across property +// returns a *bool when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeMergePostRequestBody) GetAcross()(*bool) { + val, err := m.GetBackingStore().Get("across") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + 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 *ItemItemsItemWorkbookTablesItemRowsItemRangeMergePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeMergePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeMergePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["across"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetAcross(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeMergePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("across", m.GetAcross()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAcross sets the across property value. The across property +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeMergePostRequestBody) SetAcross(value *bool)() { + err := m.GetBackingStore().Set("across", 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 *ItemItemsItemWorkbookTablesItemRowsItemRangeMergePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeMergePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookTablesItemRowsItemRangeMergePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAcross()(*bool) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetAcross(value *bool)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/item_items_item_workbook_tables_item_rows_item_range_merge_request_builder.go b/drives/item_items_item_workbook_tables_item_rows_item_range_merge_request_builder.go new file mode 100644 index 00000000000..6e5cd7ca795 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_rows_item_range_merge_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRowsItemRangeMergeRequestBuilder provides operations to call the merge method. +type ItemItemsItemWorkbookTablesItemRowsItemRangeMergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRowsItemRangeMergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRowsItemRangeMergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeMergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeMergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeMergeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRowsItemRangeMergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/merge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeMergeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeMergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeMergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRowsItemRangeMergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action merge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeMergeRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookTablesItemRowsItemRangeMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeMergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action merge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeMergeRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookTablesItemRowsItemRangeMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeMergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookTablesItemRowsItemRangeMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeMergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRowsItemRangeMergeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeMergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_rows_item_range_request_builder.go b/drives/item_items_item_workbook_tables_item_rows_item_range_request_builder.go index bf4c7134ef9..d317d2dbcf6 100644 --- a/drives/item_items_item_workbook_tables_item_rows_item_range_request_builder.go +++ b/drives/item_items_item_workbook_tables_item_rows_item_range_request_builder.go @@ -18,6 +18,46 @@ type ItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilderGetRequestConfigu // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// BoundingRectWithAnotherRange provides operations to call the boundingRect method. +// returns a *ItemItemsItemWorkbookTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder) BoundingRectWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// CellWithRowWithColumn provides operations to call the cell method. +// returns a *ItemItemsItemWorkbookTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder) CellWithRowWithColumn(column *int32, row *int32)(*ItemItemsItemWorkbookTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column, row) +} +// Clear provides operations to call the clear method. +// returns a *ItemItemsItemWorkbookTablesItemRowsItemRangeClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder) Clear()(*ItemItemsItemWorkbookTablesItemRowsItemRangeClearRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeClearRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfter provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder) ColumnsAfter()(*ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfterWithCount provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder) ColumnsAfterWithCount(count *int32)(*ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnsBefore provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder) ColumnsBefore()(*ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsBeforeWithCount provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder) ColumnsBeforeWithCount(count *int32)(*ItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnWithColumn provides operations to call the column method. +// returns a *ItemItemsItemWorkbookTablesItemRowsItemRangeColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder) ColumnWithColumn(column *int32)(*ItemItemsItemWorkbookTablesItemRowsItemRangeColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeColumnWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column) +} // NewItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder and sets the default values. func NewItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder) { m := &ItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder{ @@ -31,6 +71,26 @@ func NewItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder(rawUrl string urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilderInternal(urlParams, requestAdapter) } +// DeletePath provides operations to call the delete method. +// returns a *ItemItemsItemWorkbookTablesItemRowsItemRangeDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder) DeletePath()(*ItemItemsItemWorkbookTablesItemRowsItemRangeDeleteRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireColumn provides operations to call the entireColumn method. +// returns a *ItemItemsItemWorkbookTablesItemRowsItemRangeEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder) EntireColumn()(*ItemItemsItemWorkbookTablesItemRowsItemRangeEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeEntireColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireRow provides operations to call the entireRow method. +// returns a *ItemItemsItemWorkbookTablesItemRowsItemRangeEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder) EntireRow()(*ItemItemsItemWorkbookTablesItemRowsItemRangeEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeEntireRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Format provides operations to manage the format property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookTablesItemRowsItemRangeFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder) Format()(*ItemItemsItemWorkbookTablesItemRowsItemRangeFormatRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Get returns the range object associated with the entire row. // returns a WorkbookRangeable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -54,6 +114,76 @@ func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder) Get(ctx con } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil } +// Insert provides operations to call the insert method. +// returns a *ItemItemsItemWorkbookTablesItemRowsItemRangeInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder) Insert()(*ItemItemsItemWorkbookTablesItemRowsItemRangeInsertRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeInsertRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// IntersectionWithAnotherRange provides operations to call the intersection method. +// returns a *ItemItemsItemWorkbookTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder) IntersectionWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// LastCell provides operations to call the lastCell method. +// returns a *ItemItemsItemWorkbookTablesItemRowsItemRangeLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder) LastCell()(*ItemItemsItemWorkbookTablesItemRowsItemRangeLastCellRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeLastCellRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastColumn provides operations to call the lastColumn method. +// returns a *ItemItemsItemWorkbookTablesItemRowsItemRangeLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder) LastColumn()(*ItemItemsItemWorkbookTablesItemRowsItemRangeLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeLastColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastRow provides operations to call the lastRow method. +// returns a *ItemItemsItemWorkbookTablesItemRowsItemRangeLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder) LastRow()(*ItemItemsItemWorkbookTablesItemRowsItemRangeLastRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeLastRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Merge provides operations to call the merge method. +// returns a *ItemItemsItemWorkbookTablesItemRowsItemRangeMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder) Merge()(*ItemItemsItemWorkbookTablesItemRowsItemRangeMergeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeMergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// OffsetRangeWithRowOffsetWithColumnOffset provides operations to call the offsetRange method. +// returns a *ItemItemsItemWorkbookTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder) OffsetRangeWithRowOffsetWithColumnOffset(columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, columnOffset, rowOffset) +} +// ResizedRangeWithDeltaRowsWithDeltaColumns provides operations to call the resizedRange method. +// returns a *ItemItemsItemWorkbookTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder) ResizedRangeWithDeltaRowsWithDeltaColumns(deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, deltaColumns, deltaRows) +} +// RowsAbove provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder) RowsAbove()(*ItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsAboveWithCount provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder) RowsAboveWithCount(count *int32)(*ItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowsBelow provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder) RowsBelow()(*ItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsBelowWithCount provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder) RowsBelowWithCount(count *int32)(*ItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowWithRow provides operations to call the row method. +// returns a *ItemItemsItemWorkbookTablesItemRowsItemRangeRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder) RowWithRow(row *int32)(*ItemItemsItemWorkbookTablesItemRowsItemRangeRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeRowWithRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, row) +} +// Sort provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookTablesItemRowsItemRangeSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder) Sort()(*ItemItemsItemWorkbookTablesItemRowsItemRangeSortRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeSortRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToGetRequestInformation returns the range object associated with the entire row. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { @@ -65,8 +195,33 @@ func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder) ToGetReques requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } +// Unmerge provides operations to call the unmerge method. +// returns a *ItemItemsItemWorkbookTablesItemRowsItemRangeUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder) Unmerge()(*ItemItemsItemWorkbookTablesItemRowsItemRangeUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeUnmergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// UsedRange provides operations to call the usedRange method. +// returns a *ItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder) UsedRange()(*ItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// UsedRangeWithValuesOnly provides operations to call the usedRange method. +// returns a *ItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder) UsedRangeWithValuesOnly(valuesOnly *bool)(*ItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, valuesOnly) +} +// VisibleView provides operations to call the visibleView method. +// returns a *ItemItemsItemWorkbookTablesItemRowsItemRangeVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder) VisibleView()(*ItemItemsItemWorkbookTablesItemRowsItemRangeVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeVisibleViewRequestBuilderInternal(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 *ItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder when successful func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder) { return NewItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); } +// Worksheet provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookTablesItemRowsItemRangeWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRequestBuilder) Worksheet()(*ItemItemsItemWorkbookTablesItemRowsItemRangeWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeWorksheetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} diff --git a/drives/item_items_item_workbook_tables_item_rows_item_range_row_with_row_request_builder.go b/drives/item_items_item_workbook_tables_item_rows_item_range_row_with_row_request_builder.go new file mode 100644 index 00000000000..f0bfd20ee08 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_rows_item_range_row_with_row_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRowsItemRangeRowWithRowRequestBuilder provides operations to call the row method. +type ItemItemsItemWorkbookTablesItemRowsItemRangeRowWithRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRowsItemRangeRowWithRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRowsItemRangeRowWithRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeRowWithRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeRowWithRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, row *int32)(*ItemItemsItemWorkbookTablesItemRowsItemRangeRowWithRowRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRowsItemRangeRowWithRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/row(row={row})", pathParameters), + } + if row != nil { + m.BaseRequestBuilder.PathParameters["row"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*row), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeRowWithRowRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeRowWithRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeRowWithRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRowsItemRangeRowWithRowRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function row +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRowWithRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeRowWithRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function row +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRowWithRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeRowWithRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRowsItemRangeRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRowWithRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRowsItemRangeRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeRowWithRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_rows_item_range_rows_above_request_builder.go b/drives/item_items_item_workbook_tables_item_rows_item_range_rows_above_request_builder.go new file mode 100644 index 00000000000..7bfa2ece9e4 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_rows_item_range_rows_above_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/rowsAbove()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_rows_item_range_rows_above_with_count_request_builder.go b/drives/item_items_item_workbook_tables_item_rows_item_range_rows_above_with_count_request_builder.go new file mode 100644 index 00000000000..56857e0505b --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_rows_item_range_rows_above_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveWithCountRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/rowsAbove(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeRowsAboveWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_rows_item_range_rows_below_request_builder.go b/drives/item_items_item_workbook_tables_item_rows_item_range_rows_below_request_builder.go new file mode 100644 index 00000000000..97e0a27bef9 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_rows_item_range_rows_below_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/rowsBelow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_rows_item_range_rows_below_with_count_request_builder.go b/drives/item_items_item_workbook_tables_item_rows_item_range_rows_below_with_count_request_builder.go new file mode 100644 index 00000000000..bb40d3bc4cb --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_rows_item_range_rows_below_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowWithCountRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/rowsBelow(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeRowsBelowWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_rows_item_range_sort_request_builder.go b/drives/item_items_item_workbook_tables_item_rows_item_range_sort_request_builder.go new file mode 100644 index 00000000000..bf31bb507c8 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_rows_item_range_sort_request_builder.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRowsItemRangeSortRequestBuilder provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookTablesItemRowsItemRangeSortRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRowsItemRangeSortRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRowsItemRangeSortRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookTablesItemRowsItemRangeSortRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookTablesItemRowsItemRangeSortRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookTablesItemRowsItemRangeSortRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRowsItemRangeSortRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookTablesItemRowsItemRangeSortRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookTablesItemRowsItemRangeSortRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRowsItemRangeSortRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeSortRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeSortRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeSortRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRowsItemRangeSortRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/sort{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeSortRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeSortRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeSortRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRowsItemRangeSortRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property sort for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeSortRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeSortRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeSortRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeSortRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// Patch update the navigation property sort in drives +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeSortRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeSortRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// ToDeleteRequestInformation delete navigation property sort for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeSortRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeSortRequestBuilderDeleteRequestConfiguration)(*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 worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeSortRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeSortRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeSortRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeSortRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRowsItemRangeSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeSortRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRowsItemRangeSortRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeSortRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_rows_item_range_unmerge_request_builder.go b/drives/item_items_item_workbook_tables_item_rows_item_range_unmerge_request_builder.go new file mode 100644 index 00000000000..ed9e37cdea6 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_rows_item_range_unmerge_request_builder.go @@ -0,0 +1,64 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRowsItemRangeUnmergeRequestBuilder provides operations to call the unmerge method. +type ItemItemsItemWorkbookTablesItemRowsItemRangeUnmergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRowsItemRangeUnmergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRowsItemRangeUnmergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeUnmergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeUnmergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeUnmergeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRowsItemRangeUnmergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/unmerge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeUnmergeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeUnmergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeUnmergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRowsItemRangeUnmergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unmerge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeUnmergeRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeUnmergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unmerge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeUnmergeRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeUnmergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemItemsItemWorkbookTablesItemRowsItemRangeUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeUnmergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRowsItemRangeUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeUnmergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_rows_item_range_used_range_request_builder.go b/drives/item_items_item_workbook_tables_item_rows_item_range_used_range_request_builder.go new file mode 100644 index 00000000000..ae7a7eb6e01 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_rows_item_range_used_range_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeRequestBuilder provides operations to call the usedRange method. +type ItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/usedRange()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeRequestBuilderInternal(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 *ItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function usedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_rows_item_range_used_range_with_values_only_request_builder.go b/drives/item_items_item_workbook_tables_item_rows_item_range_used_range_with_values_only_request_builder.go new file mode 100644 index 00000000000..bfb5f724419 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_rows_item_range_used_range_with_values_only_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilder provides operations to call the usedRange method. +type ItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, valuesOnly *bool)(*ItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/usedRange(valuesOnly={valuesOnly})", pathParameters), + } + if valuesOnly != nil { + m.BaseRequestBuilder.PathParameters["valuesOnly"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatBool(*valuesOnly) + } + return m +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilderInternal(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 *ItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function usedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_rows_item_range_visible_view_request_builder.go b/drives/item_items_item_workbook_tables_item_rows_item_range_visible_view_request_builder.go new file mode 100644 index 00000000000..6f24dadb9fa --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_rows_item_range_visible_view_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRowsItemRangeVisibleViewRequestBuilder provides operations to call the visibleView method. +type ItemItemsItemWorkbookTablesItemRowsItemRangeVisibleViewRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRowsItemRangeVisibleViewRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRowsItemRangeVisibleViewRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeVisibleViewRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeVisibleViewRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeVisibleViewRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRowsItemRangeVisibleViewRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/visibleView()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeVisibleViewRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeVisibleViewRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeVisibleViewRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRowsItemRangeVisibleViewRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function visibleView +// returns a WorkbookRangeViewable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeVisibleViewRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeVisibleViewRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeViewFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable), nil +} +// ToGetRequestInformation invoke function visibleView +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeVisibleViewRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeVisibleViewRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemRowsItemRangeVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeVisibleViewRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRowsItemRangeVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeVisibleViewRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_rows_item_range_worksheet_request_builder.go b/drives/item_items_item_workbook_tables_item_rows_item_range_worksheet_request_builder.go new file mode 100644 index 00000000000..21d8a231ba1 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_rows_item_range_worksheet_request_builder.go @@ -0,0 +1,81 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemRowsItemRangeWorksheetRequestBuilder provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookTablesItemRowsItemRangeWorksheetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemRowsItemRangeWorksheetRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookTablesItemRowsItemRangeWorksheetRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookTablesItemRowsItemRangeWorksheetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemRowsItemRangeWorksheetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookTablesItemRowsItemRangeWorksheetRequestBuilderGetQueryParameters +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeWorksheetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeWorksheetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeWorksheetRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemRowsItemRangeWorksheetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/worksheet{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemRowsItemRangeWorksheetRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemRowsItemRangeWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemRowsItemRangeWorksheetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemRowsItemRangeWorksheetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemRowsItemRangeWorksheetRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookWorksheetable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeWorksheetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeWorksheetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookWorksheetFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable), nil +} +// ToGetRequestInformation the worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeWorksheetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsItemRangeWorksheetRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 *ItemItemsItemWorkbookTablesItemRowsItemRangeWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemRowsItemRangeWorksheetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemRowsItemRangeWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemRowsItemRangeWorksheetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_rows_request_builder.go b/drives/item_items_item_workbook_tables_item_rows_request_builder.go index 0f9f59293a9..6c2b90bd353 100644 --- a/drives/item_items_item_workbook_tables_item_rows_request_builder.go +++ b/drives/item_items_item_workbook_tables_item_rows_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemItemsItemWorkbookTablesItemRowsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemItemsItemWorkbookTablesItemRowsRequestBuilderGetQueryParameters represents a collection of all the rows in the table. Read-only. +// ItemItemsItemWorkbookTablesItemRowsRequestBuilderGetQueryParameters the list of all the rows in the table. Read-only. type ItemItemsItemWorkbookTablesItemRowsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -81,7 +81,7 @@ func NewItemItemsItemWorkbookTablesItemRowsRequestBuilder(rawUrl string, request func (m *ItemItemsItemWorkbookTablesItemRowsRequestBuilder) Count()(*ItemItemsItemWorkbookTablesItemRowsCountRequestBuilder) { return NewItemItemsItemWorkbookTablesItemRowsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get represents a collection of all the rows in the table. Read-only. +// Get the list 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 *ItemItemsItemWorkbookTablesItemRowsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableRowCollectionResponseable, error) { @@ -126,7 +126,7 @@ func (m *ItemItemsItemWorkbookTablesItemRowsRequestBuilder) Post(ctx context.Con } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableRowable), nil } -// ToGetRequestInformation represents a collection of all the rows in the table. Read-only. +// ToGetRequestInformation the list of all the rows in the table. Read-only. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookTablesItemRowsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_workbook_tables_item_rows_workbook_table_row_item_request_builder.go b/drives/item_items_item_workbook_tables_item_rows_workbook_table_row_item_request_builder.go index b0f80ed2772..acae561fd20 100644 --- a/drives/item_items_item_workbook_tables_item_rows_workbook_table_row_item_request_builder.go +++ b/drives/item_items_item_workbook_tables_item_rows_workbook_table_row_item_request_builder.go @@ -18,7 +18,7 @@ type ItemItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilderDelete // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilderGetQueryParameters represents a collection of all the rows in the table. Read-only. +// ItemItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilderGetQueryParameters the list of all the rows in the table. Read-only. type ItemItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *ItemItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilder) } return nil } -// Get represents a collection of all the rows in the table. Read-only. +// Get the list 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 *ItemItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableRowable, error) { @@ -126,7 +126,7 @@ func (m *ItemItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilder) requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation represents a collection of all the rows in the table. Read-only. +// ToGetRequestInformation the list of all the rows in the table. Read-only. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemRowsWorkbookTableRowItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_workbook_tables_item_sort_request_builder.go b/drives/item_items_item_workbook_tables_item_sort_request_builder.go index ccf6fea9f36..874469f357c 100644 --- a/drives/item_items_item_workbook_tables_item_sort_request_builder.go +++ b/drives/item_items_item_workbook_tables_item_sort_request_builder.go @@ -18,7 +18,7 @@ type ItemItemsItemWorkbookTablesItemSortRequestBuilderDeleteRequestConfiguration // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemItemsItemWorkbookTablesItemSortRequestBuilderGetQueryParameters represents the sorting for the table. Read-only. +// ItemItemsItemWorkbookTablesItemSortRequestBuilderGetQueryParameters the sorting for the table. Read-only. type ItemItemsItemWorkbookTablesItemSortRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -80,7 +80,7 @@ func (m *ItemItemsItemWorkbookTablesItemSortRequestBuilder) Delete(ctx context.C } return nil } -// Get represents the sorting for the table. Read-only. +// Get 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 *ItemItemsItemWorkbookTablesItemSortRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemSortRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableSortable, error) { @@ -136,7 +136,7 @@ func (m *ItemItemsItemWorkbookTablesItemSortRequestBuilder) ToDeleteRequestInfor requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation represents the sorting for the table. Read-only. +// ToGetRequestInformation the sorting for the table. Read-only. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookTablesItemSortRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemSortRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_workbook_tables_item_total_row_range_cell_with_row_with_column_request_builder.go b/drives/item_items_item_workbook_tables_item_total_row_range_cell_with_row_with_column_request_builder.go new file mode 100644 index 00000000000..33fe227c669 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_total_row_range_cell_with_row_with_column_request_builder.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilder provides operations to call the cell method. +type ItemItemsItemWorkbookTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32, row *int32)(*ItemItemsItemWorkbookTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/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 +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function cell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function cell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_total_row_range_clear_post_request_body.go b/drives/item_items_item_workbook_tables_item_total_row_range_clear_post_request_body.go new file mode 100644 index 00000000000..868f0e62f0d --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_total_row_range_clear_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookTablesItemTotalRowRangeClearPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeClearPostRequestBody instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeClearPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeClearPostRequestBody()(*ItemItemsItemWorkbookTablesItemTotalRowRangeClearPostRequestBody) { + m := &ItemItemsItemWorkbookTablesItemTotalRowRangeClearPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookTablesItemTotalRowRangeClearPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookTablesItemTotalRowRangeClearPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeClearPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeClearPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetApplyTo gets the applyTo property value. The applyTo property +// returns a *string when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeClearPostRequestBody) GetApplyTo()(*string) { + val, err := m.GetBackingStore().Get("applyTo") + 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 *ItemItemsItemWorkbookTablesItemTotalRowRangeClearPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeClearPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["applyTo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetApplyTo(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeClearPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("applyTo", m.GetApplyTo()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeClearPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetApplyTo sets the applyTo property value. The applyTo property +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeClearPostRequestBody) SetApplyTo(value *string)() { + err := m.GetBackingStore().Set("applyTo", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeClearPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookTablesItemTotalRowRangeClearPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetApplyTo()(*string) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetApplyTo(value *string)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/item_items_item_workbook_tables_item_total_row_range_clear_request_builder.go b/drives/item_items_item_workbook_tables_item_total_row_range_clear_request_builder.go new file mode 100644 index 00000000000..9ae91eba4f3 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_total_row_range_clear_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemTotalRowRangeClearRequestBuilder provides operations to call the clear method. +type ItemItemsItemWorkbookTablesItemTotalRowRangeClearRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemTotalRowRangeClearRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemTotalRowRangeClearRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeClearRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeClearRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeClearRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemTotalRowRangeClearRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/clear", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeClearRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeClearRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeClearRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemTotalRowRangeClearRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action clear +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeClearRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookTablesItemTotalRowRangeClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeClearRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action clear +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeClearRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookTablesItemTotalRowRangeClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeClearRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookTablesItemTotalRowRangeClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeClearRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemTotalRowRangeClearRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeClearRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_total_row_range_column_with_column_request_builder.go b/drives/item_items_item_workbook_tables_item_total_row_range_column_with_column_request_builder.go new file mode 100644 index 00000000000..b399dadde42 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_total_row_range_column_with_column_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemTotalRowRangeColumnWithColumnRequestBuilder provides operations to call the column method. +type ItemItemsItemWorkbookTablesItemTotalRowRangeColumnWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemTotalRowRangeColumnWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemTotalRowRangeColumnWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeColumnWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeColumnWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32)(*ItemItemsItemWorkbookTablesItemTotalRowRangeColumnWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemTotalRowRangeColumnWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/column(column={column})", pathParameters), + } + if column != nil { + m.BaseRequestBuilder.PathParameters["column"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*column), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeColumnWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeColumnWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeColumnWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemTotalRowRangeColumnWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function column +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeColumnWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeColumnWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function column +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeColumnWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeColumnWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemTotalRowRangeColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeColumnWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemTotalRowRangeColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeColumnWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_total_row_range_columns_after_request_builder.go b/drives/item_items_item_workbook_tables_item_total_row_range_columns_after_request_builder.go new file mode 100644 index 00000000000..028b32827ce --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_total_row_range_columns_after_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/columnsAfter()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_total_row_range_columns_after_with_count_request_builder.go b/drives/item_items_item_workbook_tables_item_total_row_range_columns_after_with_count_request_builder.go new file mode 100644 index 00000000000..c34ed2840a8 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_total_row_range_columns_after_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/columnsAfter(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_total_row_range_columns_before_request_builder.go b/drives/item_items_item_workbook_tables_item_total_row_range_columns_before_request_builder.go new file mode 100644 index 00000000000..5a8198769ed --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_total_row_range_columns_before_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/columnsBefore()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_total_row_range_columns_before_with_count_request_builder.go b/drives/item_items_item_workbook_tables_item_total_row_range_columns_before_with_count_request_builder.go new file mode 100644 index 00000000000..d4fff6ef928 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_total_row_range_columns_before_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/columnsBefore(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_total_row_range_delete_post_request_body.go b/drives/item_items_item_workbook_tables_item_total_row_range_delete_post_request_body.go new file mode 100644 index 00000000000..22013d7606d --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_total_row_range_delete_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookTablesItemTotalRowRangeDeletePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeDeletePostRequestBody instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeDeletePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeDeletePostRequestBody()(*ItemItemsItemWorkbookTablesItemTotalRowRangeDeletePostRequestBody) { + m := &ItemItemsItemWorkbookTablesItemTotalRowRangeDeletePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookTablesItemTotalRowRangeDeletePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookTablesItemTotalRowRangeDeletePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeDeletePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeDeletePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeDeletePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeDeletePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeDeletePostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeDeletePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeDeletePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeDeletePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeDeletePostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookTablesItemTotalRowRangeDeletePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/item_items_item_workbook_tables_item_total_row_range_delete_request_builder.go b/drives/item_items_item_workbook_tables_item_total_row_range_delete_request_builder.go new file mode 100644 index 00000000000..5f028cf98da --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_total_row_range_delete_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemTotalRowRangeDeleteRequestBuilder provides operations to call the delete method. +type ItemItemsItemWorkbookTablesItemTotalRowRangeDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemTotalRowRangeDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemTotalRowRangeDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeDeleteRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeDeleteRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemTotalRowRangeDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/delete", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeDeleteRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemTotalRowRangeDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action delete +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeDeleteRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookTablesItemTotalRowRangeDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action delete +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookTablesItemTotalRowRangeDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookTablesItemTotalRowRangeDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemTotalRowRangeDeleteRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_total_row_range_entire_column_request_builder.go b/drives/item_items_item_workbook_tables_item_total_row_range_entire_column_request_builder.go new file mode 100644 index 00000000000..eed3ac7e921 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_total_row_range_entire_column_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemTotalRowRangeEntireColumnRequestBuilder provides operations to call the entireColumn method. +type ItemItemsItemWorkbookTablesItemTotalRowRangeEntireColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemTotalRowRangeEntireColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemTotalRowRangeEntireColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeEntireColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeEntireColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeEntireColumnRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemTotalRowRangeEntireColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/entireColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeEntireColumnRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeEntireColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeEntireColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemTotalRowRangeEntireColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeEntireColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeEntireColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeEntireColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeEntireColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemTotalRowRangeEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeEntireColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemTotalRowRangeEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeEntireColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_total_row_range_entire_row_request_builder.go b/drives/item_items_item_workbook_tables_item_total_row_range_entire_row_request_builder.go new file mode 100644 index 00000000000..9426620d938 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_total_row_range_entire_row_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemTotalRowRangeEntireRowRequestBuilder provides operations to call the entireRow method. +type ItemItemsItemWorkbookTablesItemTotalRowRangeEntireRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemTotalRowRangeEntireRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemTotalRowRangeEntireRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeEntireRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeEntireRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeEntireRowRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemTotalRowRangeEntireRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/entireRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeEntireRowRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeEntireRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeEntireRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemTotalRowRangeEntireRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeEntireRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeEntireRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeEntireRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeEntireRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemTotalRowRangeEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeEntireRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemTotalRowRangeEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeEntireRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_total_row_range_format_request_builder.go b/drives/item_items_item_workbook_tables_item_total_row_range_format_request_builder.go new file mode 100644 index 00000000000..c4ebd32e473 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_total_row_range_format_request_builder.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemTotalRowRangeFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookTablesItemTotalRowRangeFormatRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemTotalRowRangeFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemTotalRowRangeFormatRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookTablesItemTotalRowRangeFormatRequestBuilderGetQueryParameters returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +type ItemItemsItemWorkbookTablesItemTotalRowRangeFormatRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookTablesItemTotalRowRangeFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemTotalRowRangeFormatRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookTablesItemTotalRowRangeFormatRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookTablesItemTotalRowRangeFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemTotalRowRangeFormatRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeFormatRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeFormatRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemTotalRowRangeFormatRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/format{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeFormatRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeFormatRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemTotalRowRangeFormatRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property format for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeFormatRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeFormatRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// Patch update the navigation property format in drives +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeFormatRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeFormatRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// ToDeleteRequestInformation delete navigation property format for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeFormatRequestBuilderDeleteRequestConfiguration)(*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 format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeFormatRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemTotalRowRangeFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeFormatRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemTotalRowRangeFormatRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_total_row_range_insert_post_request_body.go b/drives/item_items_item_workbook_tables_item_total_row_range_insert_post_request_body.go new file mode 100644 index 00000000000..652b685cae6 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_total_row_range_insert_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookTablesItemTotalRowRangeInsertPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeInsertPostRequestBody instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeInsertPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeInsertPostRequestBody()(*ItemItemsItemWorkbookTablesItemTotalRowRangeInsertPostRequestBody) { + m := &ItemItemsItemWorkbookTablesItemTotalRowRangeInsertPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookTablesItemTotalRowRangeInsertPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookTablesItemTotalRowRangeInsertPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeInsertPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeInsertPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeInsertPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeInsertPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeInsertPostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeInsertPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeInsertPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeInsertPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeInsertPostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookTablesItemTotalRowRangeInsertPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/item_items_item_workbook_tables_item_total_row_range_insert_request_builder.go b/drives/item_items_item_workbook_tables_item_total_row_range_insert_request_builder.go new file mode 100644 index 00000000000..83ac16bf9d9 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_total_row_range_insert_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemTotalRowRangeInsertRequestBuilder provides operations to call the insert method. +type ItemItemsItemWorkbookTablesItemTotalRowRangeInsertRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemTotalRowRangeInsertRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemTotalRowRangeInsertRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeInsertRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeInsertRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeInsertRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemTotalRowRangeInsertRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/insert", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeInsertRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeInsertRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeInsertRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemTotalRowRangeInsertRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action insert +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeInsertRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookTablesItemTotalRowRangeInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeInsertRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToPostRequestInformation invoke action insert +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeInsertRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookTablesItemTotalRowRangeInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeInsertRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookTablesItemTotalRowRangeInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeInsertRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemTotalRowRangeInsertRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeInsertRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_total_row_range_intersection_with_another_range_request_builder.go b/drives/item_items_item_workbook_tables_item_total_row_range_intersection_with_another_range_request_builder.go new file mode 100644 index 00000000000..c624ab3e173 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_total_row_range_intersection_with_another_range_request_builder.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder provides operations to call the intersection method. +type ItemItemsItemWorkbookTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/intersection(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function intersection +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function intersection +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_total_row_range_last_cell_request_builder.go b/drives/item_items_item_workbook_tables_item_total_row_range_last_cell_request_builder.go new file mode 100644 index 00000000000..946fb0c8c3c --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_total_row_range_last_cell_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemTotalRowRangeLastCellRequestBuilder provides operations to call the lastCell method. +type ItemItemsItemWorkbookTablesItemTotalRowRangeLastCellRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemTotalRowRangeLastCellRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemTotalRowRangeLastCellRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeLastCellRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeLastCellRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeLastCellRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemTotalRowRangeLastCellRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/lastCell()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeLastCellRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeLastCellRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeLastCellRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemTotalRowRangeLastCellRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastCell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeLastCellRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeLastCellRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastCell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeLastCellRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeLastCellRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemTotalRowRangeLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeLastCellRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemTotalRowRangeLastCellRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeLastCellRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_total_row_range_last_column_request_builder.go b/drives/item_items_item_workbook_tables_item_total_row_range_last_column_request_builder.go new file mode 100644 index 00000000000..b80603c1fa3 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_total_row_range_last_column_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemTotalRowRangeLastColumnRequestBuilder provides operations to call the lastColumn method. +type ItemItemsItemWorkbookTablesItemTotalRowRangeLastColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemTotalRowRangeLastColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemTotalRowRangeLastColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeLastColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeLastColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeLastColumnRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemTotalRowRangeLastColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/lastColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeLastColumnRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeLastColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeLastColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemTotalRowRangeLastColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeLastColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeLastColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeLastColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeLastColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemTotalRowRangeLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeLastColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemTotalRowRangeLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeLastColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_total_row_range_last_row_request_builder.go b/drives/item_items_item_workbook_tables_item_total_row_range_last_row_request_builder.go new file mode 100644 index 00000000000..df5c81b6b99 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_total_row_range_last_row_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemTotalRowRangeLastRowRequestBuilder provides operations to call the lastRow method. +type ItemItemsItemWorkbookTablesItemTotalRowRangeLastRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemTotalRowRangeLastRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemTotalRowRangeLastRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeLastRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeLastRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeLastRowRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemTotalRowRangeLastRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/lastRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeLastRowRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeLastRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeLastRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemTotalRowRangeLastRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeLastRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeLastRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeLastRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeLastRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemTotalRowRangeLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeLastRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemTotalRowRangeLastRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeLastRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_total_row_range_merge_post_request_body.go b/drives/item_items_item_workbook_tables_item_total_row_range_merge_post_request_body.go new file mode 100644 index 00000000000..71c228d2d57 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_total_row_range_merge_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookTablesItemTotalRowRangeMergePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeMergePostRequestBody instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeMergePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeMergePostRequestBody()(*ItemItemsItemWorkbookTablesItemTotalRowRangeMergePostRequestBody) { + m := &ItemItemsItemWorkbookTablesItemTotalRowRangeMergePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookTablesItemTotalRowRangeMergePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookTablesItemTotalRowRangeMergePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeMergePostRequestBody(), nil +} +// GetAcross gets the across property value. The across property +// returns a *bool when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeMergePostRequestBody) GetAcross()(*bool) { + val, err := m.GetBackingStore().Get("across") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + 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 *ItemItemsItemWorkbookTablesItemTotalRowRangeMergePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeMergePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeMergePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["across"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetAcross(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeMergePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("across", m.GetAcross()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAcross sets the across property value. The across property +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeMergePostRequestBody) SetAcross(value *bool)() { + err := m.GetBackingStore().Set("across", 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 *ItemItemsItemWorkbookTablesItemTotalRowRangeMergePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeMergePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookTablesItemTotalRowRangeMergePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAcross()(*bool) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetAcross(value *bool)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/item_items_item_workbook_tables_item_total_row_range_merge_request_builder.go b/drives/item_items_item_workbook_tables_item_total_row_range_merge_request_builder.go new file mode 100644 index 00000000000..00ce2f52c1b --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_total_row_range_merge_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemTotalRowRangeMergeRequestBuilder provides operations to call the merge method. +type ItemItemsItemWorkbookTablesItemTotalRowRangeMergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemTotalRowRangeMergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemTotalRowRangeMergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeMergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeMergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeMergeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemTotalRowRangeMergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/merge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeMergeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeMergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeMergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemTotalRowRangeMergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action merge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeMergeRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookTablesItemTotalRowRangeMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeMergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action merge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeMergeRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookTablesItemTotalRowRangeMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeMergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookTablesItemTotalRowRangeMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeMergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemTotalRowRangeMergeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeMergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_total_row_range_request_builder.go b/drives/item_items_item_workbook_tables_item_total_row_range_request_builder.go index 3e9a8f22fcb..705603016d4 100644 --- a/drives/item_items_item_workbook_tables_item_total_row_range_request_builder.go +++ b/drives/item_items_item_workbook_tables_item_total_row_range_request_builder.go @@ -18,6 +18,46 @@ type ItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilderGetRequestConfigu // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// BoundingRectWithAnotherRange provides operations to call the boundingRect method. +// returns a *ItemItemsItemWorkbookTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder) BoundingRectWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// CellWithRowWithColumn provides operations to call the cell method. +// returns a *ItemItemsItemWorkbookTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder) CellWithRowWithColumn(column *int32, row *int32)(*ItemItemsItemWorkbookTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column, row) +} +// Clear provides operations to call the clear method. +// returns a *ItemItemsItemWorkbookTablesItemTotalRowRangeClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder) Clear()(*ItemItemsItemWorkbookTablesItemTotalRowRangeClearRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeClearRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfter provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder) ColumnsAfter()(*ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfterWithCount provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder) ColumnsAfterWithCount(count *int32)(*ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnsBefore provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder) ColumnsBefore()(*ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsBeforeWithCount provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder) ColumnsBeforeWithCount(count *int32)(*ItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnWithColumn provides operations to call the column method. +// returns a *ItemItemsItemWorkbookTablesItemTotalRowRangeColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder) ColumnWithColumn(column *int32)(*ItemItemsItemWorkbookTablesItemTotalRowRangeColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeColumnWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column) +} // NewItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder and sets the default values. func NewItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder) { m := &ItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder{ @@ -31,6 +71,26 @@ func NewItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder(rawUrl string urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilderInternal(urlParams, requestAdapter) } +// DeletePath provides operations to call the delete method. +// returns a *ItemItemsItemWorkbookTablesItemTotalRowRangeDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder) DeletePath()(*ItemItemsItemWorkbookTablesItemTotalRowRangeDeleteRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireColumn provides operations to call the entireColumn method. +// returns a *ItemItemsItemWorkbookTablesItemTotalRowRangeEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder) EntireColumn()(*ItemItemsItemWorkbookTablesItemTotalRowRangeEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeEntireColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireRow provides operations to call the entireRow method. +// returns a *ItemItemsItemWorkbookTablesItemTotalRowRangeEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder) EntireRow()(*ItemItemsItemWorkbookTablesItemTotalRowRangeEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeEntireRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Format provides operations to manage the format property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookTablesItemTotalRowRangeFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder) Format()(*ItemItemsItemWorkbookTablesItemTotalRowRangeFormatRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.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 @@ -54,6 +114,76 @@ func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder) Get(ctx con } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil } +// Insert provides operations to call the insert method. +// returns a *ItemItemsItemWorkbookTablesItemTotalRowRangeInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder) Insert()(*ItemItemsItemWorkbookTablesItemTotalRowRangeInsertRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeInsertRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// IntersectionWithAnotherRange provides operations to call the intersection method. +// returns a *ItemItemsItemWorkbookTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder) IntersectionWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// LastCell provides operations to call the lastCell method. +// returns a *ItemItemsItemWorkbookTablesItemTotalRowRangeLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder) LastCell()(*ItemItemsItemWorkbookTablesItemTotalRowRangeLastCellRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeLastCellRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastColumn provides operations to call the lastColumn method. +// returns a *ItemItemsItemWorkbookTablesItemTotalRowRangeLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder) LastColumn()(*ItemItemsItemWorkbookTablesItemTotalRowRangeLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeLastColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastRow provides operations to call the lastRow method. +// returns a *ItemItemsItemWorkbookTablesItemTotalRowRangeLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder) LastRow()(*ItemItemsItemWorkbookTablesItemTotalRowRangeLastRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeLastRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Merge provides operations to call the merge method. +// returns a *ItemItemsItemWorkbookTablesItemTotalRowRangeMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder) Merge()(*ItemItemsItemWorkbookTablesItemTotalRowRangeMergeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeMergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// OffsetRangeWithRowOffsetWithColumnOffset provides operations to call the offsetRange method. +// returns a *ItemItemsItemWorkbookTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder) OffsetRangeWithRowOffsetWithColumnOffset(columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, columnOffset, rowOffset) +} +// ResizedRangeWithDeltaRowsWithDeltaColumns provides operations to call the resizedRange method. +// returns a *ItemItemsItemWorkbookTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder) ResizedRangeWithDeltaRowsWithDeltaColumns(deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, deltaColumns, deltaRows) +} +// RowsAbove provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder) RowsAbove()(*ItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsAboveWithCount provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder) RowsAboveWithCount(count *int32)(*ItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowsBelow provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder) RowsBelow()(*ItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsBelowWithCount provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder) RowsBelowWithCount(count *int32)(*ItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowWithRow provides operations to call the row method. +// returns a *ItemItemsItemWorkbookTablesItemTotalRowRangeRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder) RowWithRow(row *int32)(*ItemItemsItemWorkbookTablesItemTotalRowRangeRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeRowWithRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, row) +} +// Sort provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookTablesItemTotalRowRangeSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder) Sort()(*ItemItemsItemWorkbookTablesItemTotalRowRangeSortRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeSortRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToGetRequestInformation gets the range object associated with totals row of the table. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { @@ -65,8 +195,33 @@ func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder) ToGetReques requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } +// Unmerge provides operations to call the unmerge method. +// returns a *ItemItemsItemWorkbookTablesItemTotalRowRangeUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder) Unmerge()(*ItemItemsItemWorkbookTablesItemTotalRowRangeUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeUnmergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// UsedRange provides operations to call the usedRange method. +// returns a *ItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder) UsedRange()(*ItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// UsedRangeWithValuesOnly provides operations to call the usedRange method. +// returns a *ItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder) UsedRangeWithValuesOnly(valuesOnly *bool)(*ItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, valuesOnly) +} +// VisibleView provides operations to call the visibleView method. +// returns a *ItemItemsItemWorkbookTablesItemTotalRowRangeVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder) VisibleView()(*ItemItemsItemWorkbookTablesItemTotalRowRangeVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeVisibleViewRequestBuilderInternal(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 *ItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder when successful func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder) { return NewItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); } +// Worksheet provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookTablesItemTotalRowRangeWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRequestBuilder) Worksheet()(*ItemItemsItemWorkbookTablesItemTotalRowRangeWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeWorksheetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} diff --git a/drives/item_items_item_workbook_tables_item_total_row_range_row_with_row_request_builder.go b/drives/item_items_item_workbook_tables_item_total_row_range_row_with_row_request_builder.go new file mode 100644 index 00000000000..9c0616b73eb --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_total_row_range_row_with_row_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemTotalRowRangeRowWithRowRequestBuilder provides operations to call the row method. +type ItemItemsItemWorkbookTablesItemTotalRowRangeRowWithRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemTotalRowRangeRowWithRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemTotalRowRangeRowWithRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeRowWithRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeRowWithRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, row *int32)(*ItemItemsItemWorkbookTablesItemTotalRowRangeRowWithRowRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemTotalRowRangeRowWithRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/row(row={row})", pathParameters), + } + if row != nil { + m.BaseRequestBuilder.PathParameters["row"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*row), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeRowWithRowRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeRowWithRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeRowWithRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemTotalRowRangeRowWithRowRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function row +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRowWithRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeRowWithRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function row +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRowWithRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeRowWithRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemTotalRowRangeRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRowWithRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemTotalRowRangeRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeRowWithRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_total_row_range_rows_above_request_builder.go b/drives/item_items_item_workbook_tables_item_total_row_range_rows_above_request_builder.go new file mode 100644 index 00000000000..b666b70b2fc --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_total_row_range_rows_above_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/rowsAbove()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_total_row_range_rows_above_with_count_request_builder.go b/drives/item_items_item_workbook_tables_item_total_row_range_rows_above_with_count_request_builder.go new file mode 100644 index 00000000000..bdc7fca48d1 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_total_row_range_rows_above_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveWithCountRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/rowsAbove(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeRowsAboveWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_total_row_range_rows_below_request_builder.go b/drives/item_items_item_workbook_tables_item_total_row_range_rows_below_request_builder.go new file mode 100644 index 00000000000..d327f276732 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_total_row_range_rows_below_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/rowsBelow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_total_row_range_rows_below_with_count_request_builder.go b/drives/item_items_item_workbook_tables_item_total_row_range_rows_below_with_count_request_builder.go new file mode 100644 index 00000000000..9738098bd6b --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_total_row_range_rows_below_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowWithCountRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/rowsBelow(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeRowsBelowWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_total_row_range_sort_request_builder.go b/drives/item_items_item_workbook_tables_item_total_row_range_sort_request_builder.go new file mode 100644 index 00000000000..ad1084a9fbe --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_total_row_range_sort_request_builder.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemTotalRowRangeSortRequestBuilder provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookTablesItemTotalRowRangeSortRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemTotalRowRangeSortRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemTotalRowRangeSortRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookTablesItemTotalRowRangeSortRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookTablesItemTotalRowRangeSortRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookTablesItemTotalRowRangeSortRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemTotalRowRangeSortRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookTablesItemTotalRowRangeSortRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookTablesItemTotalRowRangeSortRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemTotalRowRangeSortRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeSortRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeSortRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeSortRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemTotalRowRangeSortRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/sort{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeSortRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeSortRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeSortRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemTotalRowRangeSortRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property sort for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeSortRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeSortRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeSortRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeSortRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// Patch update the navigation property sort in drives +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeSortRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeSortRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// ToDeleteRequestInformation delete navigation property sort for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeSortRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeSortRequestBuilderDeleteRequestConfiguration)(*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 worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeSortRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeSortRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeSortRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeSortRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemTotalRowRangeSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeSortRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemTotalRowRangeSortRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeSortRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_total_row_range_unmerge_request_builder.go b/drives/item_items_item_workbook_tables_item_total_row_range_unmerge_request_builder.go new file mode 100644 index 00000000000..30d7aeaf554 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_total_row_range_unmerge_request_builder.go @@ -0,0 +1,64 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemTotalRowRangeUnmergeRequestBuilder provides operations to call the unmerge method. +type ItemItemsItemWorkbookTablesItemTotalRowRangeUnmergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemTotalRowRangeUnmergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemTotalRowRangeUnmergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeUnmergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeUnmergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeUnmergeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemTotalRowRangeUnmergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/unmerge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeUnmergeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeUnmergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeUnmergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemTotalRowRangeUnmergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unmerge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeUnmergeRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeUnmergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unmerge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeUnmergeRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeUnmergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemItemsItemWorkbookTablesItemTotalRowRangeUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeUnmergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemTotalRowRangeUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeUnmergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_total_row_range_used_range_request_builder.go b/drives/item_items_item_workbook_tables_item_total_row_range_used_range_request_builder.go new file mode 100644 index 00000000000..9fdfcc5f72f --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_total_row_range_used_range_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeRequestBuilder provides operations to call the usedRange method. +type ItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/usedRange()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeRequestBuilderInternal(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 *ItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function usedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_total_row_range_used_range_with_values_only_request_builder.go b/drives/item_items_item_workbook_tables_item_total_row_range_used_range_with_values_only_request_builder.go new file mode 100644 index 00000000000..dab65589734 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_total_row_range_used_range_with_values_only_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder provides operations to call the usedRange method. +type ItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, valuesOnly *bool)(*ItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/usedRange(valuesOnly={valuesOnly})", pathParameters), + } + if valuesOnly != nil { + m.BaseRequestBuilder.PathParameters["valuesOnly"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatBool(*valuesOnly) + } + return m +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilderInternal(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 *ItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function usedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_total_row_range_visible_view_request_builder.go b/drives/item_items_item_workbook_tables_item_total_row_range_visible_view_request_builder.go new file mode 100644 index 00000000000..6d932a13180 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_total_row_range_visible_view_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemTotalRowRangeVisibleViewRequestBuilder provides operations to call the visibleView method. +type ItemItemsItemWorkbookTablesItemTotalRowRangeVisibleViewRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemTotalRowRangeVisibleViewRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemTotalRowRangeVisibleViewRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeVisibleViewRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeVisibleViewRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeVisibleViewRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemTotalRowRangeVisibleViewRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/visibleView()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeVisibleViewRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeVisibleViewRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeVisibleViewRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemTotalRowRangeVisibleViewRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function visibleView +// returns a WorkbookRangeViewable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeVisibleViewRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeVisibleViewRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeViewFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable), nil +} +// ToGetRequestInformation invoke function visibleView +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeVisibleViewRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeVisibleViewRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookTablesItemTotalRowRangeVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeVisibleViewRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemTotalRowRangeVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeVisibleViewRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_tables_item_total_row_range_worksheet_request_builder.go b/drives/item_items_item_workbook_tables_item_total_row_range_worksheet_request_builder.go new file mode 100644 index 00000000000..1b5a56090e2 --- /dev/null +++ b/drives/item_items_item_workbook_tables_item_total_row_range_worksheet_request_builder.go @@ -0,0 +1,81 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookTablesItemTotalRowRangeWorksheetRequestBuilder provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookTablesItemTotalRowRangeWorksheetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookTablesItemTotalRowRangeWorksheetRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookTablesItemTotalRowRangeWorksheetRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookTablesItemTotalRowRangeWorksheetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookTablesItemTotalRowRangeWorksheetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookTablesItemTotalRowRangeWorksheetRequestBuilderGetQueryParameters +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeWorksheetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeWorksheetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeWorksheetRequestBuilder) { + m := &ItemItemsItemWorkbookTablesItemTotalRowRangeWorksheetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/tables/{workbookTable%2Did}/totalRowRange()/worksheet{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookTablesItemTotalRowRangeWorksheetRequestBuilder instantiates a new ItemItemsItemWorkbookTablesItemTotalRowRangeWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookTablesItemTotalRowRangeWorksheetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookTablesItemTotalRowRangeWorksheetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookTablesItemTotalRowRangeWorksheetRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookWorksheetable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeWorksheetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeWorksheetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookWorksheetFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable), nil +} +// ToGetRequestInformation the worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeWorksheetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookTablesItemTotalRowRangeWorksheetRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 *ItemItemsItemWorkbookTablesItemTotalRowRangeWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookTablesItemTotalRowRangeWorksheetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookTablesItemTotalRowRangeWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookTablesItemTotalRowRangeWorksheetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_clear_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_clear_post_request_body.go new file mode 100644 index 00000000000..de4b1d3a268 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_clear_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnClearPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnClearPostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnClearPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnClearPostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnClearPostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnClearPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnClearPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnClearPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnClearPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnClearPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetApplyTo gets the applyTo property value. The applyTo property +// returns a *string when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnClearPostRequestBody) GetApplyTo()(*string) { + val, err := m.GetBackingStore().Get("applyTo") + 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 *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnClearPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnClearPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["applyTo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetApplyTo(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnClearPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("applyTo", m.GetApplyTo()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnClearPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetApplyTo sets the applyTo property value. The applyTo property +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnClearPostRequestBody) SetApplyTo(value *string)() { + err := m.GetBackingStore().Set("applyTo", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnClearPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnClearPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetApplyTo()(*string) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetApplyTo(value *string)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_clear_request_builder.go b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_clear_request_builder.go new file mode 100644 index 00000000000..0690520bbb6 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_clear_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnClearRequestBuilder provides operations to call the clear method. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnClearRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnClearRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnClearRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnClearRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnClearRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnClearRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnClearRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/clear", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnClearRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnClearRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnClearRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnClearRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action clear +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnClearRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnClearRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action clear +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnClearRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnClearRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnClearRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnClearRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnClearRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_columns_after_request_builder.go b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_columns_after_request_builder.go new file mode 100644 index 00000000000..54eaa983df2 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_columns_after_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/columnsAfter()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_columns_before_request_builder.go b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_columns_before_request_builder.go new file mode 100644 index 00000000000..0f0123065e2 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_columns_before_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/columnsBefore()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_delete_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_delete_post_request_body.go new file mode 100644 index 00000000000..d56c359e169 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_delete_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnDeletePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnDeletePostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnDeletePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnDeletePostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnDeletePostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnDeletePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnDeletePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnDeletePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnDeletePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnDeletePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnDeletePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnDeletePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnDeletePostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnDeletePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnDeletePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnDeletePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnDeletePostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnDeletePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_delete_request_builder.go b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_delete_request_builder.go new file mode 100644 index 00000000000..b14a1cb846e --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_delete_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnDeleteRequestBuilder provides operations to call the delete method. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnDeleteRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnDeleteRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/delete", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnDeleteRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action delete +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnDeleteRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action delete +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnDeleteRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_entire_column_request_builder.go b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_entire_column_request_builder.go new file mode 100644 index 00000000000..09111f097c7 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_entire_column_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireColumnRequestBuilder provides operations to call the entireColumn method. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/entireColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_entire_row_request_builder.go b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_entire_row_request_builder.go new file mode 100644 index 00000000000..8f6bb2e9c6d --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_entire_row_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireRowRequestBuilder provides operations to call the entireRow method. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireRowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/entireRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireRowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_format_request_builder.go b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_format_request_builder.go new file mode 100644 index 00000000000..9f82894032f --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_format_request_builder.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnFormatRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnFormatRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnFormatRequestBuilderGetQueryParameters returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnFormatRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnFormatRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnFormatRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnFormatRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnFormatRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnFormatRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnFormatRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/format{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnFormatRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnFormatRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnFormatRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property format for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnFormatRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnFormatRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// Patch update the navigation property format in drives +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnFormatRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnFormatRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// ToDeleteRequestInformation delete navigation property format for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnFormatRequestBuilderDeleteRequestConfiguration)(*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 format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnFormatRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnFormatRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnFormatRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_insert_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_insert_post_request_body.go new file mode 100644 index 00000000000..7f982f001f5 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_insert_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnInsertPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnInsertPostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnInsertPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnInsertPostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnInsertPostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnInsertPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnInsertPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnInsertPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnInsertPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnInsertPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnInsertPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnInsertPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnInsertPostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnInsertPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnInsertPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnInsertPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnInsertPostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnInsertPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_insert_request_builder.go b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_insert_request_builder.go new file mode 100644 index 00000000000..70095cd42aa --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_insert_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnInsertRequestBuilder provides operations to call the insert method. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnInsertRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnInsertRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnInsertRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnInsertRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnInsertRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnInsertRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnInsertRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/insert", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnInsertRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnInsertRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnInsertRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnInsertRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action insert +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnInsertRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnInsertRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToPostRequestInformation invoke action insert +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnInsertRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnInsertRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnInsertRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnInsertRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnInsertRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_last_cell_request_builder.go b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_last_cell_request_builder.go new file mode 100644 index 00000000000..cb656e65033 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_last_cell_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastCellRequestBuilder provides operations to call the lastCell method. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastCellRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastCellRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastCellRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastCellRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastCellRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastCellRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastCellRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/lastCell()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastCellRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastCellRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastCellRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastCellRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastCell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastCellRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastCellRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastCell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastCellRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastCellRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastCellRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastCellRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastCellRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_last_column_request_builder.go b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_last_column_request_builder.go new file mode 100644 index 00000000000..344e9c43bf7 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_last_column_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastColumnRequestBuilder provides operations to call the lastColumn method. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/lastColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_last_row_request_builder.go b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_last_row_request_builder.go new file mode 100644 index 00000000000..e9ef3687a98 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_last_row_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastRowRequestBuilder provides operations to call the lastRow method. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastRowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/lastRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastRowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_merge_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_merge_post_request_body.go new file mode 100644 index 00000000000..9c41112a161 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_merge_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergePostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergePostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergePostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergePostRequestBody(), nil +} +// GetAcross gets the across property value. The across property +// returns a *bool when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergePostRequestBody) GetAcross()(*bool) { + val, err := m.GetBackingStore().Get("across") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + 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 *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["across"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetAcross(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("across", m.GetAcross()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAcross sets the across property value. The across property +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergePostRequestBody) SetAcross(value *bool)() { + err := m.GetBackingStore().Set("across", 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 *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAcross()(*bool) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetAcross(value *bool)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_merge_request_builder.go b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_merge_request_builder.go new file mode 100644 index 00000000000..aef0bb3c98b --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_merge_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergeRequestBuilder provides operations to call the merge method. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/merge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action merge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergeRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action merge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergeRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_request_builder.go b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_request_builder.go index df243ac720f..19833543066 100644 --- a/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_request_builder.go @@ -19,6 +19,41 @@ type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilderGetRe // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// BoundingRectWithAnotherRange provides operations to call the boundingRect method. +// returns a *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder) BoundingRectWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnBoundingRectWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// Clear provides operations to call the clear method. +// returns a *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder) Clear()(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnClearRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnClearRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfter provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder) ColumnsAfter()(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfterWithCount provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder) ColumnsAfterWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsAfterWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnsBefore provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder) ColumnsBefore()(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsBeforeWithCount provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder) ColumnsBeforeWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnsBeforeWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnWithColumn1 provides operations to call the column method. +// returns a *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnWithColumn1RequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder) ColumnWithColumn1(column1 *int32)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnWithColumn1RequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnColumnWithColumn1RequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column1) +} // NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder and sets the default values. func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32, row *int32)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder) { m := &ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder{ @@ -38,6 +73,26 @@ func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder(r urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil, nil) } +// DeletePath provides operations to call the delete method. +// returns a *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder) DeletePath()(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnDeleteRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireColumn provides operations to call the entireColumn method. +// returns a *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder) EntireColumn()(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireRow provides operations to call the entireRow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder) EntireRow()(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnEntireRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Format provides operations to manage the format property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder) Format()(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnFormatRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // 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 @@ -61,6 +116,76 @@ func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder) } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil } +// Insert provides operations to call the insert method. +// returns a *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder) Insert()(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnInsertRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnInsertRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// IntersectionWithAnotherRange provides operations to call the intersection method. +// returns a *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder) IntersectionWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnIntersectionWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// LastCell provides operations to call the lastCell method. +// returns a *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder) LastCell()(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastCellRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastCellRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastColumn provides operations to call the lastColumn method. +// returns a *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder) LastColumn()(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastRow provides operations to call the lastRow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder) LastRow()(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnLastRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Merge provides operations to call the merge method. +// returns a *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder) Merge()(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnMergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// OffsetRangeWithRowOffsetWithColumnOffset provides operations to call the offsetRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder) OffsetRangeWithRowOffsetWithColumnOffset(columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, columnOffset, rowOffset) +} +// ResizedRangeWithDeltaRowsWithDeltaColumns provides operations to call the resizedRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder) ResizedRangeWithDeltaRowsWithDeltaColumns(deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, deltaColumns, deltaRows) +} +// RowsAbove provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder) RowsAbove()(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsAboveWithCount provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder) RowsAboveWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowsBelow provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder) RowsBelow()(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsBelowWithCount provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder) RowsBelowWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowWithRow1 provides operations to call the row method. +// returns a *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowWithRow1RequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder) RowWithRow1(row1 *int32)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowWithRow1RequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowWithRow1RequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, row1) +} +// Sort provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder) Sort()(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnSortRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnSortRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // 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 *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { @@ -72,8 +197,33 @@ func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder) requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } +// Unmerge provides operations to call the unmerge method. +// returns a *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder) Unmerge()(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUnmergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// UsedRange provides operations to call the usedRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder) UsedRange()(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// UsedRangeWithValuesOnly provides operations to call the usedRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeWithValuesOnlyRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder) UsedRangeWithValuesOnly(valuesOnly *bool)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeWithValuesOnlyRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeWithValuesOnlyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, valuesOnly) +} +// VisibleView provides operations to call the visibleView method. +// returns a *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder) VisibleView()(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnVisibleViewRequestBuilderInternal(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 *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder when successful func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder) { return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); } +// Worksheet provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRequestBuilder) Worksheet()(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnWorksheetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} diff --git a/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_row_with_row1_request_builder.go b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_row_with_row1_request_builder.go new file mode 100644 index 00000000000..227530d5ee2 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_row_with_row1_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowWithRow1RequestBuilder provides operations to call the row method. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowWithRow1RequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowWithRow1RequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowWithRow1RequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowWithRow1RequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowWithRow1RequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowWithRow1RequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, row1 *int32)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowWithRow1RequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowWithRow1RequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/row(row={row1})", pathParameters), + } + if row1 != nil { + m.BaseRequestBuilder.PathParameters["row1"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*row1), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowWithRow1RequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowWithRow1RequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowWithRow1RequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowWithRow1RequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowWithRow1RequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function row +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowWithRow1RequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowWithRow1RequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function row +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowWithRow1RequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowWithRow1RequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowWithRow1RequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowWithRow1RequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowWithRow1RequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowWithRow1RequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_rows_above_request_builder.go b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_rows_above_request_builder.go new file mode 100644 index 00000000000..459681ddc32 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_rows_above_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/rowsAbove()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsAboveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_rows_below_request_builder.go b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_rows_below_request_builder.go new file mode 100644 index 00000000000..ab99d399994 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_rows_below_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/rowsBelow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnRowsBelowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_sort_request_builder.go b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_sort_request_builder.go new file mode 100644 index 00000000000..ff70f1cac3e --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_sort_request_builder.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnSortRequestBuilder provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnSortRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnSortRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnSortRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnSortRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnSortRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnSortRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnSortRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnSortRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnSortRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnSortRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnSortRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnSortRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnSortRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnSortRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/sort{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnSortRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnSortRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnSortRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnSortRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property sort for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnSortRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnSortRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnSortRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnSortRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// Patch update the navigation property sort in drives +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnSortRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnSortRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// ToDeleteRequestInformation delete navigation property sort for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnSortRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnSortRequestBuilderDeleteRequestConfiguration)(*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 worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnSortRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnSortRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnSortRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnSortRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnSortRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnSortRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnSortRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_unmerge_request_builder.go b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_unmerge_request_builder.go new file mode 100644 index 00000000000..7c8cec6037c --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_unmerge_request_builder.go @@ -0,0 +1,64 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUnmergeRequestBuilder provides operations to call the unmerge method. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUnmergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUnmergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUnmergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUnmergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUnmergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUnmergeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUnmergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/unmerge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUnmergeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUnmergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUnmergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUnmergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unmerge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUnmergeRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUnmergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unmerge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUnmergeRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUnmergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUnmergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUnmergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_used_range_request_builder.go b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_used_range_request_builder.go new file mode 100644 index 00000000000..0ec61cbeab4 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_used_range_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeRequestBuilder provides operations to call the usedRange method. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/usedRange()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeRequestBuilderInternal(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 *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function usedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnUsedRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_visible_view_request_builder.go b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_visible_view_request_builder.go new file mode 100644 index 00000000000..4636d2f4bce --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_visible_view_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnVisibleViewRequestBuilder provides operations to call the visibleView method. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnVisibleViewRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnVisibleViewRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnVisibleViewRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnVisibleViewRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnVisibleViewRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnVisibleViewRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnVisibleViewRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/visibleView()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnVisibleViewRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnVisibleViewRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnVisibleViewRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnVisibleViewRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function visibleView +// returns a WorkbookRangeViewable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnVisibleViewRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnVisibleViewRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeViewFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable), nil +} +// ToGetRequestInformation invoke function visibleView +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnVisibleViewRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnVisibleViewRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnVisibleViewRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnVisibleViewRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_worksheet_request_builder.go b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_worksheet_request_builder.go new file mode 100644 index 00000000000..14758ff5cb5 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_cell_with_row_with_column_worksheet_request_builder.go @@ -0,0 +1,81 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnWorksheetRequestBuilder provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnWorksheetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnWorksheetRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnWorksheetRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnWorksheetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnWorksheetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnWorksheetRequestBuilderGetQueryParameters +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnWorksheetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnWorksheetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnWorksheetRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnWorksheetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/cell(row={row},column={column})/worksheet{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnWorksheetRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnWorksheetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnWorksheetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnWorksheetRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookWorksheetable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnWorksheetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnWorksheetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookWorksheetFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable), nil +} +// ToGetRequestInformation the worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnWorksheetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnWorksheetRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnWorksheetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemCellWithRowWithColumnWorksheetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_charts_item_series_item_format_request_builder.go b/drives/item_items_item_workbook_worksheets_item_charts_item_series_item_format_request_builder.go index dc3678e3480..25f1042d738 100644 --- a/drives/item_items_item_workbook_worksheets_item_charts_item_series_item_format_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_charts_item_series_item_format_request_builder.go @@ -18,7 +18,7 @@ type ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilder // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilderGetQueryParameters represents the formatting of a chart series, which includes fill and line formatting. Read-only. +// ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilderGetQueryParameters the formatting of a chart series, which includes fill and line formatting. Read-only. type ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -75,7 +75,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBui func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilder) Fill()(*ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillRequestBuilder) { return NewItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatFillRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get represents the formatting of a chart series, which includes fill and line formatting. Read-only. +// Get 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 *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookChartSeriesFormatable, error) { @@ -131,7 +131,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBui 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. +// ToGetRequestInformation the formatting of a chart series, which includes fill and line formatting. Read-only. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_workbook_worksheets_item_charts_item_series_item_points_item_format_request_builder.go b/drives/item_items_item_workbook_worksheets_item_charts_item_series_item_points_item_format_request_builder.go index b926d4563ba..33cf8241d47 100644 --- a/drives/item_items_item_workbook_worksheets_item_charts_item_series_item_points_item_format_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_charts_item_series_item_points_item_format_request_builder.go @@ -18,7 +18,7 @@ type ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequ // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilderGetQueryParameters encapsulates the format properties chart point. Read-only. +// ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilderGetQueryParameters the format properties of the chart point. Read-only. type ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -75,7 +75,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormat func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilder) Fill()(*ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillRequestBuilder) { return NewItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatFillRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get encapsulates the format properties chart point. Read-only. +// Get the format properties of the 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 *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookChartPointFormatable, error) { @@ -126,7 +126,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormat requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation encapsulates the format properties chart point. Read-only. +// ToGetRequestInformation the format properties of the chart point. Read-only. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsItemFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_workbook_worksheets_item_charts_item_series_item_points_request_builder.go b/drives/item_items_item_workbook_worksheets_item_charts_item_series_item_points_request_builder.go index 9fb30f2db1d..314e1e22b1f 100644 --- a/drives/item_items_item_workbook_worksheets_item_charts_item_series_item_points_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_charts_item_series_item_points_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilderGetQueryParameters represents a collection of all points in the series. Read-only. +// ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilderGetQueryParameters a collection of all points in the series. Read-only. type ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuil func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilder) Count()(*ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountRequestBuilder) { return NewItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get represents a collection of all points in the series. Read-only. +// Get 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 *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookChartPointCollectionResponseable, error) { @@ -121,7 +121,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBui } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookChartPointable), nil } -// ToGetRequestInformation represents a collection of all points in the series. Read-only. +// ToGetRequestInformation a collection of all points in the series. Read-only. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemChartsItemSeriesItemPointsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_workbook_worksheets_item_charts_item_title_format_request_builder.go b/drives/item_items_item_workbook_worksheets_item_charts_item_title_format_request_builder.go index d3279ca6d49..720f64aaebb 100644 --- a/drives/item_items_item_workbook_worksheets_item_charts_item_title_format_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_charts_item_title_format_request_builder.go @@ -18,7 +18,7 @@ type ItemItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilderDelet // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilderGetQueryParameters represents the formatting of a chart title, which includes fill and font formatting. Read-only. +// ItemItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilderGetQueryParameters the formatting of a chart title, which includes fill and font formatting. Read-only. type ItemItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -80,7 +80,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilder) func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilder) Font()(*ItemItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFontRequestBuilder) { return NewItemItemsItemWorkbookWorksheetsItemChartsItemTitleFormatFontRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get represents the formatting of a chart title, which includes fill and font formatting. Read-only. +// Get 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 *ItemItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookChartTitleFormatable, error) { @@ -131,7 +131,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilder) 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. +// ToGetRequestInformation the formatting of a chart title, which includes fill and font formatting. Read-only. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemChartsItemTitleFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_workbook_worksheets_item_charts_request_builder.go b/drives/item_items_item_workbook_worksheets_item_charts_request_builder.go index 9db49b0ebe0..1d98f9ab0fb 100644 --- a/drives/item_items_item_workbook_worksheets_item_charts_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_charts_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemItemsItemWorkbookWorksheetsItemChartsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemItemsItemWorkbookWorksheetsItemChartsRequestBuilderGetQueryParameters returns collection of charts that are part of the worksheet. Read-only. +// ItemItemsItemWorkbookWorksheetsItemChartsRequestBuilderGetQueryParameters the list of charts that are part of the worksheet. Read-only. type ItemItemsItemWorkbookWorksheetsItemChartsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -81,7 +81,7 @@ func NewItemItemsItemWorkbookWorksheetsItemChartsRequestBuilder(rawUrl string, r func (m *ItemItemsItemWorkbookWorksheetsItemChartsRequestBuilder) Count()(*ItemItemsItemWorkbookWorksheetsItemChartsCountRequestBuilder) { return NewItemItemsItemWorkbookWorksheetsItemChartsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get returns collection of charts that are part of the worksheet. Read-only. +// Get the list 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 *ItemItemsItemWorkbookWorksheetsItemChartsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemChartsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookChartCollectionResponseable, error) { @@ -131,7 +131,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemChartsRequestBuilder) Post(ctx conte } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookChartable), nil } -// ToGetRequestInformation returns collection of charts that are part of the worksheet. Read-only. +// ToGetRequestInformation the list of charts that are part of the worksheet. Read-only. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemChartsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemChartsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_workbook_worksheets_item_charts_workbook_chart_item_request_builder.go b/drives/item_items_item_workbook_worksheets_item_charts_workbook_chart_item_request_builder.go index ecbebcfddf4..4ad1cf13217 100644 --- a/drives/item_items_item_workbook_worksheets_item_charts_workbook_chart_item_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_charts_workbook_chart_item_request_builder.go @@ -18,7 +18,7 @@ type ItemItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilderDel // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilderGetQueryParameters returns collection of charts that are part of the worksheet. Read-only. +// ItemItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilderGetQueryParameters the list of charts that are part of the worksheet. Read-only. type ItemItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -85,7 +85,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilde func (m *ItemItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilder) Format()(*ItemItemsItemWorkbookWorksheetsItemChartsItemFormatRequestBuilder) { return NewItemItemsItemWorkbookWorksheetsItemChartsItemFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get returns collection of charts that are part of the worksheet. Read-only. +// Get the list 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 *ItemItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookChartable, error) { @@ -181,7 +181,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilde requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation returns collection of charts that are part of the worksheet. Read-only. +// ToGetRequestInformation the list of charts that are part of the worksheet. Read-only. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemChartsWorkbookChartItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_workbook_worksheets_item_names_item_range_cell_with_row_with_column_request_builder.go b/drives/item_items_item_workbook_worksheets_item_names_item_range_cell_with_row_with_column_request_builder.go new file mode 100644 index 00000000000..5f4b273cd5d --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_names_item_range_cell_with_row_with_column_request_builder.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeCellWithRowWithColumnRequestBuilder provides operations to call the cell method. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeCellWithRowWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeCellWithRowWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeCellWithRowWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32, row *int32)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeCellWithRowWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemNamesItemRangeCellWithRowWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/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 +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeCellWithRowWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeCellWithRowWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeCellWithRowWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeCellWithRowWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function cell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeCellWithRowWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function cell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeCellWithRowWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeCellWithRowWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeCellWithRowWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_names_item_range_clear_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_names_item_range_clear_post_request_body.go new file mode 100644 index 00000000000..a962fafb911 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_names_item_range_clear_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeClearPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeClearPostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeClearPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeClearPostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeClearPostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemNamesItemRangeClearPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemNamesItemRangeClearPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemNamesItemRangeClearPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeClearPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeClearPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetApplyTo gets the applyTo property value. The applyTo property +// returns a *string when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeClearPostRequestBody) GetApplyTo()(*string) { + val, err := m.GetBackingStore().Get("applyTo") + 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 *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeClearPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeClearPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["applyTo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetApplyTo(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeClearPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("applyTo", m.GetApplyTo()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeClearPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetApplyTo sets the applyTo property value. The applyTo property +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeClearPostRequestBody) SetApplyTo(value *string)() { + err := m.GetBackingStore().Set("applyTo", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeClearPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeClearPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetApplyTo()(*string) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetApplyTo(value *string)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_names_item_range_clear_request_builder.go b/drives/item_items_item_workbook_worksheets_item_names_item_range_clear_request_builder.go new file mode 100644 index 00000000000..f7e8cd82455 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_names_item_range_clear_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeClearRequestBuilder provides operations to call the clear method. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeClearRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeClearRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeClearRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeClearRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeClearRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeClearRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemNamesItemRangeClearRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/clear", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeClearRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeClearRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeClearRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeClearRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action clear +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeClearRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemNamesItemRangeClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeClearRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action clear +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeClearRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemNamesItemRangeClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeClearRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeClearRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeClearRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeClearRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_names_item_range_column_with_column_request_builder.go b/drives/item_items_item_workbook_worksheets_item_names_item_range_column_with_column_request_builder.go new file mode 100644 index 00000000000..7f9b3d44c84 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_names_item_range_column_with_column_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnWithColumnRequestBuilder provides operations to call the column method. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/column(column={column})", pathParameters), + } + if column != nil { + m.BaseRequestBuilder.PathParameters["column"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*column), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function column +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function column +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_names_item_range_columns_after_request_builder.go b/drives/item_items_item_workbook_worksheets_item_names_item_range_columns_after_request_builder.go new file mode 100644 index 00000000000..eeca709a712 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_names_item_range_columns_after_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/columnsAfter()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_names_item_range_columns_after_with_count_request_builder.go b/drives/item_items_item_workbook_worksheets_item_names_item_range_columns_after_with_count_request_builder.go new file mode 100644 index 00000000000..f4466a05221 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_names_item_range_columns_after_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterWithCountRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/columnsAfter(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_names_item_range_columns_before_request_builder.go b/drives/item_items_item_workbook_worksheets_item_names_item_range_columns_before_request_builder.go new file mode 100644 index 00000000000..3bcb5b466f0 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_names_item_range_columns_before_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/columnsBefore()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_names_item_range_columns_before_with_count_request_builder.go b/drives/item_items_item_workbook_worksheets_item_names_item_range_columns_before_with_count_request_builder.go new file mode 100644 index 00000000000..d5d329a9afa --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_names_item_range_columns_before_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeWithCountRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/columnsBefore(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_names_item_range_delete_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_names_item_range_delete_post_request_body.go new file mode 100644 index 00000000000..975bb1f185d --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_names_item_range_delete_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeDeletePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeDeletePostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeDeletePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeDeletePostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeDeletePostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemNamesItemRangeDeletePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemNamesItemRangeDeletePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemNamesItemRangeDeletePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeDeletePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeDeletePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeDeletePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeDeletePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeDeletePostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeDeletePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeDeletePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeDeletePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeDeletePostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeDeletePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_names_item_range_delete_request_builder.go b/drives/item_items_item_workbook_worksheets_item_names_item_range_delete_request_builder.go new file mode 100644 index 00000000000..1ae461330dd --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_names_item_range_delete_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeDeleteRequestBuilder provides operations to call the delete method. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeDeleteRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeDeleteRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemNamesItemRangeDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/delete", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeDeleteRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action delete +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeDeleteRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemNamesItemRangeDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action delete +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemNamesItemRangeDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeDeleteRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_names_item_range_entire_column_request_builder.go b/drives/item_items_item_workbook_worksheets_item_names_item_range_entire_column_request_builder.go new file mode 100644 index 00000000000..e0d5b8c09d5 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_names_item_range_entire_column_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireColumnRequestBuilder provides operations to call the entireColumn method. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/entireColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_names_item_range_entire_row_request_builder.go b/drives/item_items_item_workbook_worksheets_item_names_item_range_entire_row_request_builder.go new file mode 100644 index 00000000000..aede63ad5b2 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_names_item_range_entire_row_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireRowRequestBuilder provides operations to call the entireRow method. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireRowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/entireRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireRowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_names_item_range_format_request_builder.go b/drives/item_items_item_workbook_worksheets_item_names_item_range_format_request_builder.go new file mode 100644 index 00000000000..8f738a37830 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_names_item_range_format_request_builder.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeFormatRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeFormatRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeFormatRequestBuilderGetQueryParameters returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeFormatRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeFormatRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeFormatRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeFormatRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeFormatRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeFormatRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemNamesItemRangeFormatRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/format{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeFormatRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeFormatRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeFormatRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property format for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeFormatRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeFormatRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// Patch update the navigation property format in drives +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeFormatRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeFormatRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// ToDeleteRequestInformation delete navigation property format for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeFormatRequestBuilderDeleteRequestConfiguration)(*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 format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeFormatRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeFormatRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeFormatRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_names_item_range_insert_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_names_item_range_insert_post_request_body.go new file mode 100644 index 00000000000..abdf6820d1e --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_names_item_range_insert_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeInsertPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeInsertPostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeInsertPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeInsertPostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeInsertPostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemNamesItemRangeInsertPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemNamesItemRangeInsertPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemNamesItemRangeInsertPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeInsertPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeInsertPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeInsertPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeInsertPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeInsertPostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeInsertPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeInsertPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeInsertPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeInsertPostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeInsertPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_names_item_range_insert_request_builder.go b/drives/item_items_item_workbook_worksheets_item_names_item_range_insert_request_builder.go new file mode 100644 index 00000000000..d33be9520de --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_names_item_range_insert_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeInsertRequestBuilder provides operations to call the insert method. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeInsertRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeInsertRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeInsertRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeInsertRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeInsertRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeInsertRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemNamesItemRangeInsertRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/insert", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeInsertRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeInsertRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeInsertRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeInsertRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action insert +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeInsertRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemNamesItemRangeInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeInsertRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToPostRequestInformation invoke action insert +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeInsertRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemNamesItemRangeInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeInsertRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeInsertRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeInsertRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeInsertRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_names_item_range_last_cell_request_builder.go b/drives/item_items_item_workbook_worksheets_item_names_item_range_last_cell_request_builder.go new file mode 100644 index 00000000000..d565615e9a2 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_names_item_range_last_cell_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastCellRequestBuilder provides operations to call the lastCell method. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastCellRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastCellRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastCellRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastCellRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastCellRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastCellRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastCellRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/lastCell()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastCellRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastCellRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastCellRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastCellRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastCell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastCellRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastCellRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastCell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastCellRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastCellRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastCellRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastCellRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastCellRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_names_item_range_last_column_request_builder.go b/drives/item_items_item_workbook_worksheets_item_names_item_range_last_column_request_builder.go new file mode 100644 index 00000000000..100722087de --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_names_item_range_last_column_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastColumnRequestBuilder provides operations to call the lastColumn method. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/lastColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_names_item_range_last_row_request_builder.go b/drives/item_items_item_workbook_worksheets_item_names_item_range_last_row_request_builder.go new file mode 100644 index 00000000000..d1505acc1d9 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_names_item_range_last_row_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastRowRequestBuilder provides operations to call the lastRow method. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastRowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/lastRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastRowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_names_item_range_merge_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_names_item_range_merge_post_request_body.go new file mode 100644 index 00000000000..132914a7478 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_names_item_range_merge_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergePostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergePostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergePostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergePostRequestBody(), nil +} +// GetAcross gets the across property value. The across property +// returns a *bool when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergePostRequestBody) GetAcross()(*bool) { + val, err := m.GetBackingStore().Get("across") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + 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 *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["across"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetAcross(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("across", m.GetAcross()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAcross sets the across property value. The across property +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergePostRequestBody) SetAcross(value *bool)() { + err := m.GetBackingStore().Set("across", 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 *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAcross()(*bool) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetAcross(value *bool)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_names_item_range_merge_request_builder.go b/drives/item_items_item_workbook_worksheets_item_names_item_range_merge_request_builder.go new file mode 100644 index 00000000000..af3f8054698 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_names_item_range_merge_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergeRequestBuilder provides operations to call the merge method. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/merge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action merge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergeRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action merge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergeRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} 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 c1d45c41883..a84c9e3dced 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 @@ -18,6 +18,46 @@ type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilderGetRequestCo // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// BoundingRectWithAnotherRange provides operations to call the boundingRect method. +// returns a *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) BoundingRectWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeBoundingRectWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// CellWithRowWithColumn provides operations to call the cell method. +// returns a *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) CellWithRowWithColumn(column *int32, row *int32)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeCellWithRowWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column, row) +} +// Clear provides operations to call the clear method. +// returns a *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) Clear()(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeClearRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeClearRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfter provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) ColumnsAfter()(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfterWithCount provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) ColumnsAfterWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsAfterWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnsBefore provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) ColumnsBefore()(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsBeforeWithCount provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) ColumnsBeforeWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnsBeforeWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnWithColumn provides operations to call the column method. +// returns a *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) ColumnWithColumn(column *int32)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeColumnWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column) +} // NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder and sets the default values. func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) { m := &ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder{ @@ -31,12 +71,32 @@ func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder(rawUrl s urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilderInternal(urlParams, requestAdapter) } -// Get returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. +// DeletePath provides operations to call the delete method. +// returns a *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) DeletePath()(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeDeleteRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireColumn provides operations to call the entireColumn method. +// returns a *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) EntireColumn()(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireRow provides operations to call the entireRow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) EntireRow()(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeEntireRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Format provides operations to manage the format property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) Format()(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeFormatRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.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/nameditem-range?view=graph-rest-beta +// [Find more info here]: https://learn.microsoft.com/graph/api/range-get?view=graph-rest-beta func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -54,7 +114,77 @@ func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) Get(ct } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil } -// ToGetRequestInformation returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. +// Insert provides operations to call the insert method. +// returns a *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) Insert()(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeInsertRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeInsertRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// IntersectionWithAnotherRange provides operations to call the intersection method. +// returns a *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) IntersectionWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeIntersectionWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// LastCell provides operations to call the lastCell method. +// returns a *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) LastCell()(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastCellRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastCellRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastColumn provides operations to call the lastColumn method. +// returns a *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) LastColumn()(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastRow provides operations to call the lastRow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) LastRow()(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeLastRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Merge provides operations to call the merge method. +// returns a *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) Merge()(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeMergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// OffsetRangeWithRowOffsetWithColumnOffset provides operations to call the offsetRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) OffsetRangeWithRowOffsetWithColumnOffset(columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, columnOffset, rowOffset) +} +// ResizedRangeWithDeltaRowsWithDeltaColumns provides operations to call the resizedRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) ResizedRangeWithDeltaRowsWithDeltaColumns(deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, deltaColumns, deltaRows) +} +// RowsAbove provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) RowsAbove()(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsAboveWithCount provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) RowsAboveWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowsBelow provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) RowsBelow()(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsBelowWithCount provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) RowsBelowWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowWithRow provides operations to call the row method. +// returns a *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) RowWithRow(row *int32)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowWithRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, row) +} +// Sort provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) Sort()(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeSortRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeSortRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToGetRequestInformation retrieve the properties and relationships of range object. // 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) @@ -65,8 +195,33 @@ func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) ToGetR requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } +// Unmerge provides operations to call the unmerge method. +// returns a *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) Unmerge()(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeUnmergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// UsedRange provides operations to call the usedRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) UsedRange()(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// UsedRangeWithValuesOnly provides operations to call the usedRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeWithValuesOnlyRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) UsedRangeWithValuesOnly(valuesOnly *bool)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeWithValuesOnlyRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeWithValuesOnlyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, valuesOnly) +} +// VisibleView provides operations to call the visibleView method. +// returns a *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) VisibleView()(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeVisibleViewRequestBuilderInternal(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 *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder when successful func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) { return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); } +// Worksheet provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRequestBuilder) Worksheet()(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeWorksheetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} diff --git a/drives/item_items_item_workbook_worksheets_item_names_item_range_row_with_row_request_builder.go b/drives/item_items_item_workbook_worksheets_item_names_item_range_row_with_row_request_builder.go new file mode 100644 index 00000000000..14f67f020ec --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_names_item_range_row_with_row_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowWithRowRequestBuilder provides operations to call the row method. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowWithRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowWithRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowWithRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowWithRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowWithRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, row *int32)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowWithRowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowWithRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/row(row={row})", pathParameters), + } + if row != nil { + m.BaseRequestBuilder.PathParameters["row"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*row), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowWithRowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowWithRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowWithRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowWithRowRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function row +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowWithRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowWithRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function row +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowWithRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowWithRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowWithRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowWithRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_names_item_range_rows_above_request_builder.go b/drives/item_items_item_workbook_worksheets_item_names_item_range_rows_above_request_builder.go new file mode 100644 index 00000000000..5617cf165a4 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_names_item_range_rows_above_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/rowsAbove()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_names_item_range_rows_above_with_count_request_builder.go b/drives/item_items_item_workbook_worksheets_item_names_item_range_rows_above_with_count_request_builder.go new file mode 100644 index 00000000000..9a2ddb2c80f --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_names_item_range_rows_above_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveWithCountRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/rowsAbove(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsAboveWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_names_item_range_rows_below_request_builder.go b/drives/item_items_item_workbook_worksheets_item_names_item_range_rows_below_request_builder.go new file mode 100644 index 00000000000..671aefd8c80 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_names_item_range_rows_below_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/rowsBelow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_names_item_range_rows_below_with_count_request_builder.go b/drives/item_items_item_workbook_worksheets_item_names_item_range_rows_below_with_count_request_builder.go new file mode 100644 index 00000000000..efa2cfb06ab --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_names_item_range_rows_below_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowWithCountRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/rowsBelow(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeRowsBelowWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_names_item_range_sort_request_builder.go b/drives/item_items_item_workbook_worksheets_item_names_item_range_sort_request_builder.go new file mode 100644 index 00000000000..b5fdd76736c --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_names_item_range_sort_request_builder.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeSortRequestBuilder provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeSortRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeSortRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeSortRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeSortRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeSortRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeSortRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeSortRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeSortRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeSortRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeSortRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeSortRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeSortRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeSortRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemNamesItemRangeSortRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/sort{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeSortRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeSortRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeSortRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeSortRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property sort for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeSortRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeSortRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeSortRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeSortRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// Patch update the navigation property sort in drives +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeSortRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeSortRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// ToDeleteRequestInformation delete navigation property sort for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeSortRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeSortRequestBuilderDeleteRequestConfiguration)(*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 worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeSortRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeSortRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeSortRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeSortRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeSortRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeSortRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeSortRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_names_item_range_unmerge_request_builder.go b/drives/item_items_item_workbook_worksheets_item_names_item_range_unmerge_request_builder.go new file mode 100644 index 00000000000..8cd71ee6d28 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_names_item_range_unmerge_request_builder.go @@ -0,0 +1,64 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUnmergeRequestBuilder provides operations to call the unmerge method. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUnmergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUnmergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUnmergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeUnmergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeUnmergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUnmergeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUnmergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/unmerge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeUnmergeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeUnmergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUnmergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeUnmergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unmerge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUnmergeRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUnmergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unmerge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUnmergeRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUnmergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUnmergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeUnmergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_names_item_range_used_range_request_builder.go b/drives/item_items_item_workbook_worksheets_item_names_item_range_used_range_request_builder.go new file mode 100644 index 00000000000..1aa4f246ee2 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_names_item_range_used_range_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeRequestBuilder provides operations to call the usedRange method. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/usedRange()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeRequestBuilderInternal(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 *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function usedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeUsedRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_names_item_range_visible_view_request_builder.go b/drives/item_items_item_workbook_worksheets_item_names_item_range_visible_view_request_builder.go new file mode 100644 index 00000000000..00c1dfce723 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_names_item_range_visible_view_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeVisibleViewRequestBuilder provides operations to call the visibleView method. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeVisibleViewRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeVisibleViewRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeVisibleViewRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeVisibleViewRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeVisibleViewRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeVisibleViewRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemNamesItemRangeVisibleViewRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/visibleView()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeVisibleViewRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeVisibleViewRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeVisibleViewRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeVisibleViewRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function visibleView +// returns a WorkbookRangeViewable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeVisibleViewRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeVisibleViewRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeViewFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable), nil +} +// ToGetRequestInformation invoke function visibleView +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeVisibleViewRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeVisibleViewRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeVisibleViewRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeVisibleViewRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_names_item_range_worksheet_request_builder.go b/drives/item_items_item_workbook_worksheets_item_names_item_range_worksheet_request_builder.go new file mode 100644 index 00000000000..04911501dfa --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_names_item_range_worksheet_request_builder.go @@ -0,0 +1,81 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeWorksheetRequestBuilder provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeWorksheetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeWorksheetRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeWorksheetRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemNamesItemRangeWorksheetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemNamesItemRangeWorksheetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeWorksheetRequestBuilderGetQueryParameters +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeWorksheetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeWorksheetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeWorksheetRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemNamesItemRangeWorksheetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()/worksheet{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeWorksheetRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemNamesItemRangeWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeWorksheetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeWorksheetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeWorksheetRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookWorksheetable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeWorksheetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeWorksheetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookWorksheetFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable), nil +} +// ToGetRequestInformation the worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeWorksheetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeWorksheetRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemRangeWorksheetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemNamesItemRangeWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemNamesItemRangeWorksheetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_names_item_worksheet_request_builder.go b/drives/item_items_item_workbook_worksheets_item_names_item_worksheet_request_builder.go index b1da7a6695f..d5ee9a7b84f 100644 --- a/drives/item_items_item_workbook_worksheets_item_names_item_worksheet_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_names_item_worksheet_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemItemsItemWorkbookWorksheetsItemNamesItemWorksheetRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemItemsItemWorkbookWorksheetsItemNamesItemWorksheetRequestBuilderGetQueryParameters returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. +// ItemItemsItemWorkbookWorksheetsItemNamesItemWorksheetRequestBuilderGetQueryParameters return the worksheet to which the named item is scoped. Available only if the item is scoped to the worksheet. Read-only. type ItemItemsItemWorkbookWorksheetsItemNamesItemWorksheetRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewItemItemsItemWorkbookWorksheetsItemNamesItemWorksheetRequestBuilder(rawU urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookWorksheetsItemNamesItemWorksheetRequestBuilderInternal(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. +// Get return the worksheet to which the named item is scoped. 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 *ItemItemsItemWorkbookWorksheetsItemNamesItemWorksheetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemWorksheetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable, error) { @@ -60,7 +60,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemWorksheetRequestBuilder) Ge } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. +// ToGetRequestInformation return the worksheet to which the named item is scoped. Available only if the item is scoped to the worksheet. Read-only. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemNamesItemWorksheetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesItemWorksheetRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_workbook_worksheets_item_names_request_builder.go b/drives/item_items_item_workbook_worksheets_item_names_request_builder.go index 81df3471a92..f131ec2ecaa 100644 --- a/drives/item_items_item_workbook_worksheets_item_names_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_names_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemItemsItemWorkbookWorksheetsItemNamesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemItemsItemWorkbookWorksheetsItemNamesRequestBuilderGetQueryParameters returns collection of names that are associated with the worksheet. Read-only. +// ItemItemsItemWorkbookWorksheetsItemNamesRequestBuilderGetQueryParameters the list of names that are associated with the worksheet. Read-only. type ItemItemsItemWorkbookWorksheetsItemNamesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -86,7 +86,7 @@ func NewItemItemsItemWorkbookWorksheetsItemNamesRequestBuilder(rawUrl string, re func (m *ItemItemsItemWorkbookWorksheetsItemNamesRequestBuilder) Count()(*ItemItemsItemWorkbookWorksheetsItemNamesCountRequestBuilder) { return NewItemItemsItemWorkbookWorksheetsItemNamesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get returns collection of names that are associated with the worksheet. Read-only. +// Get the list 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 *ItemItemsItemWorkbookWorksheetsItemNamesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookNamedItemCollectionResponseable, error) { @@ -126,7 +126,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemNamesRequestBuilder) Post(ctx contex } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookNamedItemable), nil } -// ToGetRequestInformation returns collection of names that are associated with the worksheet. Read-only. +// ToGetRequestInformation the list of names that are associated with the worksheet. Read-only. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemNamesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_workbook_worksheets_item_names_workbook_named_item_item_request_builder.go b/drives/item_items_item_workbook_worksheets_item_names_workbook_named_item_item_request_builder.go index c22569fb3ee..45458a72300 100644 --- a/drives/item_items_item_workbook_worksheets_item_names_workbook_named_item_item_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_names_workbook_named_item_item_request_builder.go @@ -18,7 +18,7 @@ type ItemItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilder // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilderGetQueryParameters returns collection of names that are associated with the worksheet. Read-only. +// ItemItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilderGetQueryParameters the list of names that are associated with the worksheet. Read-only. type ItemItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBui } return nil } -// Get returns collection of names that are associated with the worksheet. Read-only. +// Get the list 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 *ItemItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookNamedItemable, error) { @@ -126,7 +126,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBui requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation returns collection of names that are associated with the worksheet. Read-only. +// ToGetRequestInformation the list of names that are associated with the worksheet. Read-only. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemNamesWorkbookNamedItemItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_workbook_worksheets_item_pivot_tables_item_worksheet_request_builder.go b/drives/item_items_item_workbook_worksheets_item_pivot_tables_item_worksheet_request_builder.go index 655191ecd6c..f1a879eeded 100644 --- a/drives/item_items_item_workbook_worksheets_item_pivot_tables_item_worksheet_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_pivot_tables_item_worksheet_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemItemsItemWorkbookWorksheetsItemPivotTablesItemWorksheetRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemItemsItemWorkbookWorksheetsItemPivotTablesItemWorksheetRequestBuilderGetQueryParameters the worksheet containing the current PivotTable. Read-only. +// ItemItemsItemWorkbookWorksheetsItemPivotTablesItemWorksheetRequestBuilderGetQueryParameters the worksheet that contains the current pivot table. Read-only. type ItemItemsItemWorkbookWorksheetsItemPivotTablesItemWorksheetRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewItemItemsItemWorkbookWorksheetsItemPivotTablesItemWorksheetRequestBuilde urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookWorksheetsItemPivotTablesItemWorksheetRequestBuilderInternal(urlParams, requestAdapter) } -// Get the worksheet containing the current PivotTable. Read-only. +// Get the worksheet that contains the current pivot table. Read-only. // returns a WorkbookWorksheetable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemItemsItemWorkbookWorksheetsItemPivotTablesItemWorksheetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemPivotTablesItemWorksheetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable, error) { @@ -60,7 +60,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemPivotTablesItemWorksheetRequestBuild } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable), nil } -// ToGetRequestInformation the worksheet containing the current PivotTable. Read-only. +// ToGetRequestInformation the worksheet that contains the current pivot table. Read-only. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemPivotTablesItemWorksheetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemPivotTablesItemWorksheetRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_workbook_worksheets_item_pivot_tables_request_builder.go b/drives/item_items_item_workbook_worksheets_item_pivot_tables_request_builder.go index 56ff6ecbc56..95ba31b8782 100644 --- a/drives/item_items_item_workbook_worksheets_item_pivot_tables_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_pivot_tables_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilderGetQueryParameters collection of PivotTables that are part of the worksheet. +// ItemItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilderGetQueryParameters the list of piot tables that are part of the worksheet. type ItemItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewItemItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilder(rawUrl stri func (m *ItemItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilder) Count()(*ItemItemsItemWorkbookWorksheetsItemPivotTablesCountRequestBuilder) { return NewItemItemsItemWorkbookWorksheetsItemPivotTablesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get collection of PivotTables that are part of the worksheet. +// Get the list of piot tables 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 *ItemItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookPivotTableCollectionResponseable, error) { @@ -121,7 +121,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilder) Post(ctx func (m *ItemItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilder) RefreshAll()(*ItemItemsItemWorkbookWorksheetsItemPivotTablesRefreshAllRequestBuilder) { return NewItemItemsItemWorkbookWorksheetsItemPivotTablesRefreshAllRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation collection of PivotTables that are part of the worksheet. +// ToGetRequestInformation the list of piot tables that are part of the worksheet. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemPivotTablesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_workbook_worksheets_item_pivot_tables_workbook_pivot_table_item_request_builder.go b/drives/item_items_item_workbook_worksheets_item_pivot_tables_workbook_pivot_table_item_request_builder.go index faedad0641b..b61eed3c8be 100644 --- a/drives/item_items_item_workbook_worksheets_item_pivot_tables_workbook_pivot_table_item_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_pivot_tables_workbook_pivot_table_item_request_builder.go @@ -18,7 +18,7 @@ type ItemItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequest // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilderGetQueryParameters collection of PivotTables that are part of the worksheet. +// ItemItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilderGetQueryParameters the list of piot tables that are part of the worksheet. type ItemItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemReq } return nil } -// Get collection of PivotTables that are part of the worksheet. +// Get the list of piot tables 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 *ItemItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookPivotTableable, error) { @@ -126,7 +126,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemReq requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation collection of PivotTables that are part of the worksheet. +// ToGetRequestInformation the list of piot tables that are part of the worksheet. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemPivotTablesWorkbookPivotTableItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_workbook_worksheets_item_protection_request_builder.go b/drives/item_items_item_workbook_worksheets_item_protection_request_builder.go index f9dcfc116e9..6554593f2b2 100644 --- a/drives/item_items_item_workbook_worksheets_item_protection_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_protection_request_builder.go @@ -18,7 +18,7 @@ type ItemItemsItemWorkbookWorksheetsItemProtectionRequestBuilderDeleteRequestCon // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemItemsItemWorkbookWorksheetsItemProtectionRequestBuilderGetQueryParameters returns sheet protection object for a worksheet. Read-only. +// ItemItemsItemWorkbookWorksheetsItemProtectionRequestBuilderGetQueryParameters the sheet protection object for a worksheet. Read-only. type ItemItemsItemWorkbookWorksheetsItemProtectionRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemProtectionRequestBuilder) Delete(ctx } return nil } -// Get returns sheet protection object for a worksheet. Read-only. +// Get the 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 *ItemItemsItemWorkbookWorksheetsItemProtectionRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemProtectionRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetProtectionable, error) { @@ -126,7 +126,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemProtectionRequestBuilder) ToDeleteRe requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation returns sheet protection object for a worksheet. Read-only. +// ToGetRequestInformation the sheet protection object for a worksheet. Read-only. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemProtectionRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemProtectionRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_workbook_worksheets_item_range_bounding_rect_with_another_range_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_bounding_rect_with_another_range_request_builder.go new file mode 100644 index 00000000000..c162e1d3a71 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_bounding_rect_with_another_range_request_builder.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeBoundingRectWithAnotherRangeRequestBuilder provides operations to call the boundingRect method. +type ItemItemsItemWorkbookWorksheetsItemRangeBoundingRectWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeBoundingRectWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeBoundingRectWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemRangeBoundingRectWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeBoundingRectWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/boundingRect(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeBoundingRectWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeBoundingRectWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeBoundingRectWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeBoundingRectWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function boundingRect +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeBoundingRectWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function boundingRect +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeBoundingRectWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeBoundingRectWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeBoundingRectWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_cell_with_row_with_column_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_cell_with_row_with_column_request_builder.go new file mode 100644 index 00000000000..ca6fea4af9d --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_cell_with_row_with_column_request_builder.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeCellWithRowWithColumnRequestBuilder provides operations to call the cell method. +type ItemItemsItemWorkbookWorksheetsItemRangeCellWithRowWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeCellWithRowWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeCellWithRowWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32, row *int32)(*ItemItemsItemWorkbookWorksheetsItemRangeCellWithRowWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeCellWithRowWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/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 +} +// NewItemItemsItemWorkbookWorksheetsItemRangeCellWithRowWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeCellWithRowWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeCellWithRowWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeCellWithRowWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function cell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeCellWithRowWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function cell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeCellWithRowWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeCellWithRowWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeCellWithRowWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_clear_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_range_clear_post_request_body.go new file mode 100644 index 00000000000..e107e0b5a7e --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_clear_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemRangeClearPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemRangeClearPostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeClearPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeClearPostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemRangeClearPostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeClearPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemRangeClearPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemRangeClearPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemRangeClearPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeClearPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetApplyTo gets the applyTo property value. The applyTo property +// returns a *string when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeClearPostRequestBody) GetApplyTo()(*string) { + val, err := m.GetBackingStore().Get("applyTo") + 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 *ItemItemsItemWorkbookWorksheetsItemRangeClearPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeClearPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["applyTo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetApplyTo(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemRangeClearPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("applyTo", m.GetApplyTo()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookWorksheetsItemRangeClearPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetApplyTo sets the applyTo property value. The applyTo property +func (m *ItemItemsItemWorkbookWorksheetsItemRangeClearPostRequestBody) SetApplyTo(value *string)() { + err := m.GetBackingStore().Set("applyTo", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemRangeClearPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookWorksheetsItemRangeClearPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetApplyTo()(*string) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetApplyTo(value *string)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_clear_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_clear_request_builder.go new file mode 100644 index 00000000000..1cd8c332b6b --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_clear_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeClearRequestBuilder provides operations to call the clear method. +type ItemItemsItemWorkbookWorksheetsItemRangeClearRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeClearRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeClearRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeClearRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeClearRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeClearRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeClearRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/clear", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeClearRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeClearRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeClearRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeClearRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action clear +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeClearRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemRangeClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeClearRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action clear +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeClearRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemRangeClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeClearRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeClearRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeClearRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeClearRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_column_with_column_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_column_with_column_request_builder.go new file mode 100644 index 00000000000..e5f817a2e0c --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_column_with_column_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeColumnWithColumnRequestBuilder provides operations to call the column method. +type ItemItemsItemWorkbookWorksheetsItemRangeColumnWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeColumnWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeColumnWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeColumnWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeColumnWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32)(*ItemItemsItemWorkbookWorksheetsItemRangeColumnWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeColumnWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/column(column={column})", pathParameters), + } + if column != nil { + m.BaseRequestBuilder.PathParameters["column"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*column), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeColumnWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeColumnWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeColumnWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeColumnWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function column +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeColumnWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeColumnWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function column +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeColumnWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeColumnWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeColumnWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeColumnWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_columns_after_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_columns_after_request_builder.go new file mode 100644 index 00000000000..f5194d67883 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_columns_after_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/columnsAfter()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_columns_after_with_count_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_columns_after_with_count_request_builder.go new file mode 100644 index 00000000000..d5b789fb328 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_columns_after_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterWithCountRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/columnsAfter(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_columns_before_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_columns_before_request_builder.go new file mode 100644 index 00000000000..fd68da054a7 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_columns_before_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/columnsBefore()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_columns_before_with_count_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_columns_before_with_count_request_builder.go new file mode 100644 index 00000000000..5ba2d2a0bc4 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_columns_before_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeWithCountRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/columnsBefore(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_delete_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_range_delete_post_request_body.go new file mode 100644 index 00000000000..f22009d41e4 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_delete_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemRangeDeletePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemRangeDeletePostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeDeletePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeDeletePostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemRangeDeletePostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeDeletePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemRangeDeletePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemRangeDeletePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemRangeDeletePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeDeletePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeDeletePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeDeletePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeDeletePostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemRangeDeletePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookWorksheetsItemRangeDeletePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemRangeDeletePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookWorksheetsItemRangeDeletePostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookWorksheetsItemRangeDeletePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_delete_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_delete_request_builder.go new file mode 100644 index 00000000000..833832775b6 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_delete_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeDeleteRequestBuilder provides operations to call the delete method. +type ItemItemsItemWorkbookWorksheetsItemRangeDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeDeleteRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeDeleteRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/delete", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeDeleteRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action delete +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeDeleteRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemRangeDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action delete +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemRangeDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeDeleteRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_entire_column_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_entire_column_request_builder.go new file mode 100644 index 00000000000..7981b7e12fb --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_entire_column_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeEntireColumnRequestBuilder provides operations to call the entireColumn method. +type ItemItemsItemWorkbookWorksheetsItemRangeEntireColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeEntireColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeEntireColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeEntireColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeEntireColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeEntireColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeEntireColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/entireColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeEntireColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeEntireColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeEntireColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeEntireColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeEntireColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeEntireColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeEntireColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeEntireColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeEntireColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeEntireColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_entire_row_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_entire_row_request_builder.go new file mode 100644 index 00000000000..7c039cce00d --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_entire_row_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeEntireRowRequestBuilder provides operations to call the entireRow method. +type ItemItemsItemWorkbookWorksheetsItemRangeEntireRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeEntireRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeEntireRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeEntireRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeEntireRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeEntireRowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeEntireRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/entireRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeEntireRowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeEntireRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeEntireRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeEntireRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeEntireRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeEntireRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeEntireRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeEntireRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeEntireRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeEntireRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_format_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_format_request_builder.go new file mode 100644 index 00000000000..f6d95347dab --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_format_request_builder.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookWorksheetsItemRangeFormatRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeFormatRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookWorksheetsItemRangeFormatRequestBuilderGetQueryParameters returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +type ItemItemsItemWorkbookWorksheetsItemRangeFormatRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemRangeFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeFormatRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemRangeFormatRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookWorksheetsItemRangeFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeFormatRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeFormatRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeFormatRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeFormatRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/format{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeFormatRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeFormatRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeFormatRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property format for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeFormatRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeFormatRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// Patch update the navigation property format in drives +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeFormatRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeFormatRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// ToDeleteRequestInformation delete navigation property format for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeFormatRequestBuilderDeleteRequestConfiguration)(*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 format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeFormatRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeFormatRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeFormatRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_insert_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_range_insert_post_request_body.go new file mode 100644 index 00000000000..326d0f7a1fd --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_insert_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemRangeInsertPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemRangeInsertPostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeInsertPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeInsertPostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemRangeInsertPostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeInsertPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemRangeInsertPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemRangeInsertPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemRangeInsertPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeInsertPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeInsertPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeInsertPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeInsertPostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemRangeInsertPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookWorksheetsItemRangeInsertPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemRangeInsertPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookWorksheetsItemRangeInsertPostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookWorksheetsItemRangeInsertPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_insert_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_insert_request_builder.go new file mode 100644 index 00000000000..ed2c982ba48 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_insert_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeInsertRequestBuilder provides operations to call the insert method. +type ItemItemsItemWorkbookWorksheetsItemRangeInsertRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeInsertRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeInsertRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeInsertRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeInsertRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeInsertRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeInsertRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/insert", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeInsertRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeInsertRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeInsertRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeInsertRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action insert +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeInsertRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemRangeInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeInsertRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToPostRequestInformation invoke action insert +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeInsertRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemRangeInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeInsertRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeInsertRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeInsertRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeInsertRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_intersection_with_another_range_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_intersection_with_another_range_request_builder.go new file mode 100644 index 00000000000..42abd10cb05 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_intersection_with_another_range_request_builder.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeIntersectionWithAnotherRangeRequestBuilder provides operations to call the intersection method. +type ItemItemsItemWorkbookWorksheetsItemRangeIntersectionWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeIntersectionWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeIntersectionWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemRangeIntersectionWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeIntersectionWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/intersection(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeIntersectionWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeIntersectionWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeIntersectionWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeIntersectionWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function intersection +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeIntersectionWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function intersection +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeIntersectionWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeIntersectionWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeIntersectionWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_last_cell_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_last_cell_request_builder.go new file mode 100644 index 00000000000..e3059dddad0 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_last_cell_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeLastCellRequestBuilder provides operations to call the lastCell method. +type ItemItemsItemWorkbookWorksheetsItemRangeLastCellRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeLastCellRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeLastCellRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeLastCellRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeLastCellRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeLastCellRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeLastCellRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/lastCell()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeLastCellRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeLastCellRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeLastCellRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeLastCellRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastCell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeLastCellRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeLastCellRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastCell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeLastCellRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeLastCellRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeLastCellRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeLastCellRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeLastCellRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_last_column_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_last_column_request_builder.go new file mode 100644 index 00000000000..1546461ad4a --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_last_column_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeLastColumnRequestBuilder provides operations to call the lastColumn method. +type ItemItemsItemWorkbookWorksheetsItemRangeLastColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeLastColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeLastColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeLastColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeLastColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeLastColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeLastColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/lastColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeLastColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeLastColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeLastColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeLastColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeLastColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeLastColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeLastColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeLastColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeLastColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeLastColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_last_row_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_last_row_request_builder.go new file mode 100644 index 00000000000..8ff5e1cc0e0 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_last_row_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeLastRowRequestBuilder provides operations to call the lastRow method. +type ItemItemsItemWorkbookWorksheetsItemRangeLastRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeLastRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeLastRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeLastRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeLastRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeLastRowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeLastRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/lastRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeLastRowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeLastRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeLastRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeLastRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeLastRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeLastRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeLastRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeLastRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeLastRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeLastRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeLastRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_merge_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_range_merge_post_request_body.go new file mode 100644 index 00000000000..aa1edf81f09 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_merge_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemRangeMergePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemRangeMergePostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeMergePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeMergePostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemRangeMergePostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeMergePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemRangeMergePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemRangeMergePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemRangeMergePostRequestBody(), nil +} +// GetAcross gets the across property value. The across property +// returns a *bool when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeMergePostRequestBody) GetAcross()(*bool) { + val, err := m.GetBackingStore().Get("across") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + 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 *ItemItemsItemWorkbookWorksheetsItemRangeMergePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeMergePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeMergePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["across"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetAcross(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemRangeMergePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("across", m.GetAcross()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAcross sets the across property value. The across property +func (m *ItemItemsItemWorkbookWorksheetsItemRangeMergePostRequestBody) SetAcross(value *bool)() { + err := m.GetBackingStore().Set("across", 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 *ItemItemsItemWorkbookWorksheetsItemRangeMergePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemRangeMergePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookWorksheetsItemRangeMergePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAcross()(*bool) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetAcross(value *bool)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_merge_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_merge_request_builder.go new file mode 100644 index 00000000000..4d3f277fadd --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_merge_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeMergeRequestBuilder provides operations to call the merge method. +type ItemItemsItemWorkbookWorksheetsItemRangeMergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeMergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeMergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeMergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeMergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeMergeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeMergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/merge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeMergeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeMergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeMergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeMergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action merge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeMergeRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemRangeMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeMergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action merge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeMergeRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemRangeMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeMergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeMergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeMergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeMergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_request_builder.go index 05b2311ada7..53fb9eadb9b 100644 --- a/drives/item_items_item_workbook_worksheets_item_range_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_range_request_builder.go @@ -18,6 +18,46 @@ type ItemItemsItemWorkbookWorksheetsItemRangeRequestBuilderGetRequestConfigurati // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// BoundingRectWithAnotherRange provides operations to call the boundingRect method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeRequestBuilder) BoundingRectWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemRangeBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeBoundingRectWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// CellWithRowWithColumn provides operations to call the cell method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeRequestBuilder) CellWithRowWithColumn(column *int32, row *int32)(*ItemItemsItemWorkbookWorksheetsItemRangeCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeCellWithRowWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column, row) +} +// Clear provides operations to call the clear method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeRequestBuilder) Clear()(*ItemItemsItemWorkbookWorksheetsItemRangeClearRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeClearRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfter provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeRequestBuilder) ColumnsAfter()(*ItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfterWithCount provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeRequestBuilder) ColumnsAfterWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeColumnsAfterWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnsBefore provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeRequestBuilder) ColumnsBefore()(*ItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsBeforeWithCount provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeRequestBuilder) ColumnsBeforeWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeColumnsBeforeWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnWithColumn provides operations to call the column method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeRequestBuilder) ColumnWithColumn(column *int32)(*ItemItemsItemWorkbookWorksheetsItemRangeColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeColumnWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column) +} // NewItemItemsItemWorkbookWorksheetsItemRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeRequestBuilder and sets the default values. func NewItemItemsItemWorkbookWorksheetsItemRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeRequestBuilder) { m := &ItemItemsItemWorkbookWorksheetsItemRangeRequestBuilder{ @@ -31,6 +71,26 @@ func NewItemItemsItemWorkbookWorksheetsItemRangeRequestBuilder(rawUrl string, re urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookWorksheetsItemRangeRequestBuilderInternal(urlParams, requestAdapter) } +// DeletePath provides operations to call the delete method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeRequestBuilder) DeletePath()(*ItemItemsItemWorkbookWorksheetsItemRangeDeleteRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireColumn provides operations to call the entireColumn method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeRequestBuilder) EntireColumn()(*ItemItemsItemWorkbookWorksheetsItemRangeEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeEntireColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireRow provides operations to call the entireRow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeRequestBuilder) EntireRow()(*ItemItemsItemWorkbookWorksheetsItemRangeEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeEntireRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Format provides operations to manage the format property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeRequestBuilder) Format()(*ItemItemsItemWorkbookWorksheetsItemRangeFormatRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Get invoke function range // returns a WorkbookRangeable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -51,6 +111,76 @@ func (m *ItemItemsItemWorkbookWorksheetsItemRangeRequestBuilder) Get(ctx context } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil } +// Insert provides operations to call the insert method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeRequestBuilder) Insert()(*ItemItemsItemWorkbookWorksheetsItemRangeInsertRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeInsertRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// IntersectionWithAnotherRange provides operations to call the intersection method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeRequestBuilder) IntersectionWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemRangeIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeIntersectionWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// LastCell provides operations to call the lastCell method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeRequestBuilder) LastCell()(*ItemItemsItemWorkbookWorksheetsItemRangeLastCellRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeLastCellRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastColumn provides operations to call the lastColumn method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeRequestBuilder) LastColumn()(*ItemItemsItemWorkbookWorksheetsItemRangeLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeLastColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastRow provides operations to call the lastRow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeRequestBuilder) LastRow()(*ItemItemsItemWorkbookWorksheetsItemRangeLastRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeLastRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Merge provides operations to call the merge method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeRequestBuilder) Merge()(*ItemItemsItemWorkbookWorksheetsItemRangeMergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeMergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// OffsetRangeWithRowOffsetWithColumnOffset provides operations to call the offsetRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeRequestBuilder) OffsetRangeWithRowOffsetWithColumnOffset(columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookWorksheetsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, columnOffset, rowOffset) +} +// ResizedRangeWithDeltaRowsWithDeltaColumns provides operations to call the resizedRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeRequestBuilder) ResizedRangeWithDeltaRowsWithDeltaColumns(deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookWorksheetsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, deltaColumns, deltaRows) +} +// RowsAbove provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeRequestBuilder) RowsAbove()(*ItemItemsItemWorkbookWorksheetsItemRangeRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeRowsAboveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsAboveWithCount provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeRequestBuilder) RowsAboveWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemRangeRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeRowsAboveWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowsBelow provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeRequestBuilder) RowsBelow()(*ItemItemsItemWorkbookWorksheetsItemRangeRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeRowsBelowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsBelowWithCount provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeRequestBuilder) RowsBelowWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemRangeRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeRowsBelowWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowWithRow provides operations to call the row method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeRequestBuilder) RowWithRow(row *int32)(*ItemItemsItemWorkbookWorksheetsItemRangeRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeRowWithRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, row) +} +// Sort provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeRequestBuilder) Sort()(*ItemItemsItemWorkbookWorksheetsItemRangeSortRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeSortRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToGetRequestInformation invoke function range // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { @@ -62,8 +192,33 @@ func (m *ItemItemsItemWorkbookWorksheetsItemRangeRequestBuilder) ToGetRequestInf requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } +// Unmerge provides operations to call the unmerge method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeRequestBuilder) Unmerge()(*ItemItemsItemWorkbookWorksheetsItemRangeUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeUnmergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// UsedRange provides operations to call the usedRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeUsedRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeRequestBuilder) UsedRange()(*ItemItemsItemWorkbookWorksheetsItemRangeUsedRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeUsedRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// UsedRangeWithValuesOnly provides operations to call the usedRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeUsedRangeWithValuesOnlyRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeRequestBuilder) UsedRangeWithValuesOnly(valuesOnly *bool)(*ItemItemsItemWorkbookWorksheetsItemRangeUsedRangeWithValuesOnlyRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeUsedRangeWithValuesOnlyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, valuesOnly) +} +// VisibleView provides operations to call the visibleView method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeRequestBuilder) VisibleView()(*ItemItemsItemWorkbookWorksheetsItemRangeVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeVisibleViewRequestBuilderInternal(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 *ItemItemsItemWorkbookWorksheetsItemRangeRequestBuilder when successful func (m *ItemItemsItemWorkbookWorksheetsItemRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeRequestBuilder) { return NewItemItemsItemWorkbookWorksheetsItemRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); } +// Worksheet provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeRequestBuilder) Worksheet()(*ItemItemsItemWorkbookWorksheetsItemRangeWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWorksheetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_row_with_row_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_row_with_row_request_builder.go new file mode 100644 index 00000000000..26833777b25 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_row_with_row_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeRowWithRowRequestBuilder provides operations to call the row method. +type ItemItemsItemWorkbookWorksheetsItemRangeRowWithRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeRowWithRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeRowWithRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeRowWithRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeRowWithRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, row *int32)(*ItemItemsItemWorkbookWorksheetsItemRangeRowWithRowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeRowWithRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/row(row={row})", pathParameters), + } + if row != nil { + m.BaseRequestBuilder.PathParameters["row"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*row), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeRowWithRowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeRowWithRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeRowWithRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeRowWithRowRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function row +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeRowWithRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeRowWithRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function row +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeRowWithRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeRowWithRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeRowWithRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeRowWithRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_rows_above_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_rows_above_request_builder.go new file mode 100644 index 00000000000..de70f67adef --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_rows_above_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeRowsAboveRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookWorksheetsItemRangeRowsAboveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeRowsAboveRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeRowsAboveRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeRowsAboveRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeRowsAboveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeRowsAboveRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeRowsAboveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/rowsAbove()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeRowsAboveRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeRowsAboveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeRowsAboveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeRowsAboveRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeRowsAboveRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeRowsAboveRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeRowsAboveRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeRowsAboveRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeRowsAboveRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeRowsAboveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_rows_above_with_count_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_rows_above_with_count_request_builder.go new file mode 100644 index 00000000000..3e2a6d207da --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_rows_above_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeRowsAboveWithCountRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookWorksheetsItemRangeRowsAboveWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeRowsAboveWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeRowsAboveWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemRangeRowsAboveWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeRowsAboveWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/rowsAbove(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeRowsAboveWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeRowsAboveWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeRowsAboveWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeRowsAboveWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeRowsAboveWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeRowsAboveWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeRowsAboveWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeRowsAboveWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_rows_below_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_rows_below_request_builder.go new file mode 100644 index 00000000000..218cb5d9dac --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_rows_below_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeRowsBelowRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookWorksheetsItemRangeRowsBelowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeRowsBelowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeRowsBelowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeRowsBelowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeRowsBelowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeRowsBelowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeRowsBelowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/rowsBelow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeRowsBelowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeRowsBelowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeRowsBelowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeRowsBelowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeRowsBelowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeRowsBelowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeRowsBelowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeRowsBelowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeRowsBelowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeRowsBelowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_rows_below_with_count_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_rows_below_with_count_request_builder.go new file mode 100644 index 00000000000..a2ef4502bef --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_rows_below_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeRowsBelowWithCountRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookWorksheetsItemRangeRowsBelowWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeRowsBelowWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeRowsBelowWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemRangeRowsBelowWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeRowsBelowWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/rowsBelow(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeRowsBelowWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeRowsBelowWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeRowsBelowWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeRowsBelowWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeRowsBelowWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeRowsBelowWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeRowsBelowWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeRowsBelowWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_sort_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_sort_request_builder.go new file mode 100644 index 00000000000..6f2cea5cee4 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_sort_request_builder.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeSortRequestBuilder provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookWorksheetsItemRangeSortRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeSortRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeSortRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookWorksheetsItemRangeSortRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookWorksheetsItemRangeSortRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemRangeSortRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeSortRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemRangeSortRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookWorksheetsItemRangeSortRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeSortRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeSortRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeSortRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeSortRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeSortRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/sort{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeSortRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeSortRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeSortRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeSortRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property sort for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeSortRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeSortRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeSortRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeSortRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// Patch update the navigation property sort in drives +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeSortRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeSortRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// ToDeleteRequestInformation delete navigation property sort for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeSortRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeSortRequestBuilderDeleteRequestConfiguration)(*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 worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeSortRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeSortRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeSortRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeSortRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeSortRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeSortRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeSortRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_unmerge_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_unmerge_request_builder.go new file mode 100644 index 00000000000..7ccb86ccbd2 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_unmerge_request_builder.go @@ -0,0 +1,64 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeUnmergeRequestBuilder provides operations to call the unmerge method. +type ItemItemsItemWorkbookWorksheetsItemRangeUnmergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeUnmergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeUnmergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeUnmergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeUnmergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeUnmergeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeUnmergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/unmerge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeUnmergeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeUnmergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeUnmergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeUnmergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unmerge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeUnmergeRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeUnmergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unmerge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeUnmergeRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeUnmergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemItemsItemWorkbookWorksheetsItemRangeUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeUnmergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeUnmergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_used_range_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_used_range_request_builder.go new file mode 100644 index 00000000000..3bc23db38a8 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_used_range_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeUsedRangeRequestBuilder provides operations to call the usedRange method. +type ItemItemsItemWorkbookWorksheetsItemRangeUsedRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeUsedRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeUsedRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeUsedRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeUsedRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeUsedRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeUsedRangeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeUsedRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/usedRange()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeUsedRangeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeUsedRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeUsedRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeUsedRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeUsedRangeRequestBuilderInternal(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 *ItemItemsItemWorkbookWorksheetsItemRangeUsedRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeUsedRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function usedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeUsedRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeUsedRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeUsedRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeUsedRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeUsedRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeUsedRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_used_range_with_values_only_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_used_range_with_values_only_request_builder.go new file mode 100644 index 00000000000..0399eb4e89a --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_used_range_with_values_only_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeUsedRangeWithValuesOnlyRequestBuilder provides operations to call the usedRange method. +type ItemItemsItemWorkbookWorksheetsItemRangeUsedRangeWithValuesOnlyRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeUsedRangeWithValuesOnlyRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeUsedRangeWithValuesOnlyRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeUsedRangeWithValuesOnlyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, valuesOnly *bool)(*ItemItemsItemWorkbookWorksheetsItemRangeUsedRangeWithValuesOnlyRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeUsedRangeWithValuesOnlyRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/usedRange(valuesOnly={valuesOnly})", pathParameters), + } + if valuesOnly != nil { + m.BaseRequestBuilder.PathParameters["valuesOnly"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatBool(*valuesOnly) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeUsedRangeWithValuesOnlyRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeUsedRangeWithValuesOnlyRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeUsedRangeWithValuesOnlyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeUsedRangeWithValuesOnlyRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeUsedRangeWithValuesOnlyRequestBuilderInternal(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 *ItemItemsItemWorkbookWorksheetsItemRangeUsedRangeWithValuesOnlyRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function usedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeUsedRangeWithValuesOnlyRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeUsedRangeWithValuesOnlyRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeUsedRangeWithValuesOnlyRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeUsedRangeWithValuesOnlyRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeUsedRangeWithValuesOnlyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_visible_view_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_visible_view_request_builder.go new file mode 100644 index 00000000000..cb6aaf35828 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_visible_view_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeVisibleViewRequestBuilder provides operations to call the visibleView method. +type ItemItemsItemWorkbookWorksheetsItemRangeVisibleViewRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeVisibleViewRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeVisibleViewRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeVisibleViewRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeVisibleViewRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeVisibleViewRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeVisibleViewRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/visibleView()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeVisibleViewRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeVisibleViewRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeVisibleViewRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeVisibleViewRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function visibleView +// returns a WorkbookRangeViewable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeVisibleViewRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeVisibleViewRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeViewFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable), nil +} +// ToGetRequestInformation invoke function visibleView +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeVisibleViewRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeVisibleViewRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeVisibleViewRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeVisibleViewRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_with_address_clear_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_range_with_address_clear_post_request_body.go new file mode 100644 index 00000000000..0167c789a21 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_with_address_clear_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressClearPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressClearPostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressClearPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressClearPostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressClearPostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeWithAddressClearPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemRangeWithAddressClearPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemRangeWithAddressClearPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressClearPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressClearPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetApplyTo gets the applyTo property value. The applyTo property +// returns a *string when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressClearPostRequestBody) GetApplyTo()(*string) { + val, err := m.GetBackingStore().Get("applyTo") + 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 *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressClearPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressClearPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["applyTo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetApplyTo(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressClearPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("applyTo", m.GetApplyTo()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressClearPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetApplyTo sets the applyTo property value. The applyTo property +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressClearPostRequestBody) SetApplyTo(value *string)() { + err := m.GetBackingStore().Set("applyTo", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressClearPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressClearPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetApplyTo()(*string) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetApplyTo(value *string)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_with_address_clear_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_with_address_clear_request_builder.go new file mode 100644 index 00000000000..7567f8fd985 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_with_address_clear_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressClearRequestBuilder provides operations to call the clear method. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressClearRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressClearRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressClearRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressClearRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressClearRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressClearRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeWithAddressClearRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/clear", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressClearRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressClearRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressClearRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressClearRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action clear +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressClearRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemRangeWithAddressClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressClearRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action clear +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressClearRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemRangeWithAddressClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressClearRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressClearRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressClearRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressClearRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_with_address_column_with_column_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_with_address_column_with_column_request_builder.go new file mode 100644 index 00000000000..8dc6a73585c --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_with_address_column_with_column_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnWithColumnRequestBuilder provides operations to call the column method. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/column(column={column})", pathParameters), + } + if column != nil { + m.BaseRequestBuilder.PathParameters["column"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*column), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function column +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function column +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_with_address_columns_after_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_with_address_columns_after_request_builder.go new file mode 100644 index 00000000000..e6f8d97b30a --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_with_address_columns_after_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/columnsAfter()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_with_address_columns_after_with_count_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_with_address_columns_after_with_count_request_builder.go new file mode 100644 index 00000000000..4c74edc9a3a --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_with_address_columns_after_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterWithCountRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/columnsAfter(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_with_address_columns_before_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_with_address_columns_before_request_builder.go new file mode 100644 index 00000000000..e735e9706aa --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_with_address_columns_before_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/columnsBefore()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_with_address_delete_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_range_with_address_delete_post_request_body.go new file mode 100644 index 00000000000..b1e74c6a786 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_with_address_delete_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressDeletePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressDeletePostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressDeletePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressDeletePostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressDeletePostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeWithAddressDeletePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemRangeWithAddressDeletePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemRangeWithAddressDeletePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressDeletePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressDeletePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressDeletePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressDeletePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressDeletePostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressDeletePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressDeletePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressDeletePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressDeletePostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressDeletePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_with_address_delete_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_with_address_delete_request_builder.go new file mode 100644 index 00000000000..3bf291d965c --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_with_address_delete_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressDeleteRequestBuilder provides operations to call the delete method. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressDeleteRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressDeleteRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeWithAddressDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/delete", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressDeleteRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action delete +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressDeleteRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemRangeWithAddressDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action delete +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemRangeWithAddressDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressDeleteRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_with_address_entire_column_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_with_address_entire_column_request_builder.go new file mode 100644 index 00000000000..48c6e7f7517 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_with_address_entire_column_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireColumnRequestBuilder provides operations to call the entireColumn method. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/entireColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_with_address_entire_row_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_with_address_entire_row_request_builder.go new file mode 100644 index 00000000000..bfbba1b5606 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_with_address_entire_row_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireRowRequestBuilder provides operations to call the entireRow method. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireRowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/entireRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireRowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_with_address_format_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_with_address_format_request_builder.go new file mode 100644 index 00000000000..b29c7d9a51a --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_with_address_format_request_builder.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressFormatRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressFormatRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressFormatRequestBuilderGetQueryParameters returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressFormatRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressFormatRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressFormatRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressFormatRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressFormatRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressFormatRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeWithAddressFormatRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/format{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressFormatRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressFormatRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressFormatRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property format for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressFormatRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressFormatRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// Patch update the navigation property format in drives +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressFormatRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressFormatRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// ToDeleteRequestInformation delete navigation property format for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressFormatRequestBuilderDeleteRequestConfiguration)(*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 format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressFormatRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressFormatRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressFormatRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_with_address_insert_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_range_with_address_insert_post_request_body.go new file mode 100644 index 00000000000..1eed5f8f375 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_with_address_insert_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressInsertPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressInsertPostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressInsertPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressInsertPostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressInsertPostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeWithAddressInsertPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemRangeWithAddressInsertPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemRangeWithAddressInsertPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressInsertPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressInsertPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressInsertPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressInsertPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressInsertPostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressInsertPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressInsertPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressInsertPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressInsertPostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressInsertPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_with_address_insert_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_with_address_insert_request_builder.go new file mode 100644 index 00000000000..377df4aa59c --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_with_address_insert_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressInsertRequestBuilder provides operations to call the insert method. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressInsertRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressInsertRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressInsertRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressInsertRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressInsertRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressInsertRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeWithAddressInsertRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/insert", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressInsertRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressInsertRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressInsertRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressInsertRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action insert +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressInsertRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemRangeWithAddressInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressInsertRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToPostRequestInformation invoke action insert +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressInsertRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemRangeWithAddressInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressInsertRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressInsertRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressInsertRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressInsertRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_with_address_last_cell_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_with_address_last_cell_request_builder.go new file mode 100644 index 00000000000..49f080f5c44 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_with_address_last_cell_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastCellRequestBuilder provides operations to call the lastCell method. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastCellRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastCellRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastCellRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastCellRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastCellRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastCellRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastCellRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/lastCell()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastCellRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastCellRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastCellRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastCellRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastCell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastCellRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastCellRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastCell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastCellRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastCellRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastCellRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastCellRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastCellRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_with_address_last_column_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_with_address_last_column_request_builder.go new file mode 100644 index 00000000000..d09e3b50a19 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_with_address_last_column_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastColumnRequestBuilder provides operations to call the lastColumn method. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/lastColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_with_address_last_row_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_with_address_last_row_request_builder.go new file mode 100644 index 00000000000..57926cd0c6d --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_with_address_last_row_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastRowRequestBuilder provides operations to call the lastRow method. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastRowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/lastRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastRowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_with_address_merge_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_range_with_address_merge_post_request_body.go new file mode 100644 index 00000000000..b6a9d7e015a --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_with_address_merge_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergePostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergePostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergePostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergePostRequestBody(), nil +} +// GetAcross gets the across property value. The across property +// returns a *bool when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergePostRequestBody) GetAcross()(*bool) { + val, err := m.GetBackingStore().Get("across") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + 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 *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["across"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetAcross(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("across", m.GetAcross()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAcross sets the across property value. The across property +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergePostRequestBody) SetAcross(value *bool)() { + err := m.GetBackingStore().Set("across", 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 *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAcross()(*bool) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetAcross(value *bool)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_with_address_merge_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_with_address_merge_request_builder.go new file mode 100644 index 00000000000..17b6cbd45b7 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_with_address_merge_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergeRequestBuilder provides operations to call the merge method. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/merge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action merge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergeRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action merge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergeRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_with_address_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_with_address_request_builder.go index 2d8143fd3cf..f712214617d 100644 --- a/drives/item_items_item_workbook_worksheets_item_range_with_address_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_range_with_address_request_builder.go @@ -18,6 +18,46 @@ type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilderGetRequest // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// BoundingRectWithAnotherRange provides operations to call the boundingRect method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder) BoundingRectWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressBoundingRectWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// CellWithRowWithColumn provides operations to call the cell method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder) CellWithRowWithColumn(column *int32, row *int32)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressCellWithRowWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column, row) +} +// Clear provides operations to call the clear method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder) Clear()(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressClearRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressClearRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfter provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder) ColumnsAfter()(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfterWithCount provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder) ColumnsAfterWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsAfterWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnsBefore provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder) ColumnsBefore()(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsBeforeWithCount provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder) ColumnsBeforeWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnsBeforeWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnWithColumn provides operations to call the column method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder) ColumnWithColumn(column *int32)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressColumnWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column) +} // NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder and sets the default values. func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, address *string)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder) { m := &ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder{ @@ -34,6 +74,26 @@ func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder(rawUrl urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilderInternal(urlParams, requestAdapter, nil) } +// DeletePath provides operations to call the delete method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder) DeletePath()(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressDeleteRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireColumn provides operations to call the entireColumn method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder) EntireColumn()(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireRow provides operations to call the entireRow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder) EntireRow()(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressEntireRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Format provides operations to manage the format property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder) Format()(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressFormatRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Get invoke function range // returns a WorkbookRangeable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -54,6 +114,76 @@ func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder) Get( } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil } +// Insert provides operations to call the insert method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder) Insert()(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressInsertRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressInsertRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// IntersectionWithAnotherRange provides operations to call the intersection method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder) IntersectionWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressIntersectionWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// LastCell provides operations to call the lastCell method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder) LastCell()(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastCellRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastCellRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastColumn provides operations to call the lastColumn method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder) LastColumn()(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastRow provides operations to call the lastRow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder) LastRow()(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressLastRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Merge provides operations to call the merge method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder) Merge()(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressMergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// OffsetRangeWithRowOffsetWithColumnOffset provides operations to call the offsetRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder) OffsetRangeWithRowOffsetWithColumnOffset(columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, columnOffset, rowOffset) +} +// ResizedRangeWithDeltaRowsWithDeltaColumns provides operations to call the resizedRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder) ResizedRangeWithDeltaRowsWithDeltaColumns(deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, deltaColumns, deltaRows) +} +// RowsAbove provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder) RowsAbove()(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsAboveWithCount provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder) RowsAboveWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowsBelow provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder) RowsBelow()(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsBelowWithCount provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder) RowsBelowWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowWithRow provides operations to call the row method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder) RowWithRow(row *int32)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowWithRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, row) +} +// Sort provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder) Sort()(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressSortRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressSortRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToGetRequestInformation invoke function range // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { @@ -65,8 +195,33 @@ func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder) ToGe requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } +// Unmerge provides operations to call the unmerge method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder) Unmerge()(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressUnmergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// UsedRange provides operations to call the usedRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder) UsedRange()(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// UsedRangeWithValuesOnly provides operations to call the usedRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeWithValuesOnlyRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder) UsedRangeWithValuesOnly(valuesOnly *bool)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeWithValuesOnlyRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeWithValuesOnlyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, valuesOnly) +} +// VisibleView provides operations to call the visibleView method. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder) VisibleView()(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressVisibleViewRequestBuilderInternal(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 *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder when successful func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder) { return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); } +// Worksheet provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRequestBuilder) Worksheet()(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressWorksheetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_with_address_row_with_row_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_with_address_row_with_row_request_builder.go new file mode 100644 index 00000000000..5960be575af --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_with_address_row_with_row_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowWithRowRequestBuilder provides operations to call the row method. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowWithRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowWithRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowWithRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowWithRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowWithRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, row *int32)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowWithRowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowWithRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/row(row={row})", pathParameters), + } + if row != nil { + m.BaseRequestBuilder.PathParameters["row"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*row), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowWithRowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowWithRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowWithRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowWithRowRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function row +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowWithRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowWithRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function row +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowWithRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowWithRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowWithRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowWithRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_with_address_rows_above_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_with_address_rows_above_request_builder.go new file mode 100644 index 00000000000..50a116d81e4 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_with_address_rows_above_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/rowsAbove()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_with_address_rows_above_with_count_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_with_address_rows_above_with_count_request_builder.go new file mode 100644 index 00000000000..80d2bfa3415 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_with_address_rows_above_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveWithCountRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/rowsAbove(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsAboveWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_with_address_rows_below_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_with_address_rows_below_request_builder.go new file mode 100644 index 00000000000..8c3a3d45dfd --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_with_address_rows_below_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/rowsBelow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_with_address_rows_below_with_count_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_with_address_rows_below_with_count_request_builder.go new file mode 100644 index 00000000000..4b4c89b1990 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_with_address_rows_below_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowWithCountRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/rowsBelow(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressRowsBelowWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_with_address_sort_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_with_address_sort_request_builder.go new file mode 100644 index 00000000000..4317ce26f25 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_with_address_sort_request_builder.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressSortRequestBuilder provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressSortRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressSortRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressSortRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressSortRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressSortRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressSortRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressSortRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressSortRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressSortRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressSortRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressSortRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressSortRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressSortRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeWithAddressSortRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/sort{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressSortRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressSortRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressSortRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressSortRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property sort for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressSortRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressSortRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressSortRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressSortRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// Patch update the navigation property sort in drives +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressSortRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressSortRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// ToDeleteRequestInformation delete navigation property sort for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressSortRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressSortRequestBuilderDeleteRequestConfiguration)(*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 worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressSortRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressSortRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressSortRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressSortRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressSortRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressSortRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressSortRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_with_address_unmerge_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_with_address_unmerge_request_builder.go new file mode 100644 index 00000000000..21994e45f30 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_with_address_unmerge_request_builder.go @@ -0,0 +1,64 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUnmergeRequestBuilder provides operations to call the unmerge method. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUnmergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUnmergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUnmergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressUnmergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressUnmergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUnmergeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUnmergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/unmerge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressUnmergeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressUnmergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUnmergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressUnmergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unmerge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUnmergeRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUnmergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unmerge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUnmergeRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUnmergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUnmergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressUnmergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_with_address_used_range_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_with_address_used_range_request_builder.go new file mode 100644 index 00000000000..8010164392f --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_with_address_used_range_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeRequestBuilder provides operations to call the usedRange method. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/usedRange()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeRequestBuilderInternal(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 *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function usedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressUsedRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_with_address_visible_view_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_with_address_visible_view_request_builder.go new file mode 100644 index 00000000000..06ad205f351 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_with_address_visible_view_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressVisibleViewRequestBuilder provides operations to call the visibleView method. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressVisibleViewRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressVisibleViewRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressVisibleViewRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressVisibleViewRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressVisibleViewRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressVisibleViewRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeWithAddressVisibleViewRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/visibleView()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressVisibleViewRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressVisibleViewRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressVisibleViewRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressVisibleViewRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function visibleView +// returns a WorkbookRangeViewable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressVisibleViewRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressVisibleViewRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeViewFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable), nil +} +// ToGetRequestInformation invoke function visibleView +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressVisibleViewRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressVisibleViewRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressVisibleViewRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressVisibleViewRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_with_address_worksheet_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_with_address_worksheet_request_builder.go new file mode 100644 index 00000000000..2d116bf152a --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_with_address_worksheet_request_builder.go @@ -0,0 +1,81 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressWorksheetRequestBuilder provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressWorksheetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressWorksheetRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressWorksheetRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemRangeWithAddressWorksheetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeWithAddressWorksheetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressWorksheetRequestBuilderGetQueryParameters +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressWorksheetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressWorksheetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressWorksheetRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeWithAddressWorksheetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range(address='{address}')/worksheet{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressWorksheetRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWithAddressWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressWorksheetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressWorksheetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressWorksheetRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookWorksheetable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressWorksheetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressWorksheetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookWorksheetFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable), nil +} +// ToGetRequestInformation the worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressWorksheetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressWorksheetRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWithAddressWorksheetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeWithAddressWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWithAddressWorksheetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_range_worksheet_request_builder.go b/drives/item_items_item_workbook_worksheets_item_range_worksheet_request_builder.go new file mode 100644 index 00000000000..dd796b7313f --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_range_worksheet_request_builder.go @@ -0,0 +1,81 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemRangeWorksheetRequestBuilder provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookWorksheetsItemRangeWorksheetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemRangeWorksheetRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookWorksheetsItemRangeWorksheetRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemRangeWorksheetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemRangeWorksheetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemRangeWorksheetRequestBuilderGetQueryParameters +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWorksheetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWorksheetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWorksheetRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemRangeWorksheetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/range()/worksheet{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemRangeWorksheetRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemRangeWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemRangeWorksheetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemRangeWorksheetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemRangeWorksheetRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookWorksheetable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWorksheetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWorksheetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookWorksheetFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable), nil +} +// ToGetRequestInformation the worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWorksheetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemRangeWorksheetRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 *ItemItemsItemWorkbookWorksheetsItemRangeWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemRangeWorksheetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemRangeWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemRangeWorksheetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} 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 8e37047a043..b4928b95cc4 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 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 thrown. +// 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/tablecollection-add?view=graph-rest-beta +// [Find more info here]: https://learn.microsoft.com/graph/api/workbook-post-tables?view=graph-rest-beta func (m *ItemItemsItemWorkbookWorksheetsItemTablesAddRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesAddPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesAddRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -54,7 +54,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesAddRequestBuilder) Post(ctx co } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableable), nil } -// 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 thrown. +// ToPostRequestInformation use this API to create a new Table. // 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/drives/item_items_item_workbook_worksheets_item_tables_item_at_with_index_columns_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_at_with_index_columns_request_builder.go index 44d3e48f5bd..5ddd71b297f 100644 --- a/drives/item_items_item_workbook_worksheets_item_tables_item_at_with_index_columns_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_at_with_index_columns_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilderGetQueryParameters represents a collection of all the columns in the table. Read-only. +// ItemItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilderGetQueryParameters the list of all the columns in the table. Read-only. type ItemItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -59,7 +59,7 @@ func NewItemItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBu urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilderInternal(urlParams, requestAdapter) } -// Get represents a collection of all the columns in the table. Read-only. +// Get the list 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 *ItemItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableColumnCollectionResponseable, error) { @@ -99,7 +99,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestB } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableColumnable), nil } -// ToGetRequestInformation represents a collection of all the columns in the table. Read-only. +// ToGetRequestInformation the list of all the columns in the table. Read-only. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexColumnsRequestBuilderGetRequestConfiguration)(*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_item_at_with_index_rows_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_at_with_index_rows_request_builder.go index 31c408b34f4..c00286dfe0f 100644 --- a/drives/item_items_item_workbook_worksheets_item_tables_item_at_with_index_rows_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_at_with_index_rows_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilderGetQueryParameters represents a collection of all the rows in the table. Read-only. +// ItemItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilderGetQueryParameters the list of all the rows in the table. Read-only. type ItemItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -59,7 +59,7 @@ func NewItemItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuild urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilderInternal(urlParams, requestAdapter) } -// Get represents a collection of all the rows in the table. Read-only. +// Get the list 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 *ItemItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableRowCollectionResponseable, error) { @@ -99,7 +99,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuil } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableRowable), nil } -// ToGetRequestInformation represents a collection of all the rows in the table. Read-only. +// ToGetRequestInformation the list of all the rows in the table. Read-only. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexRowsRequestBuilderGetRequestConfiguration)(*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_item_at_with_index_sort_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_at_with_index_sort_request_builder.go index bc44a0dbcdc..80cae74a4a9 100644 --- a/drives/item_items_item_workbook_worksheets_item_tables_item_at_with_index_sort_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_at_with_index_sort_request_builder.go @@ -18,7 +18,7 @@ type ItemItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilderD // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilderGetQueryParameters represents the sorting for the table. Read-only. +// ItemItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilderGetQueryParameters the sorting for the table. Read-only. type ItemItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuil } return nil } -// Get represents the sorting for the table. Read-only. +// Get 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 *ItemItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableSortable, error) { @@ -121,7 +121,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuil requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation represents the sorting for the table. Read-only. +// ToGetRequestInformation the sorting for the table. Read-only. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemAtWithIndexSortRequestBuilderGetRequestConfiguration)(*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_item_columns_item_data_body_range_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_data_body_range_request_builder.go index 0c0005585d9..5751f13bbf6 100644 --- a/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_data_body_range_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_data_body_range_request_builder.go @@ -18,6 +18,46 @@ type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeReques // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// BoundingRectWithAnotherRange provides operations to call the boundingRect method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder) BoundingRectWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// CellWithRowWithColumn provides operations to call the cell method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder) CellWithRowWithColumn(column *int32, row *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeCellWithRowWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column, row) +} +// Clear provides operations to call the clear method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder) Clear()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeClearRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeClearRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfter provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder) ColumnsAfter()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfterWithCount provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder) ColumnsAfterWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsAfterWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnsBefore provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder) ColumnsBefore()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsBeforeWithCount provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder) ColumnsBeforeWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnsBeforeWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnWithColumn provides operations to call the column method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder) ColumnWithColumn(column *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeColumnWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column) +} // NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder and sets the default values. func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder) { m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder{ @@ -31,6 +71,26 @@ func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeReq urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilderInternal(urlParams, requestAdapter) } +// DeletePath provides operations to call the delete method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder) DeletePath()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeDeleteRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireColumn provides operations to call the entireColumn method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder) EntireColumn()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireRow provides operations to call the entireRow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder) EntireRow()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeEntireRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Format provides operations to manage the format property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder) Format()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeFormatRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.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 @@ -54,6 +114,76 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRe } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil } +// Insert provides operations to call the insert method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder) Insert()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeInsertRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeInsertRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// IntersectionWithAnotherRange provides operations to call the intersection method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder) IntersectionWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// LastCell provides operations to call the lastCell method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder) LastCell()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastCellRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastCellRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastColumn provides operations to call the lastColumn method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder) LastColumn()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastRow provides operations to call the lastRow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder) LastRow()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeLastRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Merge provides operations to call the merge method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder) Merge()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeMergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// OffsetRangeWithRowOffsetWithColumnOffset provides operations to call the offsetRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder) OffsetRangeWithRowOffsetWithColumnOffset(columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, columnOffset, rowOffset) +} +// ResizedRangeWithDeltaRowsWithDeltaColumns provides operations to call the resizedRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder) ResizedRangeWithDeltaRowsWithDeltaColumns(deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, deltaColumns, deltaRows) +} +// RowsAbove provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder) RowsAbove()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsAboveWithCount provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder) RowsAboveWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsAboveWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowsBelow provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder) RowsBelow()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsBelowWithCount provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder) RowsBelowWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowsBelowWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowWithRow provides operations to call the row method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder) RowWithRow(row *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRowWithRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, row) +} +// Sort provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder) Sort()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeSortRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeSortRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToGetRequestInformation gets the range object associated with the data body of the column. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { @@ -65,8 +195,33 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRe requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } +// Unmerge provides operations to call the unmerge method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder) Unmerge()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUnmergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// UsedRange provides operations to call the usedRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder) UsedRange()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// UsedRangeWithValuesOnly provides operations to call the usedRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder) UsedRangeWithValuesOnly(valuesOnly *bool)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, valuesOnly) +} +// VisibleView provides operations to call the visibleView method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder) VisibleView()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeVisibleViewRequestBuilderInternal(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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder when successful func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder) { return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); } +// Worksheet provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeRequestBuilder) Worksheet()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemDataBodyRangeWorksheetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_filter_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_filter_request_builder.go index fad73661f46..6d1e2164da6 100644 --- a/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_filter_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_filter_request_builder.go @@ -18,7 +18,7 @@ type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilde // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilderGetQueryParameters retrieve the filter applied to the column. Read-only. +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilderGetQueryParameters the filter applied to the column. Read-only. type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -130,7 +130,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBu } return nil } -// Get retrieve the filter applied to the column. Read-only. +// Get 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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookFilterable, error) { @@ -181,7 +181,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBu requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation retrieve the filter applied to the column. Read-only. +// ToGetRequestInformation the filter applied to the column. Read-only. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemFilterRequestBuilderGetRequestConfiguration)(*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_item_columns_item_header_row_range_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_header_row_range_request_builder.go index c7a68cc83cb..ece867774ee 100644 --- a/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_header_row_range_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_header_row_range_request_builder.go @@ -18,6 +18,46 @@ type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeReque // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// BoundingRectWithAnotherRange provides operations to call the boundingRect method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder) BoundingRectWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// CellWithRowWithColumn provides operations to call the cell method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder) CellWithRowWithColumn(column *int32, row *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeCellWithRowWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column, row) +} +// Clear provides operations to call the clear method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder) Clear()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeClearRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeClearRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfter provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder) ColumnsAfter()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfterWithCount provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder) ColumnsAfterWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsAfterWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnsBefore provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder) ColumnsBefore()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsBeforeWithCount provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder) ColumnsBeforeWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnsBeforeWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnWithColumn provides operations to call the column method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder) ColumnWithColumn(column *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeColumnWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column) +} // NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder and sets the default values. func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder) { m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder{ @@ -31,6 +71,26 @@ func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRe urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilderInternal(urlParams, requestAdapter) } +// DeletePath provides operations to call the delete method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder) DeletePath()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireColumn provides operations to call the entireColumn method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder) EntireColumn()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireRow provides operations to call the entireRow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder) EntireRow()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeEntireRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Format provides operations to manage the format property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder) Format()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeFormatRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.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 @@ -54,6 +114,76 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeR } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil } +// Insert provides operations to call the insert method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder) Insert()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeInsertRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeInsertRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// IntersectionWithAnotherRange provides operations to call the intersection method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder) IntersectionWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// LastCell provides operations to call the lastCell method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder) LastCell()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastCellRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastColumn provides operations to call the lastColumn method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder) LastColumn()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastRow provides operations to call the lastRow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder) LastRow()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeLastRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Merge provides operations to call the merge method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder) Merge()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeMergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// OffsetRangeWithRowOffsetWithColumnOffset provides operations to call the offsetRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder) OffsetRangeWithRowOffsetWithColumnOffset(columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, columnOffset, rowOffset) +} +// ResizedRangeWithDeltaRowsWithDeltaColumns provides operations to call the resizedRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder) ResizedRangeWithDeltaRowsWithDeltaColumns(deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, deltaColumns, deltaRows) +} +// RowsAbove provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder) RowsAbove()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsAboveWithCount provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder) RowsAboveWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsAboveWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowsBelow provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder) RowsBelow()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsBelowWithCount provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder) RowsBelowWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowsBelowWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowWithRow provides operations to call the row method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder) RowWithRow(row *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRowWithRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, row) +} +// Sort provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder) Sort()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeSortRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeSortRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToGetRequestInformation gets the range object associated with the header row of the column. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { @@ -65,8 +195,33 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeR requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } +// Unmerge provides operations to call the unmerge method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder) Unmerge()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUnmergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// UsedRange provides operations to call the usedRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder) UsedRange()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// UsedRangeWithValuesOnly provides operations to call the usedRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder) UsedRangeWithValuesOnly(valuesOnly *bool)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, valuesOnly) +} +// VisibleView provides operations to call the visibleView method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder) VisibleView()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeVisibleViewRequestBuilderInternal(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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder when successful func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder) { return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); } +// Worksheet provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeRequestBuilder) Worksheet()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemHeaderRowRangeWorksheetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_clear_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_clear_post_request_body.go new file mode 100644 index 00000000000..f20540d0fc1 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_clear_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeClearPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeClearPostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeClearPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeClearPostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeClearPostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeClearPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeClearPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeClearPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeClearPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeClearPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetApplyTo gets the applyTo property value. The applyTo property +// returns a *string when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeClearPostRequestBody) GetApplyTo()(*string) { + val, err := m.GetBackingStore().Get("applyTo") + 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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeClearPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeClearPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["applyTo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetApplyTo(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeClearPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("applyTo", m.GetApplyTo()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeClearPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetApplyTo sets the applyTo property value. The applyTo property +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeClearPostRequestBody) SetApplyTo(value *string)() { + err := m.GetBackingStore().Set("applyTo", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeClearPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeClearPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetApplyTo()(*string) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetApplyTo(value *string)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_clear_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_clear_request_builder.go new file mode 100644 index 00000000000..e453524b474 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_clear_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeClearRequestBuilder provides operations to call the clear method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeClearRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeClearRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeClearRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeClearRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeClearRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeClearRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeClearRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/clear", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeClearRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeClearRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeClearRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeClearRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action clear +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeClearRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeClearRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action clear +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeClearRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeClearRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeClearRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeClearRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeClearRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_delete_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_delete_post_request_body.go new file mode 100644 index 00000000000..9bcdc647460 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_delete_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeDeletePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeDeletePostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeDeletePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeDeletePostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeDeletePostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeDeletePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeDeletePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeDeletePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeDeletePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeDeletePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeDeletePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeDeletePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeDeletePostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeDeletePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeDeletePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeDeletePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeDeletePostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeDeletePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_delete_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_delete_request_builder.go new file mode 100644 index 00000000000..eb3032ae130 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_delete_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeDeleteRequestBuilder provides operations to call the delete method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeDeleteRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeDeleteRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/delete", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeDeleteRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action delete +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeDeleteRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action delete +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeDeleteRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_entire_row_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_entire_row_request_builder.go new file mode 100644 index 00000000000..69ed7366b07 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_entire_row_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireRowRequestBuilder provides operations to call the entireRow method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireRowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/entireRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireRowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_format_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_format_request_builder.go new file mode 100644 index 00000000000..1a58790887a --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_format_request_builder.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeFormatRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeFormatRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeFormatRequestBuilderGetQueryParameters returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeFormatRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeFormatRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeFormatRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeFormatRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeFormatRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeFormatRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeFormatRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/format{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeFormatRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeFormatRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeFormatRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property format for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeFormatRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeFormatRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// Patch update the navigation property format in drives +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeFormatRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeFormatRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// ToDeleteRequestInformation delete navigation property format for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeFormatRequestBuilderDeleteRequestConfiguration)(*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 format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeFormatRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeFormatRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeFormatRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_insert_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_insert_post_request_body.go new file mode 100644 index 00000000000..43b4e5e94d3 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_insert_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeInsertPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeInsertPostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeInsertPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeInsertPostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeInsertPostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeInsertPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeInsertPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeInsertPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeInsertPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeInsertPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeInsertPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeInsertPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeInsertPostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeInsertPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeInsertPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeInsertPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeInsertPostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeInsertPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_insert_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_insert_request_builder.go new file mode 100644 index 00000000000..03db9af8c09 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_insert_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeInsertRequestBuilder provides operations to call the insert method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeInsertRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeInsertRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeInsertRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeInsertRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeInsertRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeInsertRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeInsertRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/insert", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeInsertRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeInsertRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeInsertRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeInsertRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action insert +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeInsertRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeInsertRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToPostRequestInformation invoke action insert +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeInsertRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeInsertRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeInsertRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeInsertRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeInsertRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_last_cell_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_last_cell_request_builder.go new file mode 100644 index 00000000000..90dd2451201 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_last_cell_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastCellRequestBuilder provides operations to call the lastCell method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastCellRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastCellRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastCellRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastCellRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastCellRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastCellRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastCellRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/lastCell()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastCellRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastCellRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastCellRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastCellRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastCell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastCellRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastCellRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastCell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastCellRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastCellRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastCellRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastCellRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastCellRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_last_column_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_last_column_request_builder.go new file mode 100644 index 00000000000..1255018baa0 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_last_column_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastColumnRequestBuilder provides operations to call the lastColumn method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/lastColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_last_row_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_last_row_request_builder.go new file mode 100644 index 00000000000..1868fa1a7d9 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_last_row_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastRowRequestBuilder provides operations to call the lastRow method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastRowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/lastRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastRowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_merge_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_merge_post_request_body.go new file mode 100644 index 00000000000..e542a681624 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_merge_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergePostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergePostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergePostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergePostRequestBody(), nil +} +// GetAcross gets the across property value. The across property +// returns a *bool when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergePostRequestBody) GetAcross()(*bool) { + val, err := m.GetBackingStore().Get("across") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + 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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["across"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetAcross(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("across", m.GetAcross()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAcross sets the across property value. The across property +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergePostRequestBody) SetAcross(value *bool)() { + err := m.GetBackingStore().Set("across", 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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAcross()(*bool) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetAcross(value *bool)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_merge_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_merge_request_builder.go new file mode 100644 index 00000000000..c6312f0e69d --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_merge_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergeRequestBuilder provides operations to call the merge method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/merge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action merge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergeRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action merge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergeRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_request_builder.go index cbc2d25c266..299d021affa 100644 --- a/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_request_builder.go @@ -18,6 +18,46 @@ type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// BoundingRectWithAnotherRange provides operations to call the boundingRect method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder) BoundingRectWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeBoundingRectWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// CellWithRowWithColumn provides operations to call the cell method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder) CellWithRowWithColumn(column *int32, row *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeCellWithRowWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column, row) +} +// Clear provides operations to call the clear method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder) Clear()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeClearRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeClearRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfter provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder) ColumnsAfter()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfterWithCount provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder) ColumnsAfterWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsAfterWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnsBefore provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder) ColumnsBefore()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsBeforeWithCount provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder) ColumnsBeforeWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnsBeforeWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnWithColumn provides operations to call the column method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder) ColumnWithColumn(column *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeColumnWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column) +} // NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder and sets the default values. func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder) { m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder{ @@ -31,6 +71,26 @@ func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuil urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilderInternal(urlParams, requestAdapter) } +// DeletePath provides operations to call the delete method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder) DeletePath()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeDeleteRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireColumn provides operations to call the entireColumn method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder) EntireColumn()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireRow provides operations to call the entireRow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder) EntireRow()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeEntireRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Format provides operations to manage the format property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder) Format()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeFormatRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.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 @@ -54,6 +114,76 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBui } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil } +// Insert provides operations to call the insert method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder) Insert()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeInsertRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeInsertRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// IntersectionWithAnotherRange provides operations to call the intersection method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder) IntersectionWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeIntersectionWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// LastCell provides operations to call the lastCell method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder) LastCell()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastCellRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastCellRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastColumn provides operations to call the lastColumn method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder) LastColumn()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastRow provides operations to call the lastRow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder) LastRow()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeLastRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Merge provides operations to call the merge method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder) Merge()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeMergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// OffsetRangeWithRowOffsetWithColumnOffset provides operations to call the offsetRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder) OffsetRangeWithRowOffsetWithColumnOffset(columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, columnOffset, rowOffset) +} +// ResizedRangeWithDeltaRowsWithDeltaColumns provides operations to call the resizedRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder) ResizedRangeWithDeltaRowsWithDeltaColumns(deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, deltaColumns, deltaRows) +} +// RowsAbove provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder) RowsAbove()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsAboveWithCount provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder) RowsAboveWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowsBelow provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder) RowsBelow()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsBelowWithCount provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder) RowsBelowWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowWithRow provides operations to call the row method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder) RowWithRow(row *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowWithRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, row) +} +// Sort provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder) Sort()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeSortRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeSortRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToGetRequestInformation gets the range object associated with the entire column. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { @@ -65,8 +195,33 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBui requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } +// Unmerge provides operations to call the unmerge method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder) Unmerge()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUnmergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// UsedRange provides operations to call the usedRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder) UsedRange()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// UsedRangeWithValuesOnly provides operations to call the usedRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder) UsedRangeWithValuesOnly(valuesOnly *bool)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeWithValuesOnlyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, valuesOnly) +} +// VisibleView provides operations to call the visibleView method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder) VisibleView()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeVisibleViewRequestBuilderInternal(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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder when successful func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder) { return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); } +// Worksheet provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRequestBuilder) Worksheet()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeWorksheetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_row_with_row_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_row_with_row_request_builder.go new file mode 100644 index 00000000000..f91fa2a1942 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_row_with_row_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowWithRowRequestBuilder provides operations to call the row method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowWithRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowWithRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowWithRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowWithRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowWithRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, row *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowWithRowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowWithRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/row(row={row})", pathParameters), + } + if row != nil { + m.BaseRequestBuilder.PathParameters["row"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*row), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowWithRowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowWithRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowWithRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowWithRowRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function row +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowWithRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowWithRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function row +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowWithRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowWithRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowWithRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowWithRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_rows_above_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_rows_above_request_builder.go new file mode 100644 index 00000000000..a3b0bbb7e12 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_rows_above_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/rowsAbove()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsAboveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_rows_below_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_rows_below_request_builder.go new file mode 100644 index 00000000000..da5c0651822 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_rows_below_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/rowsBelow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeRowsBelowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_sort_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_sort_request_builder.go new file mode 100644 index 00000000000..ad15eb36f5c --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_sort_request_builder.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeSortRequestBuilder provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeSortRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeSortRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeSortRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeSortRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeSortRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeSortRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeSortRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeSortRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeSortRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeSortRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeSortRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeSortRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeSortRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeSortRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/sort{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeSortRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeSortRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeSortRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeSortRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property sort for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeSortRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeSortRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeSortRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeSortRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// Patch update the navigation property sort in drives +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeSortRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeSortRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// ToDeleteRequestInformation delete navigation property sort for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeSortRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeSortRequestBuilderDeleteRequestConfiguration)(*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 worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeSortRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeSortRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeSortRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeSortRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeSortRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeSortRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeSortRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_unmerge_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_unmerge_request_builder.go new file mode 100644 index 00000000000..da7614981b7 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_unmerge_request_builder.go @@ -0,0 +1,64 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUnmergeRequestBuilder provides operations to call the unmerge method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUnmergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUnmergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUnmergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUnmergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUnmergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUnmergeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUnmergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/unmerge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUnmergeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUnmergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUnmergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUnmergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unmerge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUnmergeRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUnmergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unmerge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUnmergeRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUnmergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUnmergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUnmergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_used_range_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_used_range_request_builder.go new file mode 100644 index 00000000000..5a64c3e8b73 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_used_range_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeRequestBuilder provides operations to call the usedRange method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/usedRange()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeRequestBuilderInternal(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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function usedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeUsedRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_visible_view_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_visible_view_request_builder.go new file mode 100644 index 00000000000..a319a1a420a --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_visible_view_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeVisibleViewRequestBuilder provides operations to call the visibleView method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeVisibleViewRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeVisibleViewRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeVisibleViewRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeVisibleViewRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeVisibleViewRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeVisibleViewRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeVisibleViewRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/visibleView()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeVisibleViewRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeVisibleViewRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeVisibleViewRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeVisibleViewRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function visibleView +// returns a WorkbookRangeViewable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeVisibleViewRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeVisibleViewRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeViewFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable), nil +} +// ToGetRequestInformation invoke function visibleView +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeVisibleViewRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeVisibleViewRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeVisibleViewRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeVisibleViewRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_worksheet_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_worksheet_request_builder.go new file mode 100644 index 00000000000..ef4275e8ee0 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_range_worksheet_request_builder.go @@ -0,0 +1,81 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeWorksheetRequestBuilder provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeWorksheetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeWorksheetRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeWorksheetRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeWorksheetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeWorksheetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeWorksheetRequestBuilderGetQueryParameters +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeWorksheetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeWorksheetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeWorksheetRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeWorksheetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/columns/{workbookTableColumn%2Did}/range()/worksheet{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeWorksheetRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeWorksheetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeWorksheetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeWorksheetRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookWorksheetable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeWorksheetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeWorksheetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookWorksheetFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable), nil +} +// ToGetRequestInformation the worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeWorksheetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeWorksheetRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeWorksheetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemRangeWorksheetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_total_row_range_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_total_row_range_request_builder.go index 92ee93b93ec..127ba34bd38 100644 --- a/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_total_row_range_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_item_total_row_range_request_builder.go @@ -18,6 +18,46 @@ type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeReques // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// BoundingRectWithAnotherRange provides operations to call the boundingRect method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder) BoundingRectWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// CellWithRowWithColumn provides operations to call the cell method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder) CellWithRowWithColumn(column *int32, row *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeCellWithRowWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column, row) +} +// Clear provides operations to call the clear method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder) Clear()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeClearRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeClearRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfter provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder) ColumnsAfter()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfterWithCount provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder) ColumnsAfterWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsAfterWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnsBefore provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder) ColumnsBefore()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsBeforeWithCount provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder) ColumnsBeforeWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnsBeforeWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnWithColumn provides operations to call the column method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder) ColumnWithColumn(column *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeColumnWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column) +} // NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder and sets the default values. func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder) { m := &ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder{ @@ -31,6 +71,26 @@ func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeReq urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilderInternal(urlParams, requestAdapter) } +// DeletePath provides operations to call the delete method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder) DeletePath()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeDeleteRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireColumn provides operations to call the entireColumn method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder) EntireColumn()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireRow provides operations to call the entireRow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder) EntireRow()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeEntireRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Format provides operations to manage the format property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder) Format()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeFormatRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.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 @@ -54,6 +114,76 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRe } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil } +// Insert provides operations to call the insert method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder) Insert()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeInsertRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeInsertRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// IntersectionWithAnotherRange provides operations to call the intersection method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder) IntersectionWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// LastCell provides operations to call the lastCell method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder) LastCell()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastCellRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastCellRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastColumn provides operations to call the lastColumn method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder) LastColumn()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastRow provides operations to call the lastRow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder) LastRow()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeLastRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Merge provides operations to call the merge method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder) Merge()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeMergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// OffsetRangeWithRowOffsetWithColumnOffset provides operations to call the offsetRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder) OffsetRangeWithRowOffsetWithColumnOffset(columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, columnOffset, rowOffset) +} +// ResizedRangeWithDeltaRowsWithDeltaColumns provides operations to call the resizedRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder) ResizedRangeWithDeltaRowsWithDeltaColumns(deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, deltaColumns, deltaRows) +} +// RowsAbove provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder) RowsAbove()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsAboveWithCount provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder) RowsAboveWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsAboveWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowsBelow provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder) RowsBelow()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsBelowWithCount provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder) RowsBelowWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowsBelowWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowWithRow provides operations to call the row method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder) RowWithRow(row *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRowWithRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, row) +} +// Sort provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder) Sort()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeSortRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeSortRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToGetRequestInformation gets the range object associated with the totals row of the column. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { @@ -65,8 +195,33 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRe requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } +// Unmerge provides operations to call the unmerge method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder) Unmerge()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUnmergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// UsedRange provides operations to call the usedRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder) UsedRange()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// UsedRangeWithValuesOnly provides operations to call the usedRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder) UsedRangeWithValuesOnly(valuesOnly *bool)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, valuesOnly) +} +// VisibleView provides operations to call the visibleView method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder) VisibleView()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeVisibleViewRequestBuilderInternal(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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder when successful func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder) { return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); } +// Worksheet provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeRequestBuilder) Worksheet()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsItemTotalRowRangeWorksheetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_columns_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_request_builder.go index b62ea2a5397..f8ed60a0304 100644 --- a/drives/item_items_item_workbook_worksheets_item_tables_item_columns_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_columns_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilderGetQueryParameters represents a collection of all the columns in the table. Read-only. +// ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilderGetQueryParameters the list of all the columns in the table. Read-only. type ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -81,7 +81,7 @@ func NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilder(rawUr func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilder) Count()(*ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsCountRequestBuilder) { return NewItemItemsItemWorkbookWorksheetsItemTablesItemColumnsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get represents a collection of all the columns in the table. Read-only. +// Get the list 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 *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableColumnCollectionResponseable, error) { @@ -126,7 +126,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilder) Pos } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableColumnable), nil } -// ToGetRequestInformation represents a collection of all the columns in the table. Read-only. +// ToGetRequestInformation the list of all the columns in the table. Read-only. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemColumnsRequestBuilderGetRequestConfiguration)(*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_item_data_body_range_clear_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_clear_post_request_body.go new file mode 100644 index 00000000000..9fb24ea9798 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_clear_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeClearPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeClearPostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeClearPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeClearPostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeClearPostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeClearPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeClearPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeClearPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeClearPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeClearPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetApplyTo gets the applyTo property value. The applyTo property +// returns a *string when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeClearPostRequestBody) GetApplyTo()(*string) { + val, err := m.GetBackingStore().Get("applyTo") + 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 *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeClearPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeClearPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["applyTo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetApplyTo(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeClearPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("applyTo", m.GetApplyTo()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeClearPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetApplyTo sets the applyTo property value. The applyTo property +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeClearPostRequestBody) SetApplyTo(value *string)() { + err := m.GetBackingStore().Set("applyTo", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeClearPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeClearPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetApplyTo()(*string) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetApplyTo(value *string)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_clear_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_clear_request_builder.go new file mode 100644 index 00000000000..45a11393c2e --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_clear_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeClearRequestBuilder provides operations to call the clear method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeClearRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeClearRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeClearRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeClearRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeClearRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeClearRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeClearRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/clear", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeClearRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeClearRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeClearRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeClearRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action clear +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeClearRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeClearRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action clear +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeClearRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeClearRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeClearRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeClearRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeClearRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_columns_after_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_columns_after_request_builder.go new file mode 100644 index 00000000000..5f66481906e --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_columns_after_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/columnsAfter()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_columns_before_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_columns_before_request_builder.go new file mode 100644 index 00000000000..c0b824093c7 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_columns_before_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/columnsBefore()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_delete_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_delete_post_request_body.go new file mode 100644 index 00000000000..843996536c6 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_delete_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeDeletePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeDeletePostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeDeletePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeDeletePostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeDeletePostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeDeletePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeDeletePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeDeletePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeDeletePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeDeletePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeDeletePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeDeletePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeDeletePostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeDeletePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeDeletePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeDeletePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeDeletePostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeDeletePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_delete_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_delete_request_builder.go new file mode 100644 index 00000000000..b7d07f499de --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_delete_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeDeleteRequestBuilder provides operations to call the delete method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeDeleteRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeDeleteRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/delete", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeDeleteRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action delete +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeDeleteRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action delete +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeDeleteRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_entire_column_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_entire_column_request_builder.go new file mode 100644 index 00000000000..051618f0821 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_entire_column_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireColumnRequestBuilder provides operations to call the entireColumn method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/entireColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_entire_row_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_entire_row_request_builder.go new file mode 100644 index 00000000000..5d9dce492a9 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_entire_row_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireRowRequestBuilder provides operations to call the entireRow method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireRowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/entireRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireRowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_format_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_format_request_builder.go new file mode 100644 index 00000000000..f7595683d64 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_format_request_builder.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeFormatRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeFormatRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeFormatRequestBuilderGetQueryParameters returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeFormatRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeFormatRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeFormatRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeFormatRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeFormatRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeFormatRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeFormatRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/format{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeFormatRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeFormatRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeFormatRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property format for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeFormatRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeFormatRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// Patch update the navigation property format in drives +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeFormatRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeFormatRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// ToDeleteRequestInformation delete navigation property format for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeFormatRequestBuilderDeleteRequestConfiguration)(*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 format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeFormatRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeFormatRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeFormatRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_insert_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_insert_post_request_body.go new file mode 100644 index 00000000000..ae24bc68d2f --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_insert_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeInsertPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeInsertPostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeInsertPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeInsertPostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeInsertPostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeInsertPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeInsertPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeInsertPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeInsertPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeInsertPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeInsertPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeInsertPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeInsertPostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeInsertPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeInsertPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeInsertPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeInsertPostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeInsertPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_insert_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_insert_request_builder.go new file mode 100644 index 00000000000..dc171d3e4df --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_insert_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeInsertRequestBuilder provides operations to call the insert method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeInsertRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeInsertRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeInsertRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeInsertRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeInsertRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeInsertRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeInsertRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/insert", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeInsertRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeInsertRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeInsertRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeInsertRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action insert +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeInsertRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeInsertRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToPostRequestInformation invoke action insert +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeInsertRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeInsertRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeInsertRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeInsertRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeInsertRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_last_cell_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_last_cell_request_builder.go new file mode 100644 index 00000000000..b4f82837bdb --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_last_cell_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastCellRequestBuilder provides operations to call the lastCell method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastCellRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastCellRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastCellRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastCellRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastCellRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastCellRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastCellRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/lastCell()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastCellRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastCellRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastCellRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastCellRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastCell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastCellRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastCellRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastCell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastCellRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastCellRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastCellRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastCellRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastCellRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_last_column_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_last_column_request_builder.go new file mode 100644 index 00000000000..f29e541f8ad --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_last_column_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastColumnRequestBuilder provides operations to call the lastColumn method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/lastColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_last_row_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_last_row_request_builder.go new file mode 100644 index 00000000000..52ece4f1a1c --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_last_row_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastRowRequestBuilder provides operations to call the lastRow method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastRowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/lastRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastRowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_merge_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_merge_post_request_body.go new file mode 100644 index 00000000000..119f8b7dd49 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_merge_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergePostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergePostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergePostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergePostRequestBody(), nil +} +// GetAcross gets the across property value. The across property +// returns a *bool when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergePostRequestBody) GetAcross()(*bool) { + val, err := m.GetBackingStore().Get("across") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + 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 *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["across"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetAcross(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("across", m.GetAcross()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAcross sets the across property value. The across property +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergePostRequestBody) SetAcross(value *bool)() { + err := m.GetBackingStore().Set("across", 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 *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAcross()(*bool) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetAcross(value *bool)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_merge_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_merge_request_builder.go new file mode 100644 index 00000000000..32be97b5abb --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_merge_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergeRequestBuilder provides operations to call the merge method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/merge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action merge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergeRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action merge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergeRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_request_builder.go index b9bf43eb5e7..ad6cd07f1bc 100644 --- a/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_request_builder.go @@ -18,6 +18,46 @@ type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilderGet // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// BoundingRectWithAnotherRange provides operations to call the boundingRect method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder) BoundingRectWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeBoundingRectWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// CellWithRowWithColumn provides operations to call the cell method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder) CellWithRowWithColumn(column *int32, row *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeCellWithRowWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column, row) +} +// Clear provides operations to call the clear method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder) Clear()(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeClearRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeClearRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfter provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder) ColumnsAfter()(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfterWithCount provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder) ColumnsAfterWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsAfterWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnsBefore provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder) ColumnsBefore()(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsBeforeWithCount provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder) ColumnsBeforeWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnsBeforeWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnWithColumn provides operations to call the column method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder) ColumnWithColumn(column *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeColumnWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column) +} // NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder and sets the default values. func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder) { m := &ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder{ @@ -31,6 +71,26 @@ func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilderInternal(urlParams, requestAdapter) } +// DeletePath provides operations to call the delete method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder) DeletePath()(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeDeleteRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireColumn provides operations to call the entireColumn method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder) EntireColumn()(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireRow provides operations to call the entireRow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder) EntireRow()(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeEntireRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Format provides operations to manage the format property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder) Format()(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeFormatRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.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 @@ -54,6 +114,76 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilde } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil } +// Insert provides operations to call the insert method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder) Insert()(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeInsertRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeInsertRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// IntersectionWithAnotherRange provides operations to call the intersection method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder) IntersectionWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeIntersectionWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// LastCell provides operations to call the lastCell method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder) LastCell()(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastCellRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastCellRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastColumn provides operations to call the lastColumn method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder) LastColumn()(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastRow provides operations to call the lastRow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder) LastRow()(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeLastRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Merge provides operations to call the merge method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder) Merge()(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeMergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// OffsetRangeWithRowOffsetWithColumnOffset provides operations to call the offsetRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder) OffsetRangeWithRowOffsetWithColumnOffset(columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, columnOffset, rowOffset) +} +// ResizedRangeWithDeltaRowsWithDeltaColumns provides operations to call the resizedRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder) ResizedRangeWithDeltaRowsWithDeltaColumns(deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, deltaColumns, deltaRows) +} +// RowsAbove provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder) RowsAbove()(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsAboveWithCount provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder) RowsAboveWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowsBelow provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder) RowsBelow()(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsBelowWithCount provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder) RowsBelowWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowWithRow provides operations to call the row method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder) RowWithRow(row *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowWithRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, row) +} +// Sort provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder) Sort()(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeSortRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeSortRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToGetRequestInformation gets the range object associated with the data body of the table. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { @@ -65,8 +195,33 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilde requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } +// Unmerge provides operations to call the unmerge method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder) Unmerge()(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUnmergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// UsedRange provides operations to call the usedRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder) UsedRange()(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// UsedRangeWithValuesOnly provides operations to call the usedRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder) UsedRangeWithValuesOnly(valuesOnly *bool)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeWithValuesOnlyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, valuesOnly) +} +// VisibleView provides operations to call the visibleView method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder) VisibleView()(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeVisibleViewRequestBuilderInternal(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 *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder when successful func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder) { return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); } +// Worksheet provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRequestBuilder) Worksheet()(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeWorksheetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_row_with_row_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_row_with_row_request_builder.go new file mode 100644 index 00000000000..b16dcadd5d3 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_row_with_row_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowWithRowRequestBuilder provides operations to call the row method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowWithRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowWithRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowWithRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowWithRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowWithRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, row *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowWithRowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowWithRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/row(row={row})", pathParameters), + } + if row != nil { + m.BaseRequestBuilder.PathParameters["row"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*row), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowWithRowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowWithRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowWithRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowWithRowRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function row +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowWithRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowWithRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function row +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowWithRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowWithRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowWithRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowWithRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_rows_above_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_rows_above_request_builder.go new file mode 100644 index 00000000000..d3754778baf --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_rows_above_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/rowsAbove()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsAboveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_rows_below_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_rows_below_request_builder.go new file mode 100644 index 00000000000..43cacf639b2 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_rows_below_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/rowsBelow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeRowsBelowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_sort_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_sort_request_builder.go new file mode 100644 index 00000000000..97fefdec5d7 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_sort_request_builder.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeSortRequestBuilder provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeSortRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeSortRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeSortRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeSortRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeSortRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeSortRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeSortRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeSortRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeSortRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeSortRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeSortRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeSortRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeSortRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeSortRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/sort{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeSortRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeSortRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeSortRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeSortRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property sort for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeSortRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeSortRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeSortRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeSortRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// Patch update the navigation property sort in drives +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeSortRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeSortRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// ToDeleteRequestInformation delete navigation property sort for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeSortRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeSortRequestBuilderDeleteRequestConfiguration)(*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 worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeSortRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeSortRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeSortRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeSortRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeSortRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeSortRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeSortRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_unmerge_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_unmerge_request_builder.go new file mode 100644 index 00000000000..fde7627a2ad --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_unmerge_request_builder.go @@ -0,0 +1,64 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUnmergeRequestBuilder provides operations to call the unmerge method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUnmergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUnmergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUnmergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUnmergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUnmergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUnmergeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUnmergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/unmerge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUnmergeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUnmergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUnmergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUnmergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unmerge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUnmergeRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUnmergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unmerge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUnmergeRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUnmergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUnmergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUnmergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_used_range_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_used_range_request_builder.go new file mode 100644 index 00000000000..9428fbe2e9d --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_used_range_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeRequestBuilder provides operations to call the usedRange method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/usedRange()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeRequestBuilderInternal(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 *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function usedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeUsedRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_visible_view_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_visible_view_request_builder.go new file mode 100644 index 00000000000..2245998c53f --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_visible_view_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeVisibleViewRequestBuilder provides operations to call the visibleView method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeVisibleViewRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeVisibleViewRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeVisibleViewRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeVisibleViewRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeVisibleViewRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeVisibleViewRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeVisibleViewRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/visibleView()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeVisibleViewRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeVisibleViewRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeVisibleViewRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeVisibleViewRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function visibleView +// returns a WorkbookRangeViewable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeVisibleViewRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeVisibleViewRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeViewFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable), nil +} +// ToGetRequestInformation invoke function visibleView +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeVisibleViewRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeVisibleViewRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeVisibleViewRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeVisibleViewRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_worksheet_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_worksheet_request_builder.go new file mode 100644 index 00000000000..19e5e64f0e4 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_data_body_range_worksheet_request_builder.go @@ -0,0 +1,81 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeWorksheetRequestBuilder provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeWorksheetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeWorksheetRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeWorksheetRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeWorksheetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeWorksheetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeWorksheetRequestBuilderGetQueryParameters +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeWorksheetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeWorksheetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeWorksheetRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeWorksheetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/dataBodyRange()/worksheet{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeWorksheetRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeWorksheetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeWorksheetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeWorksheetRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookWorksheetable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeWorksheetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeWorksheetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookWorksheetFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable), nil +} +// ToGetRequestInformation the worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeWorksheetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeWorksheetRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeWorksheetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemDataBodyRangeWorksheetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_clear_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_clear_post_request_body.go new file mode 100644 index 00000000000..4b5dc40a8a1 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_clear_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeClearPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeClearPostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeClearPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeClearPostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeClearPostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeClearPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeClearPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeClearPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeClearPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeClearPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetApplyTo gets the applyTo property value. The applyTo property +// returns a *string when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeClearPostRequestBody) GetApplyTo()(*string) { + val, err := m.GetBackingStore().Get("applyTo") + 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 *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeClearPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeClearPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["applyTo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetApplyTo(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeClearPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("applyTo", m.GetApplyTo()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeClearPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetApplyTo sets the applyTo property value. The applyTo property +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeClearPostRequestBody) SetApplyTo(value *string)() { + err := m.GetBackingStore().Set("applyTo", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeClearPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeClearPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetApplyTo()(*string) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetApplyTo(value *string)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_clear_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_clear_request_builder.go new file mode 100644 index 00000000000..f182a1ce03a --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_clear_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeClearRequestBuilder provides operations to call the clear method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeClearRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeClearRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeClearRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeClearRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeClearRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeClearRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeClearRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/clear", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeClearRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeClearRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeClearRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeClearRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action clear +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeClearRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeClearRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action clear +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeClearRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeClearRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeClearRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeClearRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeClearRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_columns_after_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_columns_after_request_builder.go new file mode 100644 index 00000000000..c790218c960 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_columns_after_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/columnsAfter()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_columns_before_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_columns_before_request_builder.go new file mode 100644 index 00000000000..722b3802cdf --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_columns_before_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/columnsBefore()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_delete_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_delete_post_request_body.go new file mode 100644 index 00000000000..2a50b668996 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_delete_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeDeletePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeDeletePostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeDeletePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeDeletePostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeDeletePostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeDeletePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeDeletePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeDeletePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeDeletePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeDeletePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeDeletePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeDeletePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeDeletePostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeDeletePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeDeletePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeDeletePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeDeletePostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeDeletePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_delete_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_delete_request_builder.go new file mode 100644 index 00000000000..cdac84cfeeb --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_delete_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeDeleteRequestBuilder provides operations to call the delete method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeDeleteRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeDeleteRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/delete", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeDeleteRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action delete +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeDeleteRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action delete +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeDeleteRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_entire_column_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_entire_column_request_builder.go new file mode 100644 index 00000000000..a0b62e71e0c --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_entire_column_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireColumnRequestBuilder provides operations to call the entireColumn method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/entireColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_entire_row_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_entire_row_request_builder.go new file mode 100644 index 00000000000..5ab22113b02 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_entire_row_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireRowRequestBuilder provides operations to call the entireRow method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireRowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/entireRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireRowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_format_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_format_request_builder.go new file mode 100644 index 00000000000..31bf6016659 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_format_request_builder.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeFormatRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeFormatRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeFormatRequestBuilderGetQueryParameters returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeFormatRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeFormatRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeFormatRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeFormatRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeFormatRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeFormatRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeFormatRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/format{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeFormatRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeFormatRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeFormatRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property format for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeFormatRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeFormatRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// Patch update the navigation property format in drives +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeFormatRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeFormatRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// ToDeleteRequestInformation delete navigation property format for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeFormatRequestBuilderDeleteRequestConfiguration)(*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 format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeFormatRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeFormatRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeFormatRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_insert_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_insert_post_request_body.go new file mode 100644 index 00000000000..cad5ef916d2 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_insert_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeInsertPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeInsertPostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeInsertPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeInsertPostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeInsertPostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeInsertPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeInsertPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeInsertPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeInsertPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeInsertPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeInsertPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeInsertPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeInsertPostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeInsertPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeInsertPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeInsertPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeInsertPostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeInsertPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_insert_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_insert_request_builder.go new file mode 100644 index 00000000000..745f2c50f67 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_insert_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeInsertRequestBuilder provides operations to call the insert method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeInsertRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeInsertRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeInsertRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeInsertRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeInsertRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeInsertRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeInsertRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/insert", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeInsertRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeInsertRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeInsertRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeInsertRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action insert +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeInsertRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeInsertRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToPostRequestInformation invoke action insert +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeInsertRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeInsertRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeInsertRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeInsertRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeInsertRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_last_cell_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_last_cell_request_builder.go new file mode 100644 index 00000000000..dd450c5eb80 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_last_cell_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastCellRequestBuilder provides operations to call the lastCell method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastCellRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastCellRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastCellRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastCellRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastCellRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastCellRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastCellRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/lastCell()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastCellRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastCellRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastCellRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastCellRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastCell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastCellRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastCellRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastCell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastCellRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastCellRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastCellRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastCellRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastCellRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_last_column_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_last_column_request_builder.go new file mode 100644 index 00000000000..a1e00c53544 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_last_column_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastColumnRequestBuilder provides operations to call the lastColumn method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/lastColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_last_row_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_last_row_request_builder.go new file mode 100644 index 00000000000..fd7e85fe924 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_last_row_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastRowRequestBuilder provides operations to call the lastRow method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastRowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/lastRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastRowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_merge_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_merge_post_request_body.go new file mode 100644 index 00000000000..3429b34a9c8 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_merge_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergePostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergePostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergePostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergePostRequestBody(), nil +} +// GetAcross gets the across property value. The across property +// returns a *bool when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergePostRequestBody) GetAcross()(*bool) { + val, err := m.GetBackingStore().Get("across") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + 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 *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["across"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetAcross(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("across", m.GetAcross()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAcross sets the across property value. The across property +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergePostRequestBody) SetAcross(value *bool)() { + err := m.GetBackingStore().Set("across", 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 *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAcross()(*bool) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetAcross(value *bool)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_merge_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_merge_request_builder.go new file mode 100644 index 00000000000..da93774b6bd --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_merge_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergeRequestBuilder provides operations to call the merge method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/merge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action merge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergeRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action merge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergeRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_request_builder.go index 9de24648bad..cc94b2efd9b 100644 --- a/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_request_builder.go @@ -18,6 +18,46 @@ type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilderGe // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// BoundingRectWithAnotherRange provides operations to call the boundingRect method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder) BoundingRectWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeBoundingRectWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// CellWithRowWithColumn provides operations to call the cell method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder) CellWithRowWithColumn(column *int32, row *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeCellWithRowWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column, row) +} +// Clear provides operations to call the clear method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder) Clear()(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeClearRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeClearRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfter provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder) ColumnsAfter()(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfterWithCount provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder) ColumnsAfterWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsAfterWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnsBefore provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder) ColumnsBefore()(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsBeforeWithCount provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder) ColumnsBeforeWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnsBeforeWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnWithColumn provides operations to call the column method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder) ColumnWithColumn(column *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeColumnWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column) +} // NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder and sets the default values. func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder) { m := &ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder{ @@ -31,6 +71,26 @@ func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilde urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilderInternal(urlParams, requestAdapter) } +// DeletePath provides operations to call the delete method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder) DeletePath()(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeDeleteRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireColumn provides operations to call the entireColumn method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder) EntireColumn()(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireRow provides operations to call the entireRow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder) EntireRow()(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeEntireRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Format provides operations to manage the format property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder) Format()(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeFormatRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.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 @@ -54,6 +114,76 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuild } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil } +// Insert provides operations to call the insert method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder) Insert()(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeInsertRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeInsertRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// IntersectionWithAnotherRange provides operations to call the intersection method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder) IntersectionWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeIntersectionWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// LastCell provides operations to call the lastCell method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder) LastCell()(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastCellRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastCellRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastColumn provides operations to call the lastColumn method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder) LastColumn()(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastRow provides operations to call the lastRow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder) LastRow()(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeLastRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Merge provides operations to call the merge method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder) Merge()(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeMergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// OffsetRangeWithRowOffsetWithColumnOffset provides operations to call the offsetRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder) OffsetRangeWithRowOffsetWithColumnOffset(columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, columnOffset, rowOffset) +} +// ResizedRangeWithDeltaRowsWithDeltaColumns provides operations to call the resizedRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder) ResizedRangeWithDeltaRowsWithDeltaColumns(deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, deltaColumns, deltaRows) +} +// RowsAbove provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder) RowsAbove()(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsAboveWithCount provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder) RowsAboveWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowsBelow provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder) RowsBelow()(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsBelowWithCount provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder) RowsBelowWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowWithRow provides operations to call the row method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder) RowWithRow(row *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowWithRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, row) +} +// Sort provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder) Sort()(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeSortRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeSortRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToGetRequestInformation gets the range object associated with header row of the table. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { @@ -65,8 +195,33 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuild requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } +// Unmerge provides operations to call the unmerge method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder) Unmerge()(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUnmergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// UsedRange provides operations to call the usedRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder) UsedRange()(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// UsedRangeWithValuesOnly provides operations to call the usedRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder) UsedRangeWithValuesOnly(valuesOnly *bool)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeWithValuesOnlyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, valuesOnly) +} +// VisibleView provides operations to call the visibleView method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder) VisibleView()(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeVisibleViewRequestBuilderInternal(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 *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder when successful func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder) { return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); } +// Worksheet provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRequestBuilder) Worksheet()(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeWorksheetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_row_with_row_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_row_with_row_request_builder.go new file mode 100644 index 00000000000..37e175737c9 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_row_with_row_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowWithRowRequestBuilder provides operations to call the row method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowWithRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowWithRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowWithRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowWithRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowWithRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, row *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowWithRowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowWithRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/row(row={row})", pathParameters), + } + if row != nil { + m.BaseRequestBuilder.PathParameters["row"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*row), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowWithRowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowWithRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowWithRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowWithRowRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function row +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowWithRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowWithRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function row +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowWithRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowWithRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowWithRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowWithRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_rows_above_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_rows_above_request_builder.go new file mode 100644 index 00000000000..c73550d429f --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_rows_above_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/rowsAbove()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsAboveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_rows_below_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_rows_below_request_builder.go new file mode 100644 index 00000000000..8320c3d8c30 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_rows_below_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/rowsBelow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeRowsBelowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_sort_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_sort_request_builder.go new file mode 100644 index 00000000000..c5c34b38d87 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_sort_request_builder.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeSortRequestBuilder provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeSortRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeSortRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeSortRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeSortRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeSortRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeSortRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeSortRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeSortRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeSortRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeSortRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeSortRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeSortRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeSortRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeSortRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/sort{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeSortRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeSortRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeSortRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeSortRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property sort for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeSortRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeSortRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeSortRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeSortRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// Patch update the navigation property sort in drives +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeSortRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeSortRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// ToDeleteRequestInformation delete navigation property sort for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeSortRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeSortRequestBuilderDeleteRequestConfiguration)(*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 worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeSortRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeSortRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeSortRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeSortRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeSortRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeSortRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeSortRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_unmerge_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_unmerge_request_builder.go new file mode 100644 index 00000000000..1fcd09923b4 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_unmerge_request_builder.go @@ -0,0 +1,64 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUnmergeRequestBuilder provides operations to call the unmerge method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUnmergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUnmergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUnmergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUnmergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUnmergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUnmergeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUnmergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/unmerge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUnmergeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUnmergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUnmergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUnmergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unmerge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUnmergeRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUnmergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unmerge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUnmergeRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUnmergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUnmergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUnmergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_used_range_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_used_range_request_builder.go new file mode 100644 index 00000000000..c097e9bb61a --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_used_range_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeRequestBuilder provides operations to call the usedRange method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/usedRange()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeRequestBuilderInternal(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 *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function usedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeUsedRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_visible_view_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_visible_view_request_builder.go new file mode 100644 index 00000000000..364a4ce8a1d --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_visible_view_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeVisibleViewRequestBuilder provides operations to call the visibleView method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeVisibleViewRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeVisibleViewRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeVisibleViewRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeVisibleViewRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeVisibleViewRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeVisibleViewRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeVisibleViewRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/visibleView()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeVisibleViewRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeVisibleViewRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeVisibleViewRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeVisibleViewRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function visibleView +// returns a WorkbookRangeViewable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeVisibleViewRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeVisibleViewRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeViewFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable), nil +} +// ToGetRequestInformation invoke function visibleView +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeVisibleViewRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeVisibleViewRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeVisibleViewRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeVisibleViewRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_worksheet_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_worksheet_request_builder.go new file mode 100644 index 00000000000..b27b14cbd76 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_header_row_range_worksheet_request_builder.go @@ -0,0 +1,81 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeWorksheetRequestBuilder provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeWorksheetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeWorksheetRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeWorksheetRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeWorksheetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeWorksheetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeWorksheetRequestBuilderGetQueryParameters +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeWorksheetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeWorksheetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeWorksheetRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeWorksheetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/headerRowRange()/worksheet{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeWorksheetRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeWorksheetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeWorksheetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeWorksheetRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookWorksheetable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeWorksheetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeWorksheetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookWorksheetFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable), nil +} +// ToGetRequestInformation the worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeWorksheetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeWorksheetRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeWorksheetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemHeaderRowRangeWorksheetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_range_cell_with_row_with_column_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_range_cell_with_row_with_column_request_builder.go new file mode 100644 index 00000000000..87f3609ffe7 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_range_cell_with_row_with_column_request_builder.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeCellWithRowWithColumnRequestBuilder provides operations to call the cell method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeCellWithRowWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeCellWithRowWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeCellWithRowWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32, row *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeCellWithRowWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRangeCellWithRowWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/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 +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeCellWithRowWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeCellWithRowWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeCellWithRowWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeCellWithRowWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function cell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeCellWithRowWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function cell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeCellWithRowWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeCellWithRowWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeCellWithRowWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_range_clear_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_tables_item_range_clear_post_request_body.go new file mode 100644 index 00000000000..1131ba09ecf --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_range_clear_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeClearPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeClearPostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeClearPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeClearPostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeClearPostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRangeClearPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemTablesItemRangeClearPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemTablesItemRangeClearPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeClearPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeClearPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetApplyTo gets the applyTo property value. The applyTo property +// returns a *string when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeClearPostRequestBody) GetApplyTo()(*string) { + val, err := m.GetBackingStore().Get("applyTo") + 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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeClearPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeClearPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["applyTo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetApplyTo(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeClearPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("applyTo", m.GetApplyTo()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeClearPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetApplyTo sets the applyTo property value. The applyTo property +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeClearPostRequestBody) SetApplyTo(value *string)() { + err := m.GetBackingStore().Set("applyTo", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeClearPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeClearPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetApplyTo()(*string) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetApplyTo(value *string)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_range_clear_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_range_clear_request_builder.go new file mode 100644 index 00000000000..baf8c865452 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_range_clear_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeClearRequestBuilder provides operations to call the clear method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeClearRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeClearRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeClearRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeClearRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeClearRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeClearRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRangeClearRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/clear", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeClearRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeClearRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeClearRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeClearRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action clear +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeClearRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemRangeClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeClearRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action clear +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeClearRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemRangeClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeClearRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeClearRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeClearRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeClearRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_range_column_with_column_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_range_column_with_column_request_builder.go new file mode 100644 index 00000000000..b4825c233a0 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_range_column_with_column_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnWithColumnRequestBuilder provides operations to call the column method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/column(column={column})", pathParameters), + } + if column != nil { + m.BaseRequestBuilder.PathParameters["column"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*column), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function column +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function column +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_range_columns_after_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_range_columns_after_request_builder.go new file mode 100644 index 00000000000..b10c23ef9b3 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_range_columns_after_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/columnsAfter()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_range_columns_after_with_count_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_range_columns_after_with_count_request_builder.go new file mode 100644 index 00000000000..c3a3ed49b69 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_range_columns_after_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterWithCountRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/columnsAfter(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_range_columns_before_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_range_columns_before_request_builder.go new file mode 100644 index 00000000000..b3461ad2f7d --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_range_columns_before_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/columnsBefore()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_range_columns_before_with_count_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_range_columns_before_with_count_request_builder.go new file mode 100644 index 00000000000..a6a3bffcf32 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_range_columns_before_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeWithCountRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/columnsBefore(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_range_delete_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_tables_item_range_delete_post_request_body.go new file mode 100644 index 00000000000..3bf288561d8 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_range_delete_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeDeletePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeDeletePostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeDeletePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeDeletePostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeDeletePostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRangeDeletePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemTablesItemRangeDeletePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemTablesItemRangeDeletePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeDeletePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeDeletePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeDeletePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeDeletePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeDeletePostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeDeletePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeDeletePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeDeletePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeDeletePostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeDeletePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_range_delete_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_range_delete_request_builder.go new file mode 100644 index 00000000000..8e618b5c450 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_range_delete_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeDeleteRequestBuilder provides operations to call the delete method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeDeleteRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeDeleteRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRangeDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/delete", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeDeleteRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action delete +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeDeleteRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemRangeDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action delete +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemRangeDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeDeleteRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_range_entire_column_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_range_entire_column_request_builder.go new file mode 100644 index 00000000000..c696201ae01 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_range_entire_column_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireColumnRequestBuilder provides operations to call the entireColumn method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/entireColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_range_entire_row_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_range_entire_row_request_builder.go new file mode 100644 index 00000000000..54817a47bdb --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_range_entire_row_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireRowRequestBuilder provides operations to call the entireRow method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireRowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/entireRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireRowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_range_format_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_range_format_request_builder.go new file mode 100644 index 00000000000..5463f123a6c --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_range_format_request_builder.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeFormatRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeFormatRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeFormatRequestBuilderGetQueryParameters returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeFormatRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeFormatRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeFormatRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeFormatRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeFormatRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeFormatRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRangeFormatRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/format{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeFormatRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeFormatRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeFormatRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property format for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeFormatRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeFormatRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// Patch update the navigation property format in drives +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeFormatRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeFormatRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// ToDeleteRequestInformation delete navigation property format for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeFormatRequestBuilderDeleteRequestConfiguration)(*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 format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeFormatRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeFormatRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeFormatRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_range_insert_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_tables_item_range_insert_post_request_body.go new file mode 100644 index 00000000000..3aa2c65d14e --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_range_insert_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeInsertPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeInsertPostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeInsertPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeInsertPostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeInsertPostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRangeInsertPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemTablesItemRangeInsertPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemTablesItemRangeInsertPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeInsertPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeInsertPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeInsertPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeInsertPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeInsertPostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeInsertPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeInsertPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeInsertPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeInsertPostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeInsertPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_range_insert_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_range_insert_request_builder.go new file mode 100644 index 00000000000..a6c5c010c2d --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_range_insert_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeInsertRequestBuilder provides operations to call the insert method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeInsertRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeInsertRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeInsertRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeInsertRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeInsertRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeInsertRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRangeInsertRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/insert", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeInsertRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeInsertRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeInsertRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeInsertRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action insert +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeInsertRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemRangeInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeInsertRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToPostRequestInformation invoke action insert +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeInsertRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemRangeInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeInsertRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeInsertRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeInsertRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeInsertRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_range_last_cell_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_range_last_cell_request_builder.go new file mode 100644 index 00000000000..8352188c492 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_range_last_cell_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastCellRequestBuilder provides operations to call the lastCell method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastCellRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastCellRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastCellRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastCellRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastCellRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastCellRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastCellRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/lastCell()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastCellRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastCellRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastCellRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastCellRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastCell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastCellRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastCellRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastCell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastCellRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastCellRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastCellRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastCellRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastCellRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_range_last_column_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_range_last_column_request_builder.go new file mode 100644 index 00000000000..179864b04fb --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_range_last_column_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastColumnRequestBuilder provides operations to call the lastColumn method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/lastColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_range_last_row_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_range_last_row_request_builder.go new file mode 100644 index 00000000000..31b145b5721 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_range_last_row_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastRowRequestBuilder provides operations to call the lastRow method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastRowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/lastRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastRowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_range_merge_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_tables_item_range_merge_post_request_body.go new file mode 100644 index 00000000000..bd36215a208 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_range_merge_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergePostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergePostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergePostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergePostRequestBody(), nil +} +// GetAcross gets the across property value. The across property +// returns a *bool when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergePostRequestBody) GetAcross()(*bool) { + val, err := m.GetBackingStore().Get("across") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + 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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["across"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetAcross(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("across", m.GetAcross()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAcross sets the across property value. The across property +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergePostRequestBody) SetAcross(value *bool)() { + err := m.GetBackingStore().Set("across", 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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAcross()(*bool) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetAcross(value *bool)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_range_merge_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_range_merge_request_builder.go new file mode 100644 index 00000000000..8ad405e1f24 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_range_merge_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergeRequestBuilder provides operations to call the merge method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/merge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action merge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergeRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action merge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergeRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_range_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_range_request_builder.go index 2fe6af63c2b..2749e1e9abd 100644 --- a/drives/item_items_item_workbook_worksheets_item_tables_item_range_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_range_request_builder.go @@ -18,6 +18,46 @@ type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilderGetRequestC // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// BoundingRectWithAnotherRange provides operations to call the boundingRect method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder) BoundingRectWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeBoundingRectWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// CellWithRowWithColumn provides operations to call the cell method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder) CellWithRowWithColumn(column *int32, row *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeCellWithRowWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column, row) +} +// Clear provides operations to call the clear method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder) Clear()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeClearRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeClearRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfter provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder) ColumnsAfter()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfterWithCount provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder) ColumnsAfterWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsAfterWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnsBefore provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder) ColumnsBefore()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsBeforeWithCount provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder) ColumnsBeforeWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnsBeforeWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnWithColumn provides operations to call the column method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder) ColumnWithColumn(column *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeColumnWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column) +} // NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder and sets the default values. func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder) { m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder{ @@ -31,6 +71,26 @@ func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder(rawUrl urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilderInternal(urlParams, requestAdapter) } +// DeletePath provides operations to call the delete method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder) DeletePath()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeDeleteRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireColumn provides operations to call the entireColumn method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder) EntireColumn()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireRow provides operations to call the entireRow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder) EntireRow()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeEntireRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Format provides operations to manage the format property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder) Format()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeFormatRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Get gets 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 @@ -54,6 +114,76 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder) Get(c } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil } +// Insert provides operations to call the insert method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder) Insert()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeInsertRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeInsertRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// IntersectionWithAnotherRange provides operations to call the intersection method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder) IntersectionWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeIntersectionWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// LastCell provides operations to call the lastCell method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder) LastCell()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastCellRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastCellRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastColumn provides operations to call the lastColumn method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder) LastColumn()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastRow provides operations to call the lastRow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder) LastRow()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeLastRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Merge provides operations to call the merge method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder) Merge()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeMergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// OffsetRangeWithRowOffsetWithColumnOffset provides operations to call the offsetRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder) OffsetRangeWithRowOffsetWithColumnOffset(columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, columnOffset, rowOffset) +} +// ResizedRangeWithDeltaRowsWithDeltaColumns provides operations to call the resizedRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder) ResizedRangeWithDeltaRowsWithDeltaColumns(deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, deltaColumns, deltaRows) +} +// RowsAbove provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder) RowsAbove()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsAboveWithCount provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder) RowsAboveWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowsBelow provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder) RowsBelow()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsBelowWithCount provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder) RowsBelowWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowWithRow provides operations to call the row method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder) RowWithRow(row *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowWithRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, row) +} +// Sort provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder) Sort()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeSortRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeSortRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToGetRequestInformation gets the range object associated with the entire table. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { @@ -65,8 +195,33 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder) ToGet requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } +// Unmerge provides operations to call the unmerge method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder) Unmerge()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeUnmergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// UsedRange provides operations to call the usedRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder) UsedRange()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// UsedRangeWithValuesOnly provides operations to call the usedRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeWithValuesOnlyRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder) UsedRangeWithValuesOnly(valuesOnly *bool)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeWithValuesOnlyRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeWithValuesOnlyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, valuesOnly) +} +// VisibleView provides operations to call the visibleView method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder) VisibleView()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeVisibleViewRequestBuilderInternal(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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder when successful func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder) { return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); } +// Worksheet provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRequestBuilder) Worksheet()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeWorksheetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_range_row_with_row_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_range_row_with_row_request_builder.go new file mode 100644 index 00000000000..3d84f07de13 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_range_row_with_row_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowWithRowRequestBuilder provides operations to call the row method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowWithRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowWithRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowWithRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowWithRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowWithRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, row *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowWithRowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowWithRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/row(row={row})", pathParameters), + } + if row != nil { + m.BaseRequestBuilder.PathParameters["row"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*row), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowWithRowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowWithRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowWithRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowWithRowRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function row +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowWithRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowWithRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function row +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowWithRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowWithRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowWithRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowWithRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_range_rows_above_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_range_rows_above_request_builder.go new file mode 100644 index 00000000000..5a91caa6aa6 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_range_rows_above_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/rowsAbove()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_range_rows_above_with_count_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_range_rows_above_with_count_request_builder.go new file mode 100644 index 00000000000..50ebcdf82c5 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_range_rows_above_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveWithCountRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/rowsAbove(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsAboveWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_range_rows_below_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_range_rows_below_request_builder.go new file mode 100644 index 00000000000..2a369f9cc6e --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_range_rows_below_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/rowsBelow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_range_rows_below_with_count_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_range_rows_below_with_count_request_builder.go new file mode 100644 index 00000000000..5ba31bf6d1d --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_range_rows_below_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowWithCountRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/rowsBelow(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeRowsBelowWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_range_sort_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_range_sort_request_builder.go new file mode 100644 index 00000000000..6b9f5028317 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_range_sort_request_builder.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeSortRequestBuilder provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeSortRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeSortRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeSortRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeSortRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeSortRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeSortRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeSortRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeSortRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeSortRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeSortRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeSortRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeSortRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeSortRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRangeSortRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/sort{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeSortRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeSortRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeSortRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeSortRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property sort for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeSortRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeSortRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeSortRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeSortRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// Patch update the navigation property sort in drives +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeSortRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeSortRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// ToDeleteRequestInformation delete navigation property sort for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeSortRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeSortRequestBuilderDeleteRequestConfiguration)(*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 worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeSortRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeSortRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeSortRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeSortRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeSortRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeSortRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeSortRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_range_unmerge_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_range_unmerge_request_builder.go new file mode 100644 index 00000000000..c4a553784ee --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_range_unmerge_request_builder.go @@ -0,0 +1,64 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUnmergeRequestBuilder provides operations to call the unmerge method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUnmergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUnmergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUnmergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeUnmergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeUnmergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUnmergeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUnmergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/unmerge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeUnmergeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeUnmergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUnmergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeUnmergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unmerge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUnmergeRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUnmergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unmerge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUnmergeRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUnmergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUnmergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeUnmergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_range_used_range_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_range_used_range_request_builder.go new file mode 100644 index 00000000000..a5ab87f9dec --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_range_used_range_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeRequestBuilder provides operations to call the usedRange method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/usedRange()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeRequestBuilderInternal(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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function usedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeUsedRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_range_visible_view_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_range_visible_view_request_builder.go new file mode 100644 index 00000000000..532c628485b --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_range_visible_view_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeVisibleViewRequestBuilder provides operations to call the visibleView method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeVisibleViewRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeVisibleViewRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeVisibleViewRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeVisibleViewRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeVisibleViewRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeVisibleViewRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRangeVisibleViewRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/visibleView()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeVisibleViewRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeVisibleViewRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeVisibleViewRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeVisibleViewRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function visibleView +// returns a WorkbookRangeViewable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeVisibleViewRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeVisibleViewRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeViewFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable), nil +} +// ToGetRequestInformation invoke function visibleView +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeVisibleViewRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeVisibleViewRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeVisibleViewRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeVisibleViewRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_range_worksheet_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_range_worksheet_request_builder.go new file mode 100644 index 00000000000..90c858a9bbc --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_range_worksheet_request_builder.go @@ -0,0 +1,81 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeWorksheetRequestBuilder provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeWorksheetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeWorksheetRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeWorksheetRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRangeWorksheetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRangeWorksheetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeWorksheetRequestBuilderGetQueryParameters +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeWorksheetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeWorksheetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeWorksheetRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRangeWorksheetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/range()/worksheet{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeWorksheetRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRangeWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeWorksheetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeWorksheetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeWorksheetRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookWorksheetable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeWorksheetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeWorksheetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookWorksheetFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable), nil +} +// ToGetRequestInformation the worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeWorksheetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeWorksheetRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRangeWorksheetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRangeWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRangeWorksheetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_clear_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_clear_post_request_body.go new file mode 100644 index 00000000000..23f0040739a --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_clear_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeClearPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeClearPostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeClearPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeClearPostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeClearPostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeClearPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeClearPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeClearPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeClearPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeClearPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetApplyTo gets the applyTo property value. The applyTo property +// returns a *string when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeClearPostRequestBody) GetApplyTo()(*string) { + val, err := m.GetBackingStore().Get("applyTo") + 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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeClearPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeClearPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["applyTo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetApplyTo(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeClearPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("applyTo", m.GetApplyTo()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeClearPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetApplyTo sets the applyTo property value. The applyTo property +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeClearPostRequestBody) SetApplyTo(value *string)() { + err := m.GetBackingStore().Set("applyTo", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeClearPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeClearPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetApplyTo()(*string) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetApplyTo(value *string)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_clear_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_clear_request_builder.go new file mode 100644 index 00000000000..c4ae660ab33 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_clear_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeClearRequestBuilder provides operations to call the clear method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeClearRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeClearRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeClearRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeClearRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeClearRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeClearRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeClearRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/clear", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeClearRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeClearRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeClearRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeClearRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action clear +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeClearRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeClearRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action clear +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeClearRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeClearRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeClearRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeClearRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeClearRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_columns_after_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_columns_after_request_builder.go new file mode 100644 index 00000000000..c8437bc9430 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_columns_after_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/columnsAfter()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_columns_before_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_columns_before_request_builder.go new file mode 100644 index 00000000000..191e8971fca --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_columns_before_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/columnsBefore()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_delete_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_delete_post_request_body.go new file mode 100644 index 00000000000..ba9fc33f1b9 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_delete_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeDeletePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeDeletePostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeDeletePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeDeletePostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeDeletePostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeDeletePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeDeletePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeDeletePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeDeletePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeDeletePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeDeletePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeDeletePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeDeletePostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeDeletePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeDeletePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeDeletePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeDeletePostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeDeletePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_delete_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_delete_request_builder.go new file mode 100644 index 00000000000..9b1a8306966 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_delete_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeDeleteRequestBuilder provides operations to call the delete method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeDeleteRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeDeleteRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/delete", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeDeleteRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action delete +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeDeleteRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action delete +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeDeleteRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_entire_column_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_entire_column_request_builder.go new file mode 100644 index 00000000000..ea08998fdde --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_entire_column_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireColumnRequestBuilder provides operations to call the entireColumn method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/entireColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_entire_row_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_entire_row_request_builder.go new file mode 100644 index 00000000000..5c19b3fdf8d --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_entire_row_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireRowRequestBuilder provides operations to call the entireRow method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireRowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/entireRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireRowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_format_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_format_request_builder.go new file mode 100644 index 00000000000..bba95640b04 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_format_request_builder.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeFormatRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeFormatRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeFormatRequestBuilderGetQueryParameters returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeFormatRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeFormatRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeFormatRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeFormatRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeFormatRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeFormatRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeFormatRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/format{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeFormatRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeFormatRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeFormatRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property format for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeFormatRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeFormatRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// Patch update the navigation property format in drives +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeFormatRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeFormatRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// ToDeleteRequestInformation delete navigation property format for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeFormatRequestBuilderDeleteRequestConfiguration)(*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 format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeFormatRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeFormatRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeFormatRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_insert_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_insert_post_request_body.go new file mode 100644 index 00000000000..a3fb80b6e75 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_insert_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeInsertPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeInsertPostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeInsertPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeInsertPostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeInsertPostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeInsertPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeInsertPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeInsertPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeInsertPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeInsertPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeInsertPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeInsertPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeInsertPostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeInsertPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeInsertPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeInsertPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeInsertPostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeInsertPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_insert_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_insert_request_builder.go new file mode 100644 index 00000000000..6693e0f2cd1 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_insert_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeInsertRequestBuilder provides operations to call the insert method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeInsertRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeInsertRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeInsertRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeInsertRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeInsertRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeInsertRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeInsertRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/insert", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeInsertRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeInsertRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeInsertRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeInsertRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action insert +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeInsertRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeInsertRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToPostRequestInformation invoke action insert +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeInsertRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeInsertRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeInsertRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeInsertRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeInsertRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_last_cell_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_last_cell_request_builder.go new file mode 100644 index 00000000000..126d68e3dd4 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_last_cell_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastCellRequestBuilder provides operations to call the lastCell method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastCellRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastCellRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastCellRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastCellRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastCellRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastCellRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastCellRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/lastCell()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastCellRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastCellRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastCellRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastCellRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastCell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastCellRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastCellRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastCell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastCellRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastCellRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastCellRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastCellRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastCellRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_last_column_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_last_column_request_builder.go new file mode 100644 index 00000000000..fb85cd4e711 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_last_column_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastColumnRequestBuilder provides operations to call the lastColumn method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/lastColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_last_row_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_last_row_request_builder.go new file mode 100644 index 00000000000..1179b1be75b --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_last_row_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastRowRequestBuilder provides operations to call the lastRow method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastRowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/lastRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastRowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_merge_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_merge_post_request_body.go new file mode 100644 index 00000000000..102ab9156cc --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_merge_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergePostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergePostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergePostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergePostRequestBody(), nil +} +// GetAcross gets the across property value. The across property +// returns a *bool when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergePostRequestBody) GetAcross()(*bool) { + val, err := m.GetBackingStore().Get("across") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + 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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["across"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetAcross(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("across", m.GetAcross()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAcross sets the across property value. The across property +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergePostRequestBody) SetAcross(value *bool)() { + err := m.GetBackingStore().Set("across", 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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAcross()(*bool) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetAcross(value *bool)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_merge_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_merge_request_builder.go new file mode 100644 index 00000000000..5ae8593781f --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_merge_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergeRequestBuilder provides operations to call the merge method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/merge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action merge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergeRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action merge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergeRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_request_builder.go index 8380b020117..d7610fa862b 100644 --- a/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_request_builder.go @@ -18,6 +18,46 @@ type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilderGet // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// BoundingRectWithAnotherRange provides operations to call the boundingRect method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder) BoundingRectWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeBoundingRectWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// CellWithRowWithColumn provides operations to call the cell method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder) CellWithRowWithColumn(column *int32, row *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeCellWithRowWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column, row) +} +// Clear provides operations to call the clear method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder) Clear()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeClearRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeClearRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfter provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder) ColumnsAfter()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfterWithCount provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder) ColumnsAfterWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsAfterWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnsBefore provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder) ColumnsBefore()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsBeforeWithCount provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder) ColumnsBeforeWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnsBeforeWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnWithColumn provides operations to call the column method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder) ColumnWithColumn(column *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeColumnWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column) +} // NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder and sets the default values. func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder) { m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder{ @@ -31,6 +71,26 @@ func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilderInternal(urlParams, requestAdapter) } +// DeletePath provides operations to call the delete method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder) DeletePath()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeDeleteRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireColumn provides operations to call the entireColumn method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder) EntireColumn()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireRow provides operations to call the entireRow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder) EntireRow()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeEntireRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Format provides operations to manage the format property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder) Format()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeFormatRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Get returns the range object associated with the entire row. // returns a WorkbookRangeable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -54,6 +114,76 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilde } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil } +// Insert provides operations to call the insert method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder) Insert()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeInsertRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeInsertRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// IntersectionWithAnotherRange provides operations to call the intersection method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder) IntersectionWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeIntersectionWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// LastCell provides operations to call the lastCell method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder) LastCell()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastCellRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastCellRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastColumn provides operations to call the lastColumn method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder) LastColumn()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastRow provides operations to call the lastRow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder) LastRow()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeLastRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Merge provides operations to call the merge method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder) Merge()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeMergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// OffsetRangeWithRowOffsetWithColumnOffset provides operations to call the offsetRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder) OffsetRangeWithRowOffsetWithColumnOffset(columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, columnOffset, rowOffset) +} +// ResizedRangeWithDeltaRowsWithDeltaColumns provides operations to call the resizedRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder) ResizedRangeWithDeltaRowsWithDeltaColumns(deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, deltaColumns, deltaRows) +} +// RowsAbove provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder) RowsAbove()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsAboveWithCount provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder) RowsAboveWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowsBelow provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder) RowsBelow()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsBelowWithCount provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder) RowsBelowWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowWithRow provides operations to call the row method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder) RowWithRow(row *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowWithRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, row) +} +// Sort provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder) Sort()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeSortRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeSortRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToGetRequestInformation returns the range object associated with the entire row. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { @@ -65,8 +195,33 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilde requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } +// Unmerge provides operations to call the unmerge method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder) Unmerge()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUnmergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// UsedRange provides operations to call the usedRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder) UsedRange()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// UsedRangeWithValuesOnly provides operations to call the usedRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder) UsedRangeWithValuesOnly(valuesOnly *bool)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeWithValuesOnlyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, valuesOnly) +} +// VisibleView provides operations to call the visibleView method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder) VisibleView()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeVisibleViewRequestBuilderInternal(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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder when successful func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder) { return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); } +// Worksheet provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRequestBuilder) Worksheet()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeWorksheetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_row_with_row_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_row_with_row_request_builder.go new file mode 100644 index 00000000000..6df436b4621 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_row_with_row_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowWithRowRequestBuilder provides operations to call the row method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowWithRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowWithRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowWithRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowWithRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowWithRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, row *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowWithRowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowWithRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/row(row={row})", pathParameters), + } + if row != nil { + m.BaseRequestBuilder.PathParameters["row"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*row), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowWithRowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowWithRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowWithRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowWithRowRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function row +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowWithRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowWithRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function row +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowWithRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowWithRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowWithRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowWithRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_rows_above_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_rows_above_request_builder.go new file mode 100644 index 00000000000..eaa30c9c331 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_rows_above_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/rowsAbove()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsAboveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_rows_below_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_rows_below_request_builder.go new file mode 100644 index 00000000000..2f6ddf190bc --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_rows_below_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/rowsBelow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeRowsBelowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_sort_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_sort_request_builder.go new file mode 100644 index 00000000000..20cf4d1ce70 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_sort_request_builder.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeSortRequestBuilder provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeSortRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeSortRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeSortRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeSortRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeSortRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeSortRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeSortRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeSortRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeSortRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeSortRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeSortRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeSortRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeSortRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeSortRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/sort{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeSortRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeSortRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeSortRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeSortRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property sort for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeSortRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeSortRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeSortRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeSortRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// Patch update the navigation property sort in drives +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeSortRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeSortRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// ToDeleteRequestInformation delete navigation property sort for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeSortRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeSortRequestBuilderDeleteRequestConfiguration)(*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 worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeSortRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeSortRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeSortRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeSortRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeSortRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeSortRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeSortRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_unmerge_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_unmerge_request_builder.go new file mode 100644 index 00000000000..157fcc7e3a4 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_unmerge_request_builder.go @@ -0,0 +1,64 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUnmergeRequestBuilder provides operations to call the unmerge method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUnmergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUnmergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUnmergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUnmergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUnmergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUnmergeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUnmergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/unmerge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUnmergeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUnmergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUnmergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUnmergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unmerge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUnmergeRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUnmergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unmerge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUnmergeRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUnmergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUnmergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUnmergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_used_range_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_used_range_request_builder.go new file mode 100644 index 00000000000..ca4dde9e7b0 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_used_range_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeRequestBuilder provides operations to call the usedRange method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/usedRange()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeRequestBuilderInternal(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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function usedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeUsedRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_visible_view_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_visible_view_request_builder.go new file mode 100644 index 00000000000..82bacc39164 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_visible_view_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeVisibleViewRequestBuilder provides operations to call the visibleView method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeVisibleViewRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeVisibleViewRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeVisibleViewRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeVisibleViewRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeVisibleViewRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeVisibleViewRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeVisibleViewRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/visibleView()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeVisibleViewRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeVisibleViewRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeVisibleViewRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeVisibleViewRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function visibleView +// returns a WorkbookRangeViewable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeVisibleViewRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeVisibleViewRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeViewFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable), nil +} +// ToGetRequestInformation invoke function visibleView +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeVisibleViewRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeVisibleViewRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeVisibleViewRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeVisibleViewRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_worksheet_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_worksheet_request_builder.go new file mode 100644 index 00000000000..b15a74f148a --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_item_range_worksheet_request_builder.go @@ -0,0 +1,81 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeWorksheetRequestBuilder provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeWorksheetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeWorksheetRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeWorksheetRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeWorksheetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeWorksheetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeWorksheetRequestBuilderGetQueryParameters +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeWorksheetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeWorksheetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeWorksheetRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeWorksheetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/rows/{workbookTableRow%2Did}/range()/worksheet{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeWorksheetRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeWorksheetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeWorksheetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeWorksheetRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookWorksheetable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeWorksheetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeWorksheetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookWorksheetFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable), nil +} +// ToGetRequestInformation the worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeWorksheetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeWorksheetRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeWorksheetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsItemRangeWorksheetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_rows_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_request_builder.go index 661748b09d4..ba996cf7e6f 100644 --- a/drives/item_items_item_workbook_worksheets_item_tables_item_rows_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilderGetQueryParameters represents a collection of all the rows in the table. Read-only. +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilderGetQueryParameters the list of all the rows in the table. Read-only. type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -81,7 +81,7 @@ func NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilder(rawUrl s func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilder) Count()(*ItemItemsItemWorkbookWorksheetsItemTablesItemRowsCountRequestBuilder) { return NewItemItemsItemWorkbookWorksheetsItemTablesItemRowsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get represents a collection of all the rows in the table. Read-only. +// Get the list 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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableRowCollectionResponseable, error) { @@ -126,7 +126,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilder) Post(c } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableRowable), nil } -// ToGetRequestInformation represents a collection of all the rows in the table. Read-only. +// ToGetRequestInformation the list of all the rows in the table. Read-only. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsRequestBuilderGetRequestConfiguration)(*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_item_rows_workbook_table_row_item_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_workbook_table_row_item_request_builder.go index 1aa29e7696a..4b3d00f0bd0 100644 --- a/drives/item_items_item_workbook_worksheets_item_tables_item_rows_workbook_table_row_item_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_rows_workbook_table_row_item_request_builder.go @@ -18,7 +18,7 @@ type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemReques // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilderGetQueryParameters represents a collection of all the rows in the table. Read-only. +// ItemItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilderGetQueryParameters the list of all the rows in the table. Read-only. type ItemItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,7 +70,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRe } return nil } -// Get represents a collection of all the rows in the table. Read-only. +// Get the list 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 *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableRowable, error) { @@ -126,7 +126,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRe requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation represents a collection of all the rows in the table. Read-only. +// ToGetRequestInformation the list of all the rows in the table. Read-only. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemRowsWorkbookTableRowItemRequestBuilderGetRequestConfiguration)(*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_item_sort_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_sort_request_builder.go index 5acd53bce59..8721b9a89fb 100644 --- a/drives/item_items_item_workbook_worksheets_item_tables_item_sort_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_sort_request_builder.go @@ -18,7 +18,7 @@ type ItemItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilderDeleteReques // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilderGetQueryParameters represents the sorting for the table. Read-only. +// ItemItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilderGetQueryParameters the sorting for the table. Read-only. type ItemItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -80,7 +80,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilder) Delete } return nil } -// Get represents the sorting for the table. Read-only. +// Get 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 *ItemItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableSortable, error) { @@ -136,7 +136,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilder) ToDele requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation represents the sorting for the table. Read-only. +// ToGetRequestInformation the sorting for the table. Read-only. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemSortRequestBuilderGetRequestConfiguration)(*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_item_total_row_range_clear_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_clear_post_request_body.go new file mode 100644 index 00000000000..780a84b2871 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_clear_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeClearPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeClearPostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeClearPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeClearPostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeClearPostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeClearPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeClearPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeClearPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeClearPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeClearPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetApplyTo gets the applyTo property value. The applyTo property +// returns a *string when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeClearPostRequestBody) GetApplyTo()(*string) { + val, err := m.GetBackingStore().Get("applyTo") + 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 *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeClearPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeClearPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["applyTo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetApplyTo(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeClearPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("applyTo", m.GetApplyTo()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeClearPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetApplyTo sets the applyTo property value. The applyTo property +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeClearPostRequestBody) SetApplyTo(value *string)() { + err := m.GetBackingStore().Set("applyTo", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeClearPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeClearPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetApplyTo()(*string) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetApplyTo(value *string)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_clear_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_clear_request_builder.go new file mode 100644 index 00000000000..7c6df6b77ca --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_clear_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeClearRequestBuilder provides operations to call the clear method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeClearRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeClearRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeClearRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeClearRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeClearRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeClearRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeClearRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/clear", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeClearRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeClearRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeClearRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeClearRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action clear +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeClearRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeClearRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action clear +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeClearRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeClearRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeClearRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeClearRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeClearRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_columns_after_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_columns_after_request_builder.go new file mode 100644 index 00000000000..1f3a0de7231 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_columns_after_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/columnsAfter()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_columns_before_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_columns_before_request_builder.go new file mode 100644 index 00000000000..859484d8f00 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_columns_before_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/columnsBefore()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_delete_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_delete_post_request_body.go new file mode 100644 index 00000000000..ca6335e1006 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_delete_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeDeletePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeDeletePostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeDeletePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeDeletePostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeDeletePostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeDeletePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeDeletePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeDeletePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeDeletePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeDeletePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeDeletePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeDeletePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeDeletePostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeDeletePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeDeletePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeDeletePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeDeletePostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeDeletePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_delete_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_delete_request_builder.go new file mode 100644 index 00000000000..98b751c28f9 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_delete_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeDeleteRequestBuilder provides operations to call the delete method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeDeleteRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeDeleteRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/delete", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeDeleteRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action delete +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeDeleteRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action delete +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeDeleteRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_entire_column_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_entire_column_request_builder.go new file mode 100644 index 00000000000..3e39661ff87 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_entire_column_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireColumnRequestBuilder provides operations to call the entireColumn method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/entireColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_entire_row_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_entire_row_request_builder.go new file mode 100644 index 00000000000..f56429e2ca9 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_entire_row_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireRowRequestBuilder provides operations to call the entireRow method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireRowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/entireRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireRowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_format_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_format_request_builder.go new file mode 100644 index 00000000000..e6fb5cd9454 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_format_request_builder.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeFormatRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeFormatRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeFormatRequestBuilderGetQueryParameters returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeFormatRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeFormatRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeFormatRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeFormatRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeFormatRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeFormatRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeFormatRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/format{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeFormatRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeFormatRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeFormatRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property format for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeFormatRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeFormatRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// Patch update the navigation property format in drives +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeFormatRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeFormatRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// ToDeleteRequestInformation delete navigation property format for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeFormatRequestBuilderDeleteRequestConfiguration)(*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 format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeFormatRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeFormatRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeFormatRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_insert_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_insert_post_request_body.go new file mode 100644 index 00000000000..50e79964a25 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_insert_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeInsertPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeInsertPostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeInsertPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeInsertPostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeInsertPostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeInsertPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeInsertPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeInsertPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeInsertPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeInsertPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeInsertPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeInsertPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeInsertPostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeInsertPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeInsertPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeInsertPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeInsertPostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeInsertPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_insert_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_insert_request_builder.go new file mode 100644 index 00000000000..2d0061ce717 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_insert_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeInsertRequestBuilder provides operations to call the insert method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeInsertRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeInsertRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeInsertRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeInsertRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeInsertRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeInsertRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeInsertRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/insert", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeInsertRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeInsertRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeInsertRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeInsertRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action insert +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeInsertRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeInsertRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToPostRequestInformation invoke action insert +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeInsertRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeInsertRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeInsertRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeInsertRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeInsertRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_last_cell_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_last_cell_request_builder.go new file mode 100644 index 00000000000..a1460386a5e --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_last_cell_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastCellRequestBuilder provides operations to call the lastCell method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastCellRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastCellRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastCellRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastCellRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastCellRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastCellRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastCellRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/lastCell()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastCellRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastCellRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastCellRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastCellRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastCell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastCellRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastCellRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastCell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastCellRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastCellRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastCellRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastCellRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastCellRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_last_column_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_last_column_request_builder.go new file mode 100644 index 00000000000..6727ece97fb --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_last_column_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastColumnRequestBuilder provides operations to call the lastColumn method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/lastColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_last_row_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_last_row_request_builder.go new file mode 100644 index 00000000000..dc0440215a5 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_last_row_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastRowRequestBuilder provides operations to call the lastRow method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastRowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/lastRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastRowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_merge_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_merge_post_request_body.go new file mode 100644 index 00000000000..c45f0cfa54e --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_merge_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergePostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergePostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergePostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergePostRequestBody(), nil +} +// GetAcross gets the across property value. The across property +// returns a *bool when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergePostRequestBody) GetAcross()(*bool) { + val, err := m.GetBackingStore().Get("across") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + 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 *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["across"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetAcross(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("across", m.GetAcross()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAcross sets the across property value. The across property +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergePostRequestBody) SetAcross(value *bool)() { + err := m.GetBackingStore().Set("across", 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 *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAcross()(*bool) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetAcross(value *bool)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_merge_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_merge_request_builder.go new file mode 100644 index 00000000000..003f0f27403 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_merge_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergeRequestBuilder provides operations to call the merge method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/merge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action merge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergeRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action merge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergeRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_request_builder.go index fb964dbc141..b716c3b6674 100644 --- a/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_request_builder.go @@ -18,6 +18,46 @@ type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilderGet // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// BoundingRectWithAnotherRange provides operations to call the boundingRect method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder) BoundingRectWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeBoundingRectWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// CellWithRowWithColumn provides operations to call the cell method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder) CellWithRowWithColumn(column *int32, row *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeCellWithRowWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column, row) +} +// Clear provides operations to call the clear method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder) Clear()(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeClearRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeClearRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfter provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder) ColumnsAfter()(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfterWithCount provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder) ColumnsAfterWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsAfterWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnsBefore provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder) ColumnsBefore()(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsBeforeWithCount provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder) ColumnsBeforeWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnsBeforeWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnWithColumn provides operations to call the column method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder) ColumnWithColumn(column *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeColumnWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column) +} // NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder and sets the default values. func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder) { m := &ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder{ @@ -31,6 +71,26 @@ func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilderInternal(urlParams, requestAdapter) } +// DeletePath provides operations to call the delete method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder) DeletePath()(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeDeleteRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireColumn provides operations to call the entireColumn method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder) EntireColumn()(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireRow provides operations to call the entireRow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder) EntireRow()(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeEntireRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Format provides operations to manage the format property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder) Format()(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeFormatRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.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 @@ -54,6 +114,76 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilde } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil } +// Insert provides operations to call the insert method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder) Insert()(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeInsertRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeInsertRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// IntersectionWithAnotherRange provides operations to call the intersection method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder) IntersectionWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeIntersectionWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// LastCell provides operations to call the lastCell method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder) LastCell()(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastCellRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastCellRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastColumn provides operations to call the lastColumn method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder) LastColumn()(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastRow provides operations to call the lastRow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder) LastRow()(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeLastRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Merge provides operations to call the merge method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder) Merge()(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeMergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// OffsetRangeWithRowOffsetWithColumnOffset provides operations to call the offsetRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder) OffsetRangeWithRowOffsetWithColumnOffset(columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, columnOffset, rowOffset) +} +// ResizedRangeWithDeltaRowsWithDeltaColumns provides operations to call the resizedRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder) ResizedRangeWithDeltaRowsWithDeltaColumns(deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, deltaColumns, deltaRows) +} +// RowsAbove provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder) RowsAbove()(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsAboveWithCount provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder) RowsAboveWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowsBelow provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder) RowsBelow()(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsBelowWithCount provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder) RowsBelowWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowWithRow provides operations to call the row method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder) RowWithRow(row *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowWithRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, row) +} +// Sort provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder) Sort()(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeSortRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeSortRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToGetRequestInformation gets the range object associated with totals row of the table. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { @@ -65,8 +195,33 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilde requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } +// Unmerge provides operations to call the unmerge method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder) Unmerge()(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUnmergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// UsedRange provides operations to call the usedRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder) UsedRange()(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// UsedRangeWithValuesOnly provides operations to call the usedRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder) UsedRangeWithValuesOnly(valuesOnly *bool)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeWithValuesOnlyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, valuesOnly) +} +// VisibleView provides operations to call the visibleView method. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder) VisibleView()(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeVisibleViewRequestBuilderInternal(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 *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder when successful func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder) { return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); } +// Worksheet provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRequestBuilder) Worksheet()(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeWorksheetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_row_with_row_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_row_with_row_request_builder.go new file mode 100644 index 00000000000..bc1e123bf37 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_row_with_row_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowWithRowRequestBuilder provides operations to call the row method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowWithRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowWithRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowWithRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowWithRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowWithRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, row *int32)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowWithRowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowWithRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/row(row={row})", pathParameters), + } + if row != nil { + m.BaseRequestBuilder.PathParameters["row"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*row), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowWithRowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowWithRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowWithRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowWithRowRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function row +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowWithRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowWithRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function row +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowWithRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowWithRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowWithRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowWithRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_rows_above_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_rows_above_request_builder.go new file mode 100644 index 00000000000..11ff389dc10 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_rows_above_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/rowsAbove()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsAboveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_rows_below_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_rows_below_request_builder.go new file mode 100644 index 00000000000..fa5a05aa4c4 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_rows_below_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/rowsBelow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeRowsBelowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_sort_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_sort_request_builder.go new file mode 100644 index 00000000000..20df8112118 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_sort_request_builder.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeSortRequestBuilder provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeSortRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeSortRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeSortRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeSortRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeSortRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeSortRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeSortRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeSortRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeSortRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeSortRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeSortRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeSortRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeSortRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeSortRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/sort{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeSortRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeSortRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeSortRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeSortRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property sort for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeSortRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeSortRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeSortRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeSortRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// Patch update the navigation property sort in drives +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeSortRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeSortRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// ToDeleteRequestInformation delete navigation property sort for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeSortRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeSortRequestBuilderDeleteRequestConfiguration)(*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 worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeSortRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeSortRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeSortRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeSortRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeSortRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeSortRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeSortRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_unmerge_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_unmerge_request_builder.go new file mode 100644 index 00000000000..ba7e10610bb --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_unmerge_request_builder.go @@ -0,0 +1,64 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUnmergeRequestBuilder provides operations to call the unmerge method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUnmergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUnmergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUnmergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUnmergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUnmergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUnmergeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUnmergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/unmerge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUnmergeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUnmergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUnmergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUnmergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unmerge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUnmergeRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUnmergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unmerge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUnmergeRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUnmergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUnmergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUnmergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_used_range_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_used_range_request_builder.go new file mode 100644 index 00000000000..1036d54a54f --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_used_range_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeRequestBuilder provides operations to call the usedRange method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/usedRange()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeRequestBuilderInternal(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 *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function usedRange +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeUsedRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_visible_view_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_visible_view_request_builder.go new file mode 100644 index 00000000000..f4a082e594f --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_visible_view_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeVisibleViewRequestBuilder provides operations to call the visibleView method. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeVisibleViewRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeVisibleViewRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeVisibleViewRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeVisibleViewRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeVisibleViewRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeVisibleViewRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeVisibleViewRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/visibleView()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeVisibleViewRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeVisibleViewRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeVisibleViewRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeVisibleViewRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function visibleView +// returns a WorkbookRangeViewable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeVisibleViewRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeVisibleViewRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeViewFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable), nil +} +// ToGetRequestInformation invoke function visibleView +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeVisibleViewRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeVisibleViewRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeVisibleViewRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeVisibleViewRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_worksheet_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_worksheet_request_builder.go new file mode 100644 index 00000000000..9b187d05bbd --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_tables_item_total_row_range_worksheet_request_builder.go @@ -0,0 +1,81 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeWorksheetRequestBuilder provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeWorksheetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeWorksheetRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeWorksheetRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeWorksheetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeWorksheetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeWorksheetRequestBuilderGetQueryParameters +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeWorksheetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeWorksheetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeWorksheetRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeWorksheetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/tables/{workbookTable%2Did}/totalRowRange()/worksheet{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeWorksheetRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeWorksheetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeWorksheetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeWorksheetRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookWorksheetable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeWorksheetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeWorksheetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookWorksheetFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable), nil +} +// ToGetRequestInformation the worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeWorksheetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeWorksheetRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeWorksheetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemTablesItemTotalRowRangeWorksheetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_tables_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_request_builder.go index e2d18da47a5..96bf093e755 100644 --- a/drives/item_items_item_workbook_worksheets_item_tables_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_tables_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemItemsItemWorkbookWorksheetsItemTablesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemItemsItemWorkbookWorksheetsItemTablesRequestBuilderGetQueryParameters collection of tables that are part of the worksheet. Read-only. +// ItemItemsItemWorkbookWorksheetsItemTablesRequestBuilderGetQueryParameters the list of tables that are part of the worksheet. Read-only. type ItemItemsItemWorkbookWorksheetsItemTablesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -81,7 +81,7 @@ func NewItemItemsItemWorkbookWorksheetsItemTablesRequestBuilder(rawUrl string, r func (m *ItemItemsItemWorkbookWorksheetsItemTablesRequestBuilder) Count()(*ItemItemsItemWorkbookWorksheetsItemTablesCountRequestBuilder) { return NewItemItemsItemWorkbookWorksheetsItemTablesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get collection of tables that are part of the worksheet. Read-only. +// Get the list 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 *ItemItemsItemWorkbookWorksheetsItemTablesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableCollectionResponseable, error) { @@ -126,7 +126,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesRequestBuilder) Post(ctx conte } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableable), nil } -// ToGetRequestInformation collection of tables that are part of the worksheet. Read-only. +// ToGetRequestInformation the list of tables that are part of the worksheet. Read-only. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemTablesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesRequestBuilderGetRequestConfiguration)(*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_workbook_table_item_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tables_workbook_table_item_request_builder.go index 728dc10f787..e0ca00b0cec 100644 --- a/drives/item_items_item_workbook_worksheets_item_tables_workbook_table_item_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_tables_workbook_table_item_request_builder.go @@ -18,7 +18,7 @@ type ItemItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilderDel // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilderGetQueryParameters collection of tables that are part of the worksheet. Read-only. +// ItemItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilderGetQueryParameters the list of tables that are part of the worksheet. Read-only. type ItemItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -90,7 +90,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilde } return nil } -// Get collection of tables that are part of the worksheet. Read-only. +// Get the list 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 *ItemItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookTableable, error) { @@ -166,7 +166,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilde requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation collection of tables that are part of the worksheet. Read-only. +// ToGetRequestInformation the list of tables that are part of the worksheet. Read-only. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTablesWorkbookTableItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_replies_request_builder.go b/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_replies_request_builder.go index 4b853cc848f..1aa3712890d 100644 --- a/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_replies_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_tasks_item_comment_replies_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesRequestBuilderGetQueryParameters get replies from drives +// ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesRequestBuilderGetQueryParameters the list of replies to the comment. Read-only. Nullable. type ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesRequestBuilder func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesRequestBuilder) Count()(*ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesCountRequestBuilder) { return NewItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get replies from drives +// Get the list of replies to the comment. Read-only. Nullable. // returns a WorkbookCommentReplyCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentReplyCollectionResponseable, error) { @@ -116,7 +116,7 @@ func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesRequestBuilde } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookCommentReplyable), nil } -// ToGetRequestInformation get replies from drives +// ToGetRequestInformation the list of replies to the comment. Read-only. Nullable. // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemTasksItemCommentRepliesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_bounding_rect_with_another_range_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_bounding_rect_with_another_range_request_builder.go new file mode 100644 index 00000000000..e72ac704f8e --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_bounding_rect_with_another_range_request_builder.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeBoundingRectWithAnotherRangeRequestBuilder provides operations to call the boundingRect method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeBoundingRectWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeBoundingRectWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeBoundingRectWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeBoundingRectWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeBoundingRectWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/boundingRect(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeBoundingRectWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeBoundingRectWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeBoundingRectWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeBoundingRectWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeBoundingRectWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function boundingRect +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeBoundingRectWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function boundingRect +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeBoundingRectWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeBoundingRectWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeBoundingRectWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeBoundingRectWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_cell_with_row_with_column_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_cell_with_row_with_column_request_builder.go new file mode 100644 index 00000000000..5cdcba3f715 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_cell_with_row_with_column_request_builder.go @@ -0,0 +1,76 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeCellWithRowWithColumnRequestBuilder provides operations to call the cell method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeCellWithRowWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeCellWithRowWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeCellWithRowWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32, row *int32)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeCellWithRowWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeCellWithRowWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/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 +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeCellWithRowWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeCellWithRowWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeCellWithRowWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeCellWithRowWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeCellWithRowWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil, nil) +} +// Get invoke function cell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeCellWithRowWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function cell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeCellWithRowWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeCellWithRowWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeCellWithRowWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeCellWithRowWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_clear_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_used_range_clear_post_request_body.go new file mode 100644 index 00000000000..55438c2da77 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_clear_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemUsedRangeClearPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeClearPostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeClearPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeClearPostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemUsedRangeClearPostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeClearPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemUsedRangeClearPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemUsedRangeClearPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeClearPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeClearPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetApplyTo gets the applyTo property value. The applyTo property +// returns a *string when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeClearPostRequestBody) GetApplyTo()(*string) { + val, err := m.GetBackingStore().Get("applyTo") + 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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeClearPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeClearPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["applyTo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetApplyTo(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeClearPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("applyTo", m.GetApplyTo()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeClearPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetApplyTo sets the applyTo property value. The applyTo property +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeClearPostRequestBody) SetApplyTo(value *string)() { + err := m.GetBackingStore().Set("applyTo", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeClearPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookWorksheetsItemUsedRangeClearPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetApplyTo()(*string) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetApplyTo(value *string)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_clear_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_clear_request_builder.go new file mode 100644 index 00000000000..34f4ba3750a --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_clear_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeClearRequestBuilder provides operations to call the clear method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeClearRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeClearRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeClearRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeClearRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeClearRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeClearRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeClearRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/clear", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeClearRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeClearRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeClearRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeClearRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action clear +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeClearRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemUsedRangeClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeClearRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action clear +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeClearRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemUsedRangeClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeClearRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeClearRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeClearRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeClearRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_column_with_column_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_column_with_column_request_builder.go new file mode 100644 index 00000000000..4da6c79965a --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_column_with_column_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnWithColumnRequestBuilder provides operations to call the column method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnWithColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnWithColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnWithColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeColumnWithColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeColumnWithColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, column *int32)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnWithColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnWithColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/column(column={column})", pathParameters), + } + if column != nil { + m.BaseRequestBuilder.PathParameters["column"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*column), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeColumnWithColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnWithColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeColumnWithColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnWithColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeColumnWithColumnRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function column +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnWithColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnWithColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function column +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnWithColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnWithColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnWithColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeColumnWithColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_columns_after_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_columns_after_request_builder.go new file mode 100644 index 00000000000..52f7a84a228 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_columns_after_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/columnsAfter()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_columns_after_with_count_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_columns_after_with_count_request_builder.go new file mode 100644 index 00000000000..798ffd68453 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_columns_after_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterWithCountRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/columnsAfter(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_columns_before_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_columns_before_request_builder.go new file mode 100644 index 00000000000..95003d81e3f --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_columns_before_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/columnsBefore()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_columns_before_with_count_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_columns_before_with_count_request_builder.go new file mode 100644 index 00000000000..c07b079e0c7 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_columns_before_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeWithCountRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/columnsBefore(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_delete_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_used_range_delete_post_request_body.go new file mode 100644 index 00000000000..e493e4cb49b --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_delete_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemUsedRangeDeletePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeDeletePostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeDeletePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeDeletePostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemUsedRangeDeletePostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeDeletePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemUsedRangeDeletePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemUsedRangeDeletePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeDeletePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeDeletePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeDeletePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeDeletePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeDeletePostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeDeletePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeDeletePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeDeletePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeDeletePostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookWorksheetsItemUsedRangeDeletePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_delete_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_delete_request_builder.go new file mode 100644 index 00000000000..ceac59e7524 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_delete_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeDeleteRequestBuilder provides operations to call the delete method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeDeleteRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeDeleteRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/delete", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeDeleteRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action delete +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeDeleteRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemUsedRangeDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action delete +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemUsedRangeDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeDeleteRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_entire_column_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_entire_column_request_builder.go new file mode 100644 index 00000000000..31969443dbb --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_entire_column_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeEntireColumnRequestBuilder provides operations to call the entireColumn method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeEntireColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeEntireColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeEntireColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeEntireColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeEntireColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeEntireColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeEntireColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/entireColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeEntireColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeEntireColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeEntireColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeEntireColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeEntireColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeEntireColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeEntireColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeEntireColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeEntireColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeEntireColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_entire_row_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_entire_row_request_builder.go new file mode 100644 index 00000000000..73d323baecc --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_entire_row_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeEntireRowRequestBuilder provides operations to call the entireRow method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeEntireRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeEntireRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeEntireRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeEntireRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeEntireRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeEntireRowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeEntireRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/entireRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeEntireRowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeEntireRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeEntireRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeEntireRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeEntireRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeEntireRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeEntireRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeEntireRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeEntireRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeEntireRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_format_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_format_request_builder.go new file mode 100644 index 00000000000..e70035deaa9 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_format_request_builder.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeFormatRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeFormatRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeFormatRequestBuilderGetQueryParameters returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeFormatRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeFormatRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemUsedRangeFormatRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeFormatRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeFormatRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeFormatRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeFormatRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/format{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeFormatRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeFormatRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeFormatRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property format for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeFormatRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeFormatRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// Patch update the navigation property format in drives +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeFormatRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeFormatRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// ToDeleteRequestInformation delete navigation property format for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeFormatRequestBuilderDeleteRequestConfiguration)(*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 format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeFormatRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeFormatRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeFormatRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_insert_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_used_range_insert_post_request_body.go new file mode 100644 index 00000000000..055af500d22 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_insert_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemUsedRangeInsertPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeInsertPostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeInsertPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeInsertPostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemUsedRangeInsertPostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeInsertPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemUsedRangeInsertPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemUsedRangeInsertPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeInsertPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeInsertPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeInsertPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeInsertPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeInsertPostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeInsertPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeInsertPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeInsertPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeInsertPostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookWorksheetsItemUsedRangeInsertPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_insert_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_insert_request_builder.go new file mode 100644 index 00000000000..51b58335c4f --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_insert_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeInsertRequestBuilder provides operations to call the insert method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeInsertRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeInsertRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeInsertRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeInsertRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeInsertRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeInsertRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeInsertRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/insert", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeInsertRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeInsertRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeInsertRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeInsertRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action insert +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeInsertRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemUsedRangeInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeInsertRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToPostRequestInformation invoke action insert +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeInsertRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemUsedRangeInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeInsertRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeInsertRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeInsertRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeInsertRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_intersection_with_another_range_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_intersection_with_another_range_request_builder.go new file mode 100644 index 00000000000..77d480fa8bc --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_intersection_with_another_range_request_builder.go @@ -0,0 +1,72 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeIntersectionWithAnotherRangeRequestBuilder provides operations to call the intersection method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeIntersectionWithAnotherRangeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeIntersectionWithAnotherRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeIntersectionWithAnotherRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeIntersectionWithAnotherRangeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeIntersectionWithAnotherRangeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/intersection(anotherRange='{anotherRange}')", pathParameters), + } + if anotherRange != nil { + m.BaseRequestBuilder.PathParameters["anotherRange"] = *anotherRange + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeIntersectionWithAnotherRangeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeIntersectionWithAnotherRangeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeIntersectionWithAnotherRangeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeIntersectionWithAnotherRangeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeIntersectionWithAnotherRangeRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function intersection +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeIntersectionWithAnotherRangeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function intersection +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeIntersectionWithAnotherRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeIntersectionWithAnotherRangeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeIntersectionWithAnotherRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeIntersectionWithAnotherRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_last_cell_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_last_cell_request_builder.go new file mode 100644 index 00000000000..93dd8221839 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_last_cell_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeLastCellRequestBuilder provides operations to call the lastCell method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeLastCellRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeLastCellRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeLastCellRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeLastCellRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeLastCellRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeLastCellRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeLastCellRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/lastCell()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeLastCellRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeLastCellRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeLastCellRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeLastCellRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastCell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeLastCellRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeLastCellRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastCell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeLastCellRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeLastCellRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeLastCellRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeLastCellRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeLastCellRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_last_column_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_last_column_request_builder.go new file mode 100644 index 00000000000..077c8c0c016 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_last_column_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeLastColumnRequestBuilder provides operations to call the lastColumn method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeLastColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeLastColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeLastColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeLastColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeLastColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeLastColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeLastColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/lastColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeLastColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeLastColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeLastColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeLastColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeLastColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeLastColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeLastColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeLastColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeLastColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeLastColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_last_row_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_last_row_request_builder.go new file mode 100644 index 00000000000..b35f40902bf --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_last_row_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeLastRowRequestBuilder provides operations to call the lastRow method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeLastRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeLastRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeLastRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeLastRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeLastRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeLastRowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeLastRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/lastRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeLastRowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeLastRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeLastRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeLastRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeLastRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeLastRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeLastRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeLastRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeLastRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeLastRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeLastRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_merge_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_used_range_merge_post_request_body.go new file mode 100644 index 00000000000..3ea4bb221b3 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_merge_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemUsedRangeMergePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeMergePostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeMergePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeMergePostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemUsedRangeMergePostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeMergePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemUsedRangeMergePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemUsedRangeMergePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeMergePostRequestBody(), nil +} +// GetAcross gets the across property value. The across property +// returns a *bool when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeMergePostRequestBody) GetAcross()(*bool) { + val, err := m.GetBackingStore().Get("across") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + 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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeMergePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeMergePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeMergePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["across"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetAcross(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeMergePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("across", m.GetAcross()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAcross sets the across property value. The across property +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeMergePostRequestBody) SetAcross(value *bool)() { + err := m.GetBackingStore().Set("across", 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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeMergePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeMergePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookWorksheetsItemUsedRangeMergePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAcross()(*bool) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetAcross(value *bool)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_merge_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_merge_request_builder.go new file mode 100644 index 00000000000..c1b19e717d8 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_merge_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeMergeRequestBuilder provides operations to call the merge method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeMergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeMergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeMergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeMergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeMergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeMergeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeMergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/merge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeMergeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeMergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeMergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeMergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action merge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeMergeRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemUsedRangeMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeMergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action merge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeMergeRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemUsedRangeMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeMergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeMergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeMergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeMergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_request_builder.go index 2e292496825..cff444579e7 100644 --- a/drives/item_items_item_workbook_worksheets_item_used_range_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_used_range_request_builder.go @@ -18,6 +18,46 @@ type ItemItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilderGetRequestConfigu // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// BoundingRectWithAnotherRange provides operations to call the boundingRect method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder) BoundingRectWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeBoundingRectWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// CellWithRowWithColumn provides operations to call the cell method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder) CellWithRowWithColumn(column *int32, row *int32)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeCellWithRowWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column, row) +} +// Clear provides operations to call the clear method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder) Clear()(*ItemItemsItemWorkbookWorksheetsItemUsedRangeClearRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeClearRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfter provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder) ColumnsAfter()(*ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfterWithCount provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder) ColumnsAfterWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsAfterWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnsBefore provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder) ColumnsBefore()(*ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsBeforeWithCount provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder) ColumnsBeforeWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeColumnsBeforeWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnWithColumn provides operations to call the column method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder) ColumnWithColumn(column *int32)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeColumnWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column) +} // NewItemItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder and sets the default values. func NewItemItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder) { m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder{ @@ -31,6 +71,26 @@ func NewItemItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder(rawUrl string urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilderInternal(urlParams, requestAdapter) } +// DeletePath provides operations to call the delete method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder) DeletePath()(*ItemItemsItemWorkbookWorksheetsItemUsedRangeDeleteRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireColumn provides operations to call the entireColumn method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder) EntireColumn()(*ItemItemsItemWorkbookWorksheetsItemUsedRangeEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeEntireColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireRow provides operations to call the entireRow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder) EntireRow()(*ItemItemsItemWorkbookWorksheetsItemUsedRangeEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeEntireRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Format provides operations to manage the format property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder) Format()(*ItemItemsItemWorkbookWorksheetsItemUsedRangeFormatRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Get invoke function usedRange // returns a WorkbookRangeable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -51,6 +111,76 @@ func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder) Get(ctx con } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil } +// Insert provides operations to call the insert method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder) Insert()(*ItemItemsItemWorkbookWorksheetsItemUsedRangeInsertRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeInsertRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// IntersectionWithAnotherRange provides operations to call the intersection method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder) IntersectionWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeIntersectionWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// LastCell provides operations to call the lastCell method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder) LastCell()(*ItemItemsItemWorkbookWorksheetsItemUsedRangeLastCellRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeLastCellRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastColumn provides operations to call the lastColumn method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder) LastColumn()(*ItemItemsItemWorkbookWorksheetsItemUsedRangeLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeLastColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastRow provides operations to call the lastRow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder) LastRow()(*ItemItemsItemWorkbookWorksheetsItemUsedRangeLastRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeLastRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Merge provides operations to call the merge method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder) Merge()(*ItemItemsItemWorkbookWorksheetsItemUsedRangeMergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeMergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// OffsetRangeWithRowOffsetWithColumnOffset provides operations to call the offsetRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder) OffsetRangeWithRowOffsetWithColumnOffset(columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, columnOffset, rowOffset) +} +// ResizedRangeWithDeltaRowsWithDeltaColumns provides operations to call the resizedRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder) ResizedRangeWithDeltaRowsWithDeltaColumns(deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, deltaColumns, deltaRows) +} +// RowsAbove provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder) RowsAbove()(*ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsAboveWithCount provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder) RowsAboveWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowsBelow provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder) RowsBelow()(*ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsBelowWithCount provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder) RowsBelowWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowWithRow provides operations to call the row method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder) RowWithRow(row *int32)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeRowWithRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, row) +} +// Sort provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder) Sort()(*ItemItemsItemWorkbookWorksheetsItemUsedRangeSortRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeSortRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToGetRequestInformation invoke function usedRange // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { @@ -62,8 +192,23 @@ func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder) ToGetReques requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } +// Unmerge provides operations to call the unmerge method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder) Unmerge()(*ItemItemsItemWorkbookWorksheetsItemUsedRangeUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeUnmergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// VisibleView provides operations to call the visibleView method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder) VisibleView()(*ItemItemsItemWorkbookWorksheetsItemUsedRangeVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeVisibleViewRequestBuilderInternal(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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder when successful func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder) { return NewItemItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); } +// Worksheet provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRequestBuilder) Worksheet()(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWorksheetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_row_with_row_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_row_with_row_request_builder.go new file mode 100644 index 00000000000..c17c3e91c8d --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_row_with_row_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeRowWithRowRequestBuilder provides operations to call the row method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeRowWithRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeRowWithRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeRowWithRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeRowWithRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeRowWithRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, row *int32)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeRowWithRowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeRowWithRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/row(row={row})", pathParameters), + } + if row != nil { + m.BaseRequestBuilder.PathParameters["row"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*row), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeRowWithRowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeRowWithRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeRowWithRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeRowWithRowRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function row +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRowWithRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeRowWithRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function row +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRowWithRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeRowWithRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRowWithRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeRowWithRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_rows_above_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_rows_above_request_builder.go new file mode 100644 index 00000000000..040d4ed6a62 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_rows_above_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/rowsAbove()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_rows_above_with_count_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_rows_above_with_count_request_builder.go new file mode 100644 index 00000000000..cc2863a51bf --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_rows_above_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveWithCountRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/rowsAbove(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeRowsAboveWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_rows_below_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_rows_below_request_builder.go new file mode 100644 index 00000000000..1b6f7295e88 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_rows_below_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/rowsBelow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_rows_below_with_count_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_rows_below_with_count_request_builder.go new file mode 100644 index 00000000000..178062b39c4 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_rows_below_with_count_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowWithCountRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowWithCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowWithCountRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowWithCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, count *int32)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowWithCountRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowWithCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/rowsBelow(count={count})", pathParameters), + } + if count != nil { + m.BaseRequestBuilder.PathParameters["count"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*count), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowWithCountRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowWithCountRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowWithCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowWithCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowWithCountRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowWithCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowWithCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowWithCountRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowWithCountRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeRowsBelowWithCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_sort_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_sort_request_builder.go new file mode 100644 index 00000000000..71f709bf02a --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_sort_request_builder.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeSortRequestBuilder provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeSortRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeSortRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeSortRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeSortRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeSortRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeSortRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeSortRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemUsedRangeSortRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeSortRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeSortRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeSortRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeSortRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeSortRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeSortRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/sort{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeSortRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeSortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeSortRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeSortRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeSortRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property sort for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeSortRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeSortRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeSortRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeSortRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// Patch update the navigation property sort in drives +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeSortRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeSortRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// ToDeleteRequestInformation delete navigation property sort for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeSortRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeSortRequestBuilderDeleteRequestConfiguration)(*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 worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeSortRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeSortRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeSortRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeSortRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeSortRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeSortRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeSortRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeSortRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_unmerge_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_unmerge_request_builder.go new file mode 100644 index 00000000000..8105e0d6b8c --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_unmerge_request_builder.go @@ -0,0 +1,64 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeUnmergeRequestBuilder provides operations to call the unmerge method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeUnmergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeUnmergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeUnmergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeUnmergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeUnmergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeUnmergeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeUnmergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/unmerge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeUnmergeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeUnmergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeUnmergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeUnmergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unmerge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeUnmergeRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeUnmergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unmerge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeUnmergeRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeUnmergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeUnmergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeUnmergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_visible_view_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_visible_view_request_builder.go new file mode 100644 index 00000000000..fba3d2e84b0 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_visible_view_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeVisibleViewRequestBuilder provides operations to call the visibleView method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeVisibleViewRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeVisibleViewRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeVisibleViewRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeVisibleViewRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeVisibleViewRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeVisibleViewRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeVisibleViewRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/visibleView()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeVisibleViewRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeVisibleViewRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeVisibleViewRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeVisibleViewRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function visibleView +// returns a WorkbookRangeViewable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeVisibleViewRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeVisibleViewRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeViewFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable), nil +} +// ToGetRequestInformation invoke function visibleView +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeVisibleViewRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeVisibleViewRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeVisibleViewRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeVisibleViewRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_clear_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_clear_post_request_body.go new file mode 100644 index 00000000000..3bfe79fd5ce --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_clear_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyClearPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyClearPostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyClearPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyClearPostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyClearPostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyClearPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyClearPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyClearPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyClearPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyClearPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetApplyTo gets the applyTo property value. The applyTo property +// returns a *string when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyClearPostRequestBody) GetApplyTo()(*string) { + val, err := m.GetBackingStore().Get("applyTo") + 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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyClearPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyClearPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["applyTo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetApplyTo(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyClearPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("applyTo", m.GetApplyTo()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyClearPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetApplyTo sets the applyTo property value. The applyTo property +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyClearPostRequestBody) SetApplyTo(value *string)() { + err := m.GetBackingStore().Set("applyTo", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyClearPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyClearPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetApplyTo()(*string) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetApplyTo(value *string)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_clear_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_clear_request_builder.go new file mode 100644 index 00000000000..2a8c2e175f7 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_clear_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyClearRequestBuilder provides operations to call the clear method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyClearRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyClearRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyClearRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyClearRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyClearRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyClearRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyClearRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/clear", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyClearRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyClearRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyClearRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyClearRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyClearRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action clear +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyClearRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyClearRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action clear +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyClearRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyClearPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyClearRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyClearRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyClearRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyClearRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_columns_after_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_columns_after_request_builder.go new file mode 100644 index 00000000000..60b492c729b --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_columns_after_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterRequestBuilder provides operations to call the columnsAfter method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/columnsAfter()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsAfter +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsAfter +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_columns_before_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_columns_before_request_builder.go new file mode 100644 index 00000000000..e1dbba955e3 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_columns_before_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeRequestBuilder provides operations to call the columnsBefore method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/columnsBefore()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function columnsBefore +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function columnsBefore +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_delete_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_delete_post_request_body.go new file mode 100644 index 00000000000..dbdf4c13d72 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_delete_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyDeletePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyDeletePostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyDeletePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyDeletePostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyDeletePostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyDeletePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyDeletePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyDeletePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyDeletePostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyDeletePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyDeletePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyDeletePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyDeletePostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyDeletePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyDeletePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyDeletePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyDeletePostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyDeletePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_delete_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_delete_request_builder.go new file mode 100644 index 00000000000..8dc5e58f3d7 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_delete_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyDeleteRequestBuilder provides operations to call the delete method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyDeleteRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyDeleteRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/delete", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyDeleteRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyDeleteRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action delete +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyDeleteRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action delete +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyDeletePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyDeleteRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_entire_column_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_entire_column_request_builder.go new file mode 100644 index 00000000000..2ee1b701792 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_entire_column_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireColumnRequestBuilder provides operations to call the entireColumn method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/entireColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_entire_row_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_entire_row_request_builder.go new file mode 100644 index 00000000000..d9c404a7179 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_entire_row_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireRowRequestBuilder provides operations to call the entireRow method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireRowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/entireRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireRowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function entireRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function entireRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_format_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_format_request_builder.go new file mode 100644 index 00000000000..7334b7a199b --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_format_request_builder.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyFormatRequestBuilder provides operations to manage the format property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyFormatRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyFormatRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyFormatRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyFormatRequestBuilderGetQueryParameters returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyFormatRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyFormatRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyFormatRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyFormatRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyFormatRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyFormatRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyFormatRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyFormatRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyFormatRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyFormatRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/format{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyFormatRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyFormatRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyFormatRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyFormatRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyFormatRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property format for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyFormatRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get returns a format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyFormatRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// Patch update the navigation property format in drives +// returns a WorkbookRangeFormatable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyFormatRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyFormatRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFormatFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable), nil +} +// ToDeleteRequestInformation delete navigation property format for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyFormatRequestBuilderDeleteRequestConfiguration)(*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 format object, encapsulating the range's font, fill, borders, alignment, and other properties. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeFormatable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyFormatRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyFormatRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyFormatRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_insert_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_insert_post_request_body.go new file mode 100644 index 00000000000..0add8312297 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_insert_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyInsertPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyInsertPostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyInsertPostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyInsertPostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyInsertPostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyInsertPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyInsertPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyInsertPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyInsertPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyInsertPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyInsertPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyInsertPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["shift"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetShift(val) + } + return nil + } + return res +} +// GetShift gets the shift property value. The shift property +// returns a *string when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyInsertPostRequestBody) GetShift()(*string) { + val, err := m.GetBackingStore().Get("shift") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyInsertPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("shift", m.GetShift()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyInsertPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyInsertPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetShift sets the shift property value. The shift property +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyInsertPostRequestBody) SetShift(value *string)() { + err := m.GetBackingStore().Set("shift", value) + if err != nil { + panic(err) + } +} +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyInsertPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetShift()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetShift(value *string)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_insert_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_insert_request_builder.go new file mode 100644 index 00000000000..fb6b5df4bea --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_insert_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyInsertRequestBuilder provides operations to call the insert method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyInsertRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyInsertRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyInsertRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyInsertRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyInsertRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyInsertRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyInsertRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/insert", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyInsertRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyInsertRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyInsertRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyInsertRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyInsertRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action insert +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyInsertRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyInsertRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToPostRequestInformation invoke action insert +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyInsertRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyInsertPostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyInsertRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyInsertRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyInsertRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyInsertRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_last_cell_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_last_cell_request_builder.go new file mode 100644 index 00000000000..0e4493c00f3 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_last_cell_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastCellRequestBuilder provides operations to call the lastCell method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastCellRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastCellRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastCellRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastCellRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastCellRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastCellRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastCellRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/lastCell()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastCellRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastCellRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastCellRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastCellRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastCellRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastCell +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastCellRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastCellRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastCell +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastCellRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastCellRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastCellRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastCellRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastCellRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_last_column_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_last_column_request_builder.go new file mode 100644 index 00000000000..8a62345c750 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_last_column_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastColumnRequestBuilder provides operations to call the lastColumn method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastColumnRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastColumnRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastColumnRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastColumnRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastColumnRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastColumnRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastColumnRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/lastColumn()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastColumnRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastColumnRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastColumnRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastColumnRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastColumnRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastColumn +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastColumnRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastColumnRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastColumn +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastColumnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastColumnRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastColumnRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastColumnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_last_row_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_last_row_request_builder.go new file mode 100644 index 00000000000..4be28fdddf7 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_last_row_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastRowRequestBuilder provides operations to call the lastRow method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastRowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/lastRow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastRowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastRowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function lastRow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function lastRow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_merge_post_request_body.go b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_merge_post_request_body.go new file mode 100644 index 00000000000..07de5bfa303 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_merge_post_request_body.go @@ -0,0 +1,113 @@ +package drives + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergePostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergePostRequestBody instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergePostRequestBody and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergePostRequestBody()(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergePostRequestBody) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergePostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergePostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergePostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergePostRequestBody(), nil +} +// GetAcross gets the across property value. The across property +// returns a *bool when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergePostRequestBody) GetAcross()(*bool) { + val, err := m.GetBackingStore().Get("across") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + 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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergePostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergePostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergePostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["across"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetAcross(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("across", m.GetAcross()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAcross sets the across property value. The across property +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergePostRequestBody) SetAcross(value *bool)() { + err := m.GetBackingStore().Set("across", 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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergePostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergePostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergePostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAcross()(*bool) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + SetAcross(value *bool)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_merge_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_merge_request_builder.go new file mode 100644 index 00000000000..ccbfe7efffe --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_merge_request_builder.go @@ -0,0 +1,68 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergeRequestBuilder provides operations to call the merge method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/merge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action merge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergeRequestBuilder) Post(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action merge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergeRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergePostRequestBodyable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_request_builder.go index 5eff14aaaee..938b0a5aa28 100644 --- a/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_request_builder.go +++ b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_request_builder.go @@ -19,6 +19,46 @@ type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilderGet // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// BoundingRectWithAnotherRange provides operations to call the boundingRect method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyBoundingRectWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder) BoundingRectWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyBoundingRectWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyBoundingRectWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// CellWithRowWithColumn provides operations to call the cell method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyCellWithRowWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder) CellWithRowWithColumn(column *int32, row *int32)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyCellWithRowWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyCellWithRowWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column, row) +} +// Clear provides operations to call the clear method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyClearRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder) Clear()(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyClearRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyClearRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfter provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder) ColumnsAfter()(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsAfterWithCount provides operations to call the columnsAfter method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder) ColumnsAfterWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsAfterWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnsBefore provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder) ColumnsBefore()(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ColumnsBeforeWithCount provides operations to call the columnsBefore method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder) ColumnsBeforeWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnsBeforeWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// ColumnWithColumn provides operations to call the column method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnWithColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder) ColumnWithColumn(column *int32)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnWithColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyColumnWithColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, column) +} // NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder and sets the default values. func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, valuesOnly *bool)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder) { m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder{ @@ -35,6 +75,26 @@ func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder urlParams["request-raw-url"] = rawUrl return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilderInternal(urlParams, requestAdapter, nil) } +// DeletePath provides operations to call the delete method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyDeleteRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder) DeletePath()(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyDeleteRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireColumn provides operations to call the entireColumn method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder) EntireColumn()(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// EntireRow provides operations to call the entireRow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder) EntireRow()(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyEntireRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Format provides operations to manage the format property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyFormatRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder) Format()(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyFormatRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Get invoke function usedRange // returns a WorkbookRangeable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -55,6 +115,76 @@ func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilde } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil } +// Insert provides operations to call the insert method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyInsertRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder) Insert()(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyInsertRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyInsertRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// IntersectionWithAnotherRange provides operations to call the intersection method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyIntersectionWithAnotherRangeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder) IntersectionWithAnotherRange(anotherRange *string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyIntersectionWithAnotherRangeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyIntersectionWithAnotherRangeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, anotherRange) +} +// LastCell provides operations to call the lastCell method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastCellRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder) LastCell()(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastCellRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastCellRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastColumn provides operations to call the lastColumn method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastColumnRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder) LastColumn()(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastColumnRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastColumnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// LastRow provides operations to call the lastRow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder) LastRow()(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyLastRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Merge provides operations to call the merge method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder) Merge()(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyMergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// OffsetRangeWithRowOffsetWithColumnOffset provides operations to call the offsetRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder) OffsetRangeWithRowOffsetWithColumnOffset(columnOffset *int32, rowOffset *int32)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyOffsetRangeWithRowOffsetWithColumnOffsetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, columnOffset, rowOffset) +} +// ResizedRangeWithDeltaRowsWithDeltaColumns provides operations to call the resizedRange method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder) ResizedRangeWithDeltaRowsWithDeltaColumns(deltaColumns *int32, deltaRows *int32)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyResizedRangeWithDeltaRowsWithDeltaColumnsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, deltaColumns, deltaRows) +} +// RowsAbove provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder) RowsAbove()(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsAboveWithCount provides operations to call the rowsAbove method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder) RowsAboveWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowsBelow provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder) RowsBelow()(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// RowsBelowWithCount provides operations to call the rowsBelow method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowWithCountRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder) RowsBelowWithCount(count *int32)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowWithCountRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowWithCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, count) +} +// RowWithRow provides operations to call the row method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder) RowWithRow(row *int32)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowWithRowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, row) +} +// Sort provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlySortRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder) Sort()(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlySortRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlySortRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToGetRequestInformation invoke function usedRange // returns a *RequestInformation when successful func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { @@ -66,8 +196,23 @@ func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilde requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } +// Unmerge provides operations to call the unmerge method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder) Unmerge()(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyUnmergeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// VisibleView provides operations to call the visibleView method. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder) VisibleView()(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyVisibleViewRequestBuilderInternal(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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder when successful func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder) { return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); } +// Worksheet provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +// returns a *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRequestBuilder) Worksheet()(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyWorksheetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_row_with_row_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_row_with_row_request_builder.go new file mode 100644 index 00000000000..27eea7b7ce9 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_row_with_row_request_builder.go @@ -0,0 +1,73 @@ +package drives + +import ( + "context" + i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274 "strconv" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowWithRowRequestBuilder provides operations to call the row method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowWithRowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowWithRowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowWithRowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowWithRowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowWithRowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, row *int32)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowWithRowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowWithRowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/row(row={row})", pathParameters), + } + if row != nil { + m.BaseRequestBuilder.PathParameters["row"] = i53ac87e8cb3cc9276228f74d38694a208cacb99bb8ceb705eeae99fb88d4d274.FormatInt(int64(*row), 10) + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowWithRowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowWithRowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowWithRowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowWithRowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowWithRowRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get invoke function row +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowWithRowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowWithRowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function row +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowWithRowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowWithRowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowWithRowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowWithRowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowWithRowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowWithRowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_rows_above_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_rows_above_request_builder.go new file mode 100644 index 00000000000..9277095fcb5 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_rows_above_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveRequestBuilder provides operations to call the rowsAbove method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/rowsAbove()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsAbove +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsAbove +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsAboveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_rows_below_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_rows_below_request_builder.go new file mode 100644 index 00000000000..d2e1657e2fc --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_rows_below_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowRequestBuilder provides operations to call the rowsBelow method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/rowsBelow()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function rowsBelow +// returns a WorkbookRangeable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeable), nil +} +// ToGetRequestInformation invoke function rowsBelow +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyRowsBelowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_sort_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_sort_request_builder.go new file mode 100644 index 00000000000..65c5cd7eb05 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_sort_request_builder.go @@ -0,0 +1,157 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlySortRequestBuilder provides operations to manage the sort property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlySortRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlySortRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlySortRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlySortRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlySortRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlySortRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlySortRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlySortRequestBuilderGetQueryParameters +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlySortRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlySortRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlySortRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlySortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlySortRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlySortRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlySortRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/sort{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlySortRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlySortRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlySortRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlySortRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlySortRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property sort for drives +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlySortRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlySortRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlySortRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlySortRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// Patch update the navigation property sort in drives +// returns a WorkbookRangeSortable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlySortRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlySortRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeSortFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable), nil +} +// ToDeleteRequestInformation delete navigation property sort for drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlySortRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlySortRequestBuilderDeleteRequestConfiguration)(*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 worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlySortRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlySortRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 drives +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlySortRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeSortable, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlySortRequestBuilderPatchRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlySortRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlySortRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlySortRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlySortRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_unmerge_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_unmerge_request_builder.go new file mode 100644 index 00000000000..a27da03dcf8 --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_unmerge_request_builder.go @@ -0,0 +1,64 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyUnmergeRequestBuilder provides operations to call the unmerge method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyUnmergeRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyUnmergeRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyUnmergeRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyUnmergeRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyUnmergeRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyUnmergeRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyUnmergeRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/unmerge", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyUnmergeRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyUnmergeRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyUnmergeRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyUnmergeRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyUnmergeRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action unmerge +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyUnmergeRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyUnmergeRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action unmerge +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyUnmergeRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyUnmergeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyUnmergeRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyUnmergeRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyUnmergeRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyUnmergeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_visible_view_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_visible_view_request_builder.go new file mode 100644 index 00000000000..571eaa891ed --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_visible_view_request_builder.go @@ -0,0 +1,69 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyVisibleViewRequestBuilder provides operations to call the visibleView method. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyVisibleViewRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyVisibleViewRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyVisibleViewRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyVisibleViewRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyVisibleViewRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyVisibleViewRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyVisibleViewRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/visibleView()", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyVisibleViewRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyVisibleViewRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyVisibleViewRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyVisibleViewRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyVisibleViewRequestBuilderInternal(urlParams, requestAdapter) +} +// Get invoke function visibleView +// returns a WorkbookRangeViewable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyVisibleViewRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyVisibleViewRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookRangeViewFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookRangeViewable), nil +} +// ToGetRequestInformation invoke function visibleView +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyVisibleViewRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyVisibleViewRequestBuilderGetRequestConfiguration)(*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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyVisibleViewRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyVisibleViewRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyVisibleViewRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyVisibleViewRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_worksheet_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_worksheet_request_builder.go new file mode 100644 index 00000000000..9cb3e9866ae --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_with_values_only_worksheet_request_builder.go @@ -0,0 +1,81 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyWorksheetRequestBuilder provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyWorksheetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyWorksheetRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyWorksheetRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyWorksheetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyWorksheetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyWorksheetRequestBuilderGetQueryParameters +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyWorksheetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyWorksheetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyWorksheetRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyWorksheetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange(valuesOnly={valuesOnly})/worksheet{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyWorksheetRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyWorksheetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyWorksheetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyWorksheetRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookWorksheetable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyWorksheetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyWorksheetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookWorksheetFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable), nil +} +// ToGetRequestInformation the worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyWorksheetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyWorksheetRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyWorksheetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWithValuesOnlyWorksheetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_items_item_workbook_worksheets_item_used_range_worksheet_request_builder.go b/drives/item_items_item_workbook_worksheets_item_used_range_worksheet_request_builder.go new file mode 100644 index 00000000000..03f92bb5d6d --- /dev/null +++ b/drives/item_items_item_workbook_worksheets_item_used_range_worksheet_request_builder.go @@ -0,0 +1,81 @@ +package drives + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWorksheetRequestBuilder provides operations to manage the worksheet property of the microsoft.graph.workbookRange entity. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWorksheetRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWorksheetRequestBuilderGetQueryParameters the worksheet containing the current range. Read-only. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWorksheetRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ItemItemsItemWorkbookWorksheetsItemUsedRangeWorksheetRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemItemsItemWorkbookWorksheetsItemUsedRangeWorksheetRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ItemItemsItemWorkbookWorksheetsItemUsedRangeWorksheetRequestBuilderGetQueryParameters +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWorksheetRequestBuilderInternal instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWorksheetRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWorksheetRequestBuilder) { + m := &ItemItemsItemWorkbookWorksheetsItemUsedRangeWorksheetRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/usedRange()/worksheet{?%24expand,%24select}", pathParameters), + } + return m +} +// NewItemItemsItemWorkbookWorksheetsItemUsedRangeWorksheetRequestBuilder instantiates a new ItemItemsItemWorkbookWorksheetsItemUsedRangeWorksheetRequestBuilder and sets the default values. +func NewItemItemsItemWorkbookWorksheetsItemUsedRangeWorksheetRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWorksheetRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWorksheetRequestBuilderInternal(urlParams, requestAdapter) +} +// Get the worksheet containing the current range. Read-only. +// returns a WorkbookWorksheetable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWorksheetRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWorksheetRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateWorkbookWorksheetFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkbookWorksheetable), nil +} +// ToGetRequestInformation the worksheet containing the current range. Read-only. +// returns a *RequestInformation when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWorksheetRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemsItemWorkbookWorksheetsItemUsedRangeWorksheetRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 *ItemItemsItemWorkbookWorksheetsItemUsedRangeWorksheetRequestBuilder when successful +func (m *ItemItemsItemWorkbookWorksheetsItemUsedRangeWorksheetRequestBuilder) WithUrl(rawUrl string)(*ItemItemsItemWorkbookWorksheetsItemUsedRangeWorksheetRequestBuilder) { + return NewItemItemsItemWorkbookWorksheetsItemUsedRangeWorksheetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/drives/item_last_modified_by_user_mailbox_settings_request_builder.go b/drives/item_last_modified_by_user_mailbox_settings_request_builder.go index 28ef2cd1450..9fc062dca79 100644 --- a/drives/item_last_modified_by_user_mailbox_settings_request_builder.go +++ b/drives/item_last_modified_by_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewItemLastModifiedByUserMailboxSettingsRequestBuilder(rawUrl string, reque return NewItemLastModifiedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemLastModifiedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *ItemLastModifiedByUserMailboxSettingsRequestBuilder) Get(ctx context.Co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemLastModifiedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *ItemLastModifiedByUserMailboxSettingsRequestBuilder) Patch(ctx context. return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemLastModifiedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *ItemLastModifiedByUserMailboxSettingsRequestBuilder) ToGetRequestInform return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemLastModifiedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemLastModifiedByUserMailboxSettingsRequestBuilder) ToPatchRequestInfo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemLastModifiedByUserMailboxSettingsRequestBuilder when successful func (m *ItemLastModifiedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemLastModifiedByUserMailboxSettingsRequestBuilder) { return NewItemLastModifiedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/drives/item_last_modified_by_user_request_builder.go b/drives/item_last_modified_by_user_request_builder.go index d4dbbe9a78e..1b15a9d0059 100644 --- a/drives/item_last_modified_by_user_request_builder.go +++ b/drives/item_last_modified_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemLastModifiedByUserRequestBuilder(rawUrl string, requestAdapter i2ae4 return NewItemLastModifiedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get lastModifiedByUser from drives +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemLastModifiedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemLastModifiedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *ItemLastModifiedByUserRequestBuilder) ServiceProvisioningErrors()(*Item return NewItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get lastModifiedByUser from drives +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemLastModifiedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemLastModifiedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemLastModifiedByUserRequestBuilder) ToGetRequestInformation(ctx conte return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemLastModifiedByUserRequestBuilder when successful func (m *ItemLastModifiedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemLastModifiedByUserRequestBuilder) { return NewItemLastModifiedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/drives/item_last_modified_by_user_service_provisioning_errors_count_request_builder.go b/drives/item_last_modified_by_user_service_provisioning_errors_count_request_builder.go index da3ce7ba8c0..91c286cd96e 100644 --- a/drives/item_last_modified_by_user_service_provisioning_errors_count_request_builder.go +++ b/drives/item_last_modified_by_user_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder(rawUr return NewItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) Get return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) ToG return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *ItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/drives/item_last_modified_by_user_service_provisioning_errors_request_builder.go b/drives/item_last_modified_by_user_service_provisioning_errors_request_builder.go index d457c5bba74..b876b82ebc7 100644 --- a/drives/item_last_modified_by_user_service_provisioning_errors_request_builder.go +++ b/drives/item_last_modified_by_user_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) Count()( return NewItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) ToGetReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *ItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*ItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) { return NewItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/drives/item_list_created_by_user_mailbox_settings_request_builder.go b/drives/item_list_created_by_user_mailbox_settings_request_builder.go index b849170bdce..674af105ba7 100644 --- a/drives/item_list_created_by_user_mailbox_settings_request_builder.go +++ b/drives/item_list_created_by_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewItemListCreatedByUserMailboxSettingsRequestBuilder(rawUrl string, reques return NewItemListCreatedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListCreatedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *ItemListCreatedByUserMailboxSettingsRequestBuilder) Get(ctx context.Con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListCreatedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemListCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *ItemListCreatedByUserMailboxSettingsRequestBuilder) Patch(ctx context.C return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListCreatedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *ItemListCreatedByUserMailboxSettingsRequestBuilder) ToGetRequestInforma return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListCreatedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemListCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemListCreatedByUserMailboxSettingsRequestBuilder) ToPatchRequestInfor return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListCreatedByUserMailboxSettingsRequestBuilder when successful func (m *ItemListCreatedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemListCreatedByUserMailboxSettingsRequestBuilder) { return NewItemListCreatedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/drives/item_list_created_by_user_request_builder.go b/drives/item_list_created_by_user_request_builder.go index c993142cd30..9c1e31a0c85 100644 --- a/drives/item_list_created_by_user_request_builder.go +++ b/drives/item_list_created_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemListCreatedByUserRequestBuilder(rawUrl string, requestAdapter i2ae41 return NewItemListCreatedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get createdByUser from drives +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListCreatedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListCreatedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *ItemListCreatedByUserRequestBuilder) ServiceProvisioningErrors()(*ItemL return NewItemListCreatedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get createdByUser from drives +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListCreatedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListCreatedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemListCreatedByUserRequestBuilder) ToGetRequestInformation(ctx contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListCreatedByUserRequestBuilder when successful func (m *ItemListCreatedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemListCreatedByUserRequestBuilder) { return NewItemListCreatedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/drives/item_list_created_by_user_service_provisioning_errors_count_request_builder.go b/drives/item_list_created_by_user_service_provisioning_errors_count_request_builder.go index ff7fcef775f..0b02df267ba 100644 --- a/drives/item_list_created_by_user_service_provisioning_errors_count_request_builder.go +++ b/drives/item_list_created_by_user_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemListCreatedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl return NewItemListCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListCreatedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemListCreatedByUserServiceProvisioningErrorsCountRequestBuilder) Get( return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListCreatedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemListCreatedByUserServiceProvisioningErrorsCountRequestBuilder) ToGe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListCreatedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *ItemListCreatedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemListCreatedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewItemListCreatedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/drives/item_list_created_by_user_service_provisioning_errors_request_builder.go b/drives/item_list_created_by_user_service_provisioning_errors_request_builder.go index eaf439cfc42..79e94315ff2 100644 --- a/drives/item_list_created_by_user_service_provisioning_errors_request_builder.go +++ b/drives/item_list_created_by_user_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemListCreatedByUserServiceProvisioningErrorsRequestBuilder) Count()(* return NewItemListCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListCreatedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemListCreatedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListCreatedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemListCreatedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListCreatedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *ItemListCreatedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*ItemListCreatedByUserServiceProvisioningErrorsRequestBuilder) { return NewItemListCreatedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/drives/item_list_items_item_created_by_user_mailbox_settings_request_builder.go b/drives/item_list_items_item_created_by_user_mailbox_settings_request_builder.go index c092154dc61..1e3fb68dfe1 100644 --- a/drives/item_list_items_item_created_by_user_mailbox_settings_request_builder.go +++ b/drives/item_list_items_item_created_by_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewItemListItemsItemCreatedByUserMailboxSettingsRequestBuilder(rawUrl strin return NewItemListItemsItemCreatedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListItemsItemCreatedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListItemsItemCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *ItemListItemsItemCreatedByUserMailboxSettingsRequestBuilder) Get(ctx co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListItemsItemCreatedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemListItemsItemCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *ItemListItemsItemCreatedByUserMailboxSettingsRequestBuilder) Patch(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListItemsItemCreatedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListItemsItemCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *ItemListItemsItemCreatedByUserMailboxSettingsRequestBuilder) ToGetReque return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListItemsItemCreatedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemListItemsItemCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemListItemsItemCreatedByUserMailboxSettingsRequestBuilder) ToPatchReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListItemsItemCreatedByUserMailboxSettingsRequestBuilder when successful func (m *ItemListItemsItemCreatedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemListItemsItemCreatedByUserMailboxSettingsRequestBuilder) { return NewItemListItemsItemCreatedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/drives/item_list_items_item_created_by_user_request_builder.go b/drives/item_list_items_item_created_by_user_request_builder.go index b7766f00032..9d0e3720a08 100644 --- a/drives/item_list_items_item_created_by_user_request_builder.go +++ b/drives/item_list_items_item_created_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemListItemsItemCreatedByUserRequestBuilder(rawUrl string, requestAdapt return NewItemListItemsItemCreatedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get createdByUser from drives +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListItemsItemCreatedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListItemsItemCreatedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *ItemListItemsItemCreatedByUserRequestBuilder) ServiceProvisioningErrors return NewItemListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get createdByUser from drives +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListItemsItemCreatedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListItemsItemCreatedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemListItemsItemCreatedByUserRequestBuilder) ToGetRequestInformation(c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListItemsItemCreatedByUserRequestBuilder when successful func (m *ItemListItemsItemCreatedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemListItemsItemCreatedByUserRequestBuilder) { return NewItemListItemsItemCreatedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/drives/item_list_items_item_created_by_user_service_provisioning_errors_count_request_builder.go b/drives/item_list_items_item_created_by_user_service_provisioning_errors_count_request_builder.go index e290a37ac78..8a56c623ed7 100644 --- a/drives/item_list_items_item_created_by_user_service_provisioning_errors_count_request_builder.go +++ b/drives/item_list_items_item_created_by_user_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuild return NewItemListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuil return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuil return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *ItemListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewItemListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/drives/item_list_items_item_created_by_user_service_provisioning_errors_request_builder.go b/drives/item_list_items_item_created_by_user_service_provisioning_errors_request_builder.go index 5094f44b891..593ed237f87 100644 --- a/drives/item_list_items_item_created_by_user_service_provisioning_errors_request_builder.go +++ b/drives/item_list_items_item_created_by_user_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) return NewItemListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *ItemListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*ItemListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) { return NewItemListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/drives/item_list_items_item_last_modified_by_user_mailbox_settings_request_builder.go b/drives/item_list_items_item_last_modified_by_user_mailbox_settings_request_builder.go index ea38d9156c0..c241193c6b7 100644 --- a/drives/item_list_items_item_last_modified_by_user_mailbox_settings_request_builder.go +++ b/drives/item_list_items_item_last_modified_by_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewItemListItemsItemLastModifiedByUserMailboxSettingsRequestBuilder(rawUrl return NewItemListItemsItemLastModifiedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListItemsItemLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *ItemListItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) Get(c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemListItemsItemLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *ItemListItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) Patch return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListItemsItemLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *ItemListItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) ToGet return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemListItemsItemLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemListItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) ToPat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListItemsItemLastModifiedByUserMailboxSettingsRequestBuilder when successful func (m *ItemListItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemListItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) { return NewItemListItemsItemLastModifiedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/drives/item_list_items_item_last_modified_by_user_request_builder.go b/drives/item_list_items_item_last_modified_by_user_request_builder.go index a2a6127171c..6f12164e2a2 100644 --- a/drives/item_list_items_item_last_modified_by_user_request_builder.go +++ b/drives/item_list_items_item_last_modified_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemListItemsItemLastModifiedByUserRequestBuilder(rawUrl string, request return NewItemListItemsItemLastModifiedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get lastModifiedByUser from drives +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListItemsItemLastModifiedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListItemsItemLastModifiedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *ItemListItemsItemLastModifiedByUserRequestBuilder) ServiceProvisioningE return NewItemListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get lastModifiedByUser from drives +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListItemsItemLastModifiedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListItemsItemLastModifiedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemListItemsItemLastModifiedByUserRequestBuilder) ToGetRequestInformat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListItemsItemLastModifiedByUserRequestBuilder when successful func (m *ItemListItemsItemLastModifiedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemListItemsItemLastModifiedByUserRequestBuilder) { return NewItemListItemsItemLastModifiedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/drives/item_list_items_item_last_modified_by_user_service_provisioning_errors_count_request_builder.go b/drives/item_list_items_item_last_modified_by_user_service_provisioning_errors_count_request_builder.go index 4f94567bb09..00bd1b226ea 100644 --- a/drives/item_list_items_item_last_modified_by_user_service_provisioning_errors_count_request_builder.go +++ b/drives/item_list_items_item_last_modified_by_user_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequest return NewItemListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemListItemsItemLastModifiedByUserServiceProvisioningErrorsCountReques return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemListItemsItemLastModifiedByUserServiceProvisioningErrorsCountReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *ItemListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewItemListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/drives/item_list_items_item_last_modified_by_user_service_provisioning_errors_request_builder.go b/drives/item_list_items_item_last_modified_by_user_service_provisioning_errors_request_builder.go index 5a14be142f2..317e9effdc3 100644 --- a/drives/item_list_items_item_last_modified_by_user_service_provisioning_errors_request_builder.go +++ b/drives/item_list_items_item_last_modified_by_user_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuil return NewItemListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuil return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuil return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *ItemListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*ItemListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) { return NewItemListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/drives/item_list_last_modified_by_user_mailbox_settings_request_builder.go b/drives/item_list_last_modified_by_user_mailbox_settings_request_builder.go index 37bd6c6331a..2a42387d25c 100644 --- a/drives/item_list_last_modified_by_user_mailbox_settings_request_builder.go +++ b/drives/item_list_last_modified_by_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewItemListLastModifiedByUserMailboxSettingsRequestBuilder(rawUrl string, r return NewItemListLastModifiedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListLastModifiedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *ItemListLastModifiedByUserMailboxSettingsRequestBuilder) Get(ctx contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListLastModifiedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemListLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *ItemListLastModifiedByUserMailboxSettingsRequestBuilder) Patch(ctx cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListLastModifiedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *ItemListLastModifiedByUserMailboxSettingsRequestBuilder) ToGetRequestIn return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListLastModifiedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemListLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemListLastModifiedByUserMailboxSettingsRequestBuilder) ToPatchRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListLastModifiedByUserMailboxSettingsRequestBuilder when successful func (m *ItemListLastModifiedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemListLastModifiedByUserMailboxSettingsRequestBuilder) { return NewItemListLastModifiedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/drives/item_list_last_modified_by_user_request_builder.go b/drives/item_list_last_modified_by_user_request_builder.go index 70fea774e9b..b0f1a848cc5 100644 --- a/drives/item_list_last_modified_by_user_request_builder.go +++ b/drives/item_list_last_modified_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemListLastModifiedByUserRequestBuilder(rawUrl string, requestAdapter i return NewItemListLastModifiedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get lastModifiedByUser from drives +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListLastModifiedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListLastModifiedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *ItemListLastModifiedByUserRequestBuilder) ServiceProvisioningErrors()(* return NewItemListLastModifiedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get lastModifiedByUser from drives +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListLastModifiedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListLastModifiedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemListLastModifiedByUserRequestBuilder) ToGetRequestInformation(ctx c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListLastModifiedByUserRequestBuilder when successful func (m *ItemListLastModifiedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemListLastModifiedByUserRequestBuilder) { return NewItemListLastModifiedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/drives/item_list_last_modified_by_user_service_provisioning_errors_count_request_builder.go b/drives/item_list_last_modified_by_user_service_provisioning_errors_count_request_builder.go index 14c137ebd8c..3f25f24ac57 100644 --- a/drives/item_list_last_modified_by_user_service_provisioning_errors_count_request_builder.go +++ b/drives/item_list_last_modified_by_user_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder(r return NewItemListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *ItemListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewItemListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/drives/item_list_last_modified_by_user_service_provisioning_errors_request_builder.go b/drives/item_list_last_modified_by_user_service_provisioning_errors_request_builder.go index 8cda106e9f3..c5994be7057 100644 --- a/drives/item_list_last_modified_by_user_service_provisioning_errors_request_builder.go +++ b/drives/item_list_last_modified_by_user_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemListLastModifiedByUserServiceProvisioningErrorsRequestBuilder) Coun return NewItemListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListLastModifiedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemListLastModifiedByUserServiceProvisioningErrorsRequestBuilder) Get( return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListLastModifiedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemListLastModifiedByUserServiceProvisioningErrorsRequestBuilder) ToGe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListLastModifiedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *ItemListLastModifiedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*ItemListLastModifiedByUserServiceProvisioningErrorsRequestBuilder) { return NewItemListLastModifiedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/education/me_user_mailbox_settings_request_builder.go b/education/me_user_mailbox_settings_request_builder.go index e940b931cc2..10fa8362621 100644 --- a/education/me_user_mailbox_settings_request_builder.go +++ b/education/me_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewMeUserMailboxSettingsRequestBuilder(rawUrl string, requestAdapter i2ae41 return NewMeUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MeUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *MeUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *MeUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestCo return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MeUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *MeUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *MeUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *MeUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MeUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *MeUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx contex return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *MeUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *MeUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *MeUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx cont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *MeUserMailboxSettingsRequestBuilder when successful func (m *MeUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*MeUserMailboxSettingsRequestBuilder) { return NewMeUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/education/me_user_request_builder.go b/education/me_user_request_builder.go index 4752551f534..b64b44656b3 100644 --- a/education/me_user_request_builder.go +++ b/education/me_user_request_builder.go @@ -41,6 +41,7 @@ func NewMeUserRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371c return NewMeUserRequestBuilderInternal(urlParams, requestAdapter) } // Get retrieve the simple directory user that corresponds to this educationUser. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -74,6 +75,7 @@ func (m *MeUserRequestBuilder) ServiceProvisioningErrors()(*MeUserServiceProvisi return NewMeUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation retrieve the simple directory user that corresponds to this educationUser. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *MeUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MeUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -88,6 +90,7 @@ func (m *MeUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *MeUserRequestBuilder when successful func (m *MeUserRequestBuilder) WithUrl(rawUrl string)(*MeUserRequestBuilder) { return NewMeUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/education/me_user_service_provisioning_errors_count_request_builder.go b/education/me_user_service_provisioning_errors_count_request_builder.go index 1c9c9fe57c2..ed87aa8d1ed 100644 --- a/education/me_user_service_provisioning_errors_count_request_builder.go +++ b/education/me_user_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewMeUserServiceProvisioningErrorsCountRequestBuilder(rawUrl string, reques return NewMeUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MeUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *MeUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *MeUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Con return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *MeUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MeUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *MeUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *MeUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *MeUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*MeUserServiceProvisioningErrorsCountRequestBuilder) { return NewMeUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/education/me_user_service_provisioning_errors_request_builder.go b/education/me_user_service_provisioning_errors_request_builder.go index 94473d8a165..7129e6b7c9c 100644 --- a/education/me_user_service_provisioning_errors_request_builder.go +++ b/education/me_user_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *MeUserServiceProvisioningErrorsRequestBuilder) Count()(*MeUserServicePr return NewMeUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *MeUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *MeUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *MeUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *MeUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *MeUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *MeUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation( return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *MeUserServiceProvisioningErrorsRequestBuilder when successful func (m *MeUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*MeUserServiceProvisioningErrorsRequestBuilder) { return NewMeUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/education/synchronization_profiles_count_request_builder.go b/education/synchronization_profiles_count_request_builder.go index 0e240098d7e..9c1769c7102 100644 --- a/education/synchronization_profiles_count_request_builder.go +++ b/education/synchronization_profiles_count_request_builder.go @@ -40,6 +40,7 @@ func NewSynchronizationProfilesCountRequestBuilder(rawUrl string, requestAdapter return NewSynchronizationProfilesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *SynchronizationProfilesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *SynchronizationProfilesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *SynchronizationProfilesCountRequestBuilder) Get(ctx context.Context, re return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a *RequestInformation when successful func (m *SynchronizationProfilesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SynchronizationProfilesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *SynchronizationProfilesCountRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a *SynchronizationProfilesCountRequestBuilder when successful func (m *SynchronizationProfilesCountRequestBuilder) WithUrl(rawUrl string)(*SynchronizationProfilesCountRequestBuilder) { return NewSynchronizationProfilesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/education/synchronization_profiles_education_synchronization_profile_item_request_builder.go b/education/synchronization_profiles_education_synchronization_profile_item_request_builder.go index e1023837dbc..ced5b4d52c2 100644 --- a/education/synchronization_profiles_education_synchronization_profile_item_request_builder.go +++ b/education/synchronization_profiles_education_synchronization_profile_item_request_builder.go @@ -55,6 +55,7 @@ func NewSynchronizationProfilesEducationSynchronizationProfileItemRequestBuilder return NewSynchronizationProfilesEducationSynchronizationProfileItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete a school data synchronization profile in the tenant based on the identifier. +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -79,6 +80,7 @@ func (m *SynchronizationProfilesEducationSynchronizationProfileItemRequestBuilde return NewSynchronizationProfilesItemErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get retrieve a school data synchronization profile in the tenant based on the identifier. +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a EducationSynchronizationProfileable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -102,6 +104,7 @@ func (m *SynchronizationProfilesEducationSynchronizationProfileItemRequestBuilde return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationSynchronizationProfileable), nil } // Patch update the navigation property synchronizationProfiles in education +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a EducationSynchronizationProfileable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *SynchronizationProfilesEducationSynchronizationProfileItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationSynchronizationProfileable, requestConfiguration *SynchronizationProfilesEducationSynchronizationProfileItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationSynchronizationProfileable, error) { @@ -147,6 +150,7 @@ func (m *SynchronizationProfilesEducationSynchronizationProfileItemRequestBuilde return NewSynchronizationProfilesItemStartRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete a school data synchronization profile in the tenant based on the identifier. +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a *RequestInformation when successful func (m *SynchronizationProfilesEducationSynchronizationProfileItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *SynchronizationProfilesEducationSynchronizationProfileItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -158,6 +162,7 @@ func (m *SynchronizationProfilesEducationSynchronizationProfileItemRequestBuilde return requestInfo, nil } // ToGetRequestInformation retrieve a school data synchronization profile in the tenant based on the identifier. +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a *RequestInformation when successful func (m *SynchronizationProfilesEducationSynchronizationProfileItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SynchronizationProfilesEducationSynchronizationProfileItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -172,6 +177,7 @@ func (m *SynchronizationProfilesEducationSynchronizationProfileItemRequestBuilde return requestInfo, nil } // ToPatchRequestInformation update the navigation property synchronizationProfiles in education +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a *RequestInformation when successful func (m *SynchronizationProfilesEducationSynchronizationProfileItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationSynchronizationProfileable, requestConfiguration *SynchronizationProfilesEducationSynchronizationProfileItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -192,6 +198,7 @@ func (m *SynchronizationProfilesEducationSynchronizationProfileItemRequestBuilde return NewSynchronizationProfilesItemUploadUrlRequestBuilderInternal(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. +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a *SynchronizationProfilesEducationSynchronizationProfileItemRequestBuilder when successful func (m *SynchronizationProfilesEducationSynchronizationProfileItemRequestBuilder) WithUrl(rawUrl string)(*SynchronizationProfilesEducationSynchronizationProfileItemRequestBuilder) { return NewSynchronizationProfilesEducationSynchronizationProfileItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/education/synchronization_profiles_item_errors_count_request_builder.go b/education/synchronization_profiles_item_errors_count_request_builder.go index f5add27e535..8b953d34453 100644 --- a/education/synchronization_profiles_item_errors_count_request_builder.go +++ b/education/synchronization_profiles_item_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewSynchronizationProfilesItemErrorsCountRequestBuilder(rawUrl string, requ return NewSynchronizationProfilesItemErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *SynchronizationProfilesItemErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *SynchronizationProfilesItemErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *SynchronizationProfilesItemErrorsCountRequestBuilder) Get(ctx context.C return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a *RequestInformation when successful func (m *SynchronizationProfilesItemErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SynchronizationProfilesItemErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *SynchronizationProfilesItemErrorsCountRequestBuilder) ToGetRequestInfor return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a *SynchronizationProfilesItemErrorsCountRequestBuilder when successful func (m *SynchronizationProfilesItemErrorsCountRequestBuilder) WithUrl(rawUrl string)(*SynchronizationProfilesItemErrorsCountRequestBuilder) { return NewSynchronizationProfilesItemErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/education/synchronization_profiles_item_errors_education_synchronization_error_item_request_builder.go b/education/synchronization_profiles_item_errors_education_synchronization_error_item_request_builder.go index 62430ea352a..c1fb87afbfb 100644 --- a/education/synchronization_profiles_item_errors_education_synchronization_error_item_request_builder.go +++ b/education/synchronization_profiles_item_errors_education_synchronization_error_item_request_builder.go @@ -55,6 +55,7 @@ func NewSynchronizationProfilesItemErrorsEducationSynchronizationErrorItemReques return NewSynchronizationProfilesItemErrorsEducationSynchronizationErrorItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property errors for education +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *SynchronizationProfilesItemErrorsEducationSynchronizationErrorItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *SynchronizationProfilesItemErrorsEducationSynchronizationErrorItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *SynchronizationProfilesItemErrorsEducationSynchronizationErrorItemReque return nil } // Get all errors associated with this synchronization profile. +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a EducationSynchronizationErrorable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *SynchronizationProfilesItemErrorsEducationSynchronizationErrorItemRequestBuilder) Get(ctx context.Context, requestConfiguration *SynchronizationProfilesItemErrorsEducationSynchronizationErrorItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationSynchronizationErrorable, error) { @@ -91,6 +93,7 @@ func (m *SynchronizationProfilesItemErrorsEducationSynchronizationErrorItemReque return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationSynchronizationErrorable), nil } // Patch update the navigation property errors in education +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a EducationSynchronizationErrorable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *SynchronizationProfilesItemErrorsEducationSynchronizationErrorItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationSynchronizationErrorable, requestConfiguration *SynchronizationProfilesItemErrorsEducationSynchronizationErrorItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationSynchronizationErrorable, error) { @@ -111,6 +114,7 @@ func (m *SynchronizationProfilesItemErrorsEducationSynchronizationErrorItemReque return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationSynchronizationErrorable), nil } // ToDeleteRequestInformation delete navigation property errors for education +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a *RequestInformation when successful func (m *SynchronizationProfilesItemErrorsEducationSynchronizationErrorItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *SynchronizationProfilesItemErrorsEducationSynchronizationErrorItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *SynchronizationProfilesItemErrorsEducationSynchronizationErrorItemReque return requestInfo, nil } // ToGetRequestInformation all errors associated with this synchronization profile. +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a *RequestInformation when successful func (m *SynchronizationProfilesItemErrorsEducationSynchronizationErrorItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SynchronizationProfilesItemErrorsEducationSynchronizationErrorItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *SynchronizationProfilesItemErrorsEducationSynchronizationErrorItemReque return requestInfo, nil } // ToPatchRequestInformation update the navigation property errors in education +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a *RequestInformation when successful func (m *SynchronizationProfilesItemErrorsEducationSynchronizationErrorItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationSynchronizationErrorable, requestConfiguration *SynchronizationProfilesItemErrorsEducationSynchronizationErrorItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *SynchronizationProfilesItemErrorsEducationSynchronizationErrorItemReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a *SynchronizationProfilesItemErrorsEducationSynchronizationErrorItemRequestBuilder when successful func (m *SynchronizationProfilesItemErrorsEducationSynchronizationErrorItemRequestBuilder) WithUrl(rawUrl string)(*SynchronizationProfilesItemErrorsEducationSynchronizationErrorItemRequestBuilder) { return NewSynchronizationProfilesItemErrorsEducationSynchronizationErrorItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/education/synchronization_profiles_item_errors_request_builder.go b/education/synchronization_profiles_item_errors_request_builder.go index 186d323ff6d..5294a63b963 100644 --- a/education/synchronization_profiles_item_errors_request_builder.go +++ b/education/synchronization_profiles_item_errors_request_builder.go @@ -47,6 +47,7 @@ type SynchronizationProfilesItemErrorsRequestBuilderPostRequestConfiguration str Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByEducationSynchronizationErrorId provides operations to manage the errors property of the microsoft.graph.educationSynchronizationProfile entity. +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a *SynchronizationProfilesItemErrorsEducationSynchronizationErrorItemRequestBuilder when successful func (m *SynchronizationProfilesItemErrorsRequestBuilder) ByEducationSynchronizationErrorId(educationSynchronizationErrorId string)(*SynchronizationProfilesItemErrorsEducationSynchronizationErrorItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *SynchronizationProfilesItemErrorsRequestBuilder) Count()(*Synchronizati return NewSynchronizationProfilesItemErrorsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get the errors generated during validation and/or during a sync of a specific school data synchronization profile in the tenant. +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a EducationSynchronizationErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -100,6 +102,7 @@ func (m *SynchronizationProfilesItemErrorsRequestBuilder) Get(ctx context.Contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationSynchronizationErrorCollectionResponseable), nil } // Post create new navigation property to errors for education +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a EducationSynchronizationErrorable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *SynchronizationProfilesItemErrorsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationSynchronizationErrorable, requestConfiguration *SynchronizationProfilesItemErrorsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationSynchronizationErrorable, error) { @@ -120,6 +123,7 @@ func (m *SynchronizationProfilesItemErrorsRequestBuilder) Post(ctx context.Conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationSynchronizationErrorable), nil } // ToGetRequestInformation get the errors generated during validation and/or during a sync of a specific school data synchronization profile in the tenant. +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a *RequestInformation when successful func (m *SynchronizationProfilesItemErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SynchronizationProfilesItemErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -134,6 +138,7 @@ func (m *SynchronizationProfilesItemErrorsRequestBuilder) ToGetRequestInformatio return requestInfo, nil } // ToPostRequestInformation create new navigation property to errors for education +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a *RequestInformation when successful func (m *SynchronizationProfilesItemErrorsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationSynchronizationErrorable, requestConfiguration *SynchronizationProfilesItemErrorsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -149,6 +154,7 @@ func (m *SynchronizationProfilesItemErrorsRequestBuilder) ToPostRequestInformati return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a *SynchronizationProfilesItemErrorsRequestBuilder when successful func (m *SynchronizationProfilesItemErrorsRequestBuilder) WithUrl(rawUrl string)(*SynchronizationProfilesItemErrorsRequestBuilder) { return NewSynchronizationProfilesItemErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/education/synchronization_profiles_item_pause_request_builder.go b/education/synchronization_profiles_item_pause_request_builder.go index c324aa35c6e..7592a03302d 100644 --- a/education/synchronization_profiles_item_pause_request_builder.go +++ b/education/synchronization_profiles_item_pause_request_builder.go @@ -31,6 +31,7 @@ func NewSynchronizationProfilesItemPauseRequestBuilder(rawUrl string, requestAda return NewSynchronizationProfilesItemPauseRequestBuilderInternal(urlParams, requestAdapter) } // Post pause the sync of a specific school data synchronization profile in the tenant. +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *SynchronizationProfilesItemPauseRequestBuilder) Post(ctx context.Contex return nil } // ToPostRequestInformation pause the sync of a specific school data synchronization profile in the tenant. +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a *RequestInformation when successful func (m *SynchronizationProfilesItemPauseRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *SynchronizationProfilesItemPauseRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *SynchronizationProfilesItemPauseRequestBuilder) ToPostRequestInformatio return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a *SynchronizationProfilesItemPauseRequestBuilder when successful func (m *SynchronizationProfilesItemPauseRequestBuilder) WithUrl(rawUrl string)(*SynchronizationProfilesItemPauseRequestBuilder) { return NewSynchronizationProfilesItemPauseRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/education/synchronization_profiles_item_profile_status_request_builder.go b/education/synchronization_profiles_item_profile_status_request_builder.go index 1caca58199f..dd15a83323d 100644 --- a/education/synchronization_profiles_item_profile_status_request_builder.go +++ b/education/synchronization_profiles_item_profile_status_request_builder.go @@ -55,6 +55,7 @@ func NewSynchronizationProfilesItemProfileStatusRequestBuilder(rawUrl string, re return NewSynchronizationProfilesItemProfileStatusRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property profileStatus for education +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *SynchronizationProfilesItemProfileStatusRequestBuilder) Delete(ctx context.Context, requestConfiguration *SynchronizationProfilesItemProfileStatusRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *SynchronizationProfilesItemProfileStatusRequestBuilder) Delete(ctx cont return nil } // Get get the status of a specific school data synchronization profile in the tenant. The response will indicate the status of the sync. +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a EducationSynchronizationProfileStatusable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -94,6 +96,7 @@ func (m *SynchronizationProfilesItemProfileStatusRequestBuilder) Get(ctx context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationSynchronizationProfileStatusable), nil } // Patch update the navigation property profileStatus in education +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a EducationSynchronizationProfileStatusable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *SynchronizationProfilesItemProfileStatusRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationSynchronizationProfileStatusable, requestConfiguration *SynchronizationProfilesItemProfileStatusRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationSynchronizationProfileStatusable, error) { @@ -114,6 +117,7 @@ func (m *SynchronizationProfilesItemProfileStatusRequestBuilder) Patch(ctx conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationSynchronizationProfileStatusable), nil } // ToDeleteRequestInformation delete navigation property profileStatus for education +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a *RequestInformation when successful func (m *SynchronizationProfilesItemProfileStatusRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *SynchronizationProfilesItemProfileStatusRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -125,6 +129,7 @@ func (m *SynchronizationProfilesItemProfileStatusRequestBuilder) ToDeleteRequest return requestInfo, nil } // ToGetRequestInformation get the status of a specific school data synchronization profile in the tenant. The response will indicate the status of the sync. +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a *RequestInformation when successful func (m *SynchronizationProfilesItemProfileStatusRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SynchronizationProfilesItemProfileStatusRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -139,6 +144,7 @@ func (m *SynchronizationProfilesItemProfileStatusRequestBuilder) ToGetRequestInf return requestInfo, nil } // ToPatchRequestInformation update the navigation property profileStatus in education +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a *RequestInformation when successful func (m *SynchronizationProfilesItemProfileStatusRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationSynchronizationProfileStatusable, requestConfiguration *SynchronizationProfilesItemProfileStatusRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -154,6 +160,7 @@ func (m *SynchronizationProfilesItemProfileStatusRequestBuilder) ToPatchRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a *SynchronizationProfilesItemProfileStatusRequestBuilder when successful func (m *SynchronizationProfilesItemProfileStatusRequestBuilder) WithUrl(rawUrl string)(*SynchronizationProfilesItemProfileStatusRequestBuilder) { return NewSynchronizationProfilesItemProfileStatusRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/education/synchronization_profiles_item_reset_request_builder.go b/education/synchronization_profiles_item_reset_request_builder.go index 9ce497fcb75..f4d7314705a 100644 --- a/education/synchronization_profiles_item_reset_request_builder.go +++ b/education/synchronization_profiles_item_reset_request_builder.go @@ -31,6 +31,7 @@ func NewSynchronizationProfilesItemResetRequestBuilder(rawUrl string, requestAda return NewSynchronizationProfilesItemResetRequestBuilderInternal(urlParams, requestAdapter) } // Post reset the sync of a specific school data synchronization profile in the tenant. +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *SynchronizationProfilesItemResetRequestBuilder) Post(ctx context.Contex return nil } // ToPostRequestInformation reset the sync of a specific school data synchronization profile in the tenant. +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a *RequestInformation when successful func (m *SynchronizationProfilesItemResetRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *SynchronizationProfilesItemResetRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *SynchronizationProfilesItemResetRequestBuilder) ToPostRequestInformatio return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a *SynchronizationProfilesItemResetRequestBuilder when successful func (m *SynchronizationProfilesItemResetRequestBuilder) WithUrl(rawUrl string)(*SynchronizationProfilesItemResetRequestBuilder) { return NewSynchronizationProfilesItemResetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/education/synchronization_profiles_item_resume_request_builder.go b/education/synchronization_profiles_item_resume_request_builder.go index 1680ad0c9c2..3f387cf52d5 100644 --- a/education/synchronization_profiles_item_resume_request_builder.go +++ b/education/synchronization_profiles_item_resume_request_builder.go @@ -31,6 +31,7 @@ func NewSynchronizationProfilesItemResumeRequestBuilder(rawUrl string, requestAd return NewSynchronizationProfilesItemResumeRequestBuilderInternal(urlParams, requestAdapter) } // Post resume the sync of a specific school data synchronization profile in the tenant. +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *SynchronizationProfilesItemResumeRequestBuilder) Post(ctx context.Conte return nil } // ToPostRequestInformation resume the sync of a specific school data synchronization profile in the tenant. +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a *RequestInformation when successful func (m *SynchronizationProfilesItemResumeRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *SynchronizationProfilesItemResumeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *SynchronizationProfilesItemResumeRequestBuilder) ToPostRequestInformati return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a *SynchronizationProfilesItemResumeRequestBuilder when successful func (m *SynchronizationProfilesItemResumeRequestBuilder) WithUrl(rawUrl string)(*SynchronizationProfilesItemResumeRequestBuilder) { return NewSynchronizationProfilesItemResumeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/education/synchronization_profiles_item_start_request_builder.go b/education/synchronization_profiles_item_start_request_builder.go index 1957f00850d..787d4bd2af0 100644 --- a/education/synchronization_profiles_item_start_request_builder.go +++ b/education/synchronization_profiles_item_start_request_builder.go @@ -55,6 +55,7 @@ func (m *SynchronizationProfilesItemStartRequestBuilder) Post(ctx context.Contex return res.(SynchronizationProfilesItemStartResponseable), nil } // PostAsStartPostResponse verify the files uploaded to a specific school data synchronization profile in the tenant. If the verification is successful, synchronization starts on the profile. Otherwise, the response contains errors and warnings. If the response contains errors, the synchronization won't start. If the response contains only warnings, synchronization starts. +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a SynchronizationProfilesItemStartPostResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -78,6 +79,7 @@ func (m *SynchronizationProfilesItemStartRequestBuilder) PostAsStartPostResponse return res.(SynchronizationProfilesItemStartPostResponseable), nil } // ToPostRequestInformation verify the files uploaded to a specific school data synchronization profile in the tenant. If the verification is successful, synchronization starts on the profile. Otherwise, the response contains errors and warnings. If the response contains errors, the synchronization won't start. If the response contains only warnings, synchronization starts. +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a *RequestInformation when successful func (m *SynchronizationProfilesItemStartRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *SynchronizationProfilesItemStartRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -89,6 +91,7 @@ func (m *SynchronizationProfilesItemStartRequestBuilder) ToPostRequestInformatio return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a *SynchronizationProfilesItemStartRequestBuilder when successful func (m *SynchronizationProfilesItemStartRequestBuilder) WithUrl(rawUrl string)(*SynchronizationProfilesItemStartRequestBuilder) { return NewSynchronizationProfilesItemStartRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/education/synchronization_profiles_item_upload_url_request_builder.go b/education/synchronization_profiles_item_upload_url_request_builder.go index 8e0dacead23..e415af01def 100644 --- a/education/synchronization_profiles_item_upload_url_request_builder.go +++ b/education/synchronization_profiles_item_upload_url_request_builder.go @@ -55,6 +55,7 @@ func (m *SynchronizationProfilesItemUploadUrlRequestBuilder) Get(ctx context.Con return res.(SynchronizationProfilesItemUploadUrlResponseable), nil } // GetAsUploadUrlGetResponse retrieve a shared access signature (SAS) for uploading source files to Azure blob storage for a specific school data synchronization profile in the tenant. The SAS token has a validity of one hour. The upload URL is provided only for the CSV data provider. +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a SynchronizationProfilesItemUploadUrlGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -78,6 +79,7 @@ func (m *SynchronizationProfilesItemUploadUrlRequestBuilder) GetAsUploadUrlGetRe return res.(SynchronizationProfilesItemUploadUrlGetResponseable), nil } // ToGetRequestInformation retrieve a shared access signature (SAS) for uploading source files to Azure blob storage for a specific school data synchronization profile in the tenant. The SAS token has a validity of one hour. The upload URL is provided only for the CSV data provider. +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a *RequestInformation when successful func (m *SynchronizationProfilesItemUploadUrlRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SynchronizationProfilesItemUploadUrlRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -89,6 +91,7 @@ func (m *SynchronizationProfilesItemUploadUrlRequestBuilder) ToGetRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a *SynchronizationProfilesItemUploadUrlRequestBuilder when successful func (m *SynchronizationProfilesItemUploadUrlRequestBuilder) WithUrl(rawUrl string)(*SynchronizationProfilesItemUploadUrlRequestBuilder) { return NewSynchronizationProfilesItemUploadUrlRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/education/synchronization_profiles_request_builder.go b/education/synchronization_profiles_request_builder.go index 63e3a8c7f39..25ead692d00 100644 --- a/education/synchronization_profiles_request_builder.go +++ b/education/synchronization_profiles_request_builder.go @@ -47,6 +47,7 @@ type SynchronizationProfilesRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByEducationSynchronizationProfileId provides operations to manage the synchronizationProfiles property of the microsoft.graph.educationRoot entity. +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a *SynchronizationProfilesEducationSynchronizationProfileItemRequestBuilder when successful func (m *SynchronizationProfilesRequestBuilder) ByEducationSynchronizationProfileId(educationSynchronizationProfileId string)(*SynchronizationProfilesEducationSynchronizationProfileItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *SynchronizationProfilesRequestBuilder) Count()(*SynchronizationProfiles return NewSynchronizationProfilesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get retrieve the collection of school data synchronization profiles in the tenant. +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a EducationSynchronizationProfileCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -100,6 +102,7 @@ func (m *SynchronizationProfilesRequestBuilder) Get(ctx context.Context, request return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationSynchronizationProfileCollectionResponseable), nil } // Post create new navigation property to synchronizationProfiles for education +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a EducationSynchronizationProfileable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *SynchronizationProfilesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationSynchronizationProfileable, requestConfiguration *SynchronizationProfilesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationSynchronizationProfileable, error) { @@ -120,6 +123,7 @@ func (m *SynchronizationProfilesRequestBuilder) Post(ctx context.Context, body i return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationSynchronizationProfileable), nil } // ToGetRequestInformation retrieve the collection of school data synchronization profiles in the tenant. +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a *RequestInformation when successful func (m *SynchronizationProfilesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SynchronizationProfilesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -134,6 +138,7 @@ func (m *SynchronizationProfilesRequestBuilder) ToGetRequestInformation(ctx cont return requestInfo, nil } // ToPostRequestInformation create new navigation property to synchronizationProfiles for education +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a *RequestInformation when successful func (m *SynchronizationProfilesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationSynchronizationProfileable, requestConfiguration *SynchronizationProfilesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -149,6 +154,7 @@ func (m *SynchronizationProfilesRequestBuilder) ToPostRequestInformation(ctx con return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: The Education Sync Profile API is deprecated and will stop returning data on December 31, 2024. Please transition to the new IndustryData API. as of 2024-06/Deprecated:SynchronizationProfiles // returns a *SynchronizationProfilesRequestBuilder when successful func (m *SynchronizationProfilesRequestBuilder) WithUrl(rawUrl string)(*SynchronizationProfilesRequestBuilder) { return NewSynchronizationProfilesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/education/users_education_user_item_request_builder.go b/education/users_education_user_item_request_builder.go index 626528b21d0..1a56771a724 100644 --- a/education/users_education_user_item_request_builder.go +++ b/education/users_education_user_item_request_builder.go @@ -106,12 +106,12 @@ func (m *UsersEducationUserItemRequestBuilder) Get(ctx context.Context, requestC } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationUserable), nil } -// Patch update the relatedContact collection of an educationUser object. +// Patch update the properties of an educationuser object. // returns a EducationUserable 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/relatedcontact-update?view=graph-rest-beta +// [Find more info here]: https://learn.microsoft.com/graph/api/educationuser-update?view=graph-rest-beta func (m *UsersEducationUserItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationUserable, requestConfiguration *UsersEducationUserItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationUserable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -169,7 +169,7 @@ func (m *UsersEducationUserItemRequestBuilder) ToGetRequestInformation(ctx conte requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the relatedContact collection of an educationUser object. +// ToPatchRequestInformation update the properties of an educationuser object. // returns a *RequestInformation when successful func (m *UsersEducationUserItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationUserable, requestConfiguration *UsersEducationUserItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/education/users_item_user_mailbox_settings_request_builder.go b/education/users_item_user_mailbox_settings_request_builder.go index 5e8171602a8..06620cb39e2 100644 --- a/education/users_item_user_mailbox_settings_request_builder.go +++ b/education/users_item_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewUsersItemUserMailboxSettingsRequestBuilder(rawUrl string, requestAdapter return NewUsersItemUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *UsersItemUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *UsersItemUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *UsersItemUserMailboxSettingsRequestBuilder) Get(ctx context.Context, re return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *UsersItemUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *UsersItemUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *UsersItemUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *UsersItemUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *UsersItemUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *UsersItemUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *UsersItemUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *UsersItemUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *UsersItemUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *UsersItemUserMailboxSettingsRequestBuilder when successful func (m *UsersItemUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*UsersItemUserMailboxSettingsRequestBuilder) { return NewUsersItemUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/education/users_item_user_request_builder.go b/education/users_item_user_request_builder.go index 3de28472eb2..7986520c6df 100644 --- a/education/users_item_user_request_builder.go +++ b/education/users_item_user_request_builder.go @@ -41,6 +41,7 @@ func NewUsersItemUserRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee return NewUsersItemUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get user from education +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *UsersItemUserRequestBuilder) Get(ctx context.Context, requestConfiguration *UsersItemUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *UsersItemUserRequestBuilder) ServiceProvisioningErrors()(*UsersItemUser return NewUsersItemUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get user from education +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *UsersItemUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *UsersItemUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *UsersItemUserRequestBuilder) ToGetRequestInformation(ctx context.Contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *UsersItemUserRequestBuilder when successful func (m *UsersItemUserRequestBuilder) WithUrl(rawUrl string)(*UsersItemUserRequestBuilder) { return NewUsersItemUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/education/users_item_user_service_provisioning_errors_count_request_builder.go b/education/users_item_user_service_provisioning_errors_count_request_builder.go index 1a18760f46f..bd514c0b541 100644 --- a/education/users_item_user_service_provisioning_errors_count_request_builder.go +++ b/education/users_item_user_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewUsersItemUserServiceProvisioningErrorsCountRequestBuilder(rawUrl string, return NewUsersItemUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *UsersItemUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *UsersItemUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *UsersItemUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx cont return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *UsersItemUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *UsersItemUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *UsersItemUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *UsersItemUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *UsersItemUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*UsersItemUserServiceProvisioningErrorsCountRequestBuilder) { return NewUsersItemUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/education/users_item_user_service_provisioning_errors_request_builder.go b/education/users_item_user_service_provisioning_errors_request_builder.go index 1961a1a22c4..9082a49894f 100644 --- a/education/users_item_user_service_provisioning_errors_request_builder.go +++ b/education/users_item_user_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *UsersItemUserServiceProvisioningErrorsRequestBuilder) Count()(*UsersIte return NewUsersItemUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *UsersItemUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *UsersItemUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *UsersItemUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.C return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *UsersItemUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *UsersItemUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *UsersItemUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInfor return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *UsersItemUserServiceProvisioningErrorsRequestBuilder when successful func (m *UsersItemUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*UsersItemUserServiceProvisioningErrorsRequestBuilder) { return NewUsersItemUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/employeeexperience/communities_item_owners_count_request_builder.go b/employeeexperience/communities_item_owners_count_request_builder.go index 9c849b3fb44..9f961d2f3c1 100644 --- a/employeeexperience/communities_item_owners_count_request_builder.go +++ b/employeeexperience/communities_item_owners_count_request_builder.go @@ -40,6 +40,7 @@ func NewCommunitiesItemOwnersCountRequestBuilder(rawUrl string, requestAdapter i return NewCommunitiesItemOwnersCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *CommunitiesItemOwnersCountRequestBuilder) Get(ctx context.Context, requestConfiguration *CommunitiesItemOwnersCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *CommunitiesItemOwnersCountRequestBuilder) Get(ctx context.Context, requ return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *CommunitiesItemOwnersCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CommunitiesItemOwnersCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *CommunitiesItemOwnersCountRequestBuilder) ToGetRequestInformation(ctx c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *CommunitiesItemOwnersCountRequestBuilder when successful func (m *CommunitiesItemOwnersCountRequestBuilder) WithUrl(rawUrl string)(*CommunitiesItemOwnersCountRequestBuilder) { return NewCommunitiesItemOwnersCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/employeeexperience/communities_item_owners_item_mailbox_settings_request_builder.go b/employeeexperience/communities_item_owners_item_mailbox_settings_request_builder.go index 365a2280a85..cd9213ddf04 100644 --- a/employeeexperience/communities_item_owners_item_mailbox_settings_request_builder.go +++ b/employeeexperience/communities_item_owners_item_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewCommunitiesItemOwnersItemMailboxSettingsRequestBuilder(rawUrl string, re return NewCommunitiesItemOwnersItemMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *CommunitiesItemOwnersItemMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *CommunitiesItemOwnersItemMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *CommunitiesItemOwnersItemMailboxSettingsRequestBuilder) Get(ctx context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *CommunitiesItemOwnersItemMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *CommunitiesItemOwnersItemMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *CommunitiesItemOwnersItemMailboxSettingsRequestBuilder) Patch(ctx conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *CommunitiesItemOwnersItemMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CommunitiesItemOwnersItemMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *CommunitiesItemOwnersItemMailboxSettingsRequestBuilder) ToGetRequestInf return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *CommunitiesItemOwnersItemMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *CommunitiesItemOwnersItemMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *CommunitiesItemOwnersItemMailboxSettingsRequestBuilder) ToPatchRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *CommunitiesItemOwnersItemMailboxSettingsRequestBuilder when successful func (m *CommunitiesItemOwnersItemMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*CommunitiesItemOwnersItemMailboxSettingsRequestBuilder) { return NewCommunitiesItemOwnersItemMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/employeeexperience/communities_item_owners_item_service_provisioning_errors_count_request_builder.go b/employeeexperience/communities_item_owners_item_service_provisioning_errors_count_request_builder.go index 687838c8968..610ea994cd0 100644 --- a/employeeexperience/communities_item_owners_item_service_provisioning_errors_count_request_builder.go +++ b/employeeexperience/communities_item_owners_item_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewCommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilder(ra return NewCommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *CommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *CommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *CommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilder) return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *CommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *CommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *CommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilder when successful func (m *CommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*CommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilder) { return NewCommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/employeeexperience/communities_item_owners_item_service_provisioning_errors_request_builder.go b/employeeexperience/communities_item_owners_item_service_provisioning_errors_request_builder.go index 435f9ceb724..3eea36a5e3f 100644 --- a/employeeexperience/communities_item_owners_item_service_provisioning_errors_request_builder.go +++ b/employeeexperience/communities_item_owners_item_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *CommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilder) Count return NewCommunitiesItemOwnersItemServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *CommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *CommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *CommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilder) Get(c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *CommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *CommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilder) ToGet return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *CommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilder when successful func (m *CommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*CommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilder) { return NewCommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/employeeexperience/communities_item_owners_request_builder.go b/employeeexperience/communities_item_owners_request_builder.go index e1bb3ea5869..0d90d608b5d 100644 --- a/employeeexperience/communities_item_owners_request_builder.go +++ b/employeeexperience/communities_item_owners_request_builder.go @@ -40,6 +40,7 @@ type CommunitiesItemOwnersRequestBuilderGetRequestConfiguration struct { QueryParameters *CommunitiesItemOwnersRequestBuilderGetQueryParameters } // ByUserId provides operations to manage the owners property of the microsoft.graph.community entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *CommunitiesItemOwnersUserItemRequestBuilder when successful func (m *CommunitiesItemOwnersRequestBuilder) ByUserId(userId string)(*CommunitiesItemOwnersUserItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -70,6 +71,7 @@ func (m *CommunitiesItemOwnersRequestBuilder) Count()(*CommunitiesItemOwnersCoun return NewCommunitiesItemOwnersCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the admins of the community. Limited to 100 users. If this property isn't specified when you create the community, the calling user is automatically assigned as the community owner. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *CommunitiesItemOwnersRequestBuilder) Get(ctx context.Context, requestConfiguration *CommunitiesItemOwnersRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable, error) { @@ -90,6 +92,7 @@ func (m *CommunitiesItemOwnersRequestBuilder) Get(ctx context.Context, requestCo return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable), nil } // ToGetRequestInformation the admins of the community. Limited to 100 users. If this property isn't specified when you create the community, the calling user is automatically assigned as the community owner. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *CommunitiesItemOwnersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CommunitiesItemOwnersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -104,6 +107,7 @@ func (m *CommunitiesItemOwnersRequestBuilder) ToGetRequestInformation(ctx contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *CommunitiesItemOwnersRequestBuilder when successful func (m *CommunitiesItemOwnersRequestBuilder) WithUrl(rawUrl string)(*CommunitiesItemOwnersRequestBuilder) { return NewCommunitiesItemOwnersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/employeeexperience/communities_item_owners_user_item_request_builder.go b/employeeexperience/communities_item_owners_user_item_request_builder.go index 0f460041ca3..fba078e6700 100644 --- a/employeeexperience/communities_item_owners_user_item_request_builder.go +++ b/employeeexperience/communities_item_owners_user_item_request_builder.go @@ -41,6 +41,7 @@ func NewCommunitiesItemOwnersUserItemRequestBuilder(rawUrl string, requestAdapte return NewCommunitiesItemOwnersUserItemRequestBuilderInternal(urlParams, requestAdapter) } // Get the admins of the community. Limited to 100 users. If this property isn't specified when you create the community, the calling user is automatically assigned as the community owner. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *CommunitiesItemOwnersUserItemRequestBuilder) Get(ctx context.Context, requestConfiguration *CommunitiesItemOwnersUserItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *CommunitiesItemOwnersUserItemRequestBuilder) ServiceProvisioningErrors( return NewCommunitiesItemOwnersItemServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation the admins of the community. Limited to 100 users. If this property isn't specified when you create the community, the calling user is automatically assigned as the community owner. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *CommunitiesItemOwnersUserItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CommunitiesItemOwnersUserItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *CommunitiesItemOwnersUserItemRequestBuilder) ToGetRequestInformation(ct return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *CommunitiesItemOwnersUserItemRequestBuilder when successful func (m *CommunitiesItemOwnersUserItemRequestBuilder) WithUrl(rawUrl string)(*CommunitiesItemOwnersUserItemRequestBuilder) { return NewCommunitiesItemOwnersUserItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/external/connections_item_schema_request_builder.go b/external/connections_item_schema_request_builder.go index 72cd98c85f6..6aa2a151f40 100644 --- a/external/connections_item_schema_request_builder.go +++ b/external/connections_item_schema_request_builder.go @@ -70,12 +70,12 @@ func (m *ConnectionsItemSchemaRequestBuilder) Get(ctx context.Context, requestCo } return res.(ie98116770ca9f5eee835504331ccb9976e822c2f776cca356ee95c843b4cce86.Schemaable), nil } -// Patch update the properties of a schema for an externalConnection. +// Patch create a new or update an existing schema for a Microsoft Search connection. // returns a Schemaable 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/externalconnectors-schema-update?view=graph-rest-beta +// [Find more info here]: https://learn.microsoft.com/graph/api/externalconnectors-externalconnection-patch-schema?view=graph-rest-beta func (m *ConnectionsItemSchemaRequestBuilder) Patch(ctx context.Context, body ie98116770ca9f5eee835504331ccb9976e822c2f776cca356ee95c843b4cce86.Schemaable, requestConfiguration *ConnectionsItemSchemaRequestBuilderPatchRequestConfiguration)(ie98116770ca9f5eee835504331ccb9976e822c2f776cca356ee95c843b4cce86.Schemaable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -107,7 +107,7 @@ func (m *ConnectionsItemSchemaRequestBuilder) ToGetRequestInformation(ctx contex requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of a schema for an externalConnection. +// ToPatchRequestInformation create a new or update an existing schema for a Microsoft Search connection. // returns a *RequestInformation when successful func (m *ConnectionsItemSchemaRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie98116770ca9f5eee835504331ccb9976e822c2f776cca356ee95c843b4cce86.Schemaable, requestConfiguration *ConnectionsItemSchemaRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/external/industry_data_data_connectors_industry_data_connector_item_request_builder.go b/external/industry_data_data_connectors_industry_data_connector_item_request_builder.go index 5443cb01966..5a0310a980b 100644 --- a/external/industry_data_data_connectors_industry_data_connector_item_request_builder.go +++ b/external/industry_data_data_connectors_industry_data_connector_item_request_builder.go @@ -101,12 +101,12 @@ func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) Get( func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) MicrosoftGraphIndustryDataValidate()(*IndustryDataDataConnectorsItemMicrosoftGraphIndustryDataValidateRequestBuilder) { return NewIndustryDataDataConnectorsItemMicrosoftGraphIndustryDataValidateRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Patch update the properties of an azureDataLakeConnector object. +// Patch update the properties of a oneRosterApiDataConnector object. // returns a IndustryDataConnectorable 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/industrydata-azuredatalakeconnector-update?view=graph-rest-beta +// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-onerosterapidataconnector-update?view=graph-rest-beta func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) Patch(ctx context.Context, body id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.IndustryDataConnectorable, requestConfiguration *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilderPatchRequestConfiguration)(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.IndustryDataConnectorable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -154,7 +154,7 @@ func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) ToGe requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of an azureDataLakeConnector object. +// ToPatchRequestInformation update the properties of a oneRosterApiDataConnector object. // returns a *RequestInformation when successful func (m *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.IndustryDataConnectorable, requestConfiguration *IndustryDataDataConnectorsIndustryDataConnectorItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/external/industry_data_inbound_flows_inbound_flow_item_request_builder.go b/external/industry_data_inbound_flows_inbound_flow_item_request_builder.go index 728a1b66054..77c07fa7852 100644 --- a/external/industry_data_inbound_flows_inbound_flow_item_request_builder.go +++ b/external/industry_data_inbound_flows_inbound_flow_item_request_builder.go @@ -101,12 +101,12 @@ func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) Get(ctx context. } return res.(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.InboundFlowable), nil } -// Patch update the properties of an inboundApiFlow object. +// Patch update the properties of an inboundFileFlow object. // returns a InboundFlowable 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/industrydata-inboundapiflow-update?view=graph-rest-beta +// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-inboundfileflow-update?view=graph-rest-beta func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) Patch(ctx context.Context, body id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.InboundFlowable, requestConfiguration *IndustryDataInboundFlowsInboundFlowItemRequestBuilderPatchRequestConfiguration)(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.InboundFlowable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -149,7 +149,7 @@ func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) ToGetRequestInfo requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of an inboundApiFlow object. +// ToPatchRequestInformation update the properties of an inboundFileFlow object. // returns a *RequestInformation when successful func (m *IndustryDataInboundFlowsInboundFlowItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.InboundFlowable, requestConfiguration *IndustryDataInboundFlowsInboundFlowItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/external/industry_data_inbound_flows_request_builder.go b/external/industry_data_inbound_flows_request_builder.go index 18a16d2941e..00470f9d106 100644 --- a/external/industry_data_inbound_flows_request_builder.go +++ b/external/industry_data_inbound_flows_request_builder.go @@ -99,12 +99,12 @@ func (m *IndustryDataInboundFlowsRequestBuilder) Get(ctx context.Context, reques } return res.(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.InboundFlowCollectionResponseable), nil } -// Post create a new inboundApiFlow object. +// Post create a new inboundFileFlow object. // returns a InboundFlowable 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/industrydata-inboundapiflow-post?view=graph-rest-beta +// [Find more info here]: https://learn.microsoft.com/graph/api/industrydata-inboundfileflow-post?view=graph-rest-beta func (m *IndustryDataInboundFlowsRequestBuilder) Post(ctx context.Context, body id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.InboundFlowable, requestConfiguration *IndustryDataInboundFlowsRequestBuilderPostRequestConfiguration)(id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.InboundFlowable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -136,7 +136,7 @@ func (m *IndustryDataInboundFlowsRequestBuilder) ToGetRequestInformation(ctx con requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create a new inboundApiFlow object. +// ToPostRequestInformation create a new inboundFileFlow object. // returns a *RequestInformation when successful func (m *IndustryDataInboundFlowsRequestBuilder) ToPostRequestInformation(ctx context.Context, body id2b46acaed365d10a0a4cc89e0aa6f2f76ad54e2147428aee709d25e554da66a.InboundFlowable, requestConfiguration *IndustryDataInboundFlowsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/2fe06467a7e769f5d083c2ce1cab5298a8b6662feabfea606db5aa1904e65032.go b/groups/2fe06467a7e769f5d083c2ce1cab5298a8b6662feabfea606db5aa1904e65032.go new file mode 100644 index 00000000000..7df60a31808 --- /dev/null +++ b/groups/2fe06467a7e769f5d083c2ce1cab5298a8b6662feabfea606db5aa1904e65032.go @@ -0,0 +1,67 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/exceptionOccurrences/{event%2Did1}/instances/{event%2Did2}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// returns a *RequestInformation when successful +func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/5b318b36c9c64bcbdc2350c18f8e42adb61cbc0091a0cfe58110e7569fcb9600.go b/groups/5b318b36c9c64bcbdc2350c18f8e42adb61cbc0091a0cfe58110e7569fcb9600.go index d05371bdec6..b485098fef5 100644 --- a/groups/5b318b36c9c64bcbdc2350c18f8e42adb61cbc0091a0cfe58110e7569fcb9600.go +++ b/groups/5b318b36c9c64bcbdc2350c18f8e42adb61cbc0091a0cfe58110e7569fcb9600.go @@ -40,6 +40,7 @@ func NewItemSitesItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErr return NewItemSitesItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemSitesItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningEr return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemSitesItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningEr return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *ItemSitesItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewItemSitesItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/7640883296ba858c3b381ab90804d8261750233e4f0f6af47c8ad1393eac6103.go b/groups/7640883296ba858c3b381ab90804d8261750233e4f0f6af47c8ad1393eac6103.go index 95bac93f5ae..b37e49eadf8 100644 --- a/groups/7640883296ba858c3b381ab90804d8261750233e4f0f6af47c8ad1393eac6103.go +++ b/groups/7640883296ba858c3b381ab90804d8261750233e4f0f6af47c8ad1393eac6103.go @@ -58,6 +58,7 @@ func (m *ItemSitesItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErro return NewItemSitesItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemSitesItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErro return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemSitesItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErro return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *ItemSitesItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErrorsRequestBuilder) { return NewItemSitesItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/a6f24063d8efb28e7568d119ee6bb474db657f8090b7739429de41898e87372e.go b/groups/a6f24063d8efb28e7568d119ee6bb474db657f8090b7739429de41898e87372e.go index 74e166d217c..ef2e36aa911 100644 --- a/groups/a6f24063d8efb28e7568d119ee6bb474db657f8090b7739429de41898e87372e.go +++ b/groups/a6f24063d8efb28e7568d119ee6bb474db657f8090b7739429de41898e87372e.go @@ -58,6 +58,7 @@ func (m *ItemSitesItemPagesItemGraphSitePageLastModifiedByUserServiceProvisionin return NewItemSitesItemPagesItemGraphSitePageLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemPagesItemGraphSitePageLastModifiedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemPagesItemGraphSitePageLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemSitesItemPagesItemGraphSitePageLastModifiedByUserServiceProvisionin return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemPagesItemGraphSitePageLastModifiedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemPagesItemGraphSitePageLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemSitesItemPagesItemGraphSitePageLastModifiedByUserServiceProvisionin return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemPagesItemGraphSitePageLastModifiedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *ItemSitesItemPagesItemGraphSitePageLastModifiedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemPagesItemGraphSitePageLastModifiedByUserServiceProvisioningErrorsRequestBuilder) { return NewItemSitesItemPagesItemGraphSitePageLastModifiedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/ade0b1d332df446433d0f88e1a3c6092a66d9001750100ebb15f5883e1ab94e7.go b/groups/ade0b1d332df446433d0f88e1a3c6092a66d9001750100ebb15f5883e1ab94e7.go index 423577c6f52..4216b89349a 100644 --- a/groups/ade0b1d332df446433d0f88e1a3c6092a66d9001750100ebb15f5883e1ab94e7.go +++ b/groups/ade0b1d332df446433d0f88e1a3c6092a66d9001750100ebb15f5883e1ab94e7.go @@ -40,6 +40,7 @@ func NewItemSitesItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsCou return NewItemSitesItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemSitesItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsCo return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemSitesItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsCo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *ItemSitesItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewItemSitesItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/c1d1e9adabce0c856b01da5f4363c4fdda3adcaebed45bb564ec8ee873b63eb0.go b/groups/c1d1e9adabce0c856b01da5f4363c4fdda3adcaebed45bb564ec8ee873b63eb0.go index c9055ac7900..896a6d2be16 100644 --- a/groups/c1d1e9adabce0c856b01da5f4363c4fdda3adcaebed45bb564ec8ee873b63eb0.go +++ b/groups/c1d1e9adabce0c856b01da5f4363c4fdda3adcaebed45bb564ec8ee873b63eb0.go @@ -58,6 +58,7 @@ func (m *ItemSitesItemListsItemItemsItemLastModifiedByUserServiceProvisioningErr return NewItemSitesItemListsItemItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemListsItemItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemListsItemItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemSitesItemListsItemItemsItemLastModifiedByUserServiceProvisioningErr return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemListsItemItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemListsItemItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemSitesItemListsItemItemsItemLastModifiedByUserServiceProvisioningErr return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemListsItemItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *ItemSitesItemListsItemItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemListsItemItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) { return NewItemSitesItemListsItemItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/c72ec518df834dc58ed1bf35ac893a72d572644e2d0993cef25d56f7eba18fc4.go b/groups/c72ec518df834dc58ed1bf35ac893a72d572644e2d0993cef25d56f7eba18fc4.go new file mode 100644 index 00000000000..3909adf4b48 --- /dev/null +++ b/groups/c72ec518df834dc58ed1bf35ac893a72d572644e2d0993cef25d56f7eba18fc4.go @@ -0,0 +1,67 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/exceptionOccurrences/{event%2Did2}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// returns a *RequestInformation when successful +func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/c74e9b05ec20e87d25c34a58e95cc6adb0cef6115df35790a8db45a437ab5541.go b/groups/c74e9b05ec20e87d25c34a58e95cc6adb0cef6115df35790a8db45a437ab5541.go index 816da862a48..0c0390df853 100644 --- a/groups/c74e9b05ec20e87d25c34a58e95cc6adb0cef6115df35790a8db45a437ab5541.go +++ b/groups/c74e9b05ec20e87d25c34a58e95cc6adb0cef6115df35790a8db45a437ab5541.go @@ -40,6 +40,7 @@ func NewItemSitesItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsCo return NewItemSitesItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemSitesItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsC return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemSitesItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsC return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *ItemSitesItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewItemSitesItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/d3d113b1bfa9b3b8bce0c23c5e4918bee9dcae9f979ad3919071f7290b0af542.go b/groups/d3d113b1bfa9b3b8bce0c23c5e4918bee9dcae9f979ad3919071f7290b0af542.go index 8b4aa200dc0..e77f71b46c5 100644 --- a/groups/d3d113b1bfa9b3b8bce0c23c5e4918bee9dcae9f979ad3919071f7290b0af542.go +++ b/groups/d3d113b1bfa9b3b8bce0c23c5e4918bee9dcae9f979ad3919071f7290b0af542.go @@ -58,6 +58,7 @@ func (m *ItemSitesItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningEr return NewItemSitesItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemSitesItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningEr return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemSitesItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningEr return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *ItemSitesItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) { return NewItemSitesItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/dca9f16bd8fd67a365c0d4428db5ce34414375422648da686974ffafa761f84a.go b/groups/dca9f16bd8fd67a365c0d4428db5ce34414375422648da686974ffafa761f84a.go index 85a37f61867..729805b401c 100644 --- a/groups/dca9f16bd8fd67a365c0d4428db5ce34414375422648da686974ffafa761f84a.go +++ b/groups/dca9f16bd8fd67a365c0d4428db5ce34414375422648da686974ffafa761f84a.go @@ -40,6 +40,7 @@ func NewItemSitesItemPagesItemGraphSitePageLastModifiedByUserServiceProvisioning return NewItemSitesItemPagesItemGraphSitePageLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemPagesItemGraphSitePageLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemPagesItemGraphSitePageLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemSitesItemPagesItemGraphSitePageLastModifiedByUserServiceProvisionin return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemPagesItemGraphSitePageLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemPagesItemGraphSitePageLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemSitesItemPagesItemGraphSitePageLastModifiedByUserServiceProvisionin return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemPagesItemGraphSitePageLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *ItemSitesItemPagesItemGraphSitePageLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemPagesItemGraphSitePageLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewItemSitesItemPagesItemGraphSitePageLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/e53d0c7468ce78e53446c0fd5066708eb37e06f545008db6753d75edbe027af3.go b/groups/e53d0c7468ce78e53446c0fd5066708eb37e06f545008db6753d75edbe027af3.go index b79057d9d64..cba04329887 100644 --- a/groups/e53d0c7468ce78e53446c0fd5066708eb37e06f545008db6753d75edbe027af3.go +++ b/groups/e53d0c7468ce78e53446c0fd5066708eb37e06f545008db6753d75edbe027af3.go @@ -40,6 +40,7 @@ func NewItemSitesItemPagesItemGraphSitePageCreatedByUserServiceProvisioningError return NewItemSitesItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemSitesItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErro return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemSitesItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErro return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *ItemSitesItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewItemSitesItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/fc223fc706ca914c3a89ad54089824f8f8c876472e137e2c0a5d73c1fa2a5506.go b/groups/fc223fc706ca914c3a89ad54089824f8f8c876472e137e2c0a5d73c1fa2a5506.go index 55b27b256df..5d3fe8a9889 100644 --- a/groups/fc223fc706ca914c3a89ad54089824f8f8c876472e137e2c0a5d73c1fa2a5506.go +++ b/groups/fc223fc706ca914c3a89ad54089824f8f8c876472e137e2c0a5d73c1fa2a5506.go @@ -40,6 +40,7 @@ func NewItemSitesItemListsItemItemsItemLastModifiedByUserServiceProvisioningErro return NewItemSitesItemListsItemItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemListsItemItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemListsItemItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemSitesItemListsItemItemsItemLastModifiedByUserServiceProvisioningErr return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemListsItemItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemListsItemItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemSitesItemListsItemItemsItemLastModifiedByUserServiceProvisioningErr return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemListsItemItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *ItemSitesItemListsItemItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemListsItemItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewItemSitesItemListsItemItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/groups_request_builder.go b/groups/groups_request_builder.go index cf52f10a649..857edf5fd9d 100644 --- a/groups/groups_request_builder.go +++ b/groups/groups_request_builder.go @@ -119,12 +119,12 @@ func (m *GroupsRequestBuilder) GetByIds()(*GetByIdsRequestBuilder) { func (m *GroupsRequestBuilder) GetUserOwnedObjects()(*GetUserOwnedObjectsRequestBuilder) { return NewGetUserOwnedObjectsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Post create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see the Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. +// Post create a new group as specified in the request body. You can create one of the following groups: This operation returns by default only a subset of the properties for each group. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. Note: To create a team, first create a group then add a team to it, see create team. // returns a Groupable 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-upsert?view=graph-rest-beta +// [Find more info here]: https://learn.microsoft.com/graph/api/group-post-groups?view=graph-rest-beta func (m *GroupsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Groupable, requestConfiguration *GroupsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Groupable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -156,7 +156,7 @@ func (m *GroupsRequestBuilder) ToGetRequestInformation(ctx context.Context, requ requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create a new group object if it doesn't exist, or update the properties of an existing group object.You can create or update the following types of group: By default, this operation returns only a subset of the properties for each group. For a list of properties that are returned by default, see the Properties section of the group resource. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. +// ToPostRequestInformation create a new group as specified in the request body. You can create one of the following groups: This operation returns by default only a subset of the properties for each group. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. Note: To create a team, first create a group then add a team to it, see create team. // returns a *RequestInformation when successful func (m *GroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Groupable, requestConfiguration *GroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_calendar_calendar_view_event_item_request_builder.go b/groups/item_calendar_calendar_view_event_item_request_builder.go index 03ff2ab4f81..4570fed1624 100644 --- a/groups/item_calendar_calendar_view_event_item_request_builder.go +++ b/groups/item_calendar_calendar_view_event_item_request_builder.go @@ -114,6 +114,11 @@ func (m *ItemCalendarCalendarViewEventItemRequestBuilder) Get(ctx context.Contex func (m *ItemCalendarCalendarViewEventItemRequestBuilder) Instances()(*ItemCalendarCalendarViewItemInstancesRequestBuilder) { return NewItemCalendarCalendarViewItemInstancesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarCalendarViewItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarCalendarViewEventItemRequestBuilder) PermanentDelete()(*ItemCalendarCalendarViewItemPermanentDeleteRequestBuilder) { + return NewItemCalendarCalendarViewItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarCalendarViewItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarCalendarViewEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarCalendarViewItemSnoozeReminderRequestBuilder) { diff --git a/groups/item_calendar_calendar_view_item_exception_occurrences_event_item_request_builder.go b/groups/item_calendar_calendar_view_item_exception_occurrences_event_item_request_builder.go index 27f75d16544..85c9df4a7ca 100644 --- a/groups/item_calendar_calendar_view_item_exception_occurrences_event_item_request_builder.go +++ b/groups/item_calendar_calendar_view_item_exception_occurrences_event_item_request_builder.go @@ -105,6 +105,11 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesEventItemRequestBuilder func (m *ItemCalendarCalendarViewItemExceptionOccurrencesEventItemRequestBuilder) Instances()(*ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder) { return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarCalendarViewItemExceptionOccurrencesEventItemRequestBuilder) PermanentDelete()(*ItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarCalendarViewItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) { diff --git a/groups/item_calendar_calendar_view_item_exception_occurrences_item_instances_event_item_request_builder.go b/groups/item_calendar_calendar_view_item_exception_occurrences_item_instances_event_item_request_builder.go index 88ac10bf4cf..964b43e3302 100644 --- a/groups/item_calendar_calendar_view_item_exception_occurrences_item_instances_event_item_request_builder.go +++ b/groups/item_calendar_calendar_view_item_exception_occurrences_item_instances_event_item_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetQueryParameters struct { // The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 EndDateTime *string `uriparametername:"endDateTime"` @@ -84,7 +84,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesEventItemR func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) Forward()(*ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder) { return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -104,6 +104,11 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesEventItemR } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) PermanentDelete()(*ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder) { @@ -114,7 +119,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesEventItemR func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) TentativelyAccept()(*ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_calendar_calendar_view_item_exception_occurrences_item_instances_request_builder.go b/groups/item_calendar_calendar_view_item_exception_occurrences_item_instances_request_builder.go index 46f6826ed57..f62089f46e5 100644 --- a/groups/item_calendar_calendar_view_item_exception_occurrences_item_instances_request_builder.go +++ b/groups/item_calendar_calendar_view_item_exception_occurrences_item_instances_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -78,7 +78,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesRequestBui func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder) Delta()(*ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesDeltaRequestBuilder) { return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -98,7 +98,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesRequestBui } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_calendar_calendar_view_item_exception_occurrences_item_permanent_delete_request_builder.go b/groups/item_calendar_calendar_view_item_exception_occurrences_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..8f2f2e1a3f3 --- /dev/null +++ b/groups/item_calendar_calendar_view_item_exception_occurrences_item_permanent_delete_request_builder.go @@ -0,0 +1,67 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/exceptionOccurrences/{event%2Did1}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// returns a *RequestInformation when successful +func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_calendar_calendar_view_item_instances_event_item_request_builder.go b/groups/item_calendar_calendar_view_item_instances_event_item_request_builder.go index 5b3da195744..5627b7bb958 100644 --- a/groups/item_calendar_calendar_view_item_instances_event_item_request_builder.go +++ b/groups/item_calendar_calendar_view_item_instances_event_item_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemCalendarCalendarViewItemInstancesEventItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemCalendarCalendarViewItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemCalendarCalendarViewItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemCalendarCalendarViewItemInstancesEventItemRequestBuilderGetQueryParameters struct { // The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 EndDateTime *string `uriparametername:"endDateTime"` @@ -89,7 +89,7 @@ func (m *ItemCalendarCalendarViewItemInstancesEventItemRequestBuilder) Extension func (m *ItemCalendarCalendarViewItemInstancesEventItemRequestBuilder) Forward()(*ItemCalendarCalendarViewItemInstancesItemForwardRequestBuilder) { return NewItemCalendarCalendarViewItemInstancesItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemInstancesEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -109,6 +109,11 @@ func (m *ItemCalendarCalendarViewItemInstancesEventItemRequestBuilder) Get(ctx c } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarCalendarViewItemInstancesEventItemRequestBuilder) PermanentDelete()(*ItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarCalendarViewItemInstancesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarCalendarViewItemInstancesItemSnoozeReminderRequestBuilder) { @@ -119,7 +124,7 @@ func (m *ItemCalendarCalendarViewItemInstancesEventItemRequestBuilder) SnoozeRem func (m *ItemCalendarCalendarViewItemInstancesEventItemRequestBuilder) TentativelyAccept()(*ItemCalendarCalendarViewItemInstancesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarCalendarViewItemInstancesItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_calendar_calendar_view_item_instances_item_exception_occurrences_event_item_request_builder.go b/groups/item_calendar_calendar_view_item_instances_item_exception_occurrences_event_item_request_builder.go index c85e26c62fd..aca170547c7 100644 --- a/groups/item_calendar_calendar_view_item_instances_item_exception_occurrences_event_item_request_builder.go +++ b/groups/item_calendar_calendar_view_item_instances_item_exception_occurrences_event_item_request_builder.go @@ -100,6 +100,11 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesEventItemR } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) PermanentDelete()(*ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) { diff --git a/groups/item_calendar_calendar_view_item_instances_item_permanent_delete_request_builder.go b/groups/item_calendar_calendar_view_item_instances_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..3da7fbbffcf --- /dev/null +++ b/groups/item_calendar_calendar_view_item_instances_item_permanent_delete_request_builder.go @@ -0,0 +1,67 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// returns a *RequestInformation when successful +func (m *ItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_calendar_calendar_view_item_instances_request_builder.go b/groups/item_calendar_calendar_view_item_instances_request_builder.go index 6843451b4c4..9f4cc09baf1 100644 --- a/groups/item_calendar_calendar_view_item_instances_request_builder.go +++ b/groups/item_calendar_calendar_view_item_instances_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemCalendarCalendarViewItemInstancesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemCalendarCalendarViewItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemCalendarCalendarViewItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemCalendarCalendarViewItemInstancesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -78,7 +78,7 @@ func (m *ItemCalendarCalendarViewItemInstancesRequestBuilder) Count()(*ItemCalen func (m *ItemCalendarCalendarViewItemInstancesRequestBuilder) Delta()(*ItemCalendarCalendarViewItemInstancesDeltaRequestBuilder) { return NewItemCalendarCalendarViewItemInstancesDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemInstancesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -98,7 +98,7 @@ func (m *ItemCalendarCalendarViewItemInstancesRequestBuilder) Get(ctx context.Co } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_calendar_calendar_view_item_permanent_delete_request_builder.go b/groups/item_calendar_calendar_view_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..057d87d01d4 --- /dev/null +++ b/groups/item_calendar_calendar_view_item_permanent_delete_request_builder.go @@ -0,0 +1,67 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarCalendarViewItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarCalendarViewItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarCalendarViewItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarCalendarViewItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarCalendarViewItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarCalendarViewItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarCalendarViewItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarCalendarViewItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarCalendarViewItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarCalendarViewItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarCalendarViewItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarCalendarViewItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarCalendarViewItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarCalendarViewItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarCalendarViewItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// returns a *RequestInformation when successful +func (m *ItemCalendarCalendarViewItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemCalendarCalendarViewItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarCalendarViewItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemPermanentDeleteRequestBuilder) { + return NewItemCalendarCalendarViewItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_calendar_events_event_item_request_builder.go b/groups/item_calendar_events_event_item_request_builder.go index 3e9b07ef234..7518ba9144b 100644 --- a/groups/item_calendar_events_event_item_request_builder.go +++ b/groups/item_calendar_events_event_item_request_builder.go @@ -160,6 +160,11 @@ func (m *ItemCalendarEventsEventItemRequestBuilder) Patch(ctx context.Context, b } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarEventsItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarEventsEventItemRequestBuilder) PermanentDelete()(*ItemCalendarEventsItemPermanentDeleteRequestBuilder) { + return NewItemCalendarEventsItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarEventsItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarEventsEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarEventsItemSnoozeReminderRequestBuilder) { diff --git a/groups/item_calendar_events_item_exception_occurrences_event_item_request_builder.go b/groups/item_calendar_events_item_exception_occurrences_event_item_request_builder.go index 2006b2e7e1c..61ef1eb1859 100644 --- a/groups/item_calendar_events_item_exception_occurrences_event_item_request_builder.go +++ b/groups/item_calendar_events_item_exception_occurrences_event_item_request_builder.go @@ -105,6 +105,11 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesEventItemRequestBuilder) Get( func (m *ItemCalendarEventsItemExceptionOccurrencesEventItemRequestBuilder) Instances()(*ItemCalendarEventsItemExceptionOccurrencesItemInstancesRequestBuilder) { return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarEventsItemExceptionOccurrencesEventItemRequestBuilder) PermanentDelete()(*ItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarEventsItemExceptionOccurrencesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarEventsItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) { diff --git a/groups/item_calendar_events_item_exception_occurrences_item_instances_event_item_request_builder.go b/groups/item_calendar_events_item_exception_occurrences_item_instances_event_item_request_builder.go index 7482219d1c2..9d65280bc7f 100644 --- a/groups/item_calendar_events_item_exception_occurrences_item_instances_event_item_request_builder.go +++ b/groups/item_calendar_events_item_exception_occurrences_item_instances_event_item_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemCalendarEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemCalendarEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemCalendarEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemCalendarEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetQueryParameters struct { // The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 EndDateTime *string `uriparametername:"endDateTime"` @@ -84,7 +84,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesEventItemRequest func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) Forward()(*ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder) { return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -104,6 +104,11 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesEventItemRequest } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) PermanentDelete()(*ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder) { @@ -114,7 +119,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesEventItemRequest func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) TentativelyAccept()(*ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_calendar_events_item_exception_occurrences_item_instances_item_permanent_delete_request_builder.go b/groups/item_calendar_events_item_exception_occurrences_item_instances_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..6cb0ddc8ef3 --- /dev/null +++ b/groups/item_calendar_events_item_exception_occurrences_item_instances_item_permanent_delete_request_builder.go @@ -0,0 +1,67 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/exceptionOccurrences/{event%2Did1}/instances/{event%2Did2}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// returns a *RequestInformation when successful +func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_calendar_events_item_exception_occurrences_item_instances_request_builder.go b/groups/item_calendar_events_item_exception_occurrences_item_instances_request_builder.go index 90f7173fdb2..e00eb1aadd9 100644 --- a/groups/item_calendar_events_item_exception_occurrences_item_instances_request_builder.go +++ b/groups/item_calendar_events_item_exception_occurrences_item_instances_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemCalendarEventsItemExceptionOccurrencesItemInstancesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemCalendarEventsItemExceptionOccurrencesItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemCalendarEventsItemExceptionOccurrencesItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemCalendarEventsItemExceptionOccurrencesItemInstancesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -78,7 +78,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesRequestBuilder) func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesRequestBuilder) Delta()(*ItemCalendarEventsItemExceptionOccurrencesItemInstancesDeltaRequestBuilder) { return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -98,7 +98,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesRequestBuilder) } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_calendar_events_item_exception_occurrences_item_permanent_delete_request_builder.go b/groups/item_calendar_events_item_exception_occurrences_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..95d75cb511f --- /dev/null +++ b/groups/item_calendar_events_item_exception_occurrences_item_permanent_delete_request_builder.go @@ -0,0 +1,67 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/exceptionOccurrences/{event%2Did1}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// returns a *RequestInformation when successful +func (m *ItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_calendar_events_item_instances_event_item_request_builder.go b/groups/item_calendar_events_item_instances_event_item_request_builder.go index 4996c90d9a8..bd79d51100b 100644 --- a/groups/item_calendar_events_item_instances_event_item_request_builder.go +++ b/groups/item_calendar_events_item_instances_event_item_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemCalendarEventsItemInstancesEventItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemCalendarEventsItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemCalendarEventsItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemCalendarEventsItemInstancesEventItemRequestBuilderGetQueryParameters struct { // The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 EndDateTime *string `uriparametername:"endDateTime"` @@ -89,7 +89,7 @@ func (m *ItemCalendarEventsItemInstancesEventItemRequestBuilder) Extensions()(*I func (m *ItemCalendarEventsItemInstancesEventItemRequestBuilder) Forward()(*ItemCalendarEventsItemInstancesItemForwardRequestBuilder) { return NewItemCalendarEventsItemInstancesItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemInstancesEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -109,6 +109,11 @@ func (m *ItemCalendarEventsItemInstancesEventItemRequestBuilder) Get(ctx context } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarEventsItemInstancesEventItemRequestBuilder) PermanentDelete()(*ItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarEventsItemInstancesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarEventsItemInstancesItemSnoozeReminderRequestBuilder) { @@ -119,7 +124,7 @@ func (m *ItemCalendarEventsItemInstancesEventItemRequestBuilder) SnoozeReminder( func (m *ItemCalendarEventsItemInstancesEventItemRequestBuilder) TentativelyAccept()(*ItemCalendarEventsItemInstancesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarEventsItemInstancesItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_calendar_events_item_instances_item_exception_occurrences_event_item_request_builder.go b/groups/item_calendar_events_item_instances_item_exception_occurrences_event_item_request_builder.go index 6c71cd6fe33..b754ce6a156 100644 --- a/groups/item_calendar_events_item_instances_item_exception_occurrences_event_item_request_builder.go +++ b/groups/item_calendar_events_item_instances_item_exception_occurrences_event_item_request_builder.go @@ -100,6 +100,11 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesEventItemRequest } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) PermanentDelete()(*ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) { diff --git a/groups/item_calendar_events_item_instances_item_exception_occurrences_item_permanent_delete_request_builder.go b/groups/item_calendar_events_item_instances_item_exception_occurrences_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..39a9ee3c959 --- /dev/null +++ b/groups/item_calendar_events_item_instances_item_exception_occurrences_item_permanent_delete_request_builder.go @@ -0,0 +1,67 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/exceptionOccurrences/{event%2Did2}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// returns a *RequestInformation when successful +func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_calendar_events_item_instances_item_permanent_delete_request_builder.go b/groups/item_calendar_events_item_instances_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..2d468ab0579 --- /dev/null +++ b/groups/item_calendar_events_item_instances_item_permanent_delete_request_builder.go @@ -0,0 +1,67 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// returns a *RequestInformation when successful +func (m *ItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_calendar_events_item_instances_request_builder.go b/groups/item_calendar_events_item_instances_request_builder.go index 21f114150e2..db09b39ca67 100644 --- a/groups/item_calendar_events_item_instances_request_builder.go +++ b/groups/item_calendar_events_item_instances_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemCalendarEventsItemInstancesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemCalendarEventsItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemCalendarEventsItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemCalendarEventsItemInstancesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -78,7 +78,7 @@ func (m *ItemCalendarEventsItemInstancesRequestBuilder) Count()(*ItemCalendarEve func (m *ItemCalendarEventsItemInstancesRequestBuilder) Delta()(*ItemCalendarEventsItemInstancesDeltaRequestBuilder) { return NewItemCalendarEventsItemInstancesDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemInstancesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -98,7 +98,7 @@ func (m *ItemCalendarEventsItemInstancesRequestBuilder) Get(ctx context.Context, } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_calendar_events_item_permanent_delete_request_builder.go b/groups/item_calendar_events_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..bdc2fb4d1f6 --- /dev/null +++ b/groups/item_calendar_events_item_permanent_delete_request_builder.go @@ -0,0 +1,67 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarEventsItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarEventsItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarEventsItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarEventsItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarEventsItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarEventsItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarEventsItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarEventsItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarEventsItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarEventsItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarEventsItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarEventsItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarEventsItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarEventsItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarEventsItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarEventsItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// returns a *RequestInformation when successful +func (m *ItemCalendarEventsItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemCalendarEventsItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarEventsItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemPermanentDeleteRequestBuilder) { + return NewItemCalendarEventsItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_calendar_permanent_delete_request_builder.go b/groups/item_calendar_permanent_delete_request_builder.go new file mode 100644 index 00000000000..d4e7175bdb6 --- /dev/null +++ b/groups/item_calendar_permanent_delete_request_builder.go @@ -0,0 +1,67 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarPermanentDeleteRequestBuilder) { + m := &ItemCalendarPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarPermanentDeleteRequestBuilder instantiates a new ItemCalendarPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete a calendar folder and the events that it contains and remove them from the mailbox. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// 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/calendar-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete a calendar folder and the events that it contains and remove them from the mailbox. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// returns a *RequestInformation when successful +func (m *ItemCalendarPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemCalendarPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarPermanentDeleteRequestBuilder) { + return NewItemCalendarPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_calendar_request_builder.go b/groups/item_calendar_request_builder.go index 3648bd6695e..86f2d60ffa3 100644 --- a/groups/item_calendar_request_builder.go +++ b/groups/item_calendar_request_builder.go @@ -85,6 +85,11 @@ func (m *ItemCalendarRequestBuilder) Get(ctx context.Context, requestConfigurati func (m *ItemCalendarRequestBuilder) GetSchedule()(*ItemCalendarGetScheduleRequestBuilder) { return NewItemCalendarGetScheduleRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarRequestBuilder) PermanentDelete()(*ItemCalendarPermanentDeleteRequestBuilder) { + return NewItemCalendarPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToGetRequestInformation the group's calendar. Read-only. // returns a *RequestInformation when successful func (m *ItemCalendarRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { diff --git a/groups/item_calendar_view_event_item_request_builder.go b/groups/item_calendar_view_event_item_request_builder.go index 58f7591de84..4e14db3d44b 100644 --- a/groups/item_calendar_view_event_item_request_builder.go +++ b/groups/item_calendar_view_event_item_request_builder.go @@ -114,6 +114,11 @@ func (m *ItemCalendarViewEventItemRequestBuilder) Get(ctx context.Context, reque func (m *ItemCalendarViewEventItemRequestBuilder) Instances()(*ItemCalendarViewItemInstancesRequestBuilder) { return NewItemCalendarViewItemInstancesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarViewItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarViewEventItemRequestBuilder) PermanentDelete()(*ItemCalendarViewItemPermanentDeleteRequestBuilder) { + return NewItemCalendarViewItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarViewItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarViewEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarViewItemSnoozeReminderRequestBuilder) { diff --git a/groups/item_calendar_view_item_exception_occurrences_event_item_request_builder.go b/groups/item_calendar_view_item_exception_occurrences_event_item_request_builder.go index 19bf78b9242..f1bdd5f99ba 100644 --- a/groups/item_calendar_view_item_exception_occurrences_event_item_request_builder.go +++ b/groups/item_calendar_view_item_exception_occurrences_event_item_request_builder.go @@ -105,6 +105,11 @@ func (m *ItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilder) Get(ct func (m *ItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilder) Instances()(*ItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder) { return NewItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilder) PermanentDelete()(*ItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarViewItemExceptionOccurrencesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarViewItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) { diff --git a/groups/item_calendar_view_item_exception_occurrences_item_instances_event_item_request_builder.go b/groups/item_calendar_view_item_exception_occurrences_item_instances_event_item_request_builder.go index 22f2325e478..2cfc0c1ff80 100644 --- a/groups/item_calendar_view_item_exception_occurrences_item_instances_event_item_request_builder.go +++ b/groups/item_calendar_view_item_exception_occurrences_item_instances_event_item_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetQueryParameters struct { // The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 EndDateTime *string `uriparametername:"endDateTime"` @@ -84,7 +84,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBu func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) Forward()(*ItemCalendarViewItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder) { return NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -104,6 +104,11 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBu } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) PermanentDelete()(*ItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder) { @@ -114,7 +119,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBu func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) TentativelyAccept()(*ItemCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_calendar_view_item_exception_occurrences_item_instances_item_permanent_delete_request_builder.go b/groups/item_calendar_view_item_exception_occurrences_item_instances_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..9d856bb4f7b --- /dev/null +++ b/groups/item_calendar_view_item_exception_occurrences_item_instances_item_permanent_delete_request_builder.go @@ -0,0 +1,67 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/exceptionOccurrences/{event%2Did1}/instances/{event%2Did2}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// returns a *RequestInformation when successful +func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_calendar_view_item_exception_occurrences_item_instances_request_builder.go b/groups/item_calendar_view_item_exception_occurrences_item_instances_request_builder.go index 79647bbe3c8..0ad9747730b 100644 --- a/groups/item_calendar_view_item_exception_occurrences_item_instances_request_builder.go +++ b/groups/item_calendar_view_item_exception_occurrences_item_instances_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -78,7 +78,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder) Co func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder) Delta()(*ItemCalendarViewItemExceptionOccurrencesItemInstancesDeltaRequestBuilder) { return NewItemCalendarViewItemExceptionOccurrencesItemInstancesDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -98,7 +98,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder) Ge } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_calendar_view_item_exception_occurrences_item_permanent_delete_request_builder.go b/groups/item_calendar_view_item_exception_occurrences_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..49664cedeb3 --- /dev/null +++ b/groups/item_calendar_view_item_exception_occurrences_item_permanent_delete_request_builder.go @@ -0,0 +1,67 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/exceptionOccurrences/{event%2Did1}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// returns a *RequestInformation when successful +func (m *ItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_calendar_view_item_instances_event_item_request_builder.go b/groups/item_calendar_view_item_instances_event_item_request_builder.go index 4a586dca3fc..fd0ec4156f7 100644 --- a/groups/item_calendar_view_item_instances_event_item_request_builder.go +++ b/groups/item_calendar_view_item_instances_event_item_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemCalendarViewItemInstancesEventItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemCalendarViewItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemCalendarViewItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemCalendarViewItemInstancesEventItemRequestBuilderGetQueryParameters struct { // The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 EndDateTime *string `uriparametername:"endDateTime"` @@ -89,7 +89,7 @@ func (m *ItemCalendarViewItemInstancesEventItemRequestBuilder) Extensions()(*Ite func (m *ItemCalendarViewItemInstancesEventItemRequestBuilder) Forward()(*ItemCalendarViewItemInstancesItemForwardRequestBuilder) { return NewItemCalendarViewItemInstancesItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemInstancesEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -109,6 +109,11 @@ func (m *ItemCalendarViewItemInstancesEventItemRequestBuilder) Get(ctx context.C } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarViewItemInstancesEventItemRequestBuilder) PermanentDelete()(*ItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarViewItemInstancesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarViewItemInstancesEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarViewItemInstancesItemSnoozeReminderRequestBuilder) { @@ -119,7 +124,7 @@ func (m *ItemCalendarViewItemInstancesEventItemRequestBuilder) SnoozeReminder()( func (m *ItemCalendarViewItemInstancesEventItemRequestBuilder) TentativelyAccept()(*ItemCalendarViewItemInstancesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarViewItemInstancesItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_calendar_view_item_instances_item_exception_occurrences_event_item_request_builder.go b/groups/item_calendar_view_item_instances_item_exception_occurrences_event_item_request_builder.go index 99797c67e32..9a7b9b3789d 100644 --- a/groups/item_calendar_view_item_instances_item_exception_occurrences_event_item_request_builder.go +++ b/groups/item_calendar_view_item_instances_item_exception_occurrences_event_item_request_builder.go @@ -100,6 +100,11 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBu } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) PermanentDelete()(*ItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) { diff --git a/groups/item_calendar_view_item_instances_item_exception_occurrences_item_permanent_delete_request_builder.go b/groups/item_calendar_view_item_instances_item_exception_occurrences_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..b86f26eca6b --- /dev/null +++ b/groups/item_calendar_view_item_instances_item_exception_occurrences_item_permanent_delete_request_builder.go @@ -0,0 +1,67 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/exceptionOccurrences/{event%2Did2}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// returns a *RequestInformation when successful +func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_calendar_view_item_instances_item_permanent_delete_request_builder.go b/groups/item_calendar_view_item_instances_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..3cf45693579 --- /dev/null +++ b/groups/item_calendar_view_item_instances_item_permanent_delete_request_builder.go @@ -0,0 +1,67 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// returns a *RequestInformation when successful +func (m *ItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_calendar_view_item_instances_request_builder.go b/groups/item_calendar_view_item_instances_request_builder.go index 7ad95b41a21..d20b2bf73cc 100644 --- a/groups/item_calendar_view_item_instances_request_builder.go +++ b/groups/item_calendar_view_item_instances_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemCalendarViewItemInstancesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemCalendarViewItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemCalendarViewItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemCalendarViewItemInstancesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -78,7 +78,7 @@ func (m *ItemCalendarViewItemInstancesRequestBuilder) Count()(*ItemCalendarViewI func (m *ItemCalendarViewItemInstancesRequestBuilder) Delta()(*ItemCalendarViewItemInstancesDeltaRequestBuilder) { return NewItemCalendarViewItemInstancesDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemInstancesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -98,7 +98,7 @@ func (m *ItemCalendarViewItemInstancesRequestBuilder) Get(ctx context.Context, r } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_calendar_view_item_permanent_delete_request_builder.go b/groups/item_calendar_view_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..eb4f2329585 --- /dev/null +++ b/groups/item_calendar_view_item_permanent_delete_request_builder.go @@ -0,0 +1,67 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarViewItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarViewItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarViewItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarViewItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarViewItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarViewItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarViewItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarViewItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarViewItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView/{event%2Did}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarViewItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarViewItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarViewItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarViewItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarViewItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarViewItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarViewItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// returns a *RequestInformation when successful +func (m *ItemCalendarViewItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemCalendarViewItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarViewItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemPermanentDeleteRequestBuilder) { + return NewItemCalendarViewItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_conversations_conversation_item_request_builder.go b/groups/item_conversations_conversation_item_request_builder.go index 4640bc0f8a9..4d1fa05aed0 100644 --- a/groups/item_conversations_conversation_item_request_builder.go +++ b/groups/item_conversations_conversation_item_request_builder.go @@ -18,7 +18,7 @@ type ItemConversationsConversationItemRequestBuilderDeleteRequestConfiguration s // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemConversationsConversationItemRequestBuilderGetQueryParameters get a group's conversation object. +// ItemConversationsConversationItemRequestBuilderGetQueryParameters retrieve the properties and relationships of conversation object. type ItemConversationsConversationItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -47,11 +47,11 @@ func NewItemConversationsConversationItemRequestBuilder(rawUrl string, requestAd urlParams["request-raw-url"] = rawUrl return NewItemConversationsConversationItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete conversation. +// Delete delete a group's conversation 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/conversation-delete?view=graph-rest-beta +// [Find more info here]: https://learn.microsoft.com/graph/api/group-delete-conversation?view=graph-rest-beta func (m *ItemConversationsConversationItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemConversationsConversationItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -66,12 +66,12 @@ func (m *ItemConversationsConversationItemRequestBuilder) Delete(ctx context.Con } return nil } -// Get get a group's conversation object. +// Get retrieve the properties and relationships of conversation object. // 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-get-conversation?view=graph-rest-beta +// [Find more info here]: https://learn.microsoft.com/graph/api/conversation-get?view=graph-rest-beta func (m *ItemConversationsConversationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemConversationsConversationItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Conversationable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -94,7 +94,7 @@ func (m *ItemConversationsConversationItemRequestBuilder) Get(ctx context.Contex func (m *ItemConversationsConversationItemRequestBuilder) Threads()(*ItemConversationsItemThreadsRequestBuilder) { return NewItemConversationsItemThreadsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToDeleteRequestInformation delete conversation. +// ToDeleteRequestInformation delete a group's conversation object. // returns a *RequestInformation when successful func (m *ItemConversationsConversationItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemConversationsConversationItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -105,7 +105,7 @@ func (m *ItemConversationsConversationItemRequestBuilder) ToDeleteRequestInforma requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get a group's conversation object. +// ToGetRequestInformation retrieve the properties and relationships of conversation object. // returns a *RequestInformation when successful func (m *ItemConversationsConversationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemConversationsConversationItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_conversations_request_builder.go b/groups/item_conversations_request_builder.go index a465a787a17..100fd630db1 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.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationCollectionResponseable), nil } -// 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. +// Post create a new conversation by including a thread and a post. Use reply thread or reply post to further post to that conversation. // 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/opentypeextension-post-opentypeextension?view=graph-rest-beta +// [Find more info here]: https://learn.microsoft.com/graph/api/group-post-conversations?view=graph-rest-beta func (m *ItemConversationsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Conversationable, requestConfiguration *ItemConversationsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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 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. +// ToPostRequestInformation create a new conversation by including a thread and a post. Use reply thread or reply post to further post to that conversation. // returns a *RequestInformation when successful func (m *ItemConversationsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Conversationable, requestConfiguration *ItemConversationsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_events_event_item_request_builder.go b/groups/item_events_event_item_request_builder.go index 41b803ffb46..55e1bd4506b 100644 --- a/groups/item_events_event_item_request_builder.go +++ b/groups/item_events_event_item_request_builder.go @@ -169,6 +169,11 @@ func (m *ItemEventsEventItemRequestBuilder) Patch(ctx context.Context, body ie23 } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemEventsItemPermanentDeleteRequestBuilder when successful +func (m *ItemEventsEventItemRequestBuilder) PermanentDelete()(*ItemEventsItemPermanentDeleteRequestBuilder) { + return NewItemEventsItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemEventsItemSnoozeReminderRequestBuilder when successful func (m *ItemEventsEventItemRequestBuilder) SnoozeReminder()(*ItemEventsItemSnoozeReminderRequestBuilder) { diff --git a/groups/item_events_item_exception_occurrences_event_item_request_builder.go b/groups/item_events_item_exception_occurrences_event_item_request_builder.go index 3d8c5a7b39c..f7e3dde878d 100644 --- a/groups/item_events_item_exception_occurrences_event_item_request_builder.go +++ b/groups/item_events_item_exception_occurrences_event_item_request_builder.go @@ -105,6 +105,11 @@ func (m *ItemEventsItemExceptionOccurrencesEventItemRequestBuilder) Get(ctx cont func (m *ItemEventsItemExceptionOccurrencesEventItemRequestBuilder) Instances()(*ItemEventsItemExceptionOccurrencesItemInstancesRequestBuilder) { return NewItemEventsItemExceptionOccurrencesItemInstancesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemEventsItemExceptionOccurrencesEventItemRequestBuilder) PermanentDelete()(*ItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemEventsItemExceptionOccurrencesItemSnoozeReminderRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesEventItemRequestBuilder) SnoozeReminder()(*ItemEventsItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) { diff --git a/groups/item_events_item_exception_occurrences_item_instances_event_item_request_builder.go b/groups/item_events_item_exception_occurrences_item_instances_event_item_request_builder.go index a67099180ef..8cc70830058 100644 --- a/groups/item_events_item_exception_occurrences_item_instances_event_item_request_builder.go +++ b/groups/item_events_item_exception_occurrences_item_instances_event_item_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetQueryParameters struct { // The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 EndDateTime *string `uriparametername:"endDateTime"` @@ -84,7 +84,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) func (m *ItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) Forward()(*ItemEventsItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder) { return NewItemEventsItemExceptionOccurrencesItemInstancesItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -104,6 +104,11 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) PermanentDelete()(*ItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) SnoozeReminder()(*ItemEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder) { @@ -114,7 +119,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) func (m *ItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) TentativelyAccept()(*ItemEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder) { return NewItemEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_events_item_exception_occurrences_item_instances_item_permanent_delete_request_builder.go b/groups/item_events_item_exception_occurrences_item_instances_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..2c09dee720a --- /dev/null +++ b/groups/item_events_item_exception_occurrences_item_instances_item_permanent_delete_request_builder.go @@ -0,0 +1,67 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + m := &ItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/exceptionOccurrences/{event%2Did1}/instances/{event%2Did2}/permanentDelete", pathParameters), + } + return m +} +// NewItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder instantiates a new ItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// returns a *RequestInformation when successful +func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_events_item_exception_occurrences_item_instances_request_builder.go b/groups/item_events_item_exception_occurrences_item_instances_request_builder.go index 49da1341db5..40c5015369f 100644 --- a/groups/item_events_item_exception_occurrences_item_instances_request_builder.go +++ b/groups/item_events_item_exception_occurrences_item_instances_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemEventsItemExceptionOccurrencesItemInstancesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemEventsItemExceptionOccurrencesItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemEventsItemExceptionOccurrencesItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemEventsItemExceptionOccurrencesItemInstancesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -78,7 +78,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesRequestBuilder) Count()( func (m *ItemEventsItemExceptionOccurrencesItemInstancesRequestBuilder) Delta()(*ItemEventsItemExceptionOccurrencesItemInstancesDeltaRequestBuilder) { return NewItemEventsItemExceptionOccurrencesItemInstancesDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemExceptionOccurrencesItemInstancesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -98,7 +98,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesRequestBuilder) Get(ctx } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_events_item_exception_occurrences_item_permanent_delete_request_builder.go b/groups/item_events_item_exception_occurrences_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..4f78b8f83fd --- /dev/null +++ b/groups/item_events_item_exception_occurrences_item_permanent_delete_request_builder.go @@ -0,0 +1,67 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + m := &ItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/exceptionOccurrences/{event%2Did1}/permanentDelete", pathParameters), + } + return m +} +// NewItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder instantiates a new ItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// returns a *RequestInformation when successful +func (m *ItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_events_item_instances_event_item_request_builder.go b/groups/item_events_item_instances_event_item_request_builder.go index d9cb2cb6ff7..9ec4d71a1c0 100644 --- a/groups/item_events_item_instances_event_item_request_builder.go +++ b/groups/item_events_item_instances_event_item_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemEventsItemInstancesEventItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemEventsItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemEventsItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemEventsItemInstancesEventItemRequestBuilderGetQueryParameters struct { // The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 EndDateTime *string `uriparametername:"endDateTime"` @@ -89,7 +89,7 @@ func (m *ItemEventsItemInstancesEventItemRequestBuilder) Extensions()(*ItemEvent func (m *ItemEventsItemInstancesEventItemRequestBuilder) Forward()(*ItemEventsItemInstancesItemForwardRequestBuilder) { return NewItemEventsItemInstancesItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemInstancesEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemInstancesEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -109,6 +109,11 @@ func (m *ItemEventsItemInstancesEventItemRequestBuilder) Get(ctx context.Context } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemEventsItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemEventsItemInstancesEventItemRequestBuilder) PermanentDelete()(*ItemEventsItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemEventsItemInstancesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemEventsItemInstancesItemSnoozeReminderRequestBuilder when successful func (m *ItemEventsItemInstancesEventItemRequestBuilder) SnoozeReminder()(*ItemEventsItemInstancesItemSnoozeReminderRequestBuilder) { @@ -119,7 +124,7 @@ func (m *ItemEventsItemInstancesEventItemRequestBuilder) SnoozeReminder()(*ItemE func (m *ItemEventsItemInstancesEventItemRequestBuilder) TentativelyAccept()(*ItemEventsItemInstancesItemTentativelyAcceptRequestBuilder) { return NewItemEventsItemInstancesItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemInstancesEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_events_item_instances_item_exception_occurrences_event_item_request_builder.go b/groups/item_events_item_instances_item_exception_occurrences_event_item_request_builder.go index eeca3937bdd..8d06e2e6988 100644 --- a/groups/item_events_item_instances_item_exception_occurrences_event_item_request_builder.go +++ b/groups/item_events_item_instances_item_exception_occurrences_event_item_request_builder.go @@ -100,6 +100,11 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) PermanentDelete()(*ItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) SnoozeReminder()(*ItemEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) { diff --git a/groups/item_events_item_instances_item_exception_occurrences_item_permanent_delete_request_builder.go b/groups/item_events_item_instances_item_exception_occurrences_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..eb181df490f --- /dev/null +++ b/groups/item_events_item_instances_item_exception_occurrences_item_permanent_delete_request_builder.go @@ -0,0 +1,67 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + m := &ItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/exceptionOccurrences/{event%2Did2}/permanentDelete", pathParameters), + } + return m +} +// NewItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder instantiates a new ItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// returns a *RequestInformation when successful +func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_events_item_instances_item_permanent_delete_request_builder.go b/groups/item_events_item_instances_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..9bb3178ee0a --- /dev/null +++ b/groups/item_events_item_instances_item_permanent_delete_request_builder.go @@ -0,0 +1,67 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemEventsItemInstancesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemEventsItemInstancesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemEventsItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemEventsItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemEventsItemInstancesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemEventsItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemEventsItemInstancesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemEventsItemInstancesItemPermanentDeleteRequestBuilder) { + m := &ItemEventsItemInstancesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/{event%2Did1}/permanentDelete", pathParameters), + } + return m +} +// NewItemEventsItemInstancesItemPermanentDeleteRequestBuilder instantiates a new ItemEventsItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemEventsItemInstancesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemEventsItemInstancesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemEventsItemInstancesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemEventsItemInstancesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// returns a *RequestInformation when successful +func (m *ItemEventsItemInstancesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemEventsItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemEventsItemInstancesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemEventsItemInstancesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_events_item_instances_request_builder.go b/groups/item_events_item_instances_request_builder.go index 8a1701c4cee..9d9f17e7f67 100644 --- a/groups/item_events_item_instances_request_builder.go +++ b/groups/item_events_item_instances_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemEventsItemInstancesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemEventsItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemEventsItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemEventsItemInstancesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -78,7 +78,7 @@ func (m *ItemEventsItemInstancesRequestBuilder) Count()(*ItemEventsItemInstances func (m *ItemEventsItemInstancesRequestBuilder) Delta()(*ItemEventsItemInstancesDeltaRequestBuilder) { return NewItemEventsItemInstancesDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemInstancesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemInstancesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -98,7 +98,7 @@ func (m *ItemEventsItemInstancesRequestBuilder) Get(ctx context.Context, request } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemInstancesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/groups/item_events_item_permanent_delete_request_builder.go b/groups/item_events_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..3fc4feff5ea --- /dev/null +++ b/groups/item_events_item_permanent_delete_request_builder.go @@ -0,0 +1,67 @@ +package groups + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemEventsItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemEventsItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemEventsItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemEventsItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemEventsItemPermanentDeleteRequestBuilderInternal instantiates a new ItemEventsItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemEventsItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemEventsItemPermanentDeleteRequestBuilder) { + m := &ItemEventsItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/permanentDelete", pathParameters), + } + return m +} +// NewItemEventsItemPermanentDeleteRequestBuilder instantiates a new ItemEventsItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemEventsItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemEventsItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemEventsItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemEventsItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemEventsItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// returns a *RequestInformation when successful +func (m *ItemEventsItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ItemEventsItemPermanentDeleteRequestBuilder when successful +func (m *ItemEventsItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemPermanentDeleteRequestBuilder) { + return NewItemEventsItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/groups/item_members_graph_user_count_request_builder.go b/groups/item_members_graph_user_count_request_builder.go index 401fb7af791..35ceecb8d90 100644 --- a/groups/item_members_graph_user_count_request_builder.go +++ b/groups/item_members_graph_user_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemMembersGraphUserCountRequestBuilder(rawUrl string, requestAdapter i2 return NewItemMembersGraphUserCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMembersGraphUserCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMembersGraphUserCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemMembersGraphUserCountRequestBuilder) Get(ctx context.Context, reque return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMembersGraphUserCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMembersGraphUserCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemMembersGraphUserCountRequestBuilder) ToGetRequestInformation(ctx co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMembersGraphUserCountRequestBuilder when successful func (m *ItemMembersGraphUserCountRequestBuilder) WithUrl(rawUrl string)(*ItemMembersGraphUserCountRequestBuilder) { return NewItemMembersGraphUserCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_members_graph_user_request_builder.go b/groups/item_members_graph_user_request_builder.go index 0e40299c0cf..35a2d8145ef 100644 --- a/groups/item_members_graph_user_request_builder.go +++ b/groups/item_members_graph_user_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemMembersGraphUserRequestBuilder) Count()(*ItemMembersGraphUserCountR return NewItemMembersGraphUserCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get a list of the group's direct members. A group can have users, contacts, devices, service principals, and other groups as members. This operation isn't transitive. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -81,6 +82,7 @@ func (m *ItemMembersGraphUserRequestBuilder) Get(ctx context.Context, requestCon return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable), nil } // ToGetRequestInformation get a list of the group's direct members. A group can have users, contacts, devices, service principals, and other groups as members. This operation isn't transitive. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMembersGraphUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMembersGraphUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +97,7 @@ func (m *ItemMembersGraphUserRequestBuilder) ToGetRequestInformation(ctx context return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMembersGraphUserRequestBuilder when successful func (m *ItemMembersGraphUserRequestBuilder) WithUrl(rawUrl string)(*ItemMembersGraphUserRequestBuilder) { return NewItemMembersGraphUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_members_item_graph_user_request_builder.go b/groups/item_members_item_graph_user_request_builder.go index 827b8e1e61f..ee130cc7cff 100644 --- a/groups/item_members_item_graph_user_request_builder.go +++ b/groups/item_members_item_graph_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemMembersItemGraphUserRequestBuilder(rawUrl string, requestAdapter i2a return NewItemMembersItemGraphUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get a list of the group's direct members. A group can have users, contacts, devices, service principals, and other groups as members. This operation isn't transitive. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -64,6 +65,7 @@ func (m *ItemMembersItemGraphUserRequestBuilder) Get(ctx context.Context, reques return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable), nil } // ToGetRequestInformation get a list of the group's direct members. A group can have users, contacts, devices, service principals, and other groups as members. This operation isn't transitive. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMembersItemGraphUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMembersItemGraphUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -78,6 +80,7 @@ func (m *ItemMembersItemGraphUserRequestBuilder) ToGetRequestInformation(ctx con return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMembersItemGraphUserRequestBuilder when successful func (m *ItemMembersItemGraphUserRequestBuilder) WithUrl(rawUrl string)(*ItemMembersItemGraphUserRequestBuilder) { return NewItemMembersItemGraphUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_members_with_license_errors_graph_user_count_request_builder.go b/groups/item_members_with_license_errors_graph_user_count_request_builder.go index cbd235d1f1a..71683c15ba2 100644 --- a/groups/item_members_with_license_errors_graph_user_count_request_builder.go +++ b/groups/item_members_with_license_errors_graph_user_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemMembersWithLicenseErrorsGraphUserCountRequestBuilder(rawUrl string, return NewItemMembersWithLicenseErrorsGraphUserCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMembersWithLicenseErrorsGraphUserCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMembersWithLicenseErrorsGraphUserCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemMembersWithLicenseErrorsGraphUserCountRequestBuilder) Get(ctx conte return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMembersWithLicenseErrorsGraphUserCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMembersWithLicenseErrorsGraphUserCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemMembersWithLicenseErrorsGraphUserCountRequestBuilder) ToGetRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMembersWithLicenseErrorsGraphUserCountRequestBuilder when successful func (m *ItemMembersWithLicenseErrorsGraphUserCountRequestBuilder) WithUrl(rawUrl string)(*ItemMembersWithLicenseErrorsGraphUserCountRequestBuilder) { return NewItemMembersWithLicenseErrorsGraphUserCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_members_with_license_errors_graph_user_request_builder.go b/groups/item_members_with_license_errors_graph_user_request_builder.go index 2077de130cc..50d33d2477e 100644 --- a/groups/item_members_with_license_errors_graph_user_request_builder.go +++ b/groups/item_members_with_license_errors_graph_user_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemMembersWithLicenseErrorsGraphUserRequestBuilder) Count()(*ItemMembe return NewItemMembersWithLicenseErrorsGraphUserCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMembersWithLicenseErrorsGraphUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMembersWithLicenseErrorsGraphUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemMembersWithLicenseErrorsGraphUserRequestBuilder) Get(ctx context.Co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable), nil } // ToGetRequestInformation get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMembersWithLicenseErrorsGraphUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMembersWithLicenseErrorsGraphUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemMembersWithLicenseErrorsGraphUserRequestBuilder) ToGetRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMembersWithLicenseErrorsGraphUserRequestBuilder when successful func (m *ItemMembersWithLicenseErrorsGraphUserRequestBuilder) WithUrl(rawUrl string)(*ItemMembersWithLicenseErrorsGraphUserRequestBuilder) { return NewItemMembersWithLicenseErrorsGraphUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_members_with_license_errors_item_graph_user_request_builder.go b/groups/item_members_with_license_errors_item_graph_user_request_builder.go index 70d3258f8f0..85caa97ad3d 100644 --- a/groups/item_members_with_license_errors_item_graph_user_request_builder.go +++ b/groups/item_members_with_license_errors_item_graph_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemMembersWithLicenseErrorsItemGraphUserRequestBuilder(rawUrl string, r return NewItemMembersWithLicenseErrorsItemGraphUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get the item of type microsoft.graph.directoryObject as microsoft.graph.user +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMembersWithLicenseErrorsItemGraphUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMembersWithLicenseErrorsItemGraphUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -61,6 +62,7 @@ func (m *ItemMembersWithLicenseErrorsItemGraphUserRequestBuilder) Get(ctx contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable), nil } // ToGetRequestInformation get the item of type microsoft.graph.directoryObject as microsoft.graph.user +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMembersWithLicenseErrorsItemGraphUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMembersWithLicenseErrorsItemGraphUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemMembersWithLicenseErrorsItemGraphUserRequestBuilder) ToGetRequestIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMembersWithLicenseErrorsItemGraphUserRequestBuilder when successful func (m *ItemMembersWithLicenseErrorsItemGraphUserRequestBuilder) WithUrl(rawUrl string)(*ItemMembersWithLicenseErrorsItemGraphUserRequestBuilder) { return NewItemMembersWithLicenseErrorsItemGraphUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_owners_graph_user_count_request_builder.go b/groups/item_owners_graph_user_count_request_builder.go index 8e35db783d3..4716068bc49 100644 --- a/groups/item_owners_graph_user_count_request_builder.go +++ b/groups/item_owners_graph_user_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemOwnersGraphUserCountRequestBuilder(rawUrl string, requestAdapter i2a return NewItemOwnersGraphUserCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOwnersGraphUserCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOwnersGraphUserCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemOwnersGraphUserCountRequestBuilder) Get(ctx context.Context, reques return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOwnersGraphUserCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnersGraphUserCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemOwnersGraphUserCountRequestBuilder) ToGetRequestInformation(ctx con return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOwnersGraphUserCountRequestBuilder when successful func (m *ItemOwnersGraphUserCountRequestBuilder) WithUrl(rawUrl string)(*ItemOwnersGraphUserCountRequestBuilder) { return NewItemOwnersGraphUserCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_owners_graph_user_request_builder.go b/groups/item_owners_graph_user_request_builder.go index 30259cca8cf..a2931a6f46a 100644 --- a/groups/item_owners_graph_user_request_builder.go +++ b/groups/item_owners_graph_user_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemOwnersGraphUserRequestBuilder) Count()(*ItemOwnersGraphUserCountReq return NewItemOwnersGraphUserCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOwnersGraphUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOwnersGraphUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemOwnersGraphUserRequestBuilder) Get(ctx context.Context, requestConf return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable), nil } // ToGetRequestInformation get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOwnersGraphUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnersGraphUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemOwnersGraphUserRequestBuilder) ToGetRequestInformation(ctx context. return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOwnersGraphUserRequestBuilder when successful func (m *ItemOwnersGraphUserRequestBuilder) WithUrl(rawUrl string)(*ItemOwnersGraphUserRequestBuilder) { return NewItemOwnersGraphUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_owners_item_graph_user_request_builder.go b/groups/item_owners_item_graph_user_request_builder.go index d98e558be39..13e02afc403 100644 --- a/groups/item_owners_item_graph_user_request_builder.go +++ b/groups/item_owners_item_graph_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemOwnersItemGraphUserRequestBuilder(rawUrl string, requestAdapter i2ae return NewItemOwnersItemGraphUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get the item of type microsoft.graph.directoryObject as microsoft.graph.user +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOwnersItemGraphUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOwnersItemGraphUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -61,6 +62,7 @@ func (m *ItemOwnersItemGraphUserRequestBuilder) Get(ctx context.Context, request return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable), nil } // ToGetRequestInformation get the item of type microsoft.graph.directoryObject as microsoft.graph.user +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOwnersItemGraphUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnersItemGraphUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemOwnersItemGraphUserRequestBuilder) ToGetRequestInformation(ctx cont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOwnersItemGraphUserRequestBuilder when successful func (m *ItemOwnersItemGraphUserRequestBuilder) WithUrl(rawUrl string)(*ItemOwnersItemGraphUserRequestBuilder) { return NewItemOwnersItemGraphUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_created_by_user_mailbox_settings_request_builder.go b/groups/item_sites_item_created_by_user_mailbox_settings_request_builder.go index 0c28d65db79..4661139690d 100644 --- a/groups/item_sites_item_created_by_user_mailbox_settings_request_builder.go +++ b/groups/item_sites_item_created_by_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewItemSitesItemCreatedByUserMailboxSettingsRequestBuilder(rawUrl string, r return NewItemSitesItemCreatedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemCreatedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *ItemSitesItemCreatedByUserMailboxSettingsRequestBuilder) Get(ctx contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemCreatedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemSitesItemCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *ItemSitesItemCreatedByUserMailboxSettingsRequestBuilder) Patch(ctx cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemCreatedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *ItemSitesItemCreatedByUserMailboxSettingsRequestBuilder) ToGetRequestIn return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemCreatedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemSitesItemCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemSitesItemCreatedByUserMailboxSettingsRequestBuilder) ToPatchRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemCreatedByUserMailboxSettingsRequestBuilder when successful func (m *ItemSitesItemCreatedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemCreatedByUserMailboxSettingsRequestBuilder) { return NewItemSitesItemCreatedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_created_by_user_request_builder.go b/groups/item_sites_item_created_by_user_request_builder.go index 6f0e8269a2c..01ab3e7916d 100644 --- a/groups/item_sites_item_created_by_user_request_builder.go +++ b/groups/item_sites_item_created_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemSitesItemCreatedByUserRequestBuilder(rawUrl string, requestAdapter i return NewItemSitesItemCreatedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get createdByUser from groups +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemCreatedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemCreatedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *ItemSitesItemCreatedByUserRequestBuilder) ServiceProvisioningErrors()(* return NewItemSitesItemCreatedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get createdByUser from groups +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemCreatedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemCreatedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemSitesItemCreatedByUserRequestBuilder) ToGetRequestInformation(ctx c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemCreatedByUserRequestBuilder when successful func (m *ItemSitesItemCreatedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemCreatedByUserRequestBuilder) { return NewItemSitesItemCreatedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_created_by_user_service_provisioning_errors_count_request_builder.go b/groups/item_sites_item_created_by_user_service_provisioning_errors_count_request_builder.go index 16e7b8944da..68d50fb99e2 100644 --- a/groups/item_sites_item_created_by_user_service_provisioning_errors_count_request_builder.go +++ b/groups/item_sites_item_created_by_user_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemSitesItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder(r return NewItemSitesItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemSitesItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemSitesItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *ItemSitesItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewItemSitesItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_created_by_user_service_provisioning_errors_request_builder.go b/groups/item_sites_item_created_by_user_service_provisioning_errors_request_builder.go index f0e6a4aa17a..4d6965969a9 100644 --- a/groups/item_sites_item_created_by_user_service_provisioning_errors_request_builder.go +++ b/groups/item_sites_item_created_by_user_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemSitesItemCreatedByUserServiceProvisioningErrorsRequestBuilder) Coun return NewItemSitesItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemCreatedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemSitesItemCreatedByUserServiceProvisioningErrorsRequestBuilder) Get( return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemCreatedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemSitesItemCreatedByUserServiceProvisioningErrorsRequestBuilder) ToGe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemCreatedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *ItemSitesItemCreatedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemCreatedByUserServiceProvisioningErrorsRequestBuilder) { return NewItemSitesItemCreatedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_get_by_path_with_path_created_by_user_request_builder.go b/groups/item_sites_item_get_by_path_with_path_created_by_user_request_builder.go index 81ed77025df..050e111117a 100644 --- a/groups/item_sites_item_get_by_path_with_path_created_by_user_request_builder.go +++ b/groups/item_sites_item_get_by_path_with_path_created_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemSitesItemGetByPathWithPathCreatedByUserRequestBuilder(rawUrl string, return NewItemSitesItemGetByPathWithPathCreatedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get createdByUser from groups +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemGetByPathWithPathCreatedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathCreatedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -61,6 +62,7 @@ func (m *ItemSitesItemGetByPathWithPathCreatedByUserRequestBuilder) Get(ctx cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable), nil } // ToGetRequestInformation get createdByUser from groups +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemGetByPathWithPathCreatedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathCreatedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemSitesItemGetByPathWithPathCreatedByUserRequestBuilder) ToGetRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemGetByPathWithPathCreatedByUserRequestBuilder when successful func (m *ItemSitesItemGetByPathWithPathCreatedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemGetByPathWithPathCreatedByUserRequestBuilder) { return NewItemSitesItemGetByPathWithPathCreatedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_get_by_path_with_path_last_modified_by_user_request_builder.go b/groups/item_sites_item_get_by_path_with_path_last_modified_by_user_request_builder.go index e48f2984045..67c6d51c0b0 100644 --- a/groups/item_sites_item_get_by_path_with_path_last_modified_by_user_request_builder.go +++ b/groups/item_sites_item_get_by_path_with_path_last_modified_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemSitesItemGetByPathWithPathLastModifiedByUserRequestBuilder(rawUrl st return NewItemSitesItemGetByPathWithPathLastModifiedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get lastModifiedByUser from groups +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemGetByPathWithPathLastModifiedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathLastModifiedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -61,6 +62,7 @@ func (m *ItemSitesItemGetByPathWithPathLastModifiedByUserRequestBuilder) Get(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable), nil } // ToGetRequestInformation get lastModifiedByUser from groups +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemGetByPathWithPathLastModifiedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemGetByPathWithPathLastModifiedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemSitesItemGetByPathWithPathLastModifiedByUserRequestBuilder) ToGetRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemGetByPathWithPathLastModifiedByUserRequestBuilder when successful func (m *ItemSitesItemGetByPathWithPathLastModifiedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemGetByPathWithPathLastModifiedByUserRequestBuilder) { return NewItemSitesItemGetByPathWithPathLastModifiedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_last_modified_by_user_mailbox_settings_request_builder.go b/groups/item_sites_item_last_modified_by_user_mailbox_settings_request_builder.go index 22352c6a082..efb6f4d7a31 100644 --- a/groups/item_sites_item_last_modified_by_user_mailbox_settings_request_builder.go +++ b/groups/item_sites_item_last_modified_by_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewItemSitesItemLastModifiedByUserMailboxSettingsRequestBuilder(rawUrl stri return NewItemSitesItemLastModifiedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemLastModifiedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *ItemSitesItemLastModifiedByUserMailboxSettingsRequestBuilder) Get(ctx c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemLastModifiedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemSitesItemLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *ItemSitesItemLastModifiedByUserMailboxSettingsRequestBuilder) Patch(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemLastModifiedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *ItemSitesItemLastModifiedByUserMailboxSettingsRequestBuilder) ToGetRequ return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemLastModifiedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemSitesItemLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemSitesItemLastModifiedByUserMailboxSettingsRequestBuilder) ToPatchRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemLastModifiedByUserMailboxSettingsRequestBuilder when successful func (m *ItemSitesItemLastModifiedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemLastModifiedByUserMailboxSettingsRequestBuilder) { return NewItemSitesItemLastModifiedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_last_modified_by_user_request_builder.go b/groups/item_sites_item_last_modified_by_user_request_builder.go index 5ed607c0127..7e54aed3c9e 100644 --- a/groups/item_sites_item_last_modified_by_user_request_builder.go +++ b/groups/item_sites_item_last_modified_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemSitesItemLastModifiedByUserRequestBuilder(rawUrl string, requestAdap return NewItemSitesItemLastModifiedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get lastModifiedByUser from groups +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemLastModifiedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemLastModifiedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *ItemSitesItemLastModifiedByUserRequestBuilder) ServiceProvisioningError return NewItemSitesItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get lastModifiedByUser from groups +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemLastModifiedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemLastModifiedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemSitesItemLastModifiedByUserRequestBuilder) ToGetRequestInformation( return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemLastModifiedByUserRequestBuilder when successful func (m *ItemSitesItemLastModifiedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemLastModifiedByUserRequestBuilder) { return NewItemSitesItemLastModifiedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_last_modified_by_user_service_provisioning_errors_count_request_builder.go b/groups/item_sites_item_last_modified_by_user_service_provisioning_errors_count_request_builder.go index 153a7d8e4dd..48121f5f831 100644 --- a/groups/item_sites_item_last_modified_by_user_service_provisioning_errors_count_request_builder.go +++ b/groups/item_sites_item_last_modified_by_user_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemSitesItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuil return NewItemSitesItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemSitesItemLastModifiedByUserServiceProvisioningErrorsCountRequestBui return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemSitesItemLastModifiedByUserServiceProvisioningErrorsCountRequestBui return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *ItemSitesItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewItemSitesItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_last_modified_by_user_service_provisioning_errors_request_builder.go b/groups/item_sites_item_last_modified_by_user_service_provisioning_errors_request_builder.go index cf093b51c03..84beeada795 100644 --- a/groups/item_sites_item_last_modified_by_user_service_provisioning_errors_request_builder.go +++ b/groups/item_sites_item_last_modified_by_user_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemSitesItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) return NewItemSitesItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemSitesItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemSitesItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *ItemSitesItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) { return NewItemSitesItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_lists_item_created_by_user_mailbox_settings_request_builder.go b/groups/item_sites_item_lists_item_created_by_user_mailbox_settings_request_builder.go index ec1a220dc76..a7b204b190f 100644 --- a/groups/item_sites_item_lists_item_created_by_user_mailbox_settings_request_builder.go +++ b/groups/item_sites_item_lists_item_created_by_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewItemSitesItemListsItemCreatedByUserMailboxSettingsRequestBuilder(rawUrl return NewItemSitesItemListsItemCreatedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemListsItemCreatedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemListsItemCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *ItemSitesItemListsItemCreatedByUserMailboxSettingsRequestBuilder) Get(c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemListsItemCreatedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemSitesItemListsItemCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *ItemSitesItemListsItemCreatedByUserMailboxSettingsRequestBuilder) Patch return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemListsItemCreatedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemListsItemCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *ItemSitesItemListsItemCreatedByUserMailboxSettingsRequestBuilder) ToGet return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemListsItemCreatedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemSitesItemListsItemCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemSitesItemListsItemCreatedByUserMailboxSettingsRequestBuilder) ToPat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemListsItemCreatedByUserMailboxSettingsRequestBuilder when successful func (m *ItemSitesItemListsItemCreatedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemListsItemCreatedByUserMailboxSettingsRequestBuilder) { return NewItemSitesItemListsItemCreatedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_lists_item_created_by_user_request_builder.go b/groups/item_sites_item_lists_item_created_by_user_request_builder.go index cdaa3046779..27838f08e40 100644 --- a/groups/item_sites_item_lists_item_created_by_user_request_builder.go +++ b/groups/item_sites_item_lists_item_created_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemSitesItemListsItemCreatedByUserRequestBuilder(rawUrl string, request return NewItemSitesItemListsItemCreatedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get createdByUser from groups +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemListsItemCreatedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemListsItemCreatedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *ItemSitesItemListsItemCreatedByUserRequestBuilder) ServiceProvisioningE return NewItemSitesItemListsItemCreatedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get createdByUser from groups +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemListsItemCreatedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemListsItemCreatedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemSitesItemListsItemCreatedByUserRequestBuilder) ToGetRequestInformat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemListsItemCreatedByUserRequestBuilder when successful func (m *ItemSitesItemListsItemCreatedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemListsItemCreatedByUserRequestBuilder) { return NewItemSitesItemListsItemCreatedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_lists_item_created_by_user_service_provisioning_errors_count_request_builder.go b/groups/item_sites_item_lists_item_created_by_user_service_provisioning_errors_count_request_builder.go index 4834929b390..d4fe98eb02f 100644 --- a/groups/item_sites_item_lists_item_created_by_user_service_provisioning_errors_count_request_builder.go +++ b/groups/item_sites_item_lists_item_created_by_user_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemSitesItemListsItemCreatedByUserServiceProvisioningErrorsCountRequest return NewItemSitesItemListsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemListsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemListsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemSitesItemListsItemCreatedByUserServiceProvisioningErrorsCountReques return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemListsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemListsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemSitesItemListsItemCreatedByUserServiceProvisioningErrorsCountReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemListsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *ItemSitesItemListsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemListsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewItemSitesItemListsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_lists_item_created_by_user_service_provisioning_errors_request_builder.go b/groups/item_sites_item_lists_item_created_by_user_service_provisioning_errors_request_builder.go index caede3e8abf..854fd030749 100644 --- a/groups/item_sites_item_lists_item_created_by_user_service_provisioning_errors_request_builder.go +++ b/groups/item_sites_item_lists_item_created_by_user_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemSitesItemListsItemCreatedByUserServiceProvisioningErrorsRequestBuil return NewItemSitesItemListsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemListsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemListsItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemSitesItemListsItemCreatedByUserServiceProvisioningErrorsRequestBuil return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemListsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemListsItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemSitesItemListsItemCreatedByUserServiceProvisioningErrorsRequestBuil return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemListsItemCreatedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *ItemSitesItemListsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemListsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) { return NewItemSitesItemListsItemCreatedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_lists_item_items_item_created_by_user_mailbox_settings_request_builder.go b/groups/item_sites_item_lists_item_items_item_created_by_user_mailbox_settings_request_builder.go index ea41fdab3fc..76c4bc1071e 100644 --- a/groups/item_sites_item_lists_item_items_item_created_by_user_mailbox_settings_request_builder.go +++ b/groups/item_sites_item_lists_item_items_item_created_by_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewItemSitesItemListsItemItemsItemCreatedByUserMailboxSettingsRequestBuilde return NewItemSitesItemListsItemItemsItemCreatedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemListsItemItemsItemCreatedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemListsItemItemsItemCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *ItemSitesItemListsItemItemsItemCreatedByUserMailboxSettingsRequestBuild return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemListsItemItemsItemCreatedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemSitesItemListsItemItemsItemCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *ItemSitesItemListsItemItemsItemCreatedByUserMailboxSettingsRequestBuild return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemListsItemItemsItemCreatedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemListsItemItemsItemCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *ItemSitesItemListsItemItemsItemCreatedByUserMailboxSettingsRequestBuild return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemListsItemItemsItemCreatedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemSitesItemListsItemItemsItemCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemSitesItemListsItemItemsItemCreatedByUserMailboxSettingsRequestBuild return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemListsItemItemsItemCreatedByUserMailboxSettingsRequestBuilder when successful func (m *ItemSitesItemListsItemItemsItemCreatedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemListsItemItemsItemCreatedByUserMailboxSettingsRequestBuilder) { return NewItemSitesItemListsItemItemsItemCreatedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_lists_item_items_item_created_by_user_request_builder.go b/groups/item_sites_item_lists_item_items_item_created_by_user_request_builder.go index d4b0e6de86a..56eb7d41d96 100644 --- a/groups/item_sites_item_lists_item_items_item_created_by_user_request_builder.go +++ b/groups/item_sites_item_lists_item_items_item_created_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemSitesItemListsItemItemsItemCreatedByUserRequestBuilder(rawUrl string return NewItemSitesItemListsItemItemsItemCreatedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get createdByUser from groups +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemListsItemItemsItemCreatedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemListsItemItemsItemCreatedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *ItemSitesItemListsItemItemsItemCreatedByUserRequestBuilder) ServiceProv return NewItemSitesItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get createdByUser from groups +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemListsItemItemsItemCreatedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemListsItemItemsItemCreatedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemSitesItemListsItemItemsItemCreatedByUserRequestBuilder) ToGetReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemListsItemItemsItemCreatedByUserRequestBuilder when successful func (m *ItemSitesItemListsItemItemsItemCreatedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemListsItemItemsItemCreatedByUserRequestBuilder) { return NewItemSitesItemListsItemItemsItemCreatedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_lists_item_items_item_created_by_user_service_provisioning_errors_request_builder.go b/groups/item_sites_item_lists_item_items_item_created_by_user_service_provisioning_errors_request_builder.go index 43421feb687..9c41de47dc3 100644 --- a/groups/item_sites_item_lists_item_items_item_created_by_user_service_provisioning_errors_request_builder.go +++ b/groups/item_sites_item_lists_item_items_item_created_by_user_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemSitesItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsRe return NewItemSitesItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemSitesItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsRe return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemSitesItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *ItemSitesItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) { return NewItemSitesItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_lists_item_items_item_last_modified_by_user_mailbox_settings_request_builder.go b/groups/item_sites_item_lists_item_items_item_last_modified_by_user_mailbox_settings_request_builder.go index 83bb5c552cb..80df342eae5 100644 --- a/groups/item_sites_item_lists_item_items_item_last_modified_by_user_mailbox_settings_request_builder.go +++ b/groups/item_sites_item_lists_item_items_item_last_modified_by_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewItemSitesItemListsItemItemsItemLastModifiedByUserMailboxSettingsRequestB return NewItemSitesItemListsItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemListsItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemListsItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *ItemSitesItemListsItemItemsItemLastModifiedByUserMailboxSettingsRequest return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemListsItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemSitesItemListsItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *ItemSitesItemListsItemItemsItemLastModifiedByUserMailboxSettingsRequest return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemListsItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemListsItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *ItemSitesItemListsItemItemsItemLastModifiedByUserMailboxSettingsRequest return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemListsItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemSitesItemListsItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemSitesItemListsItemItemsItemLastModifiedByUserMailboxSettingsRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemListsItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilder when successful func (m *ItemSitesItemListsItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemListsItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) { return NewItemSitesItemListsItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_lists_item_items_item_last_modified_by_user_request_builder.go b/groups/item_sites_item_lists_item_items_item_last_modified_by_user_request_builder.go index 9db69387700..a21d4ee41d8 100644 --- a/groups/item_sites_item_lists_item_items_item_last_modified_by_user_request_builder.go +++ b/groups/item_sites_item_lists_item_items_item_last_modified_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemSitesItemListsItemItemsItemLastModifiedByUserRequestBuilder(rawUrl s return NewItemSitesItemListsItemItemsItemLastModifiedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get lastModifiedByUser from groups +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemListsItemItemsItemLastModifiedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemListsItemItemsItemLastModifiedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *ItemSitesItemListsItemItemsItemLastModifiedByUserRequestBuilder) Servic return NewItemSitesItemListsItemItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get lastModifiedByUser from groups +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemListsItemItemsItemLastModifiedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemListsItemItemsItemLastModifiedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemSitesItemListsItemItemsItemLastModifiedByUserRequestBuilder) ToGetR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemListsItemItemsItemLastModifiedByUserRequestBuilder when successful func (m *ItemSitesItemListsItemItemsItemLastModifiedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemListsItemItemsItemLastModifiedByUserRequestBuilder) { return NewItemSitesItemListsItemItemsItemLastModifiedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_lists_item_last_modified_by_user_mailbox_settings_request_builder.go b/groups/item_sites_item_lists_item_last_modified_by_user_mailbox_settings_request_builder.go index 1fcbd338bf0..46ac03ecb8f 100644 --- a/groups/item_sites_item_lists_item_last_modified_by_user_mailbox_settings_request_builder.go +++ b/groups/item_sites_item_lists_item_last_modified_by_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewItemSitesItemListsItemLastModifiedByUserMailboxSettingsRequestBuilder(ra return NewItemSitesItemListsItemLastModifiedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemListsItemLastModifiedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemListsItemLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *ItemSitesItemListsItemLastModifiedByUserMailboxSettingsRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemListsItemLastModifiedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemSitesItemListsItemLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *ItemSitesItemListsItemLastModifiedByUserMailboxSettingsRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemListsItemLastModifiedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemListsItemLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *ItemSitesItemListsItemLastModifiedByUserMailboxSettingsRequestBuilder) return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemListsItemLastModifiedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemSitesItemListsItemLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemSitesItemListsItemLastModifiedByUserMailboxSettingsRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemListsItemLastModifiedByUserMailboxSettingsRequestBuilder when successful func (m *ItemSitesItemListsItemLastModifiedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemListsItemLastModifiedByUserMailboxSettingsRequestBuilder) { return NewItemSitesItemListsItemLastModifiedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_lists_item_last_modified_by_user_request_builder.go b/groups/item_sites_item_lists_item_last_modified_by_user_request_builder.go index dc7cd6c50f8..38a161efc35 100644 --- a/groups/item_sites_item_lists_item_last_modified_by_user_request_builder.go +++ b/groups/item_sites_item_lists_item_last_modified_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemSitesItemListsItemLastModifiedByUserRequestBuilder(rawUrl string, re return NewItemSitesItemListsItemLastModifiedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get lastModifiedByUser from groups +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemListsItemLastModifiedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemListsItemLastModifiedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *ItemSitesItemListsItemLastModifiedByUserRequestBuilder) ServiceProvisio return NewItemSitesItemListsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get lastModifiedByUser from groups +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemListsItemLastModifiedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemListsItemLastModifiedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemSitesItemListsItemLastModifiedByUserRequestBuilder) ToGetRequestInf return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemListsItemLastModifiedByUserRequestBuilder when successful func (m *ItemSitesItemListsItemLastModifiedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemListsItemLastModifiedByUserRequestBuilder) { return NewItemSitesItemListsItemLastModifiedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_lists_item_last_modified_by_user_service_provisioning_errors_count_request_builder.go b/groups/item_sites_item_lists_item_last_modified_by_user_service_provisioning_errors_count_request_builder.go index 43c62021252..b87f181e4cc 100644 --- a/groups/item_sites_item_lists_item_last_modified_by_user_service_provisioning_errors_count_request_builder.go +++ b/groups/item_sites_item_lists_item_last_modified_by_user_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemSitesItemListsItemLastModifiedByUserServiceProvisioningErrorsCountRe return NewItemSitesItemListsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemListsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemListsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemSitesItemListsItemLastModifiedByUserServiceProvisioningErrorsCountR return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemListsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemListsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemSitesItemListsItemLastModifiedByUserServiceProvisioningErrorsCountR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemListsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *ItemSitesItemListsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemListsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewItemSitesItemListsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_lists_item_last_modified_by_user_service_provisioning_errors_request_builder.go b/groups/item_sites_item_lists_item_last_modified_by_user_service_provisioning_errors_request_builder.go index 2f851211a7e..fa60f8c0c16 100644 --- a/groups/item_sites_item_lists_item_last_modified_by_user_service_provisioning_errors_request_builder.go +++ b/groups/item_sites_item_lists_item_last_modified_by_user_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemSitesItemListsItemLastModifiedByUserServiceProvisioningErrorsReques return NewItemSitesItemListsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemListsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemListsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemSitesItemListsItemLastModifiedByUserServiceProvisioningErrorsReques return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemListsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemListsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemSitesItemListsItemLastModifiedByUserServiceProvisioningErrorsReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemListsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *ItemSitesItemListsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemListsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) { return NewItemSitesItemListsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_pages_item_created_by_user_mailbox_settings_request_builder.go b/groups/item_sites_item_pages_item_created_by_user_mailbox_settings_request_builder.go index cbe5da66770..a6a97f0741b 100644 --- a/groups/item_sites_item_pages_item_created_by_user_mailbox_settings_request_builder.go +++ b/groups/item_sites_item_pages_item_created_by_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewItemSitesItemPagesItemCreatedByUserMailboxSettingsRequestBuilder(rawUrl return NewItemSitesItemPagesItemCreatedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemPagesItemCreatedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemPagesItemCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *ItemSitesItemPagesItemCreatedByUserMailboxSettingsRequestBuilder) Get(c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemPagesItemCreatedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemSitesItemPagesItemCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *ItemSitesItemPagesItemCreatedByUserMailboxSettingsRequestBuilder) Patch return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemPagesItemCreatedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemPagesItemCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *ItemSitesItemPagesItemCreatedByUserMailboxSettingsRequestBuilder) ToGet return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemPagesItemCreatedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemSitesItemPagesItemCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemSitesItemPagesItemCreatedByUserMailboxSettingsRequestBuilder) ToPat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemPagesItemCreatedByUserMailboxSettingsRequestBuilder when successful func (m *ItemSitesItemPagesItemCreatedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemPagesItemCreatedByUserMailboxSettingsRequestBuilder) { return NewItemSitesItemPagesItemCreatedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_pages_item_created_by_user_request_builder.go b/groups/item_sites_item_pages_item_created_by_user_request_builder.go index fa06a825245..fa2805e94da 100644 --- a/groups/item_sites_item_pages_item_created_by_user_request_builder.go +++ b/groups/item_sites_item_pages_item_created_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemSitesItemPagesItemCreatedByUserRequestBuilder(rawUrl string, request return NewItemSitesItemPagesItemCreatedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get createdByUser from groups +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemPagesItemCreatedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemPagesItemCreatedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *ItemSitesItemPagesItemCreatedByUserRequestBuilder) ServiceProvisioningE return NewItemSitesItemPagesItemCreatedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get createdByUser from groups +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemPagesItemCreatedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemPagesItemCreatedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemSitesItemPagesItemCreatedByUserRequestBuilder) ToGetRequestInformat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemPagesItemCreatedByUserRequestBuilder when successful func (m *ItemSitesItemPagesItemCreatedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemPagesItemCreatedByUserRequestBuilder) { return NewItemSitesItemPagesItemCreatedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_pages_item_created_by_user_service_provisioning_errors_count_request_builder.go b/groups/item_sites_item_pages_item_created_by_user_service_provisioning_errors_count_request_builder.go index b2e995cc208..31225aa1944 100644 --- a/groups/item_sites_item_pages_item_created_by_user_service_provisioning_errors_count_request_builder.go +++ b/groups/item_sites_item_pages_item_created_by_user_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemSitesItemPagesItemCreatedByUserServiceProvisioningErrorsCountRequest return NewItemSitesItemPagesItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemPagesItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemPagesItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemSitesItemPagesItemCreatedByUserServiceProvisioningErrorsCountReques return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemPagesItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemPagesItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemSitesItemPagesItemCreatedByUserServiceProvisioningErrorsCountReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemPagesItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *ItemSitesItemPagesItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemPagesItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewItemSitesItemPagesItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_pages_item_created_by_user_service_provisioning_errors_request_builder.go b/groups/item_sites_item_pages_item_created_by_user_service_provisioning_errors_request_builder.go index 1940d9e9381..54fdf5aab68 100644 --- a/groups/item_sites_item_pages_item_created_by_user_service_provisioning_errors_request_builder.go +++ b/groups/item_sites_item_pages_item_created_by_user_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemSitesItemPagesItemCreatedByUserServiceProvisioningErrorsRequestBuil return NewItemSitesItemPagesItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemPagesItemCreatedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemPagesItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemSitesItemPagesItemCreatedByUserServiceProvisioningErrorsRequestBuil return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemPagesItemCreatedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemPagesItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemSitesItemPagesItemCreatedByUserServiceProvisioningErrorsRequestBuil return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemPagesItemCreatedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *ItemSitesItemPagesItemCreatedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemPagesItemCreatedByUserServiceProvisioningErrorsRequestBuilder) { return NewItemSitesItemPagesItemCreatedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_pages_item_graph_site_page_created_by_user_mailbox_settings_request_builder.go b/groups/item_sites_item_pages_item_graph_site_page_created_by_user_mailbox_settings_request_builder.go index a4bc13fba6d..dda98f603b2 100644 --- a/groups/item_sites_item_pages_item_graph_site_page_created_by_user_mailbox_settings_request_builder.go +++ b/groups/item_sites_item_pages_item_graph_site_page_created_by_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewItemSitesItemPagesItemGraphSitePageCreatedByUserMailboxSettingsRequestBu return NewItemSitesItemPagesItemGraphSitePageCreatedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemPagesItemGraphSitePageCreatedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemPagesItemGraphSitePageCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *ItemSitesItemPagesItemGraphSitePageCreatedByUserMailboxSettingsRequestB return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemPagesItemGraphSitePageCreatedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemSitesItemPagesItemGraphSitePageCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *ItemSitesItemPagesItemGraphSitePageCreatedByUserMailboxSettingsRequestB return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemPagesItemGraphSitePageCreatedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemPagesItemGraphSitePageCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *ItemSitesItemPagesItemGraphSitePageCreatedByUserMailboxSettingsRequestB return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemPagesItemGraphSitePageCreatedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemSitesItemPagesItemGraphSitePageCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemSitesItemPagesItemGraphSitePageCreatedByUserMailboxSettingsRequestB return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemPagesItemGraphSitePageCreatedByUserMailboxSettingsRequestBuilder when successful func (m *ItemSitesItemPagesItemGraphSitePageCreatedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemPagesItemGraphSitePageCreatedByUserMailboxSettingsRequestBuilder) { return NewItemSitesItemPagesItemGraphSitePageCreatedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_pages_item_graph_site_page_created_by_user_request_builder.go b/groups/item_sites_item_pages_item_graph_site_page_created_by_user_request_builder.go index 6b9b8dc3d3f..94c8076ddc1 100644 --- a/groups/item_sites_item_pages_item_graph_site_page_created_by_user_request_builder.go +++ b/groups/item_sites_item_pages_item_graph_site_page_created_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemSitesItemPagesItemGraphSitePageCreatedByUserRequestBuilder(rawUrl st return NewItemSitesItemPagesItemGraphSitePageCreatedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get createdByUser from groups +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemPagesItemGraphSitePageCreatedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemPagesItemGraphSitePageCreatedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *ItemSitesItemPagesItemGraphSitePageCreatedByUserRequestBuilder) Service return NewItemSitesItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get createdByUser from groups +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemPagesItemGraphSitePageCreatedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemPagesItemGraphSitePageCreatedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemSitesItemPagesItemGraphSitePageCreatedByUserRequestBuilder) ToGetRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemPagesItemGraphSitePageCreatedByUserRequestBuilder when successful func (m *ItemSitesItemPagesItemGraphSitePageCreatedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemPagesItemGraphSitePageCreatedByUserRequestBuilder) { return NewItemSitesItemPagesItemGraphSitePageCreatedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_pages_item_graph_site_page_last_modified_by_user_mailbox_settings_request_builder.go b/groups/item_sites_item_pages_item_graph_site_page_last_modified_by_user_mailbox_settings_request_builder.go index 39161d5696a..58b54fb72c4 100644 --- a/groups/item_sites_item_pages_item_graph_site_page_last_modified_by_user_mailbox_settings_request_builder.go +++ b/groups/item_sites_item_pages_item_graph_site_page_last_modified_by_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewItemSitesItemPagesItemGraphSitePageLastModifiedByUserMailboxSettingsRequ return NewItemSitesItemPagesItemGraphSitePageLastModifiedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemPagesItemGraphSitePageLastModifiedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemPagesItemGraphSitePageLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *ItemSitesItemPagesItemGraphSitePageLastModifiedByUserMailboxSettingsReq return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemPagesItemGraphSitePageLastModifiedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemSitesItemPagesItemGraphSitePageLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *ItemSitesItemPagesItemGraphSitePageLastModifiedByUserMailboxSettingsReq return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemPagesItemGraphSitePageLastModifiedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemPagesItemGraphSitePageLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *ItemSitesItemPagesItemGraphSitePageLastModifiedByUserMailboxSettingsReq return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemPagesItemGraphSitePageLastModifiedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemSitesItemPagesItemGraphSitePageLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemSitesItemPagesItemGraphSitePageLastModifiedByUserMailboxSettingsReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemPagesItemGraphSitePageLastModifiedByUserMailboxSettingsRequestBuilder when successful func (m *ItemSitesItemPagesItemGraphSitePageLastModifiedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemPagesItemGraphSitePageLastModifiedByUserMailboxSettingsRequestBuilder) { return NewItemSitesItemPagesItemGraphSitePageLastModifiedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_pages_item_graph_site_page_last_modified_by_user_request_builder.go b/groups/item_sites_item_pages_item_graph_site_page_last_modified_by_user_request_builder.go index 1c87c672f1b..97c26c4a90f 100644 --- a/groups/item_sites_item_pages_item_graph_site_page_last_modified_by_user_request_builder.go +++ b/groups/item_sites_item_pages_item_graph_site_page_last_modified_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemSitesItemPagesItemGraphSitePageLastModifiedByUserRequestBuilder(rawU return NewItemSitesItemPagesItemGraphSitePageLastModifiedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get lastModifiedByUser from groups +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemPagesItemGraphSitePageLastModifiedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemPagesItemGraphSitePageLastModifiedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *ItemSitesItemPagesItemGraphSitePageLastModifiedByUserRequestBuilder) Se return NewItemSitesItemPagesItemGraphSitePageLastModifiedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get lastModifiedByUser from groups +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemPagesItemGraphSitePageLastModifiedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemPagesItemGraphSitePageLastModifiedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemSitesItemPagesItemGraphSitePageLastModifiedByUserRequestBuilder) To return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemPagesItemGraphSitePageLastModifiedByUserRequestBuilder when successful func (m *ItemSitesItemPagesItemGraphSitePageLastModifiedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemPagesItemGraphSitePageLastModifiedByUserRequestBuilder) { return NewItemSitesItemPagesItemGraphSitePageLastModifiedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_pages_item_last_modified_by_user_mailbox_settings_request_builder.go b/groups/item_sites_item_pages_item_last_modified_by_user_mailbox_settings_request_builder.go index ebe95560b01..46e5a4a6b16 100644 --- a/groups/item_sites_item_pages_item_last_modified_by_user_mailbox_settings_request_builder.go +++ b/groups/item_sites_item_pages_item_last_modified_by_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewItemSitesItemPagesItemLastModifiedByUserMailboxSettingsRequestBuilder(ra return NewItemSitesItemPagesItemLastModifiedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemPagesItemLastModifiedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemPagesItemLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *ItemSitesItemPagesItemLastModifiedByUserMailboxSettingsRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemPagesItemLastModifiedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemSitesItemPagesItemLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *ItemSitesItemPagesItemLastModifiedByUserMailboxSettingsRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemPagesItemLastModifiedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemPagesItemLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *ItemSitesItemPagesItemLastModifiedByUserMailboxSettingsRequestBuilder) return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemPagesItemLastModifiedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemSitesItemPagesItemLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemSitesItemPagesItemLastModifiedByUserMailboxSettingsRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemPagesItemLastModifiedByUserMailboxSettingsRequestBuilder when successful func (m *ItemSitesItemPagesItemLastModifiedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemPagesItemLastModifiedByUserMailboxSettingsRequestBuilder) { return NewItemSitesItemPagesItemLastModifiedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_pages_item_last_modified_by_user_request_builder.go b/groups/item_sites_item_pages_item_last_modified_by_user_request_builder.go index 405945ef702..77602d9b9ca 100644 --- a/groups/item_sites_item_pages_item_last_modified_by_user_request_builder.go +++ b/groups/item_sites_item_pages_item_last_modified_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemSitesItemPagesItemLastModifiedByUserRequestBuilder(rawUrl string, re return NewItemSitesItemPagesItemLastModifiedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get lastModifiedByUser from groups +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemPagesItemLastModifiedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemPagesItemLastModifiedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *ItemSitesItemPagesItemLastModifiedByUserRequestBuilder) ServiceProvisio return NewItemSitesItemPagesItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get lastModifiedByUser from groups +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemPagesItemLastModifiedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemPagesItemLastModifiedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemSitesItemPagesItemLastModifiedByUserRequestBuilder) ToGetRequestInf return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemPagesItemLastModifiedByUserRequestBuilder when successful func (m *ItemSitesItemPagesItemLastModifiedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemPagesItemLastModifiedByUserRequestBuilder) { return NewItemSitesItemPagesItemLastModifiedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_pages_item_last_modified_by_user_service_provisioning_errors_count_request_builder.go b/groups/item_sites_item_pages_item_last_modified_by_user_service_provisioning_errors_count_request_builder.go index 3486cb3871d..2791628ba3c 100644 --- a/groups/item_sites_item_pages_item_last_modified_by_user_service_provisioning_errors_count_request_builder.go +++ b/groups/item_sites_item_pages_item_last_modified_by_user_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemSitesItemPagesItemLastModifiedByUserServiceProvisioningErrorsCountRe return NewItemSitesItemPagesItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemPagesItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemPagesItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemSitesItemPagesItemLastModifiedByUserServiceProvisioningErrorsCountR return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemPagesItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemPagesItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemSitesItemPagesItemLastModifiedByUserServiceProvisioningErrorsCountR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemPagesItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *ItemSitesItemPagesItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemPagesItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewItemSitesItemPagesItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_pages_item_last_modified_by_user_service_provisioning_errors_request_builder.go b/groups/item_sites_item_pages_item_last_modified_by_user_service_provisioning_errors_request_builder.go index f4ca841f2ba..77d73a4c26b 100644 --- a/groups/item_sites_item_pages_item_last_modified_by_user_service_provisioning_errors_request_builder.go +++ b/groups/item_sites_item_pages_item_last_modified_by_user_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemSitesItemPagesItemLastModifiedByUserServiceProvisioningErrorsReques return NewItemSitesItemPagesItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemPagesItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemPagesItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemSitesItemPagesItemLastModifiedByUserServiceProvisioningErrorsReques return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemPagesItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemPagesItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemSitesItemPagesItemLastModifiedByUserServiceProvisioningErrorsReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemPagesItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *ItemSitesItemPagesItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemPagesItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) { return NewItemSitesItemPagesItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_recycle_bin_created_by_user_mailbox_settings_request_builder.go b/groups/item_sites_item_recycle_bin_created_by_user_mailbox_settings_request_builder.go index ae2c26d5e41..464591e8fdc 100644 --- a/groups/item_sites_item_recycle_bin_created_by_user_mailbox_settings_request_builder.go +++ b/groups/item_sites_item_recycle_bin_created_by_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewItemSitesItemRecycleBinCreatedByUserMailboxSettingsRequestBuilder(rawUrl return NewItemSitesItemRecycleBinCreatedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemRecycleBinCreatedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemRecycleBinCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *ItemSitesItemRecycleBinCreatedByUserMailboxSettingsRequestBuilder) Get( return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemRecycleBinCreatedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemSitesItemRecycleBinCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *ItemSitesItemRecycleBinCreatedByUserMailboxSettingsRequestBuilder) Patc return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemRecycleBinCreatedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemRecycleBinCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *ItemSitesItemRecycleBinCreatedByUserMailboxSettingsRequestBuilder) ToGe return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemRecycleBinCreatedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemSitesItemRecycleBinCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemSitesItemRecycleBinCreatedByUserMailboxSettingsRequestBuilder) ToPa return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemRecycleBinCreatedByUserMailboxSettingsRequestBuilder when successful func (m *ItemSitesItemRecycleBinCreatedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemRecycleBinCreatedByUserMailboxSettingsRequestBuilder) { return NewItemSitesItemRecycleBinCreatedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_recycle_bin_created_by_user_request_builder.go b/groups/item_sites_item_recycle_bin_created_by_user_request_builder.go index e936f1e2d4b..b1dbe5e6b1e 100644 --- a/groups/item_sites_item_recycle_bin_created_by_user_request_builder.go +++ b/groups/item_sites_item_recycle_bin_created_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemSitesItemRecycleBinCreatedByUserRequestBuilder(rawUrl string, reques return NewItemSitesItemRecycleBinCreatedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get createdByUser from groups +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemRecycleBinCreatedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemRecycleBinCreatedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *ItemSitesItemRecycleBinCreatedByUserRequestBuilder) ServiceProvisioning return NewItemSitesItemRecycleBinCreatedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get createdByUser from groups +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemRecycleBinCreatedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemRecycleBinCreatedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemSitesItemRecycleBinCreatedByUserRequestBuilder) ToGetRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemRecycleBinCreatedByUserRequestBuilder when successful func (m *ItemSitesItemRecycleBinCreatedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemRecycleBinCreatedByUserRequestBuilder) { return NewItemSitesItemRecycleBinCreatedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_recycle_bin_created_by_user_service_provisioning_errors_count_request_builder.go b/groups/item_sites_item_recycle_bin_created_by_user_service_provisioning_errors_count_request_builder.go index 09dfb83b673..7f28e765a6c 100644 --- a/groups/item_sites_item_recycle_bin_created_by_user_service_provisioning_errors_count_request_builder.go +++ b/groups/item_sites_item_recycle_bin_created_by_user_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemSitesItemRecycleBinCreatedByUserServiceProvisioningErrorsCountReques return NewItemSitesItemRecycleBinCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemRecycleBinCreatedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemRecycleBinCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemSitesItemRecycleBinCreatedByUserServiceProvisioningErrorsCountReque return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemRecycleBinCreatedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemRecycleBinCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemSitesItemRecycleBinCreatedByUserServiceProvisioningErrorsCountReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemRecycleBinCreatedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *ItemSitesItemRecycleBinCreatedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemRecycleBinCreatedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewItemSitesItemRecycleBinCreatedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_recycle_bin_created_by_user_service_provisioning_errors_request_builder.go b/groups/item_sites_item_recycle_bin_created_by_user_service_provisioning_errors_request_builder.go index 44845a32d37..34765451228 100644 --- a/groups/item_sites_item_recycle_bin_created_by_user_service_provisioning_errors_request_builder.go +++ b/groups/item_sites_item_recycle_bin_created_by_user_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemSitesItemRecycleBinCreatedByUserServiceProvisioningErrorsRequestBui return NewItemSitesItemRecycleBinCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemRecycleBinCreatedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemRecycleBinCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemSitesItemRecycleBinCreatedByUserServiceProvisioningErrorsRequestBui return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemRecycleBinCreatedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemRecycleBinCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemSitesItemRecycleBinCreatedByUserServiceProvisioningErrorsRequestBui return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemRecycleBinCreatedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *ItemSitesItemRecycleBinCreatedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemRecycleBinCreatedByUserServiceProvisioningErrorsRequestBuilder) { return NewItemSitesItemRecycleBinCreatedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_recycle_bin_items_item_created_by_user_mailbox_settings_request_builder.go b/groups/item_sites_item_recycle_bin_items_item_created_by_user_mailbox_settings_request_builder.go index 72330d7cd52..7c1a0b59018 100644 --- a/groups/item_sites_item_recycle_bin_items_item_created_by_user_mailbox_settings_request_builder.go +++ b/groups/item_sites_item_recycle_bin_items_item_created_by_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewItemSitesItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuild return NewItemSitesItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *ItemSitesItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuil return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemSitesItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *ItemSitesItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuil return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *ItemSitesItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuil return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemSitesItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemSitesItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuil return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilder when successful func (m *ItemSitesItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilder) { return NewItemSitesItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_recycle_bin_items_item_created_by_user_request_builder.go b/groups/item_sites_item_recycle_bin_items_item_created_by_user_request_builder.go index b726b52e7f0..ffa389c2712 100644 --- a/groups/item_sites_item_recycle_bin_items_item_created_by_user_request_builder.go +++ b/groups/item_sites_item_recycle_bin_items_item_created_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemSitesItemRecycleBinItemsItemCreatedByUserRequestBuilder(rawUrl strin return NewItemSitesItemRecycleBinItemsItemCreatedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get createdByUser from groups +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemRecycleBinItemsItemCreatedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemRecycleBinItemsItemCreatedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *ItemSitesItemRecycleBinItemsItemCreatedByUserRequestBuilder) ServicePro return NewItemSitesItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get createdByUser from groups +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemRecycleBinItemsItemCreatedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemRecycleBinItemsItemCreatedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemSitesItemRecycleBinItemsItemCreatedByUserRequestBuilder) ToGetReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemRecycleBinItemsItemCreatedByUserRequestBuilder when successful func (m *ItemSitesItemRecycleBinItemsItemCreatedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemRecycleBinItemsItemCreatedByUserRequestBuilder) { return NewItemSitesItemRecycleBinItemsItemCreatedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_recycle_bin_items_item_created_by_user_service_provisioning_errors_request_builder.go b/groups/item_sites_item_recycle_bin_items_item_created_by_user_service_provisioning_errors_request_builder.go index f74b110c409..601970f75cc 100644 --- a/groups/item_sites_item_recycle_bin_items_item_created_by_user_service_provisioning_errors_request_builder.go +++ b/groups/item_sites_item_recycle_bin_items_item_created_by_user_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemSitesItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsR return NewItemSitesItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemSitesItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsR return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemSitesItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *ItemSitesItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) { return NewItemSitesItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_recycle_bin_items_item_last_modified_by_user_mailbox_settings_request_builder.go b/groups/item_sites_item_recycle_bin_items_item_last_modified_by_user_mailbox_settings_request_builder.go index 10605cf6947..75ee7db7d45 100644 --- a/groups/item_sites_item_recycle_bin_items_item_last_modified_by_user_mailbox_settings_request_builder.go +++ b/groups/item_sites_item_recycle_bin_items_item_last_modified_by_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewItemSitesItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequest return NewItemSitesItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *ItemSitesItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsReques return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemSitesItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *ItemSitesItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsReques return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *ItemSitesItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsReques return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemSitesItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemSitesItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilder when successful func (m *ItemSitesItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) { return NewItemSitesItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_recycle_bin_items_item_last_modified_by_user_request_builder.go b/groups/item_sites_item_recycle_bin_items_item_last_modified_by_user_request_builder.go index bf590d825f3..8f8a30cd62f 100644 --- a/groups/item_sites_item_recycle_bin_items_item_last_modified_by_user_request_builder.go +++ b/groups/item_sites_item_recycle_bin_items_item_last_modified_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemSitesItemRecycleBinItemsItemLastModifiedByUserRequestBuilder(rawUrl return NewItemSitesItemRecycleBinItemsItemLastModifiedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get lastModifiedByUser from groups +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemRecycleBinItemsItemLastModifiedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemRecycleBinItemsItemLastModifiedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *ItemSitesItemRecycleBinItemsItemLastModifiedByUserRequestBuilder) Servi return NewItemSitesItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get lastModifiedByUser from groups +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemRecycleBinItemsItemLastModifiedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemRecycleBinItemsItemLastModifiedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemSitesItemRecycleBinItemsItemLastModifiedByUserRequestBuilder) ToGet return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemRecycleBinItemsItemLastModifiedByUserRequestBuilder when successful func (m *ItemSitesItemRecycleBinItemsItemLastModifiedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemRecycleBinItemsItemLastModifiedByUserRequestBuilder) { return NewItemSitesItemRecycleBinItemsItemLastModifiedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_recycle_bin_last_modified_by_user_mailbox_settings_request_builder.go b/groups/item_sites_item_recycle_bin_last_modified_by_user_mailbox_settings_request_builder.go index fbdf97d05a2..4bd2291c91f 100644 --- a/groups/item_sites_item_recycle_bin_last_modified_by_user_mailbox_settings_request_builder.go +++ b/groups/item_sites_item_recycle_bin_last_modified_by_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewItemSitesItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilder(r return NewItemSitesItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *ItemSitesItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemSitesItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *ItemSitesItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *ItemSitesItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilder) return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemSitesItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemSitesItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilder when successful func (m *ItemSitesItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilder) { return NewItemSitesItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_recycle_bin_last_modified_by_user_request_builder.go b/groups/item_sites_item_recycle_bin_last_modified_by_user_request_builder.go index 93827cdc499..0b4586b5695 100644 --- a/groups/item_sites_item_recycle_bin_last_modified_by_user_request_builder.go +++ b/groups/item_sites_item_recycle_bin_last_modified_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemSitesItemRecycleBinLastModifiedByUserRequestBuilder(rawUrl string, r return NewItemSitesItemRecycleBinLastModifiedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get lastModifiedByUser from groups +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemRecycleBinLastModifiedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemRecycleBinLastModifiedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *ItemSitesItemRecycleBinLastModifiedByUserRequestBuilder) ServiceProvisi return NewItemSitesItemRecycleBinLastModifiedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get lastModifiedByUser from groups +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemRecycleBinLastModifiedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemRecycleBinLastModifiedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemSitesItemRecycleBinLastModifiedByUserRequestBuilder) ToGetRequestIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemRecycleBinLastModifiedByUserRequestBuilder when successful func (m *ItemSitesItemRecycleBinLastModifiedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemRecycleBinLastModifiedByUserRequestBuilder) { return NewItemSitesItemRecycleBinLastModifiedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_recycle_bin_last_modified_by_user_service_provisioning_errors_count_request_builder.go b/groups/item_sites_item_recycle_bin_last_modified_by_user_service_provisioning_errors_count_request_builder.go index e78c9a229b3..3bdb48fef38 100644 --- a/groups/item_sites_item_recycle_bin_last_modified_by_user_service_provisioning_errors_count_request_builder.go +++ b/groups/item_sites_item_recycle_bin_last_modified_by_user_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemSitesItemRecycleBinLastModifiedByUserServiceProvisioningErrorsCountR return NewItemSitesItemRecycleBinLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemRecycleBinLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemRecycleBinLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemSitesItemRecycleBinLastModifiedByUserServiceProvisioningErrorsCount return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemRecycleBinLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemRecycleBinLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemSitesItemRecycleBinLastModifiedByUserServiceProvisioningErrorsCount return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemRecycleBinLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *ItemSitesItemRecycleBinLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemRecycleBinLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewItemSitesItemRecycleBinLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_sites_item_recycle_bin_last_modified_by_user_service_provisioning_errors_request_builder.go b/groups/item_sites_item_recycle_bin_last_modified_by_user_service_provisioning_errors_request_builder.go index 33f66313d29..b0a01d849f3 100644 --- a/groups/item_sites_item_recycle_bin_last_modified_by_user_service_provisioning_errors_request_builder.go +++ b/groups/item_sites_item_recycle_bin_last_modified_by_user_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemSitesItemRecycleBinLastModifiedByUserServiceProvisioningErrorsReque return NewItemSitesItemRecycleBinLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSitesItemRecycleBinLastModifiedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSitesItemRecycleBinLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemSitesItemRecycleBinLastModifiedByUserServiceProvisioningErrorsReque return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSitesItemRecycleBinLastModifiedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSitesItemRecycleBinLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemSitesItemRecycleBinLastModifiedByUserServiceProvisioningErrorsReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSitesItemRecycleBinLastModifiedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *ItemSitesItemRecycleBinLastModifiedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*ItemSitesItemRecycleBinLastModifiedByUserServiceProvisioningErrorsRequestBuilder) { return NewItemSitesItemRecycleBinLastModifiedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_team_owners_count_request_builder.go b/groups/item_team_owners_count_request_builder.go index acd4b0d9b7d..61976d57a0e 100644 --- a/groups/item_team_owners_count_request_builder.go +++ b/groups/item_team_owners_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemTeamOwnersCountRequestBuilder(rawUrl string, requestAdapter i2ae4187 return NewItemTeamOwnersCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTeamOwnersCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamOwnersCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemTeamOwnersCountRequestBuilder) Get(ctx context.Context, requestConf return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTeamOwnersCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamOwnersCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemTeamOwnersCountRequestBuilder) ToGetRequestInformation(ctx context. return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTeamOwnersCountRequestBuilder when successful func (m *ItemTeamOwnersCountRequestBuilder) WithUrl(rawUrl string)(*ItemTeamOwnersCountRequestBuilder) { return NewItemTeamOwnersCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_team_owners_item_mailbox_settings_request_builder.go b/groups/item_team_owners_item_mailbox_settings_request_builder.go index 134058d4aea..1b3eb255f8f 100644 --- a/groups/item_team_owners_item_mailbox_settings_request_builder.go +++ b/groups/item_team_owners_item_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewItemTeamOwnersItemMailboxSettingsRequestBuilder(rawUrl string, requestAd return NewItemTeamOwnersItemMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTeamOwnersItemMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamOwnersItemMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *ItemTeamOwnersItemMailboxSettingsRequestBuilder) Get(ctx context.Contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTeamOwnersItemMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemTeamOwnersItemMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *ItemTeamOwnersItemMailboxSettingsRequestBuilder) Patch(ctx context.Cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTeamOwnersItemMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamOwnersItemMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *ItemTeamOwnersItemMailboxSettingsRequestBuilder) ToGetRequestInformatio return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTeamOwnersItemMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemTeamOwnersItemMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemTeamOwnersItemMailboxSettingsRequestBuilder) ToPatchRequestInformat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTeamOwnersItemMailboxSettingsRequestBuilder when successful func (m *ItemTeamOwnersItemMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemTeamOwnersItemMailboxSettingsRequestBuilder) { return NewItemTeamOwnersItemMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_team_owners_item_service_provisioning_errors_count_request_builder.go b/groups/item_team_owners_item_service_provisioning_errors_count_request_builder.go index bee6227036a..a1026f81f63 100644 --- a/groups/item_team_owners_item_service_provisioning_errors_count_request_builder.go +++ b/groups/item_team_owners_item_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemTeamOwnersItemServiceProvisioningErrorsCountRequestBuilder(rawUrl st return NewItemTeamOwnersItemServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTeamOwnersItemServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamOwnersItemServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemTeamOwnersItemServiceProvisioningErrorsCountRequestBuilder) Get(ctx return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTeamOwnersItemServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamOwnersItemServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemTeamOwnersItemServiceProvisioningErrorsCountRequestBuilder) ToGetRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTeamOwnersItemServiceProvisioningErrorsCountRequestBuilder when successful func (m *ItemTeamOwnersItemServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemTeamOwnersItemServiceProvisioningErrorsCountRequestBuilder) { return NewItemTeamOwnersItemServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_team_owners_item_service_provisioning_errors_request_builder.go b/groups/item_team_owners_item_service_provisioning_errors_request_builder.go index 7c87f78fb07..3c052a0e55a 100644 --- a/groups/item_team_owners_item_service_provisioning_errors_request_builder.go +++ b/groups/item_team_owners_item_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemTeamOwnersItemServiceProvisioningErrorsRequestBuilder) Count()(*Ite return NewItemTeamOwnersItemServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTeamOwnersItemServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamOwnersItemServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemTeamOwnersItemServiceProvisioningErrorsRequestBuilder) Get(ctx cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTeamOwnersItemServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamOwnersItemServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemTeamOwnersItemServiceProvisioningErrorsRequestBuilder) ToGetRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTeamOwnersItemServiceProvisioningErrorsRequestBuilder when successful func (m *ItemTeamOwnersItemServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*ItemTeamOwnersItemServiceProvisioningErrorsRequestBuilder) { return NewItemTeamOwnersItemServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_team_owners_request_builder.go b/groups/item_team_owners_request_builder.go index 35d9563bd68..84b36e3e677 100644 --- a/groups/item_team_owners_request_builder.go +++ b/groups/item_team_owners_request_builder.go @@ -40,6 +40,7 @@ type ItemTeamOwnersRequestBuilderGetRequestConfiguration struct { QueryParameters *ItemTeamOwnersRequestBuilderGetQueryParameters } // ByUserId provides operations to manage the owners property of the microsoft.graph.team entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTeamOwnersUserItemRequestBuilder when successful func (m *ItemTeamOwnersRequestBuilder) ByUserId(userId string)(*ItemTeamOwnersUserItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -70,6 +71,7 @@ func (m *ItemTeamOwnersRequestBuilder) Count()(*ItemTeamOwnersCountRequestBuilde return NewItemTeamOwnersCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the list of this team's owners. Currently, when creating a team using application permissions, exactly one owner must be specified. When using user-delegated permissions, no owner can be specified (the current user is the owner). The owner must be specified as an object ID (GUID), not a UPN. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTeamOwnersRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamOwnersRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable, error) { @@ -90,6 +92,7 @@ func (m *ItemTeamOwnersRequestBuilder) Get(ctx context.Context, requestConfigura return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable), nil } // ToGetRequestInformation the list of this team's owners. Currently, when creating a team using application permissions, exactly one owner must be specified. When using user-delegated permissions, no owner can be specified (the current user is the owner). The owner must be specified as an object ID (GUID), not a UPN. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTeamOwnersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamOwnersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -104,6 +107,7 @@ func (m *ItemTeamOwnersRequestBuilder) ToGetRequestInformation(ctx context.Conte return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTeamOwnersRequestBuilder when successful func (m *ItemTeamOwnersRequestBuilder) WithUrl(rawUrl string)(*ItemTeamOwnersRequestBuilder) { return NewItemTeamOwnersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_team_owners_user_item_request_builder.go b/groups/item_team_owners_user_item_request_builder.go index 1e3f6d66fce..1ceddd4ae00 100644 --- a/groups/item_team_owners_user_item_request_builder.go +++ b/groups/item_team_owners_user_item_request_builder.go @@ -41,6 +41,7 @@ func NewItemTeamOwnersUserItemRequestBuilder(rawUrl string, requestAdapter i2ae4 return NewItemTeamOwnersUserItemRequestBuilderInternal(urlParams, requestAdapter) } // Get the list of this team's owners. Currently, when creating a team using application permissions, exactly one owner must be specified. When using user-delegated permissions, no owner can be specified (the current user is the owner). The owner must be specified as an object ID (GUID), not a UPN. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTeamOwnersUserItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamOwnersUserItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *ItemTeamOwnersUserItemRequestBuilder) ServiceProvisioningErrors()(*Item return NewItemTeamOwnersItemServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation the list of this team's owners. Currently, when creating a team using application permissions, exactly one owner must be specified. When using user-delegated permissions, no owner can be specified (the current user is the owner). The owner must be specified as an object ID (GUID), not a UPN. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTeamOwnersUserItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamOwnersUserItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemTeamOwnersUserItemRequestBuilder) ToGetRequestInformation(ctx conte return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTeamOwnersUserItemRequestBuilder when successful func (m *ItemTeamOwnersUserItemRequestBuilder) WithUrl(rawUrl string)(*ItemTeamOwnersUserItemRequestBuilder) { return NewItemTeamOwnersUserItemRequestBuilder(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 2ba042535d2..3a93f72d8f4 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 thread object. +// 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. type ItemThreadsConversationThreadItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -54,11 +54,11 @@ func NewItemThreadsConversationThreadItemRequestBuilder(rawUrl string, requestAd urlParams["request-raw-url"] = rawUrl return NewItemThreadsConversationThreadItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete conversationThread. +// Delete delete a thread 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/conversationthread-delete?view=graph-rest-beta +// [Find more info here]: https://learn.microsoft.com/graph/api/group-delete-thread?view=graph-rest-beta 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 thread object. +// 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. // 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/group-get-thread?view=graph-rest-beta +// [Find more info here]: https://learn.microsoft.com/graph/api/conversationthread-get?view=graph-rest-beta func (m *ItemThreadsConversationThreadItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemThreadsConversationThreadItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationThreadable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -129,7 +129,7 @@ func (m *ItemThreadsConversationThreadItemRequestBuilder) Posts()(*ItemThreadsIt func (m *ItemThreadsConversationThreadItemRequestBuilder) Reply()(*ItemThreadsItemReplyRequestBuilder) { return NewItemThreadsItemReplyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToDeleteRequestInformation delete conversationThread. +// ToDeleteRequestInformation delete a thread object. // returns a *RequestInformation when successful func (m *ItemThreadsConversationThreadItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemThreadsConversationThreadItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -140,7 +140,7 @@ func (m *ItemThreadsConversationThreadItemRequestBuilder) ToDeleteRequestInforma requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get a thread object. +// 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. // 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_transitive_members_graph_user_count_request_builder.go b/groups/item_transitive_members_graph_user_count_request_builder.go index c3651f4ed83..89e7700f750 100644 --- a/groups/item_transitive_members_graph_user_count_request_builder.go +++ b/groups/item_transitive_members_graph_user_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemTransitiveMembersGraphUserCountRequestBuilder(rawUrl string, request return NewItemTransitiveMembersGraphUserCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTransitiveMembersGraphUserCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTransitiveMembersGraphUserCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemTransitiveMembersGraphUserCountRequestBuilder) Get(ctx context.Cont return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTransitiveMembersGraphUserCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTransitiveMembersGraphUserCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemTransitiveMembersGraphUserCountRequestBuilder) ToGetRequestInformat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTransitiveMembersGraphUserCountRequestBuilder when successful func (m *ItemTransitiveMembersGraphUserCountRequestBuilder) WithUrl(rawUrl string)(*ItemTransitiveMembersGraphUserCountRequestBuilder) { return NewItemTransitiveMembersGraphUserCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_transitive_members_graph_user_request_builder.go b/groups/item_transitive_members_graph_user_request_builder.go index f03dbec0060..b6db0d020e1 100644 --- a/groups/item_transitive_members_graph_user_request_builder.go +++ b/groups/item_transitive_members_graph_user_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemTransitiveMembersGraphUserRequestBuilder) Count()(*ItemTransitiveMe return NewItemTransitiveMembersGraphUserCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get a list of the group's members. A group can have different object types as members. For more information about supported member types for different groups, see Group membership. This operation is transitive and returns a flat list of all nested members. An attempt to filter by an OData cast that represents an unsupported member type returns a 400 Bad Request error with the Request_UnsupportedQuery code. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -81,6 +82,7 @@ func (m *ItemTransitiveMembersGraphUserRequestBuilder) Get(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable), nil } // ToGetRequestInformation get a list of the group's members. A group can have different object types as members. For more information about supported member types for different groups, see Group membership. This operation is transitive and returns a flat list of all nested members. An attempt to filter by an OData cast that represents an unsupported member type returns a 400 Bad Request error with the Request_UnsupportedQuery code. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTransitiveMembersGraphUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTransitiveMembersGraphUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +97,7 @@ func (m *ItemTransitiveMembersGraphUserRequestBuilder) ToGetRequestInformation(c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTransitiveMembersGraphUserRequestBuilder when successful func (m *ItemTransitiveMembersGraphUserRequestBuilder) WithUrl(rawUrl string)(*ItemTransitiveMembersGraphUserRequestBuilder) { return NewItemTransitiveMembersGraphUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/groups/item_transitive_members_item_graph_user_request_builder.go b/groups/item_transitive_members_item_graph_user_request_builder.go index d6f19e26f12..4cde51f5b2d 100644 --- a/groups/item_transitive_members_item_graph_user_request_builder.go +++ b/groups/item_transitive_members_item_graph_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemTransitiveMembersItemGraphUserRequestBuilder(rawUrl string, requestA return NewItemTransitiveMembersItemGraphUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get a list of the group's members. A group can have different object types as members. For more information about supported member types for different groups, see Group membership. This operation is transitive and returns a flat list of all nested members. An attempt to filter by an OData cast that represents an unsupported member type returns a 400 Bad Request error with the Request_UnsupportedQuery code. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -64,6 +65,7 @@ func (m *ItemTransitiveMembersItemGraphUserRequestBuilder) Get(ctx context.Conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable), nil } // ToGetRequestInformation get a list of the group's members. A group can have different object types as members. For more information about supported member types for different groups, see Group membership. This operation is transitive and returns a flat list of all nested members. An attempt to filter by an OData cast that represents an unsupported member type returns a 400 Bad Request error with the Request_UnsupportedQuery code. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTransitiveMembersItemGraphUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTransitiveMembersItemGraphUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -78,6 +80,7 @@ func (m *ItemTransitiveMembersItemGraphUserRequestBuilder) ToGetRequestInformati return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTransitiveMembersItemGraphUserRequestBuilder when successful func (m *ItemTransitiveMembersItemGraphUserRequestBuilder) WithUrl(rawUrl string)(*ItemTransitiveMembersItemGraphUserRequestBuilder) { return NewItemTransitiveMembersItemGraphUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identity/4fac2bea5979f2636537cabb5d48614c26959fc0eef5d244fe187c03e171a976.go b/identity/4fac2bea5979f2636537cabb5d48614c26959fc0eef5d244fe187c03e171a976.go index 963bb14e498..ddbe24080b9 100644 --- a/identity/4fac2bea5979f2636537cabb5d48614c26959fc0eef5d244fe187c03e171a976.go +++ b/identity/4fac2bea5979f2636537cabb5d48614c26959fc0eef5d244fe187c03e171a976.go @@ -11,7 +11,7 @@ import ( type AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowConditionsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowConditionsRequestBuilderGetQueryParameters the conditions representing the context of the authentication request that's used to decide whether the events policy is invoked. +// AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowConditionsRequestBuilderGetQueryParameters the conditions representing the context of the authentication request that's used to decide whether the events policy is invoked. Supports $filter (eq). See support for filtering on user flows for syntax information. type AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowConditionsRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -45,7 +45,7 @@ func NewAuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFl urlParams["request-raw-url"] = rawUrl return NewAuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowConditionsRequestBuilderInternal(urlParams, requestAdapter) } -// Get the conditions representing the context of the authentication request that's used to decide whether the events policy is invoked. +// Get the conditions representing the context of the authentication request that's used to decide whether the events policy is invoked. Supports $filter (eq). See support for filtering on user flows for syntax information. // returns a AuthenticationConditionsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowConditionsRequestBuilder) Get(ctx context.Context, requestConfiguration *AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowConditionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AuthenticationConditionsable, error) { @@ -65,7 +65,7 @@ func (m *AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsF } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AuthenticationConditionsable), nil } -// ToGetRequestInformation the conditions representing the context of the authentication request that's used to decide whether the events policy is invoked. +// ToGetRequestInformation the conditions representing the context of the authentication request that's used to decide whether the events policy is invoked. Supports $filter (eq). See support for filtering on user flows for syntax information. // returns a *RequestInformation when successful func (m *AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowConditionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowConditionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/identity/634499d3a15ae11d0c3fb7d571f9c40713c9fecc418c826eabb31eb1a4f619ad.go b/identity/634499d3a15ae11d0c3fb7d571f9c40713c9fecc418c826eabb31eb1a4f619ad.go index b0867eb282d..6160d42d2cc 100644 --- a/identity/634499d3a15ae11d0c3fb7d571f9c40713c9fecc418c826eabb31eb1a4f619ad.go +++ b/identity/634499d3a15ae11d0c3fb7d571f9c40713c9fecc418c826eabb31eb1a4f619ad.go @@ -11,7 +11,7 @@ import ( type AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowOnAuthenticationMethodLoadStartRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowOnAuthenticationMethodLoadStartRequestBuilderGetQueryParameters required. The configuration for what to invoke when authentication methods are ready to be presented to the user. Must have at least one identity provider linked. +// AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowOnAuthenticationMethodLoadStartRequestBuilderGetQueryParameters required. The configuration for what to invoke when authentication methods are ready to be presented to the user. Must have at least one identity provider linked. Supports $filter (eq). See support for filtering on user flows for syntax information. type AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowOnAuthenticationMethodLoadStartRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewAuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFl urlParams["request-raw-url"] = rawUrl return NewAuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowOnAuthenticationMethodLoadStartRequestBuilderInternal(urlParams, requestAdapter) } -// Get required. The configuration for what to invoke when authentication methods are ready to be presented to the user. Must have at least one identity provider linked. +// Get required. The configuration for what to invoke when authentication methods are ready to be presented to the user. Must have at least one identity provider linked. Supports $filter (eq). See support for filtering on user flows for syntax information. // returns a OnAuthenticationMethodLoadStartHandlerable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowOnAuthenticationMethodLoadStartRequestBuilder) Get(ctx context.Context, requestConfiguration *AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowOnAuthenticationMethodLoadStartRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnAuthenticationMethodLoadStartHandlerable, error) { @@ -65,7 +65,7 @@ func (m *AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsF func (m *AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowOnAuthenticationMethodLoadStartRequestBuilder) GraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUp()(*AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowOnAuthenticationMethodLoadStartGraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUpRequestBuilder) { return NewAuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowOnAuthenticationMethodLoadStartGraphOnAuthenticationMethodLoadStartExternalUsersSelfServiceSignUpRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation required. The configuration for what to invoke when authentication methods are ready to be presented to the user. Must have at least one identity provider linked. +// ToGetRequestInformation required. The configuration for what to invoke when authentication methods are ready to be presented to the user. Must have at least one identity provider linked. Supports $filter (eq). See support for filtering on user flows for syntax information. // returns a *RequestInformation when successful func (m *AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowOnAuthenticationMethodLoadStartRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowOnAuthenticationMethodLoadStartRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/identity/authentication_events_flows_authentication_events_flow_item_request_builder.go b/identity/authentication_events_flows_authentication_events_flow_item_request_builder.go index 3a47760ebae..64b8eba11de 100644 --- a/identity/authentication_events_flows_authentication_events_flow_item_request_builder.go +++ b/identity/authentication_events_flows_authentication_events_flow_item_request_builder.go @@ -106,7 +106,7 @@ func (m *AuthenticationEventsFlowsAuthenticationEventsFlowItemRequestBuilder) Ge func (m *AuthenticationEventsFlowsAuthenticationEventsFlowItemRequestBuilder) GraphExternalUsersSelfServiceSignUpEventsFlow()(*AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowRequestBuilder) { return NewAuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Patch update the properties of an authenticationEventsFlow object. Only the externalUsersSelfServiceSignupEventsFlow object type is supported. +// Patch update the properties of an authenticationEventsFlow object by ID. You must specify the @odata.type property and the value of the authenticationEventsFlow object type to update. The following derived subtypes are supported:- externalUsersSelfServiceSignupEventsFlow // returns a AuthenticationEventsFlowable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -154,7 +154,7 @@ func (m *AuthenticationEventsFlowsAuthenticationEventsFlowItemRequestBuilder) To requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of an authenticationEventsFlow object. Only the externalUsersSelfServiceSignupEventsFlow object type is supported. +// ToPatchRequestInformation update the properties of an authenticationEventsFlow object by ID. You must specify the @odata.type property and the value of the authenticationEventsFlow object type to update. The following derived subtypes are supported:- externalUsersSelfServiceSignupEventsFlow // returns a *RequestInformation when successful func (m *AuthenticationEventsFlowsAuthenticationEventsFlowItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AuthenticationEventsFlowable, requestConfiguration *AuthenticationEventsFlowsAuthenticationEventsFlowItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/identity/authentication_events_flows_item_conditions_applications_include_applications_request_builder.go b/identity/authentication_events_flows_item_conditions_applications_include_applications_request_builder.go index eda53d4c79b..c82ae50019d 100644 --- a/identity/authentication_events_flows_item_conditions_applications_include_applications_request_builder.go +++ b/identity/authentication_events_flows_item_conditions_applications_include_applications_request_builder.go @@ -11,7 +11,7 @@ import ( type AuthenticationEventsFlowsItemConditionsApplicationsIncludeApplicationsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// AuthenticationEventsFlowsItemConditionsApplicationsIncludeApplicationsRequestBuilderGetQueryParameters list the applications linked to an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. These are the applications for which the authentication experience that's defined by the user flow is enabled. +// AuthenticationEventsFlowsItemConditionsApplicationsIncludeApplicationsRequestBuilderGetQueryParameters list the applications linked to an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. These are the applications for which the authentication experience that's defined by the user flow is enabled. To find the user flow that's linked to an application, see Example 4: List user flow associated with specific application ID. type AuthenticationEventsFlowsItemConditionsApplicationsIncludeApplicationsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,7 +76,7 @@ func NewAuthenticationEventsFlowsItemConditionsApplicationsIncludeApplicationsRe func (m *AuthenticationEventsFlowsItemConditionsApplicationsIncludeApplicationsRequestBuilder) Count()(*AuthenticationEventsFlowsItemConditionsApplicationsIncludeApplicationsCountRequestBuilder) { return NewAuthenticationEventsFlowsItemConditionsApplicationsIncludeApplicationsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get list the applications linked to an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. These are the applications for which the authentication experience that's defined by the user flow is enabled. +// Get list the applications linked to an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. These are the applications for which the authentication experience that's defined by the user flow is enabled. To find the user flow that's linked to an application, see Example 4: List user flow associated with specific application ID. // returns a AuthenticationConditionApplicationCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -99,7 +99,7 @@ func (m *AuthenticationEventsFlowsItemConditionsApplicationsIncludeApplicationsR } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AuthenticationConditionApplicationCollectionResponseable), nil } -// Post add or link an application to an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. This enables the authentication experience that's defined by the user flow to be enabled for the application. An application can only be linked to one user flow. +// Post add or link an application to an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. This enables the authentication experience that's defined by the user flow to be enabled for the application. An application can only be linked to one user flow. The app must have an associated service principal in the tenant. // returns a AuthenticationConditionApplicationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -122,7 +122,7 @@ func (m *AuthenticationEventsFlowsItemConditionsApplicationsIncludeApplicationsR } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AuthenticationConditionApplicationable), nil } -// ToGetRequestInformation list the applications linked to an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. These are the applications for which the authentication experience that's defined by the user flow is enabled. +// ToGetRequestInformation list the applications linked to an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. These are the applications for which the authentication experience that's defined by the user flow is enabled. To find the user flow that's linked to an application, see Example 4: List user flow associated with specific application ID. // returns a *RequestInformation when successful func (m *AuthenticationEventsFlowsItemConditionsApplicationsIncludeApplicationsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *AuthenticationEventsFlowsItemConditionsApplicationsIncludeApplicationsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,7 +136,7 @@ func (m *AuthenticationEventsFlowsItemConditionsApplicationsIncludeApplicationsR requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation add or link an application to an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. This enables the authentication experience that's defined by the user flow to be enabled for the application. An application can only be linked to one user flow. +// ToPostRequestInformation add or link an application to an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. This enables the authentication experience that's defined by the user flow to be enabled for the application. An application can only be linked to one user flow. The app must have an associated service principal in the tenant. // returns a *RequestInformation when successful func (m *AuthenticationEventsFlowsItemConditionsApplicationsIncludeApplicationsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AuthenticationConditionApplicationable, requestConfiguration *AuthenticationEventsFlowsItemConditionsApplicationsIncludeApplicationsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/identity/authentication_events_flows_item_conditions_request_builder.go b/identity/authentication_events_flows_item_conditions_request_builder.go index b9224b108a3..a847dcceb8b 100644 --- a/identity/authentication_events_flows_item_conditions_request_builder.go +++ b/identity/authentication_events_flows_item_conditions_request_builder.go @@ -11,7 +11,7 @@ import ( type AuthenticationEventsFlowsItemConditionsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// AuthenticationEventsFlowsItemConditionsRequestBuilderGetQueryParameters the conditions representing the context of the authentication request that's used to decide whether the events policy is invoked. +// AuthenticationEventsFlowsItemConditionsRequestBuilderGetQueryParameters the conditions representing the context of the authentication request that's used to decide whether the events policy is invoked. Supports $filter (eq). See support for filtering on user flows for syntax information. type AuthenticationEventsFlowsItemConditionsRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -45,7 +45,7 @@ func NewAuthenticationEventsFlowsItemConditionsRequestBuilder(rawUrl string, req urlParams["request-raw-url"] = rawUrl return NewAuthenticationEventsFlowsItemConditionsRequestBuilderInternal(urlParams, requestAdapter) } -// Get the conditions representing the context of the authentication request that's used to decide whether the events policy is invoked. +// Get the conditions representing the context of the authentication request that's used to decide whether the events policy is invoked. Supports $filter (eq). See support for filtering on user flows for syntax information. // returns a AuthenticationConditionsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *AuthenticationEventsFlowsItemConditionsRequestBuilder) Get(ctx context.Context, requestConfiguration *AuthenticationEventsFlowsItemConditionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AuthenticationConditionsable, error) { @@ -65,7 +65,7 @@ func (m *AuthenticationEventsFlowsItemConditionsRequestBuilder) Get(ctx context. } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AuthenticationConditionsable), nil } -// ToGetRequestInformation the conditions representing the context of the authentication request that's used to decide whether the events policy is invoked. +// ToGetRequestInformation the conditions representing the context of the authentication request that's used to decide whether the events policy is invoked. Supports $filter (eq). See support for filtering on user flows for syntax information. // returns a *RequestInformation when successful func (m *AuthenticationEventsFlowsItemConditionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *AuthenticationEventsFlowsItemConditionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/identity/b618f466901cc8a9d7ba5fde41e3a89892087495df28ff5a8c43740d5ca2d6b3.go b/identity/b618f466901cc8a9d7ba5fde41e3a89892087495df28ff5a8c43740d5ca2d6b3.go index 19356fe4a96..ef9ff5e2e8b 100644 --- a/identity/b618f466901cc8a9d7ba5fde41e3a89892087495df28ff5a8c43740d5ca2d6b3.go +++ b/identity/b618f466901cc8a9d7ba5fde41e3a89892087495df28ff5a8c43740d5ca2d6b3.go @@ -11,7 +11,7 @@ import ( type AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowOnAttributeCollectionGraphOnAttributeCollectionExternalUsersSelfServiceSignUpAttributesRefRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowOnAttributeCollectionGraphOnAttributeCollectionExternalUsersSelfServiceSignUpAttributesRefRequestBuilderDeleteQueryParameters remove an attribute from an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. You can add both custom and built-in attributes to a user flow. After this step, PATCH the user flow to remove the attribute from the attribute collection step. +// AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowOnAttributeCollectionGraphOnAttributeCollectionExternalUsersSelfServiceSignUpAttributesRefRequestBuilderDeleteQueryParameters delete ref of navigation property attributes for identity type AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowOnAttributeCollectionGraphOnAttributeCollectionExternalUsersSelfServiceSignUpAttributesRefRequestBuilderDeleteQueryParameters struct { // The delete Uri Id *string `uriparametername:"%40id"` @@ -69,11 +69,8 @@ func NewAuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFl urlParams["request-raw-url"] = rawUrl return NewAuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowOnAttributeCollectionGraphOnAttributeCollectionExternalUsersSelfServiceSignUpAttributesRefRequestBuilderInternal(urlParams, requestAdapter) } -// Delete remove an attribute from an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. You can add both custom and built-in attributes to a user flow. After this step, PATCH the user flow to remove the attribute from the attribute collection step. +// Delete delete ref of navigation property attributes for identity // 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/onattributecollectionexternalusersselfservicesignup-delete-attributes?view=graph-rest-beta func (m *AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowOnAttributeCollectionGraphOnAttributeCollectionExternalUsersSelfServiceSignUpAttributesRefRequestBuilder) Delete(ctx context.Context, requestConfiguration *AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowOnAttributeCollectionGraphOnAttributeCollectionExternalUsersSelfServiceSignUpAttributesRefRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -111,7 +108,7 @@ func (m *AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsF } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.StringCollectionResponseable), nil } -// Post add an attribute to an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. You can add both custom and built-in attributes to a user flow. Prior to this step, PATCH the user flow to add the attribute to the attribute collection step (to determine how it will be displayed). +// Post add an attribute to an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. You can add both custom and built-in attributes to a user flow. The attribute is added to both the attributeCollection> attributes and attributeCollection> attributeCollectionPage > views collections on the user flow. In the views collection, the attribute is assigned the default settings. You can PATCH the user flow to customize the settings of the attribute on the views object, for example, marking it as required or updating the allowed input types. // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -130,7 +127,7 @@ func (m *AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsF } return nil } -// ToDeleteRequestInformation remove an attribute from an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. You can add both custom and built-in attributes to a user flow. After this step, PATCH the user flow to remove the attribute from the attribute collection step. +// ToDeleteRequestInformation delete ref of navigation property attributes for identity // returns a *RequestInformation when successful func (m *AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowOnAttributeCollectionGraphOnAttributeCollectionExternalUsersSelfServiceSignUpAttributesRefRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowOnAttributeCollectionGraphOnAttributeCollectionExternalUsersSelfServiceSignUpAttributesRefRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection/graph.onAttributeCollectionExternalUsersSelfServiceSignUp/attributes/$ref?@id={%40id}", m.BaseRequestBuilder.PathParameters) @@ -158,7 +155,7 @@ func (m *AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsF requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation add an attribute to an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. You can add both custom and built-in attributes to a user flow. Prior to this step, PATCH the user flow to add the attribute to the attribute collection step (to determine how it will be displayed). +// ToPostRequestInformation add an attribute to an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. You can add both custom and built-in attributes to a user flow. The attribute is added to both the attributeCollection> attributes and attributeCollection> attributeCollectionPage > views collections on the user flow. In the views collection, the attribute is assigned the default settings. You can PATCH the user flow to customize the settings of the attribute on the views object, for example, marking it as required or updating the allowed input types. // returns a *RequestInformation when successful func (m *AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowOnAttributeCollectionGraphOnAttributeCollectionExternalUsersSelfServiceSignUpAttributesRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowOnAttributeCollectionGraphOnAttributeCollectionExternalUsersSelfServiceSignUpAttributesRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/identity/authenticationEventsFlows/{authenticationEventsFlow%2Did}/graph.externalUsersSelfServiceSignUpEventsFlow/onAttributeCollection/graph.onAttributeCollectionExternalUsersSelfServiceSignUp/attributes/$ref", 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 ccddce8c2c3..8661d34b42d 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 a countryNamedLocation object. +// Delete delete an ipNamedLocation 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/countrynamedlocation-delete?view=graph-rest-beta +// [Find more info here]: https://learn.microsoft.com/graph/api/ipnamedlocation-delete?view=graph-rest-beta 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-beta +// [Find more info here]: https://learn.microsoft.com/graph/api/namedlocation-get?view=graph-rest-beta func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NamedLocationable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -119,7 +119,7 @@ func (m *ConditionalAccessNamedLocationsNamedLocationItemRequestBuilder) Patch(c } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NamedLocationable), nil } -// ToDeleteRequestInformation delete a countryNamedLocation object. +// ToDeleteRequestInformation delete an ipNamedLocation 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/identity/custom_authentication_extensions_custom_authentication_extension_item_request_builder.go b/identity/custom_authentication_extensions_custom_authentication_extension_item_request_builder.go index 821de93c80c..8e2a0f8818b 100644 --- a/identity/custom_authentication_extensions_custom_authentication_extension_item_request_builder.go +++ b/identity/custom_authentication_extensions_custom_authentication_extension_item_request_builder.go @@ -18,7 +18,7 @@ type CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestBuild // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestBuilderGetQueryParameters read the properties and relationships of a customAuthenticationExtension object. +// CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestBuilderGetQueryParameters read the properties and relationships of an authenticationEventListener object. The @odata.type property in the response object indicates the type of the authenticationEventListener object. type CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -73,12 +73,12 @@ func (m *CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestB } return nil } -// Get read the properties and relationships of a customAuthenticationExtension object. +// Get read the properties and relationships of an authenticationEventListener object. The @odata.type property in the response object indicates the type of the authenticationEventListener object. // returns a CustomAuthenticationExtensionable 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/customauthenticationextension-get?view=graph-rest-beta +// [Find more info here]: https://learn.microsoft.com/graph/api/authenticationeventlistener-get?view=graph-rest-beta func (m *CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CustomAuthenticationExtensionable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -127,7 +127,7 @@ func (m *CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestB requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation read the properties and relationships of a customAuthenticationExtension object. +// ToGetRequestInformation read the properties and relationships of an authenticationEventListener object. The @odata.type property in the response object indicates the type of the authenticationEventListener object. // returns a *RequestInformation when successful func (m *CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CustomAuthenticationExtensionsCustomAuthenticationExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/identity/d44237979350ed53ebf089d7f1971657bde08cceb648efa5a57bc32ef0d0db08.go b/identity/d44237979350ed53ebf089d7f1971657bde08cceb648efa5a57bc32ef0d0db08.go index 972e5d05d87..0c1b041d5a7 100644 --- a/identity/d44237979350ed53ebf089d7f1971657bde08cceb648efa5a57bc32ef0d0db08.go +++ b/identity/d44237979350ed53ebf089d7f1971657bde08cceb648efa5a57bc32ef0d0db08.go @@ -30,11 +30,8 @@ func NewAuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFl urlParams["request-raw-url"] = rawUrl return NewAuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowOnAttributeCollectionGraphOnAttributeCollectionExternalUsersSelfServiceSignUpAttributesItemRefRequestBuilderInternal(urlParams, requestAdapter) } -// Delete remove an attribute from an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. You can add both custom and built-in attributes to a user flow. After this step, PATCH the user flow to remove the attribute from the attribute collection step. +// Delete delete ref of navigation property attributes for identity // 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/onattributecollectionexternalusersselfservicesignup-delete-attributes?view=graph-rest-beta func (m *AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowOnAttributeCollectionGraphOnAttributeCollectionExternalUsersSelfServiceSignUpAttributesItemRefRequestBuilder) Delete(ctx context.Context, requestConfiguration *AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowOnAttributeCollectionGraphOnAttributeCollectionExternalUsersSelfServiceSignUpAttributesItemRefRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -49,7 +46,7 @@ func (m *AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsF } return nil } -// ToDeleteRequestInformation remove an attribute from an external identities self-service sign up user flow that's represented by an externalUsersSelfServiceSignupEventsFlow object. You can add both custom and built-in attributes to a user flow. After this step, PATCH the user flow to remove the attribute from the attribute collection step. +// ToDeleteRequestInformation delete ref of navigation property attributes for identity // returns a *RequestInformation when successful func (m *AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowOnAttributeCollectionGraphOnAttributeCollectionExternalUsersSelfServiceSignUpAttributesItemRefRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *AuthenticationEventsFlowsItemGraphExternalUsersSelfServiceSignUpEventsFlowOnAttributeCollectionGraphOnAttributeCollectionExternalUsersSelfServiceSignUpAttributesItemRefRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/identitygovernance/0549ee37ed1042a17ea4da4200932088336fa74dcc805157abbec65455dced11.go b/identitygovernance/0549ee37ed1042a17ea4da4200932088336fa74dcc805157abbec65455dced11.go index 923ebff6fc9..f4a84587fbd 100644 --- a/identitygovernance/0549ee37ed1042a17ea4da4200932088336fa74dcc805157abbec65455dced11.go +++ b/identitygovernance/0549ee37ed1042a17ea4da4200932088336fa74dcc805157abbec65455dced11.go @@ -40,6 +40,7 @@ func NewLifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResult return NewLifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *LifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResul return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *LifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResul return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/0e77f32bf01098c383e2b7620cc6aa5597e8235eeac6e938a3da99f539db7e05.go b/identitygovernance/0e77f32bf01098c383e2b7620cc6aa5597e8235eeac6e938a3da99f539db7e05.go index 88d94b0aa2c..2e9493f39da 100644 --- a/identitygovernance/0e77f32bf01098c383e2b7620cc6aa5597e8235eeac6e938a3da99f539db7e05.go +++ b/identitygovernance/0e77f32bf01098c383e2b7620cc6aa5597e8235eeac6e938a3da99f539db7e05.go @@ -40,6 +40,7 @@ func NewLifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubject return NewLifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *LifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjec return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *LifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjec return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/10ba353648aadc8b6a0e14c28cca2e830872b8e1bf83368a47b998e821618dce.go b/identitygovernance/10ba353648aadc8b6a0e14c28cca2e830872b8e1bf83368a47b998e821618dce.go index ebc3e46face..de0582880ca 100644 --- a/identitygovernance/10ba353648aadc8b6a0e14c28cca2e830872b8e1bf83368a47b998e821618dce.go +++ b/identitygovernance/10ba353648aadc8b6a0e14c28cca2e830872b8e1bf83368a47b998e821618dce.go @@ -40,6 +40,7 @@ func NewLifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByServiceProvisio return NewLifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByServiceProvisi return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByServiceProvisi return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/12c4666590975c901ea913d1d251e4bd73686dc12298b496d74e461f3d7dc227.go b/identitygovernance/12c4666590975c901ea913d1d251e4bd73686dc12298b496d74e461f3d7dc227.go index 156741547f7..6a4e65e3fa3 100644 --- a/identitygovernance/12c4666590975c901ea913d1d251e4bd73686dc12298b496d74e461f3d7dc227.go +++ b/identitygovernance/12c4666590975c901ea913d1d251e4bd73686dc12298b496d74e461f3d7dc227.go @@ -48,6 +48,7 @@ func NewLifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResult return NewLifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResul return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResul return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResul return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResul return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/15f0754ac9299e9dae9fbd30abc0bbc7dd77f5070e6c0f9bdadc756d81e10726.go b/identitygovernance/15f0754ac9299e9dae9fbd30abc0bbc7dd77f5070e6c0f9bdadc756d81e10726.go index 368b38cac41..dfe9351210b 100644 --- a/identitygovernance/15f0754ac9299e9dae9fbd30abc0bbc7dd77f5070e6c0f9bdadc756d81e10726.go +++ b/identitygovernance/15f0754ac9299e9dae9fbd30abc0bbc7dd77f5070e6c0f9bdadc756d81e10726.go @@ -41,6 +41,7 @@ func NewLifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItemS return NewLifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectRequestBuilderInternal(urlParams, requestAdapter) } // Get the unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *LifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItem return NewLifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation the unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *LifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItem return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/1662afc97751af378246621ea6cb385e448562a930c9aae4132e6c12cdb82e5c.go b/identitygovernance/1662afc97751af378246621ea6cb385e448562a930c9aae4132e6c12cdb82e5c.go index 7d9ace87639..e094c610795 100644 --- a/identitygovernance/1662afc97751af378246621ea6cb385e448562a930c9aae4132e6c12cdb82e5c.go +++ b/identitygovernance/1662afc97751af378246621ea6cb385e448562a930c9aae4132e6c12cdb82e5c.go @@ -48,6 +48,7 @@ func NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResults return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResult return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResult return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResult return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResult return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/167285d1071eed5ab6086a1d422ff5e6401697462da0596d70eb87fff93f3f1f.go b/identitygovernance/167285d1071eed5ab6086a1d422ff5e6401697462da0596d70eb87fff93f3f1f.go index 2a0de8d1a56..326c9920f44 100644 --- a/identitygovernance/167285d1071eed5ab6086a1d422ff5e6401697462da0596d70eb87fff93f3f1f.go +++ b/identitygovernance/167285d1071eed5ab6086a1d422ff5e6401697462da0596d70eb87fff93f3f1f.go @@ -58,6 +58,7 @@ func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectServiceP return NewLifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectServiceP return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectServiceP return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/229daa07ffa958233028b846bc2725e83df32bd474ab9acba25b6bbd68406351.go b/identitygovernance/229daa07ffa958233028b846bc2725e83df32bd474ab9acba25b6bbd68406351.go index 96cce924b23..e46a11e3258 100644 --- a/identitygovernance/229daa07ffa958233028b846bc2725e83df32bd474ab9acba25b6bbd68406351.go +++ b/identitygovernance/229daa07ffa958233028b846bc2725e83df32bd474ab9acba25b6bbd68406351.go @@ -48,6 +48,7 @@ func NewLifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResult return NewLifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *LifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResul return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *LifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResul return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *LifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResul return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *LifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResul return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/22d291951cfef0a1ec61bdc6f0241b0aee0750c49ffd86d2f0d6d29502b10928.go b/identitygovernance/22d291951cfef0a1ec61bdc6f0241b0aee0750c49ffd86d2f0d6d29502b10928.go index 68335336291..b283d554a5d 100644 --- a/identitygovernance/22d291951cfef0a1ec61bdc6f0241b0aee0750c49ffd86d2f0d6d29502b10928.go +++ b/identitygovernance/22d291951cfef0a1ec61bdc6f0241b0aee0750c49ffd86d2f0d6d29502b10928.go @@ -40,6 +40,7 @@ func NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResults return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResult return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResult return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/233f0e3b9b96de67a64f89c2143f0d3251ed074804211a1697faa1901389a2a2.go b/identitygovernance/233f0e3b9b96de67a64f89c2143f0d3251ed074804211a1697faa1901389a2a2.go index 99e4d477a10..ee86f81a117 100644 --- a/identitygovernance/233f0e3b9b96de67a64f89c2143f0d3251ed074804211a1697faa1901389a2a2.go +++ b/identitygovernance/233f0e3b9b96de67a64f89c2143f0d3251ed074804211a1697faa1901389a2a2.go @@ -41,6 +41,7 @@ func NewLifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResult return NewLifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectRequestBuilderInternal(urlParams, requestAdapter) } // Get the unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResul return NewLifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation the unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResul return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/2b1cdf3c2a5cb2a382d0887e388422569799f22ed0d651c65fbd2aa0da9ea826.go b/identitygovernance/2b1cdf3c2a5cb2a382d0887e388422569799f22ed0d651c65fbd2aa0da9ea826.go index bcfa87d6d94..c8d2524a110 100644 --- a/identitygovernance/2b1cdf3c2a5cb2a382d0887e388422569799f22ed0d651c65fbd2aa0da9ea826.go +++ b/identitygovernance/2b1cdf3c2a5cb2a382d0887e388422569799f22ed0d651c65fbd2aa0da9ea826.go @@ -48,6 +48,7 @@ func NewLifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessing return NewLifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessin return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessin return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessin return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessin return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/2c96c8d39ccbc56ed66ea600a6036ea3e2df79364745347eabe883acd32449ec.go b/identitygovernance/2c96c8d39ccbc56ed66ea600a6036ea3e2df79364745347eabe883acd32449ec.go index f09fbb045fc..9a762a0da30 100644 --- a/identitygovernance/2c96c8d39ccbc56ed66ea600a6036ea3e2df79364745347eabe883acd32449ec.go +++ b/identitygovernance/2c96c8d39ccbc56ed66ea600a6036ea3e2df79364745347eabe883acd32449ec.go @@ -58,6 +58,7 @@ func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubject return NewLifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubject return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubject return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/3113bf0e56ce246e8624f74abdc64aea1ff9de859b4ac1501879d7201a537162.go b/identitygovernance/3113bf0e56ce246e8624f74abdc64aea1ff9de859b4ac1501879d7201a537162.go index cd1f9b63afa..eb44bdbbf8e 100644 --- a/identitygovernance/3113bf0e56ce246e8624f74abdc64aea1ff9de859b4ac1501879d7201a537162.go +++ b/identitygovernance/3113bf0e56ce246e8624f74abdc64aea1ff9de859b4ac1501879d7201a537162.go @@ -58,6 +58,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSub return NewLifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSub return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSub return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/345cc13ecc6f57b79727b5c17b2f2edeeffb019318149945e7ee6750d272c5c6.go b/identitygovernance/345cc13ecc6f57b79727b5c17b2f2edeeffb019318149945e7ee6750d272c5c6.go index 02cd5504f59..728ec9f8cca 100644 --- a/identitygovernance/345cc13ecc6f57b79727b5c17b2f2edeeffb019318149945e7ee6750d272c5c6.go +++ b/identitygovernance/345cc13ecc6f57b79727b5c17b2f2edeeffb019318149945e7ee6750d272c5c6.go @@ -40,6 +40,7 @@ func NewLifecycleWorkflowsWorkflowsItemVersionsItemCreatedByServiceProvisioningE return NewLifecycleWorkflowsWorkflowsItemVersionsItemCreatedByServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemVersionsItemCreatedByServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemVersionsItemCreatedByServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *LifecycleWorkflowsWorkflowsItemVersionsItemCreatedByServiceProvisioning return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemVersionsItemCreatedByServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemVersionsItemCreatedByServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *LifecycleWorkflowsWorkflowsItemVersionsItemCreatedByServiceProvisioning return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemVersionsItemCreatedByServiceProvisioningErrorsCountRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemVersionsItemCreatedByServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemVersionsItemCreatedByServiceProvisioningErrorsCountRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemVersionsItemCreatedByServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/345e9c433a56439b6a4a77c5747edffb2b8b585e4e7923ab2f57d21fc9d7f1f5.go b/identitygovernance/345e9c433a56439b6a4a77c5747edffb2b8b585e4e7923ab2f57d21fc9d7f1f5.go index a13fe2816c6..03196cde274 100644 --- a/identitygovernance/345e9c433a56439b6a4a77c5747edffb2b8b585e4e7923ab2f57d21fc9d7f1f5.go +++ b/identitygovernance/345e9c433a56439b6a4a77c5747edffb2b8b585e4e7923ab2f57d21fc9d7f1f5.go @@ -41,6 +41,7 @@ func NewLifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingRe return NewLifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderInternal(urlParams, requestAdapter) } // Get the unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingR return NewLifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation the unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/36b2ba0512306f5d807d0a6d794bde1c5c935b546d5b1e0ac8619327368ab58b.go b/identitygovernance/36b2ba0512306f5d807d0a6d794bde1c5c935b546d5b1e0ac8619327368ab58b.go index 8112e3901a5..f87d9cebbf0 100644 --- a/identitygovernance/36b2ba0512306f5d807d0a6d794bde1c5c935b546d5b1e0ac8619327368ab58b.go +++ b/identitygovernance/36b2ba0512306f5d807d0a6d794bde1c5c935b546d5b1e0ac8619327368ab58b.go @@ -48,6 +48,7 @@ func NewLifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskProc return NewLifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskPro return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskPro return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskPro return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskPro return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/36da8638b41c3cb4aaebd213e5b6ec0053525606504c013bd3fb982df45b7740.go b/identitygovernance/36da8638b41c3cb4aaebd213e5b6ec0053525606504c013bd3fb982df45b7740.go index acef1fc3c71..21850f32118 100644 --- a/identitygovernance/36da8638b41c3cb4aaebd213e5b6ec0053525606504c013bd3fb982df45b7740.go +++ b/identitygovernance/36da8638b41c3cb4aaebd213e5b6ec0053525606504c013bd3fb982df45b7740.go @@ -40,6 +40,7 @@ func NewLifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByServiceP return NewLifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByService return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByService return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByServiceProvisioningErrorsCountRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByServiceProvisioningErrorsCountRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/38081b9e947e109e489896cd83c7e02125be8f87fd70ef2651d1841f56e9a0a6.go b/identitygovernance/38081b9e947e109e489896cd83c7e02125be8f87fd70ef2651d1841f56e9a0a6.go index 47f5de4e95e..5988a192ee6 100644 --- a/identitygovernance/38081b9e947e109e489896cd83c7e02125be8f87fd70ef2651d1841f56e9a0a6.go +++ b/identitygovernance/38081b9e947e109e489896cd83c7e02125be8f87fd70ef2651d1841f56e9a0a6.go @@ -58,6 +58,7 @@ func (m *LifecycleWorkflowsWorkflowsItemVersionsItemCreatedByServiceProvisioning return NewLifecycleWorkflowsWorkflowsItemVersionsItemCreatedByServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemVersionsItemCreatedByServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemVersionsItemCreatedByServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *LifecycleWorkflowsWorkflowsItemVersionsItemCreatedByServiceProvisioning return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemVersionsItemCreatedByServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemVersionsItemCreatedByServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *LifecycleWorkflowsWorkflowsItemVersionsItemCreatedByServiceProvisioning return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemVersionsItemCreatedByServiceProvisioningErrorsRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemVersionsItemCreatedByServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemVersionsItemCreatedByServiceProvisioningErrorsRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemVersionsItemCreatedByServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/401124b925da374b5f51d7c60260e987eae5a6e3341c269817cd1572a85f07f3.go b/identitygovernance/401124b925da374b5f51d7c60260e987eae5a6e3341c269817cd1572a85f07f3.go index 911e6603d24..f34d056bea3 100644 --- a/identitygovernance/401124b925da374b5f51d7c60260e987eae5a6e3341c269817cd1572a85f07f3.go +++ b/identitygovernance/401124b925da374b5f51d7c60260e987eae5a6e3341c269817cd1572a85f07f3.go @@ -40,6 +40,7 @@ func NewLifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskProc return NewLifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskPro return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskPro return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/4018ce25ad75449bbfde74373cd280d3ab5a2628437cc21209770b6cc415f7ce.go b/identitygovernance/4018ce25ad75449bbfde74373cd280d3ab5a2628437cc21209770b6cc415f7ce.go index 8f255fbca6c..737652380c1 100644 --- a/identitygovernance/4018ce25ad75449bbfde74373cd280d3ab5a2628437cc21209770b6cc415f7ce.go +++ b/identitygovernance/4018ce25ad75449bbfde74373cd280d3ab5a2628437cc21209770b6cc415f7ce.go @@ -40,6 +40,7 @@ func NewLifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskProc return NewLifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskPro return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskPro return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/4147d07d9783384ab6e2fa8c41016dea646f1837548c4af8398484823b60940c.go b/identitygovernance/4147d07d9783384ab6e2fa8c41016dea646f1837548c4af8398484823b60940c.go index b25fe0b4ced..23ec97b178a 100644 --- a/identitygovernance/4147d07d9783384ab6e2fa8c41016dea646f1837548c4af8398484823b60940c.go +++ b/identitygovernance/4147d07d9783384ab6e2fa8c41016dea646f1837548c4af8398484823b60940c.go @@ -48,6 +48,7 @@ func NewLifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByMailboxS return NewLifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByMailbox return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByMailbox return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByMailbox return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByMailbox return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByMailboxSettingsRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByMailboxSettingsRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/417fa38743afa5f8bb32da2ee075c588cb003dd3a13a6297e7920a9e79a4a60a.go b/identitygovernance/417fa38743afa5f8bb32da2ee075c588cb003dd3a13a6297e7920a9e79a4a60a.go index 9d51b470756..fb5c0e26c9c 100644 --- a/identitygovernance/417fa38743afa5f8bb32da2ee075c588cb003dd3a13a6297e7920a9e79a4a60a.go +++ b/identitygovernance/417fa38743afa5f8bb32da2ee075c588cb003dd3a13a6297e7920a9e79a4a60a.go @@ -58,6 +58,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResult return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResult return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResult return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/46ef7610aa181efce458610b9531f504544a7e94e41d818d2c3c6aff60602c97.go b/identitygovernance/46ef7610aa181efce458610b9531f504544a7e94e41d818d2c3c6aff60602c97.go index c98544eaf8a..85abe40e53e 100644 --- a/identitygovernance/46ef7610aa181efce458610b9531f504544a7e94e41d818d2c3c6aff60602c97.go +++ b/identitygovernance/46ef7610aa181efce458610b9531f504544a7e94e41d818d2c3c6aff60602c97.go @@ -48,6 +48,7 @@ func NewLifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSubj return NewLifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSub return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSub return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSub return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSub return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/490eebe64345c2d43e1292afe79ac940d527832b56ba5d5e125766e6a8170acb.go b/identitygovernance/490eebe64345c2d43e1292afe79ac940d527832b56ba5d5e125766e6a8170acb.go index 5bed0e07501..065cc454253 100644 --- a/identitygovernance/490eebe64345c2d43e1292afe79ac940d527832b56ba5d5e125766e6a8170acb.go +++ b/identitygovernance/490eebe64345c2d43e1292afe79ac940d527832b56ba5d5e125766e6a8170acb.go @@ -48,6 +48,7 @@ func NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResults return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResult return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResult return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResult return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResult return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/513a8db6e2a473ba9128ddaed252b2628119d6787e092daa87abcc8833f97b6a.go b/identitygovernance/513a8db6e2a473ba9128ddaed252b2628119d6787e092daa87abcc8833f97b6a.go index 7c528b31cb8..6c53e8f9726 100644 --- a/identitygovernance/513a8db6e2a473ba9128ddaed252b2628119d6787e092daa87abcc8833f97b6a.go +++ b/identitygovernance/513a8db6e2a473ba9128ddaed252b2628119d6787e092daa87abcc8833f97b6a.go @@ -41,6 +41,7 @@ func NewLifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSubj return NewLifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSubjectRequestBuilderInternal(urlParams, requestAdapter) } // Get the unique identifier of the AAD user targeted for the taskProcessingResult.Supports $filter(eq, ne) and $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSubjectRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSub return NewLifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation the unique identifier of the AAD user targeted for the taskProcessingResult.Supports $filter(eq, ne) and $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSubjectRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSub return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSubjectRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSubjectRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSubjectRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSubjectRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/5475d5155648d9cdb9f1b6485d6335adab2c413bbaeea53a450c9d169f71f538.go b/identitygovernance/5475d5155648d9cdb9f1b6485d6335adab2c413bbaeea53a450c9d169f71f538.go index e22eb8791dc..dab63a1ebd2 100644 --- a/identitygovernance/5475d5155648d9cdb9f1b6485d6335adab2c413bbaeea53a450c9d169f71f538.go +++ b/identitygovernance/5475d5155648d9cdb9f1b6485d6335adab2c413bbaeea53a450c9d169f71f538.go @@ -40,6 +40,7 @@ func NewLifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectServicePr return NewLifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectServiceP return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectServiceP return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/557cfeabab92e74a490b4b74977520a8c43979a8ccb9b44631b379827ec19fd7.go b/identitygovernance/557cfeabab92e74a490b4b74977520a8c43979a8ccb9b44631b379827ec19fd7.go index 5981d8b858f..78d05821750 100644 --- a/identitygovernance/557cfeabab92e74a490b4b74977520a8c43979a8ccb9b44631b379827ec19fd7.go +++ b/identitygovernance/557cfeabab92e74a490b4b74977520a8c43979a8ccb9b44631b379827ec19fd7.go @@ -48,6 +48,7 @@ func NewLifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByMai return NewLifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByMa return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByMa return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByMa return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByMa return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByMailboxSettingsRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByMailboxSettingsRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/5b2fa2f523d1026a392c161dc29983687fe1373a6142e8ab6a8a0eab6def99bc.go b/identitygovernance/5b2fa2f523d1026a392c161dc29983687fe1373a6142e8ab6a8a0eab6def99bc.go index 40cccb3f140..868dd37ecb7 100644 --- a/identitygovernance/5b2fa2f523d1026a392c161dc29983687fe1373a6142e8ab6a8a0eab6def99bc.go +++ b/identitygovernance/5b2fa2f523d1026a392c161dc29983687fe1373a6142e8ab6a8a0eab6def99bc.go @@ -40,6 +40,7 @@ func NewLifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedBySer return NewLifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedBySe return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedBySe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/5c0659bc00f1cdac98c10788d74faddcd32ef9feb279d5aa7be43920c5c26070.go b/identitygovernance/5c0659bc00f1cdac98c10788d74faddcd32ef9feb279d5aa7be43920c5c26070.go index 2d23c445936..9e462fd9211 100644 --- a/identitygovernance/5c0659bc00f1cdac98c10788d74faddcd32ef9feb279d5aa7be43920c5c26070.go +++ b/identitygovernance/5c0659bc00f1cdac98c10788d74faddcd32ef9feb279d5aa7be43920c5c26070.go @@ -40,6 +40,7 @@ func NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResults return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResult return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResult return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/5d8f8d74e66d2b39f9be5961556b503f8316de16c1acc73b80049e4fcd8da2ce.go b/identitygovernance/5d8f8d74e66d2b39f9be5961556b503f8316de16c1acc73b80049e4fcd8da2ce.go index dbf81992112..485d967b9d6 100644 --- a/identitygovernance/5d8f8d74e66d2b39f9be5961556b503f8316de16c1acc73b80049e4fcd8da2ce.go +++ b/identitygovernance/5d8f8d74e66d2b39f9be5961556b503f8316de16c1acc73b80049e4fcd8da2ce.go @@ -41,6 +41,7 @@ func NewLifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskProc return NewLifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderInternal(urlParams, requestAdapter) } // Get the unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskPro return NewLifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation the unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskPro return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/5fd14d6a1a9232561e8be3042c0f18ccba76b90c1e6df47a152b17beab1957fa.go b/identitygovernance/5fd14d6a1a9232561e8be3042c0f18ccba76b90c1e6df47a152b17beab1957fa.go index 46a7de700d6..391a94f0e1e 100644 --- a/identitygovernance/5fd14d6a1a9232561e8be3042c0f18ccba76b90c1e6df47a152b17beab1957fa.go +++ b/identitygovernance/5fd14d6a1a9232561e8be3042c0f18ccba76b90c1e6df47a152b17beab1957fa.go @@ -40,6 +40,7 @@ func NewLifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubjectS return NewLifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubject return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubject return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/60de4858c170b83c1d25458acd2e75e1f92547dd632b19d4e205305bc37ec246.go b/identitygovernance/60de4858c170b83c1d25458acd2e75e1f92547dd632b19d4e205305bc37ec246.go index a1ef5b6dc59..eb06720f086 100644 --- a/identitygovernance/60de4858c170b83c1d25458acd2e75e1f92547dd632b19d4e205305bc37ec246.go +++ b/identitygovernance/60de4858c170b83c1d25458acd2e75e1f92547dd632b19d4e205305bc37ec246.go @@ -48,6 +48,7 @@ func NewLifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectMailboxSe return NewLifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectMailboxS return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectMailboxS return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectMailboxS return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectMailboxS return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/61bb789e4263e1d0780a7eb799a76ea5f6289903019282c348508db41d169f72.go b/identitygovernance/61bb789e4263e1d0780a7eb799a76ea5f6289903019282c348508db41d169f72.go index 27b32b820c7..b217bfb9e15 100644 --- a/identitygovernance/61bb789e4263e1d0780a7eb799a76ea5f6289903019282c348508db41d169f72.go +++ b/identitygovernance/61bb789e4263e1d0780a7eb799a76ea5f6289903019282c348508db41d169f72.go @@ -48,6 +48,7 @@ func NewLifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubjectM return NewLifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubject return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubject return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubject return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubject return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/62efa7efe9f1d49439593d549846130541cb80c4f9ea9c6883017b13852d08dc.go b/identitygovernance/62efa7efe9f1d49439593d549846130541cb80c4f9ea9c6883017b13852d08dc.go index 8958289075f..95136d04705 100644 --- a/identitygovernance/62efa7efe9f1d49439593d549846130541cb80c4f9ea9c6883017b13852d08dc.go +++ b/identitygovernance/62efa7efe9f1d49439593d549846130541cb80c4f9ea9c6883017b13852d08dc.go @@ -40,6 +40,7 @@ func NewLifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsIte return NewLifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *LifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsIt return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *LifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsIt return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) { return NewLifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/6410057bebde4513abd6a4e29573845a29f45e8c273ef10135e283f23c757233.go b/identitygovernance/6410057bebde4513abd6a4e29573845a29f45e8c273ef10135e283f23c757233.go index f0de29d990d..4472e0cb43c 100644 --- a/identitygovernance/6410057bebde4513abd6a4e29573845a29f45e8c273ef10135e283f23c757233.go +++ b/identitygovernance/6410057bebde4513abd6a4e29573845a29f45e8c273ef10135e283f23c757233.go @@ -40,6 +40,7 @@ func NewLifecycleWorkflowsCustomTaskExtensionsItemCreatedByServiceProvisioningEr return NewLifecycleWorkflowsCustomTaskExtensionsItemCreatedByServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsCustomTaskExtensionsItemCreatedByServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsCustomTaskExtensionsItemCreatedByServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *LifecycleWorkflowsCustomTaskExtensionsItemCreatedByServiceProvisioningE return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsCustomTaskExtensionsItemCreatedByServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsCustomTaskExtensionsItemCreatedByServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *LifecycleWorkflowsCustomTaskExtensionsItemCreatedByServiceProvisioningE return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsCustomTaskExtensionsItemCreatedByServiceProvisioningErrorsCountRequestBuilder when successful func (m *LifecycleWorkflowsCustomTaskExtensionsItemCreatedByServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsCustomTaskExtensionsItemCreatedByServiceProvisioningErrorsCountRequestBuilder) { return NewLifecycleWorkflowsCustomTaskExtensionsItemCreatedByServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/64d12869aa73063a4aeec647997fec4ec78bf7d660902316da303d07f08c143b.go b/identitygovernance/64d12869aa73063a4aeec647997fec4ec78bf7d660902316da303d07f08c143b.go index 9cfe0bc57b2..eb486db6ab0 100644 --- a/identitygovernance/64d12869aa73063a4aeec647997fec4ec78bf7d660902316da303d07f08c143b.go +++ b/identitygovernance/64d12869aa73063a4aeec647997fec4ec78bf7d660902316da303d07f08c143b.go @@ -58,6 +58,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResul return NewLifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResul return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResul return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/6522a30fae74b4041dd603fa7c1052a4da2503d93f785321dbb1444cb3e29ca0.go b/identitygovernance/6522a30fae74b4041dd603fa7c1052a4da2503d93f785321dbb1444cb3e29ca0.go index 4407f5a4d20..e4f695beb6c 100644 --- a/identitygovernance/6522a30fae74b4041dd603fa7c1052a4da2503d93f785321dbb1444cb3e29ca0.go +++ b/identitygovernance/6522a30fae74b4041dd603fa7c1052a4da2503d93f785321dbb1444cb3e29ca0.go @@ -40,6 +40,7 @@ func NewLifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingRe return NewLifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingR return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/65650675bcad94bc7201924db06f2393941a65f7cd9e93ebfeca8dec67e8cd2d.go b/identitygovernance/65650675bcad94bc7201924db06f2393941a65f7cd9e93ebfeca8dec67e8cd2d.go index f971a6bfcee..9aaeff0c56b 100644 --- a/identitygovernance/65650675bcad94bc7201924db06f2393941a65f7cd9e93ebfeca8dec67e8cd2d.go +++ b/identitygovernance/65650675bcad94bc7201924db06f2393941a65f7cd9e93ebfeca8dec67e8cd2d.go @@ -41,6 +41,7 @@ func NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResults return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderInternal(urlParams, requestAdapter) } // Get the unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResult return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation the unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResult return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/687b90ccd336476a37a361536fdc56e0936d9e0eac5543e39f753c73a8d95b3a.go b/identitygovernance/687b90ccd336476a37a361536fdc56e0936d9e0eac5543e39f753c73a8d95b3a.go index ebdd98af0d1..d51044b90a5 100644 --- a/identitygovernance/687b90ccd336476a37a361536fdc56e0936d9e0eac5543e39f753c73a8d95b3a.go +++ b/identitygovernance/687b90ccd336476a37a361536fdc56e0936d9e0eac5543e39f753c73a8d95b3a.go @@ -41,6 +41,7 @@ func NewLifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResult return NewLifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectRequestBuilderInternal(urlParams, requestAdapter) } // Get the unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *LifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResul return NewLifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation the unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *LifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResul return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/6a471c0f5c366eb2a03e1ac5ea7067f521cbeb4151a8ba78f4f68e1e3e34635a.go b/identitygovernance/6a471c0f5c366eb2a03e1ac5ea7067f521cbeb4151a8ba78f4f68e1e3e34635a.go index 850789f9bca..36d128e50d7 100644 --- a/identitygovernance/6a471c0f5c366eb2a03e1ac5ea7067f521cbeb4151a8ba78f4f68e1e3e34635a.go +++ b/identitygovernance/6a471c0f5c366eb2a03e1ac5ea7067f521cbeb4151a8ba78f4f68e1e3e34635a.go @@ -48,6 +48,7 @@ func NewLifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectM return NewLifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *LifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubject return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *LifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubject return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *LifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubject return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *LifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubject return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/6a49f8c304b51ec3ebaa915d33a8629b7cfc07c3540c48b97534a3d4f91de40a.go b/identitygovernance/6a49f8c304b51ec3ebaa915d33a8629b7cfc07c3540c48b97534a3d4f91de40a.go new file mode 100644 index 00000000000..911f1357f63 --- /dev/null +++ b/identitygovernance/6a49f8c304b51ec3ebaa915d33a8629b7cfc07c3540c48b97534a3d4f91de40a.go @@ -0,0 +1,89 @@ +package identitygovernance + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" +) + +type EntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsPostResponse struct { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponse +} +// NewEntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsPostResponse instantiates a new EntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsPostResponse and sets the default values. +func NewEntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsPostResponse()(*EntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsPostResponse) { + m := &EntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsPostResponse{ + BaseCollectionPaginationCountResponse: *ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateEntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsPostResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateEntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsPostResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewEntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsPostResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *EntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsPostResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateAccessPackageAssignmentRequestRequirementsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageAssignmentRequestRequirementsable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageAssignmentRequestRequirementsable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []AccessPackageAssignmentRequestRequirementsable when successful +func (m *EntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsPostResponse) GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageAssignmentRequestRequirementsable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageAssignmentRequestRequirementsable) + } + return nil +} +// Serialize serializes information the current object +func (m *EntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsPostResponse) 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 *EntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsPostResponse) SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageAssignmentRequestRequirementsable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type EntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsPostResponseable interface { + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageAssignmentRequestRequirementsable) + SetValue(value []ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageAssignmentRequestRequirementsable)() +} diff --git a/identitygovernance/6afacd165a6caa5c51ec1b55a3bae7f01e042507a7edc5530b294d890449544e.go b/identitygovernance/6afacd165a6caa5c51ec1b55a3bae7f01e042507a7edc5530b294d890449544e.go index ebbed5100bc..903ae29b94c 100644 --- a/identitygovernance/6afacd165a6caa5c51ec1b55a3bae7f01e042507a7edc5530b294d890449544e.go +++ b/identitygovernance/6afacd165a6caa5c51ec1b55a3bae7f01e042507a7edc5530b294d890449544e.go @@ -58,6 +58,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskPro return NewLifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskPro return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskPro return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/6b0c4cdbeba8c5911efb34f4d1ba20c5c7d837c6d5a47f85c3e45ee6650602cb.go b/identitygovernance/6b0c4cdbeba8c5911efb34f4d1ba20c5c7d837c6d5a47f85c3e45ee6650602cb.go index cd5b29e0949..6dccb5d8958 100644 --- a/identitygovernance/6b0c4cdbeba8c5911efb34f4d1ba20c5c7d837c6d5a47f85c3e45ee6650602cb.go +++ b/identitygovernance/6b0c4cdbeba8c5911efb34f4d1ba20c5c7d837c6d5a47f85c3e45ee6650602cb.go @@ -58,6 +58,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByServiceProvisi return NewLifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByServiceProvisi return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByServiceProvisi return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByServiceProvisioningErrorsRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByServiceProvisioningErrorsRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/6b848081308acf36023b205f06c92fc1c1682b10da82e8427bc13cffaf3c62b8.go b/identitygovernance/6b848081308acf36023b205f06c92fc1c1682b10da82e8427bc13cffaf3c62b8.go index 8f0e44720c2..2980fd010c9 100644 --- a/identitygovernance/6b848081308acf36023b205f06c92fc1c1682b10da82e8427bc13cffaf3c62b8.go +++ b/identitygovernance/6b848081308acf36023b205f06c92fc1c1682b10da82e8427bc13cffaf3c62b8.go @@ -48,6 +48,7 @@ func NewLifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubject return NewLifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *LifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjec return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *LifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjec return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *LifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjec return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *LifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjec return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/70310baa5e9ac851b9877346f8718aa1c89dd578a8aa9486954c00d9e1383b33.go b/identitygovernance/70310baa5e9ac851b9877346f8718aa1c89dd578a8aa9486954c00d9e1383b33.go index b94c8f392ec..7f133d753e4 100644 --- a/identitygovernance/70310baa5e9ac851b9877346f8718aa1c89dd578a8aa9486954c00d9e1383b33.go +++ b/identitygovernance/70310baa5e9ac851b9877346f8718aa1c89dd578a8aa9486954c00d9e1383b33.go @@ -58,6 +58,7 @@ func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskPro return NewLifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskPro return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskPro return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/7556aab0bb04ce8ff89a41bd43bd59f60986cef6e826d3d9b2d3ea77989438ed.go b/identitygovernance/7556aab0bb04ce8ff89a41bd43bd59f60986cef6e826d3d9b2d3ea77989438ed.go index 0659b6b9d92..1eb251ca6e7 100644 --- a/identitygovernance/7556aab0bb04ce8ff89a41bd43bd59f60986cef6e826d3d9b2d3ea77989438ed.go +++ b/identitygovernance/7556aab0bb04ce8ff89a41bd43bd59f60986cef6e826d3d9b2d3ea77989438ed.go @@ -48,6 +48,7 @@ func NewLifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItemS return NewLifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *LifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItem return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *LifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItem return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *LifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItem return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *LifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItem return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/76b0b0105a7e62e53d144331a89522485b20aa2e6f0d1afd32adb9231d07de92.go b/identitygovernance/76b0b0105a7e62e53d144331a89522485b20aa2e6f0d1afd32adb9231d07de92.go index 91f5b1d4f9b..5ccda6aeefe 100644 --- a/identitygovernance/76b0b0105a7e62e53d144331a89522485b20aa2e6f0d1afd32adb9231d07de92.go +++ b/identitygovernance/76b0b0105a7e62e53d144331a89522485b20aa2e6f0d1afd32adb9231d07de92.go @@ -58,6 +58,7 @@ func (m *LifecycleWorkflowsCustomTaskExtensionsItemCreatedByServiceProvisioningE return NewLifecycleWorkflowsCustomTaskExtensionsItemCreatedByServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsCustomTaskExtensionsItemCreatedByServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsCustomTaskExtensionsItemCreatedByServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *LifecycleWorkflowsCustomTaskExtensionsItemCreatedByServiceProvisioningE return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsCustomTaskExtensionsItemCreatedByServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsCustomTaskExtensionsItemCreatedByServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *LifecycleWorkflowsCustomTaskExtensionsItemCreatedByServiceProvisioningE return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsCustomTaskExtensionsItemCreatedByServiceProvisioningErrorsRequestBuilder when successful func (m *LifecycleWorkflowsCustomTaskExtensionsItemCreatedByServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsCustomTaskExtensionsItemCreatedByServiceProvisioningErrorsRequestBuilder) { return NewLifecycleWorkflowsCustomTaskExtensionsItemCreatedByServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/7963c24a5c9e81bae2eeeeb22d4317223d2433026f9e33f625565c436a769617.go b/identitygovernance/7963c24a5c9e81bae2eeeeb22d4317223d2433026f9e33f625565c436a769617.go index 9cbf4b10e79..0f976f3ea9b 100644 --- a/identitygovernance/7963c24a5c9e81bae2eeeeb22d4317223d2433026f9e33f625565c436a769617.go +++ b/identitygovernance/7963c24a5c9e81bae2eeeeb22d4317223d2433026f9e33f625565c436a769617.go @@ -54,12 +54,12 @@ func NewEntitlementManagementAccessPackageCatalogsItemCustomAccessPackageWorkflo urlParams["request-raw-url"] = rawUrl return NewEntitlementManagementAccessPackageCatalogsItemCustomAccessPackageWorkflowExtensionsCustomAccessPackageWorkflowExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete an accessPackageAssignmentRequestWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies:1. First retrieve the accessPackageCatalogId by calling the Get accessPackageAssignmentPolicies operation and appending ?$expand=accessPackage($expand=accessPackageCatalog) to the query. For example, https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/accessPackageAssignmentPolicies?$expand=accessPackage($expand=accessPackageCatalog).2. Use the access package catalog ID and retrieve the ID of the accessPackageCustomWorkflowExtension object that you want to delete by running the List accessPackageCustomWorkflowExtensions operation.3. Call the Update accessPackageAssignmentPolicy operation to remove the custom workflow extension object from the policy. For an example, see Example 3: Remove the customExtensionStageSettings from a policy. +// Delete delete an accessPackageAssignmentWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies:1. First retrieve the accessPackageCatalogId by calling the Get accessPackageAssignmentPolicies operation and appending ?$expand=accessPackage($expand=accessPackageCatalog) to the query. For example, https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/accessPackageAssignmentPolicies?$expand=accessPackage($expand=accessPackageCatalog).2. Use the access package catalog ID and retrieve the ID of the accessPackageCustomWorkflowExtension object that you want to delete by running the List accessPackageCustomWorkflowExtensions operation.3. Call the Update accessPackageAssignmentPolicy operation to remove the custom workflow extension object from the policy. For an example, see Example 3: Remove the customExtensionStageSettings from a policy. // Deprecated: as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions // 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/accesspackageassignmentrequestworkflowextension-delete?view=graph-rest-beta +// [Find more info here]: https://learn.microsoft.com/graph/api/accesspackageassignmentworkflowextension-delete?view=graph-rest-beta func (m *EntitlementManagementAccessPackageCatalogsItemCustomAccessPackageWorkflowExtensionsCustomAccessPackageWorkflowExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackageCatalogsItemCustomAccessPackageWorkflowExtensionsCustomAccessPackageWorkflowExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -122,7 +122,7 @@ func (m *EntitlementManagementAccessPackageCatalogsItemCustomAccessPackageWorkfl } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CustomAccessPackageWorkflowExtensionable), nil } -// ToDeleteRequestInformation delete an accessPackageAssignmentRequestWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies:1. First retrieve the accessPackageCatalogId by calling the Get accessPackageAssignmentPolicies operation and appending ?$expand=accessPackage($expand=accessPackageCatalog) to the query. For example, https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/accessPackageAssignmentPolicies?$expand=accessPackage($expand=accessPackageCatalog).2. Use the access package catalog ID and retrieve the ID of the accessPackageCustomWorkflowExtension object that you want to delete by running the List accessPackageCustomWorkflowExtensions operation.3. Call the Update accessPackageAssignmentPolicy operation to remove the custom workflow extension object from the policy. For an example, see Example 3: Remove the customExtensionStageSettings from a policy. +// ToDeleteRequestInformation delete an accessPackageAssignmentWorkflowExtension object. The custom workflow extension must first be removed from any associated policies before it can be deleted. Follow these steps to remove the custom workflow extension from any associated policies:1. First retrieve the accessPackageCatalogId by calling the Get accessPackageAssignmentPolicies operation and appending ?$expand=accessPackage($expand=accessPackageCatalog) to the query. For example, https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/accessPackageAssignmentPolicies?$expand=accessPackage($expand=accessPackageCatalog).2. Use the access package catalog ID and retrieve the ID of the accessPackageCustomWorkflowExtension object that you want to delete by running the List accessPackageCustomWorkflowExtensions operation.3. Call the Update accessPackageAssignmentPolicy operation to remove the custom workflow extension object from the policy. For an example, see Example 3: Remove the customExtensionStageSettings from a policy. // Deprecated: as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions // returns a *RequestInformation when successful func (m *EntitlementManagementAccessPackageCatalogsItemCustomAccessPackageWorkflowExtensionsCustomAccessPackageWorkflowExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackageCatalogsItemCustomAccessPackageWorkflowExtensionsCustomAccessPackageWorkflowExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { diff --git a/identitygovernance/7ed4b7137fba4ae5a87a4d3c3241e5d8a00b30e42f65823aae2b0bbfce9c1ed1.go b/identitygovernance/7ed4b7137fba4ae5a87a4d3c3241e5d8a00b30e42f65823aae2b0bbfce9c1ed1.go index b78701c9c8d..aeeadc1d41d 100644 --- a/identitygovernance/7ed4b7137fba4ae5a87a4d3c3241e5d8a00b30e42f65823aae2b0bbfce9c1ed1.go +++ b/identitygovernance/7ed4b7137fba4ae5a87a4d3c3241e5d8a00b30e42f65823aae2b0bbfce9c1ed1.go @@ -58,6 +58,7 @@ func (m *LifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByServiceProvisio return NewLifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *LifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByServiceProvisio return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *LifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByServiceProvisio return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByServiceProvisioningErrorsRequestBuilder when successful func (m *LifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByServiceProvisioningErrorsRequestBuilder) { return NewLifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/8293a2126245c0b9207fdf0bc9d73b1405c115d9342631ea1db2ff4250290b42.go b/identitygovernance/8293a2126245c0b9207fdf0bc9d73b1405c115d9342631ea1db2ff4250290b42.go index 34a2ce8b010..49e0d72cfcf 100644 --- a/identitygovernance/8293a2126245c0b9207fdf0bc9d73b1405c115d9342631ea1db2ff4250290b42.go +++ b/identitygovernance/8293a2126245c0b9207fdf0bc9d73b1405c115d9342631ea1db2ff4250290b42.go @@ -40,6 +40,7 @@ func NewLifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessing return NewLifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessin return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessin return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/831f49bde29269b27078fbfaad90b6da6749ec1454db2f63e2a2a7684c0f181f.go b/identitygovernance/831f49bde29269b27078fbfaad90b6da6749ec1454db2f63e2a2a7684c0f181f.go index 8a301e4b1bf..79ae557f889 100644 --- a/identitygovernance/831f49bde29269b27078fbfaad90b6da6749ec1454db2f63e2a2a7684c0f181f.go +++ b/identitygovernance/831f49bde29269b27078fbfaad90b6da6749ec1454db2f63e2a2a7684c0f181f.go @@ -40,6 +40,7 @@ func NewLifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectS return NewLifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *LifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubject return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *LifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubject return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/83ee5479d2ce49cb47cb5de0093e7a9d08b9c601125cd8be9e739874fe11fc44.go b/identitygovernance/83ee5479d2ce49cb47cb5de0093e7a9d08b9c601125cd8be9e739874fe11fc44.go index 430c2ea05ca..50e0045900a 100644 --- a/identitygovernance/83ee5479d2ce49cb47cb5de0093e7a9d08b9c601125cd8be9e739874fe11fc44.go +++ b/identitygovernance/83ee5479d2ce49cb47cb5de0093e7a9d08b9c601125cd8be9e739874fe11fc44.go @@ -41,6 +41,7 @@ func NewLifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTask return NewLifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderInternal(urlParams, requestAdapter) } // Get the unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTas return NewLifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation the unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTas return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/88298b39e2ae73e3974bd7aa920206d2f4b8ee34298d419f60b44f575f5cf4b4.go b/identitygovernance/88298b39e2ae73e3974bd7aa920206d2f4b8ee34298d419f60b44f575f5cf4b4.go index 9422c9ad661..691fa3fb49d 100644 --- a/identitygovernance/88298b39e2ae73e3974bd7aa920206d2f4b8ee34298d419f60b44f575f5cf4b4.go +++ b/identitygovernance/88298b39e2ae73e3974bd7aa920206d2f4b8ee34298d419f60b44f575f5cf4b4.go @@ -41,6 +41,7 @@ func NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResults return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectRequestBuilderInternal(urlParams, requestAdapter) } // Get the unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResult return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation the unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResult return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/8cf8ea79e4b866449f86cad2174d8ef06ccf99caa2916bf62e8053cc8dcce75d.go b/identitygovernance/8cf8ea79e4b866449f86cad2174d8ef06ccf99caa2916bf62e8053cc8dcce75d.go index ba69e381315..560b000978d 100644 --- a/identitygovernance/8cf8ea79e4b866449f86cad2174d8ef06ccf99caa2916bf62e8053cc8dcce75d.go +++ b/identitygovernance/8cf8ea79e4b866449f86cad2174d8ef06ccf99caa2916bf62e8053cc8dcce75d.go @@ -40,6 +40,7 @@ func NewLifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByServiceProvision return NewLifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *LifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByServiceProvisio return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *LifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByServiceProvisio return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilder when successful func (m *LifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilder) { return NewLifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/8e9b655130bb1270b3a9045e47209d71be789c7768213e6ebacecede3cb91829.go b/identitygovernance/8e9b655130bb1270b3a9045e47209d71be789c7768213e6ebacecede3cb91829.go index 9b97e77e8d2..ba0680561ee 100644 --- a/identitygovernance/8e9b655130bb1270b3a9045e47209d71be789c7768213e6ebacecede3cb91829.go +++ b/identitygovernance/8e9b655130bb1270b3a9045e47209d71be789c7768213e6ebacecede3cb91829.go @@ -58,6 +58,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResult return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResult return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResult return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/921795295b6018a287126988fb9b70dda0d7097228a01e29661213fe1ba49354.go b/identitygovernance/921795295b6018a287126988fb9b70dda0d7097228a01e29661213fe1ba49354.go index 1a7b80173a6..59b7b2fb46e 100644 --- a/identitygovernance/921795295b6018a287126988fb9b70dda0d7097228a01e29661213fe1ba49354.go +++ b/identitygovernance/921795295b6018a287126988fb9b70dda0d7097228a01e29661213fe1ba49354.go @@ -58,6 +58,7 @@ func (m *LifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResul return NewLifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *LifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResul return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *LifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResul return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/925eb69ddab97455f1b016dbe877f3cc251be6a2ae39fbaf9b787136482a87bb.go b/identitygovernance/925eb69ddab97455f1b016dbe877f3cc251be6a2ae39fbaf9b787136482a87bb.go index e1c97b7ec76..aa35a3d2666 100644 --- a/identitygovernance/925eb69ddab97455f1b016dbe877f3cc251be6a2ae39fbaf9b787136482a87bb.go +++ b/identitygovernance/925eb69ddab97455f1b016dbe877f3cc251be6a2ae39fbaf9b787136482a87bb.go @@ -58,6 +58,7 @@ func (m *LifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByServiceProvisi return NewLifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *LifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByServiceProvisi return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *LifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByServiceProvisi return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByServiceProvisioningErrorsRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByServiceProvisioningErrorsRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/92971528897d0db1e00536982d3b014e978435d8ac3496481f09653d3ae422fd.go b/identitygovernance/92971528897d0db1e00536982d3b014e978435d8ac3496481f09653d3ae422fd.go index da37ab0a531..19435395cc2 100644 --- a/identitygovernance/92971528897d0db1e00536982d3b014e978435d8ac3496481f09653d3ae422fd.go +++ b/identitygovernance/92971528897d0db1e00536982d3b014e978435d8ac3496481f09653d3ae422fd.go @@ -40,6 +40,7 @@ func NewLifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTask return NewLifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTas return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTas return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/950fc03ebf83ce000faa3ea868eaacf147d0f1ba2fcd2227591bac25618f2049.go b/identitygovernance/950fc03ebf83ce000faa3ea868eaacf147d0f1ba2fcd2227591bac25618f2049.go index b56d40f0872..33e5ba06cf1 100644 --- a/identitygovernance/950fc03ebf83ce000faa3ea868eaacf147d0f1ba2fcd2227591bac25618f2049.go +++ b/identitygovernance/950fc03ebf83ce000faa3ea868eaacf147d0f1ba2fcd2227591bac25618f2049.go @@ -41,6 +41,7 @@ func NewLifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskProc return NewLifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectRequestBuilderInternal(urlParams, requestAdapter) } // Get the unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskPro return NewLifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation the unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskPro return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemTasksItemTaskProcessingResultsItemSubjectRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/a1f71fed8d4845503189299960875431ac4988d700f44e1d93974c71dd8d5021.go b/identitygovernance/a1f71fed8d4845503189299960875431ac4988d700f44e1d93974c71dd8d5021.go index 33082faa9c3..5b2dc96f5c3 100644 --- a/identitygovernance/a1f71fed8d4845503189299960875431ac4988d700f44e1d93974c71dd8d5021.go +++ b/identitygovernance/a1f71fed8d4845503189299960875431ac4988d700f44e1d93974c71dd8d5021.go @@ -40,6 +40,7 @@ func NewLifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItemS return NewLifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *LifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItem return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *LifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItem return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/a2e4c236a08759bbc2b20e27ddfeac037de785b18ae2df0b5a91b2200d58e82a.go b/identitygovernance/a2e4c236a08759bbc2b20e27ddfeac037de785b18ae2df0b5a91b2200d58e82a.go index 8fcbd9d4aec..c63c347f835 100644 --- a/identitygovernance/a2e4c236a08759bbc2b20e27ddfeac037de785b18ae2df0b5a91b2200d58e82a.go +++ b/identitygovernance/a2e4c236a08759bbc2b20e27ddfeac037de785b18ae2df0b5a91b2200d58e82a.go @@ -48,6 +48,7 @@ func NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResults return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResult return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResult return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResult return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResult return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemSubjectMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/a2f74d8de0357fdd17d47bfa97bb916c727407e1f74f38202dd8278e988a0582.go b/identitygovernance/a2f74d8de0357fdd17d47bfa97bb916c727407e1f74f38202dd8278e988a0582.go index 628b0419c88..6ccb9991356 100644 --- a/identitygovernance/a2f74d8de0357fdd17d47bfa97bb916c727407e1f74f38202dd8278e988a0582.go +++ b/identitygovernance/a2f74d8de0357fdd17d47bfa97bb916c727407e1f74f38202dd8278e988a0582.go @@ -41,6 +41,7 @@ func NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResults return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemSubjectRequestBuilderInternal(urlParams, requestAdapter) } // Get the unique identifier of the AAD user targeted for the taskProcessingResult.Supports $filter(eq, ne) and $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemSubjectRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResult return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation the unique identifier of the AAD user targeted for the taskProcessingResult.Supports $filter(eq, ne) and $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemSubjectRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResult return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemSubjectRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemSubjectRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemSubjectRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemSubjectRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/a3efbc08fefe76df60d2198fe15288d9fe330451f2927414f50db4b10fa12f78.go b/identitygovernance/a3efbc08fefe76df60d2198fe15288d9fe330451f2927414f50db4b10fa12f78.go index 428e8c7183a..97779d1b9f9 100644 --- a/identitygovernance/a3efbc08fefe76df60d2198fe15288d9fe330451f2927414f50db4b10fa12f78.go +++ b/identitygovernance/a3efbc08fefe76df60d2198fe15288d9fe330451f2927414f50db4b10fa12f78.go @@ -58,6 +58,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessin return NewLifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessin return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessin return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/af53ad4f81e0036d92669444b4f8b1a57bc17c42d551af0278c0dec00319bba8.go b/identitygovernance/af53ad4f81e0036d92669444b4f8b1a57bc17c42d551af0278c0dec00319bba8.go index 5957fef28d5..abddd767aca 100644 --- a/identitygovernance/af53ad4f81e0036d92669444b4f8b1a57bc17c42d551af0278c0dec00319bba8.go +++ b/identitygovernance/af53ad4f81e0036d92669444b4f8b1a57bc17c42d551af0278c0dec00319bba8.go @@ -58,6 +58,7 @@ func (m *LifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjec return NewLifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *LifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjec return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *LifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjec return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/afcedbe56a9f5948fb37a4e78c1f2a0d8fe968cc8d63ea85efb149abc89dd87b.go b/identitygovernance/afcedbe56a9f5948fb37a4e78c1f2a0d8fe968cc8d63ea85efb149abc89dd87b.go new file mode 100644 index 00000000000..f0ba38ae789 --- /dev/null +++ b/identitygovernance/afcedbe56a9f5948fb37a4e78c1f2a0d8fe968cc8d63ea85efb149abc89dd87b.go @@ -0,0 +1,95 @@ +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// EntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsRequestBuilder provides operations to call the getApplicablePolicyRequirements method. +type EntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// EntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type EntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewEntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsRequestBuilderInternal instantiates a new EntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsRequestBuilder and sets the default values. +func NewEntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*EntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsRequestBuilder) { + m := &EntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages(uniqueName='{uniqueName}')/getApplicablePolicyRequirements", pathParameters), + } + return m +} +// NewEntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsRequestBuilder instantiates a new EntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsRequestBuilder and sets the default values. +func NewEntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*EntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewEntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsRequestBuilderInternal(urlParams, requestAdapter) +} +// Post in Microsoft Entra entitlement management, this action retrieves a list of accessPackageAssignmentRequestRequirements objects that the currently signed-in user can use to create an accessPackageAssignmentRequest. Each requirement object corresponds to an access package assignment policy that the currently signed-in user is allowed to request an assignment for. +// Deprecated: This method is obsolete. Use PostAsGetApplicablePolicyRequirementsPostResponse instead. +// returns a EntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsResponseable 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/accesspackage-getapplicablepolicyrequirements?view=graph-rest-beta +func (m *EntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsRequestBuilder) Post(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsRequestBuilderPostRequestConfiguration)(EntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateEntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(EntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsResponseable), nil +} +// PostAsGetApplicablePolicyRequirementsPostResponse in Microsoft Entra entitlement management, this action retrieves a list of accessPackageAssignmentRequestRequirements objects that the currently signed-in user can use to create an accessPackageAssignmentRequest. Each requirement object corresponds to an access package assignment policy that the currently signed-in user is allowed to request an assignment for. +// returns a EntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsPostResponseable 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/accesspackage-getapplicablepolicyrequirements?view=graph-rest-beta +func (m *EntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsRequestBuilder) PostAsGetApplicablePolicyRequirementsPostResponse(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsRequestBuilderPostRequestConfiguration)(EntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsPostResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateEntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsPostResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(EntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsPostResponseable), nil +} +// ToPostRequestInformation in Microsoft Entra entitlement management, this action retrieves a list of accessPackageAssignmentRequestRequirements objects that the currently signed-in user can use to create an accessPackageAssignmentRequest. Each requirement object corresponds to an access package assignment policy that the currently signed-in user is allowed to request an assignment for. +// returns a *RequestInformation when successful +func (m *EntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *EntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsRequestBuilder when successful +func (m *EntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsRequestBuilder) WithUrl(rawUrl string)(*EntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsRequestBuilder) { + return NewEntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/b1f501e5898eadd7ddfc4e30ba2294367e9d7c7c6230dd90735fb8df0a184096.go b/identitygovernance/b1f501e5898eadd7ddfc4e30ba2294367e9d7c7c6230dd90735fb8df0a184096.go index cf320530a18..90a0644c946 100644 --- a/identitygovernance/b1f501e5898eadd7ddfc4e30ba2294367e9d7c7c6230dd90735fb8df0a184096.go +++ b/identitygovernance/b1f501e5898eadd7ddfc4e30ba2294367e9d7c7c6230dd90735fb8df0a184096.go @@ -18,7 +18,7 @@ type EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowEx // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilderGetQueryParameters read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. +// EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilderGetQueryParameters read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. type EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -71,13 +71,13 @@ func (m *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkfl } return nil } -// Get read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. +// Get read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. // Deprecated: as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions // 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/accesspackageassignmentrequestworkflowextension-get?view=graph-rest-beta +// [Find more info here]: https://learn.microsoft.com/graph/api/accesspackageassignmentworkflowextension-get?view=graph-rest-beta func (m *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CustomCalloutExtensionable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -131,7 +131,7 @@ func (m *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkfl requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. +// ToGetRequestInformation read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. // Deprecated: as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions // returns a *RequestInformation when successful func (m *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackageCatalogsItemAccessPackageCustomWorkflowExtensionsCustomCalloutExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { diff --git a/identitygovernance/bd65cb87a6884d2e8caa90a8f88018c5e22fe8690f76f93e4e0dec764cafbdfc.go b/identitygovernance/bd65cb87a6884d2e8caa90a8f88018c5e22fe8690f76f93e4e0dec764cafbdfc.go index a08c90eae62..346b2caf490 100644 --- a/identitygovernance/bd65cb87a6884d2e8caa90a8f88018c5e22fe8690f76f93e4e0dec764cafbdfc.go +++ b/identitygovernance/bd65cb87a6884d2e8caa90a8f88018c5e22fe8690f76f93e4e0dec764cafbdfc.go @@ -40,6 +40,7 @@ func NewLifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResult return NewLifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResul return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResul return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/bed8c09ca8a6e90f97fca742ca7396cc1602b4923d0130c8fc2a43c6d6841eb9.go b/identitygovernance/bed8c09ca8a6e90f97fca742ca7396cc1602b4923d0130c8fc2a43c6d6841eb9.go index 61f703d1cf4..5dbe92dd4cd 100644 --- a/identitygovernance/bed8c09ca8a6e90f97fca742ca7396cc1602b4923d0130c8fc2a43c6d6841eb9.go +++ b/identitygovernance/bed8c09ca8a6e90f97fca742ca7396cc1602b4923d0130c8fc2a43c6d6841eb9.go @@ -58,6 +58,7 @@ func (m *LifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsIt return NewLifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *LifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsIt return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *LifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsIt return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) { return NewLifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/c151fca4cccff3cd4d7870bf617641dfc6e73dcba5e2509aa56c18cbdb053605.go b/identitygovernance/c151fca4cccff3cd4d7870bf617641dfc6e73dcba5e2509aa56c18cbdb053605.go index e6fe2be206d..35fe95f6913 100644 --- a/identitygovernance/c151fca4cccff3cd4d7870bf617641dfc6e73dcba5e2509aa56c18cbdb053605.go +++ b/identitygovernance/c151fca4cccff3cd4d7870bf617641dfc6e73dcba5e2509aa56c18cbdb053605.go @@ -41,6 +41,7 @@ func NewLifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsIte return NewLifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsItemSubjectRequestBuilderInternal(urlParams, requestAdapter) } // Get the unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsItemSubjectRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *LifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsIt return NewLifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation the unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsItemSubjectRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *LifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsIt return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsItemSubjectRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsItemSubjectRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsItemSubjectRequestBuilder) { return NewLifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsItemSubjectRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/c83d35bc9b45e56e7ddfdd9bf57752997506adc93947b28669bc512c673ccb87.go b/identitygovernance/c83d35bc9b45e56e7ddfdd9bf57752997506adc93947b28669bc512c673ccb87.go new file mode 100644 index 00000000000..1b6ab84ae02 --- /dev/null +++ b/identitygovernance/c83d35bc9b45e56e7ddfdd9bf57752997506adc93947b28669bc512c673ccb87.go @@ -0,0 +1,84 @@ +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// EntitlementManagementAccessPackagesItemAccessPackagesIncompatibleWithWithUniqueNameRequestBuilder provides operations to manage the accessPackagesIncompatibleWith property of the microsoft.graph.accessPackage entity. +type EntitlementManagementAccessPackagesItemAccessPackagesIncompatibleWithWithUniqueNameRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// EntitlementManagementAccessPackagesItemAccessPackagesIncompatibleWithWithUniqueNameRequestBuilderGetQueryParameters the access packages that are incompatible with this package. Read-only. +type EntitlementManagementAccessPackagesItemAccessPackagesIncompatibleWithWithUniqueNameRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// EntitlementManagementAccessPackagesItemAccessPackagesIncompatibleWithWithUniqueNameRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type EntitlementManagementAccessPackagesItemAccessPackagesIncompatibleWithWithUniqueNameRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *EntitlementManagementAccessPackagesItemAccessPackagesIncompatibleWithWithUniqueNameRequestBuilderGetQueryParameters +} +// NewEntitlementManagementAccessPackagesItemAccessPackagesIncompatibleWithWithUniqueNameRequestBuilderInternal instantiates a new EntitlementManagementAccessPackagesItemAccessPackagesIncompatibleWithWithUniqueNameRequestBuilder and sets the default values. +func NewEntitlementManagementAccessPackagesItemAccessPackagesIncompatibleWithWithUniqueNameRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, uniqueName *string)(*EntitlementManagementAccessPackagesItemAccessPackagesIncompatibleWithWithUniqueNameRequestBuilder) { + m := &EntitlementManagementAccessPackagesItemAccessPackagesIncompatibleWithWithUniqueNameRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/accessPackagesIncompatibleWith(uniqueName='{uniqueName}'){?%24expand,%24select}", pathParameters), + } + if uniqueName != nil { + m.BaseRequestBuilder.PathParameters["uniqueName"] = *uniqueName + } + return m +} +// NewEntitlementManagementAccessPackagesItemAccessPackagesIncompatibleWithWithUniqueNameRequestBuilder instantiates a new EntitlementManagementAccessPackagesItemAccessPackagesIncompatibleWithWithUniqueNameRequestBuilder and sets the default values. +func NewEntitlementManagementAccessPackagesItemAccessPackagesIncompatibleWithWithUniqueNameRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*EntitlementManagementAccessPackagesItemAccessPackagesIncompatibleWithWithUniqueNameRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewEntitlementManagementAccessPackagesItemAccessPackagesIncompatibleWithWithUniqueNameRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get the access packages that are incompatible with this package. Read-only. +// returns a AccessPackageable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *EntitlementManagementAccessPackagesItemAccessPackagesIncompatibleWithWithUniqueNameRequestBuilder) Get(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackagesItemAccessPackagesIncompatibleWithWithUniqueNameRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateAccessPackageFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageable), nil +} +// ToGetRequestInformation the access packages that are incompatible with this package. Read-only. +// returns a *RequestInformation when successful +func (m *EntitlementManagementAccessPackagesItemAccessPackagesIncompatibleWithWithUniqueNameRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackagesItemAccessPackagesIncompatibleWithWithUniqueNameRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 *EntitlementManagementAccessPackagesItemAccessPackagesIncompatibleWithWithUniqueNameRequestBuilder when successful +func (m *EntitlementManagementAccessPackagesItemAccessPackagesIncompatibleWithWithUniqueNameRequestBuilder) WithUrl(rawUrl string)(*EntitlementManagementAccessPackagesItemAccessPackagesIncompatibleWithWithUniqueNameRequestBuilder) { + return NewEntitlementManagementAccessPackagesItemAccessPackagesIncompatibleWithWithUniqueNameRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/cd75807d695f89b734edace6658ef7afd40f2648bed4be8beebca36dc06c2691.go b/identitygovernance/cd75807d695f89b734edace6658ef7afd40f2648bed4be8beebca36dc06c2691.go index 2939c59abcd..06aeb514c52 100644 --- a/identitygovernance/cd75807d695f89b734edace6658ef7afd40f2648bed4be8beebca36dc06c2691.go +++ b/identitygovernance/cd75807d695f89b734edace6658ef7afd40f2648bed4be8beebca36dc06c2691.go @@ -58,6 +58,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTas return NewLifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTas return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTas return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/cf1151b2ab67553fdb8f22bc83fd432d8c9ea2a1f2037536930fe40ecf4f3fca.go b/identitygovernance/cf1151b2ab67553fdb8f22bc83fd432d8c9ea2a1f2037536930fe40ecf4f3fca.go index 8932330749b..baedb994735 100644 --- a/identitygovernance/cf1151b2ab67553fdb8f22bc83fd432d8c9ea2a1f2037536930fe40ecf4f3fca.go +++ b/identitygovernance/cf1151b2ab67553fdb8f22bc83fd432d8c9ea2a1f2037536930fe40ecf4f3fca.go @@ -40,6 +40,7 @@ func NewLifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByServiceProvisioningE return NewLifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByServiceProvisioning return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByServiceProvisioning return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByServiceProvisioningErrorsCountRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByServiceProvisioningErrorsCountRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/d5161a0825ba4ccef9b1ac4aae4c887a456c5282a8f4a7cc6f2c812fe2951025.go b/identitygovernance/d5161a0825ba4ccef9b1ac4aae4c887a456c5282a8f4a7cc6f2c812fe2951025.go index ae485e74829..c939630edeb 100644 --- a/identitygovernance/d5161a0825ba4ccef9b1ac4aae4c887a456c5282a8f4a7cc6f2c812fe2951025.go +++ b/identitygovernance/d5161a0825ba4ccef9b1ac4aae4c887a456c5282a8f4a7cc6f2c812fe2951025.go @@ -58,6 +58,7 @@ func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingR return NewLifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingR return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/d5abf5671376ead39483b079aa040756687b106e57dad6ea3e308d795775e0ee.go b/identitygovernance/d5abf5671376ead39483b079aa040756687b106e57dad6ea3e308d795775e0ee.go index bc4bfbfd8a0..ae20a7ddab3 100644 --- a/identitygovernance/d5abf5671376ead39483b079aa040756687b106e57dad6ea3e308d795775e0ee.go +++ b/identitygovernance/d5abf5671376ead39483b079aa040756687b106e57dad6ea3e308d795775e0ee.go @@ -48,6 +48,7 @@ func NewLifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingRe return NewLifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingR return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingR return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingR return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/dcfb2156f01cb4243ed39011504370983453bbfff595588b4cc3ac7401bd2834.go b/identitygovernance/dcfb2156f01cb4243ed39011504370983453bbfff595588b4cc3ac7401bd2834.go index 294ced073d9..57af45866ba 100644 --- a/identitygovernance/dcfb2156f01cb4243ed39011504370983453bbfff595588b4cc3ac7401bd2834.go +++ b/identitygovernance/dcfb2156f01cb4243ed39011504370983453bbfff595588b4cc3ac7401bd2834.go @@ -58,6 +58,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedBySe return NewLifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedBySe return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedBySe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByServiceProvisioningErrorsRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByServiceProvisioningErrorsRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/df0cef9c38be2fbb0f852b400f36883f591c81478eadf969510cafb20e94c7de.go b/identitygovernance/df0cef9c38be2fbb0f852b400f36883f591c81478eadf969510cafb20e94c7de.go index 16367854e38..657d86a2e92 100644 --- a/identitygovernance/df0cef9c38be2fbb0f852b400f36883f591c81478eadf969510cafb20e94c7de.go +++ b/identitygovernance/df0cef9c38be2fbb0f852b400f36883f591c81478eadf969510cafb20e94c7de.go @@ -40,6 +40,7 @@ func NewLifecycleWorkflowsWorkflowsItemLastModifiedByServiceProvisioningErrorsCo return NewLifecycleWorkflowsWorkflowsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *LifecycleWorkflowsWorkflowsItemLastModifiedByServiceProvisioningErrorsC return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *LifecycleWorkflowsWorkflowsItemLastModifiedByServiceProvisioningErrorsC return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/df720e753955083f1e6471c27ee3457449fcdf11003a6705b98713ed00519517.go b/identitygovernance/df720e753955083f1e6471c27ee3457449fcdf11003a6705b98713ed00519517.go index 37cb5083029..08672ec9cb9 100644 --- a/identitygovernance/df720e753955083f1e6471c27ee3457449fcdf11003a6705b98713ed00519517.go +++ b/identitygovernance/df720e753955083f1e6471c27ee3457449fcdf11003a6705b98713ed00519517.go @@ -58,6 +58,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByService return NewLifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByService return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByService return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByServiceProvisioningErrorsRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByServiceProvisioningErrorsRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/e3c882396197d1330d602d12844aadffa084e222ba16719b95118d763a4337eb.go b/identitygovernance/e3c882396197d1330d602d12844aadffa084e222ba16719b95118d763a4337eb.go index b58b3009b0d..c742e6a0a71 100644 --- a/identitygovernance/e3c882396197d1330d602d12844aadffa084e222ba16719b95118d763a4337eb.go +++ b/identitygovernance/e3c882396197d1330d602d12844aadffa084e222ba16719b95118d763a4337eb.go @@ -58,6 +58,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByServiceProvisioning return NewLifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByServiceProvisioning return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByServiceProvisioning return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByServiceProvisioningErrorsRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByServiceProvisioningErrorsRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/e484abf371fd5e5c6b7bff4086ce72b63db3babbe94a74de55e1a9a56e9acb00.go b/identitygovernance/e484abf371fd5e5c6b7bff4086ce72b63db3babbe94a74de55e1a9a56e9acb00.go index 15050f543b4..0def0c3bbb0 100644 --- a/identitygovernance/e484abf371fd5e5c6b7bff4086ce72b63db3babbe94a74de55e1a9a56e9acb00.go +++ b/identitygovernance/e484abf371fd5e5c6b7bff4086ce72b63db3babbe94a74de55e1a9a56e9acb00.go @@ -41,6 +41,7 @@ func NewLifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessing return NewLifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectRequestBuilderInternal(urlParams, requestAdapter) } // Get the unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessin return NewLifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation the unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessin return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/e4bdb2b971aa1aaba98a1669ae02676b1ddaafacf3bb6167753e70ad33af0610.go b/identitygovernance/e4bdb2b971aa1aaba98a1669ae02676b1ddaafacf3bb6167753e70ad33af0610.go index 68d4daa2f16..4d44937d4c9 100644 --- a/identitygovernance/e4bdb2b971aa1aaba98a1669ae02676b1ddaafacf3bb6167753e70ad33af0610.go +++ b/identitygovernance/e4bdb2b971aa1aaba98a1669ae02676b1ddaafacf3bb6167753e70ad33af0610.go @@ -40,6 +40,7 @@ func NewLifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSubj return NewLifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSub return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSub return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/e82f759c62654c6a49deb585a32b8c3df7e04aaef0a0a24568a7c8a4e4cb6e17.go b/identitygovernance/e82f759c62654c6a49deb585a32b8c3df7e04aaef0a0a24568a7c8a4e4cb6e17.go index e1f3d6574b0..ed4d32bd805 100644 --- a/identitygovernance/e82f759c62654c6a49deb585a32b8c3df7e04aaef0a0a24568a7c8a4e4cb6e17.go +++ b/identitygovernance/e82f759c62654c6a49deb585a32b8c3df7e04aaef0a0a24568a7c8a4e4cb6e17.go @@ -40,6 +40,7 @@ func NewLifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByServiceProvisio return NewLifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *LifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByServiceProvisi return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *LifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByServiceProvisi return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/e8a3c52f1fc1e628203fa399e5963aecaaab93696ee7f59f2082bc5605e292ac.go b/identitygovernance/e8a3c52f1fc1e628203fa399e5963aecaaab93696ee7f59f2082bc5605e292ac.go index 48495d6dd11..0c760f4bc7b 100644 --- a/identitygovernance/e8a3c52f1fc1e628203fa399e5963aecaaab93696ee7f59f2082bc5605e292ac.go +++ b/identitygovernance/e8a3c52f1fc1e628203fa399e5963aecaaab93696ee7f59f2082bc5605e292ac.go @@ -48,6 +48,7 @@ func NewLifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTask return NewLifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTas return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTas return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTas return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTas return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/ec5c45c35a9142e41f2befb964951e6907044f8119264173c10537bd6f8159da.go b/identitygovernance/ec5c45c35a9142e41f2befb964951e6907044f8119264173c10537bd6f8159da.go new file mode 100644 index 00000000000..5cb51f72dfa --- /dev/null +++ b/identitygovernance/ec5c45c35a9142e41f2befb964951e6907044f8119264173c10537bd6f8159da.go @@ -0,0 +1,84 @@ +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// EntitlementManagementAccessPackageAssignmentsItemAccessPackageAccessPackagesIncompatibleWithWithUniqueNameRequestBuilder provides operations to manage the accessPackagesIncompatibleWith property of the microsoft.graph.accessPackage entity. +type EntitlementManagementAccessPackageAssignmentsItemAccessPackageAccessPackagesIncompatibleWithWithUniqueNameRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// EntitlementManagementAccessPackageAssignmentsItemAccessPackageAccessPackagesIncompatibleWithWithUniqueNameRequestBuilderGetQueryParameters the access packages that are incompatible with this package. Read-only. +type EntitlementManagementAccessPackageAssignmentsItemAccessPackageAccessPackagesIncompatibleWithWithUniqueNameRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// EntitlementManagementAccessPackageAssignmentsItemAccessPackageAccessPackagesIncompatibleWithWithUniqueNameRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type EntitlementManagementAccessPackageAssignmentsItemAccessPackageAccessPackagesIncompatibleWithWithUniqueNameRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *EntitlementManagementAccessPackageAssignmentsItemAccessPackageAccessPackagesIncompatibleWithWithUniqueNameRequestBuilderGetQueryParameters +} +// NewEntitlementManagementAccessPackageAssignmentsItemAccessPackageAccessPackagesIncompatibleWithWithUniqueNameRequestBuilderInternal instantiates a new EntitlementManagementAccessPackageAssignmentsItemAccessPackageAccessPackagesIncompatibleWithWithUniqueNameRequestBuilder and sets the default values. +func NewEntitlementManagementAccessPackageAssignmentsItemAccessPackageAccessPackagesIncompatibleWithWithUniqueNameRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, uniqueName *string)(*EntitlementManagementAccessPackageAssignmentsItemAccessPackageAccessPackagesIncompatibleWithWithUniqueNameRequestBuilder) { + m := &EntitlementManagementAccessPackageAssignmentsItemAccessPackageAccessPackagesIncompatibleWithWithUniqueNameRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageAssignments/{accessPackageAssignment%2Did}/accessPackage/accessPackagesIncompatibleWith(uniqueName='{uniqueName}'){?%24expand,%24select}", pathParameters), + } + if uniqueName != nil { + m.BaseRequestBuilder.PathParameters["uniqueName"] = *uniqueName + } + return m +} +// NewEntitlementManagementAccessPackageAssignmentsItemAccessPackageAccessPackagesIncompatibleWithWithUniqueNameRequestBuilder instantiates a new EntitlementManagementAccessPackageAssignmentsItemAccessPackageAccessPackagesIncompatibleWithWithUniqueNameRequestBuilder and sets the default values. +func NewEntitlementManagementAccessPackageAssignmentsItemAccessPackageAccessPackagesIncompatibleWithWithUniqueNameRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*EntitlementManagementAccessPackageAssignmentsItemAccessPackageAccessPackagesIncompatibleWithWithUniqueNameRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewEntitlementManagementAccessPackageAssignmentsItemAccessPackageAccessPackagesIncompatibleWithWithUniqueNameRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get the access packages that are incompatible with this package. Read-only. +// returns a AccessPackageable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *EntitlementManagementAccessPackageAssignmentsItemAccessPackageAccessPackagesIncompatibleWithWithUniqueNameRequestBuilder) Get(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackageAssignmentsItemAccessPackageAccessPackagesIncompatibleWithWithUniqueNameRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateAccessPackageFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageable), nil +} +// ToGetRequestInformation the access packages that are incompatible with this package. Read-only. +// returns a *RequestInformation when successful +func (m *EntitlementManagementAccessPackageAssignmentsItemAccessPackageAccessPackagesIncompatibleWithWithUniqueNameRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackageAssignmentsItemAccessPackageAccessPackagesIncompatibleWithWithUniqueNameRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 *EntitlementManagementAccessPackageAssignmentsItemAccessPackageAccessPackagesIncompatibleWithWithUniqueNameRequestBuilder when successful +func (m *EntitlementManagementAccessPackageAssignmentsItemAccessPackageAccessPackagesIncompatibleWithWithUniqueNameRequestBuilder) WithUrl(rawUrl string)(*EntitlementManagementAccessPackageAssignmentsItemAccessPackageAccessPackagesIncompatibleWithWithUniqueNameRequestBuilder) { + return NewEntitlementManagementAccessPackageAssignmentsItemAccessPackageAccessPackagesIncompatibleWithWithUniqueNameRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/entitlement_management_access_package_assignment_requests_item_resume_request_builder.go b/identitygovernance/entitlement_management_access_package_assignment_requests_item_resume_request_builder.go index 03d0f23cd8c..d2e4add4501 100644 --- a/identitygovernance/entitlement_management_access_package_assignment_requests_item_resume_request_builder.go +++ b/identitygovernance/entitlement_management_access_package_assignment_requests_item_resume_request_builder.go @@ -30,7 +30,7 @@ func NewEntitlementManagementAccessPackageAssignmentRequestsItemResumeRequestBui urlParams["request-raw-url"] = rawUrl return NewEntitlementManagementAccessPackageAssignmentRequestsItemResumeRequestBuilderInternal(urlParams, requestAdapter) } -// Post in Microsoft Entra entitlement management, when an access package policy has been enabled to call out a custom extension and the request processing is waiting for the callback from the customer, the customer can initiate a resume action. It is performed on an accessPackageAssignmentRequest object whose requestStatus is in a WaitingForCallback state. +// Post resume a user's access package request after waiting for a callback from a custom extension. In Microsoft Entra entitlement management, when an access package policy has been enabled to call out a custom extension and the request processing is waiting for the callback from the customer, the customer can initiate a resume action. It's performed on an accessPackageAssignmentRequest object whose requestStatus is in a WaitingForCallback state. // Deprecated: as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -50,7 +50,7 @@ func (m *EntitlementManagementAccessPackageAssignmentRequestsItemResumeRequestBu } return nil } -// ToPostRequestInformation in Microsoft Entra entitlement management, when an access package policy has been enabled to call out a custom extension and the request processing is waiting for the callback from the customer, the customer can initiate a resume action. It is performed on an accessPackageAssignmentRequest object whose requestStatus is in a WaitingForCallback state. +// ToPostRequestInformation resume a user's access package request after waiting for a callback from a custom extension. In Microsoft Entra entitlement management, when an access package policy has been enabled to call out a custom extension and the request processing is waiting for the callback from the customer, the customer can initiate a resume action. It's performed on an accessPackageAssignmentRequest object whose requestStatus is in a WaitingForCallback state. // Deprecated: as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions // returns a *RequestInformation when successful func (m *EntitlementManagementAccessPackageAssignmentRequestsItemResumeRequestBuilder) ToPostRequestInformation(ctx context.Context, body EntitlementManagementAccessPackageAssignmentRequestsItemResumePostRequestBodyable, requestConfiguration *EntitlementManagementAccessPackageAssignmentRequestsItemResumeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { diff --git a/identitygovernance/entitlement_management_access_package_assignments_item_access_package_request_builder.go b/identitygovernance/entitlement_management_access_package_assignments_item_access_package_request_builder.go index 831a09ad214..eca4c05322f 100644 --- a/identitygovernance/entitlement_management_access_package_assignments_item_access_package_request_builder.go +++ b/identitygovernance/entitlement_management_access_package_assignments_item_access_package_request_builder.go @@ -61,6 +61,11 @@ func (m *EntitlementManagementAccessPackageAssignmentsItemAccessPackageRequestBu func (m *EntitlementManagementAccessPackageAssignmentsItemAccessPackageRequestBuilder) AccessPackagesIncompatibleWith()(*EntitlementManagementAccessPackageAssignmentsItemAccessPackageAccessPackagesIncompatibleWithRequestBuilder) { return NewEntitlementManagementAccessPackageAssignmentsItemAccessPackageAccessPackagesIncompatibleWithRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// AccessPackagesIncompatibleWithWithUniqueName provides operations to manage the accessPackagesIncompatibleWith property of the microsoft.graph.accessPackage entity. +// returns a *EntitlementManagementAccessPackageAssignmentsItemAccessPackageAccessPackagesIncompatibleWithWithUniqueNameRequestBuilder when successful +func (m *EntitlementManagementAccessPackageAssignmentsItemAccessPackageRequestBuilder) AccessPackagesIncompatibleWithWithUniqueName(uniqueName *string)(*EntitlementManagementAccessPackageAssignmentsItemAccessPackageAccessPackagesIncompatibleWithWithUniqueNameRequestBuilder) { + return NewEntitlementManagementAccessPackageAssignmentsItemAccessPackageAccessPackagesIncompatibleWithWithUniqueNameRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, uniqueName) +} // NewEntitlementManagementAccessPackageAssignmentsItemAccessPackageRequestBuilderInternal instantiates a new EntitlementManagementAccessPackageAssignmentsItemAccessPackageRequestBuilder and sets the default values. func NewEntitlementManagementAccessPackageAssignmentsItemAccessPackageRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*EntitlementManagementAccessPackageAssignmentsItemAccessPackageRequestBuilder) { m := &EntitlementManagementAccessPackageAssignmentsItemAccessPackageRequestBuilder{ diff --git a/identitygovernance/entitlement_management_access_package_catalogs_access_package_catalog_item_request_builder.go b/identitygovernance/entitlement_management_access_package_catalogs_access_package_catalog_item_request_builder.go index 3aa4388c253..c3006242503 100644 --- a/identitygovernance/entitlement_management_access_package_catalogs_access_package_catalog_item_request_builder.go +++ b/identitygovernance/entitlement_management_access_package_catalogs_access_package_catalog_item_request_builder.go @@ -66,6 +66,12 @@ func (m *EntitlementManagementAccessPackageCatalogsAccessPackageCatalogItemReque func (m *EntitlementManagementAccessPackageCatalogsAccessPackageCatalogItemRequestBuilder) AccessPackages()(*EntitlementManagementAccessPackageCatalogsItemAccessPackagesRequestBuilder) { return NewEntitlementManagementAccessPackageCatalogsItemAccessPackagesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// AccessPackagesWithUniqueName provides operations to manage the accessPackages property of the microsoft.graph.accessPackageCatalog entity. +// Deprecated: as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions +// returns a *EntitlementManagementAccessPackageCatalogsItemAccessPackagesWithUniqueNameRequestBuilder when successful +func (m *EntitlementManagementAccessPackageCatalogsAccessPackageCatalogItemRequestBuilder) AccessPackagesWithUniqueName(uniqueName *string)(*EntitlementManagementAccessPackageCatalogsItemAccessPackagesWithUniqueNameRequestBuilder) { + return NewEntitlementManagementAccessPackageCatalogsItemAccessPackagesWithUniqueNameRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, uniqueName) +} // NewEntitlementManagementAccessPackageCatalogsAccessPackageCatalogItemRequestBuilderInternal instantiates a new EntitlementManagementAccessPackageCatalogsAccessPackageCatalogItemRequestBuilder and sets the default values. func NewEntitlementManagementAccessPackageCatalogsAccessPackageCatalogItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*EntitlementManagementAccessPackageCatalogsAccessPackageCatalogItemRequestBuilder) { m := &EntitlementManagementAccessPackageCatalogsAccessPackageCatalogItemRequestBuilder{ diff --git a/identitygovernance/entitlement_management_access_package_catalogs_item_access_packages_with_unique_name_request_builder.go b/identitygovernance/entitlement_management_access_package_catalogs_item_access_packages_with_unique_name_request_builder.go new file mode 100644 index 00000000000..a4474119a72 --- /dev/null +++ b/identitygovernance/entitlement_management_access_package_catalogs_item_access_packages_with_unique_name_request_builder.go @@ -0,0 +1,87 @@ +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// EntitlementManagementAccessPackageCatalogsItemAccessPackagesWithUniqueNameRequestBuilder provides operations to manage the accessPackages property of the microsoft.graph.accessPackageCatalog entity. +type EntitlementManagementAccessPackageCatalogsItemAccessPackagesWithUniqueNameRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// EntitlementManagementAccessPackageCatalogsItemAccessPackagesWithUniqueNameRequestBuilderGetQueryParameters the access packages in this catalog. Read-only. Nullable. Supports $expand. +type EntitlementManagementAccessPackageCatalogsItemAccessPackagesWithUniqueNameRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// EntitlementManagementAccessPackageCatalogsItemAccessPackagesWithUniqueNameRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type EntitlementManagementAccessPackageCatalogsItemAccessPackagesWithUniqueNameRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *EntitlementManagementAccessPackageCatalogsItemAccessPackagesWithUniqueNameRequestBuilderGetQueryParameters +} +// NewEntitlementManagementAccessPackageCatalogsItemAccessPackagesWithUniqueNameRequestBuilderInternal instantiates a new EntitlementManagementAccessPackageCatalogsItemAccessPackagesWithUniqueNameRequestBuilder and sets the default values. +func NewEntitlementManagementAccessPackageCatalogsItemAccessPackagesWithUniqueNameRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, uniqueName *string)(*EntitlementManagementAccessPackageCatalogsItemAccessPackagesWithUniqueNameRequestBuilder) { + m := &EntitlementManagementAccessPackageCatalogsItemAccessPackagesWithUniqueNameRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageCatalogs/{accessPackageCatalog%2Did}/accessPackages(uniqueName='{uniqueName}'){?%24expand,%24select}", pathParameters), + } + if uniqueName != nil { + m.BaseRequestBuilder.PathParameters["uniqueName"] = *uniqueName + } + return m +} +// NewEntitlementManagementAccessPackageCatalogsItemAccessPackagesWithUniqueNameRequestBuilder instantiates a new EntitlementManagementAccessPackageCatalogsItemAccessPackagesWithUniqueNameRequestBuilder and sets the default values. +func NewEntitlementManagementAccessPackageCatalogsItemAccessPackagesWithUniqueNameRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*EntitlementManagementAccessPackageCatalogsItemAccessPackagesWithUniqueNameRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewEntitlementManagementAccessPackageCatalogsItemAccessPackagesWithUniqueNameRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Get the access packages in this catalog. Read-only. Nullable. Supports $expand. +// Deprecated: as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions +// returns a AccessPackageable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *EntitlementManagementAccessPackageCatalogsItemAccessPackagesWithUniqueNameRequestBuilder) Get(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackageCatalogsItemAccessPackagesWithUniqueNameRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateAccessPackageFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageable), nil +} +// ToGetRequestInformation the access packages in this catalog. Read-only. Nullable. Supports $expand. +// Deprecated: as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions +// returns a *RequestInformation when successful +func (m *EntitlementManagementAccessPackageCatalogsItemAccessPackagesWithUniqueNameRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackageCatalogsItemAccessPackagesWithUniqueNameRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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. +// Deprecated: as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions +// returns a *EntitlementManagementAccessPackageCatalogsItemAccessPackagesWithUniqueNameRequestBuilder when successful +func (m *EntitlementManagementAccessPackageCatalogsItemAccessPackagesWithUniqueNameRequestBuilder) WithUrl(rawUrl string)(*EntitlementManagementAccessPackageCatalogsItemAccessPackagesWithUniqueNameRequestBuilder) { + return NewEntitlementManagementAccessPackageCatalogsItemAccessPackagesWithUniqueNameRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/entitlement_management_access_package_catalogs_with_unique_name_request_builder.go b/identitygovernance/entitlement_management_access_package_catalogs_with_unique_name_request_builder.go new file mode 100644 index 00000000000..52f22c8b1b9 --- /dev/null +++ b/identitygovernance/entitlement_management_access_package_catalogs_with_unique_name_request_builder.go @@ -0,0 +1,176 @@ +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// EntitlementManagementAccessPackageCatalogsWithUniqueNameRequestBuilder provides operations to manage the accessPackageCatalogs property of the microsoft.graph.entitlementManagement entity. +type EntitlementManagementAccessPackageCatalogsWithUniqueNameRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// EntitlementManagementAccessPackageCatalogsWithUniqueNameRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type EntitlementManagementAccessPackageCatalogsWithUniqueNameRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// EntitlementManagementAccessPackageCatalogsWithUniqueNameRequestBuilderGetQueryParameters retrieve the properties and relationships of an accessPackageCatalog object. +type EntitlementManagementAccessPackageCatalogsWithUniqueNameRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// EntitlementManagementAccessPackageCatalogsWithUniqueNameRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type EntitlementManagementAccessPackageCatalogsWithUniqueNameRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *EntitlementManagementAccessPackageCatalogsWithUniqueNameRequestBuilderGetQueryParameters +} +// EntitlementManagementAccessPackageCatalogsWithUniqueNameRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type EntitlementManagementAccessPackageCatalogsWithUniqueNameRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewEntitlementManagementAccessPackageCatalogsWithUniqueNameRequestBuilderInternal instantiates a new EntitlementManagementAccessPackageCatalogsWithUniqueNameRequestBuilder and sets the default values. +func NewEntitlementManagementAccessPackageCatalogsWithUniqueNameRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, uniqueName *string)(*EntitlementManagementAccessPackageCatalogsWithUniqueNameRequestBuilder) { + m := &EntitlementManagementAccessPackageCatalogsWithUniqueNameRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackageCatalogs(uniqueName='{uniqueName}'){?%24expand,%24select}", pathParameters), + } + if uniqueName != nil { + m.BaseRequestBuilder.PathParameters["uniqueName"] = *uniqueName + } + return m +} +// NewEntitlementManagementAccessPackageCatalogsWithUniqueNameRequestBuilder instantiates a new EntitlementManagementAccessPackageCatalogsWithUniqueNameRequestBuilder and sets the default values. +func NewEntitlementManagementAccessPackageCatalogsWithUniqueNameRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*EntitlementManagementAccessPackageCatalogsWithUniqueNameRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewEntitlementManagementAccessPackageCatalogsWithUniqueNameRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Delete delete an accessPackageCatalog. +// Deprecated: as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions +// 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/accesspackagecatalog-delete?view=graph-rest-beta +func (m *EntitlementManagementAccessPackageCatalogsWithUniqueNameRequestBuilder) Delete(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackageCatalogsWithUniqueNameRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get retrieve the properties and relationships of an accessPackageCatalog object. +// Deprecated: as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions +// returns a AccessPackageCatalogable 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/accesspackagecatalog-get?view=graph-rest-beta +func (m *EntitlementManagementAccessPackageCatalogsWithUniqueNameRequestBuilder) Get(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackageCatalogsWithUniqueNameRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageCatalogable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateAccessPackageCatalogFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageCatalogable), nil +} +// Patch update an existing accessPackageCatalog object to change one or more of its properties, such as the display name or description. +// Deprecated: as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions +// returns a AccessPackageCatalogable 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/accesspackagecatalog-update?view=graph-rest-beta +func (m *EntitlementManagementAccessPackageCatalogsWithUniqueNameRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageCatalogable, requestConfiguration *EntitlementManagementAccessPackageCatalogsWithUniqueNameRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageCatalogable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateAccessPackageCatalogFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageCatalogable), nil +} +// ToDeleteRequestInformation delete an accessPackageCatalog. +// Deprecated: as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions +// returns a *RequestInformation when successful +func (m *EntitlementManagementAccessPackageCatalogsWithUniqueNameRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackageCatalogsWithUniqueNameRequestBuilderDeleteRequestConfiguration)(*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 properties and relationships of an accessPackageCatalog object. +// Deprecated: as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions +// returns a *RequestInformation when successful +func (m *EntitlementManagementAccessPackageCatalogsWithUniqueNameRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackageCatalogsWithUniqueNameRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 an existing accessPackageCatalog object to change one or more of its properties, such as the display name or description. +// Deprecated: as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions +// returns a *RequestInformation when successful +func (m *EntitlementManagementAccessPackageCatalogsWithUniqueNameRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageCatalogable, requestConfiguration *EntitlementManagementAccessPackageCatalogsWithUniqueNameRequestBuilderPatchRequestConfiguration)(*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. +// Deprecated: as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions +// returns a *EntitlementManagementAccessPackageCatalogsWithUniqueNameRequestBuilder when successful +func (m *EntitlementManagementAccessPackageCatalogsWithUniqueNameRequestBuilder) WithUrl(rawUrl string)(*EntitlementManagementAccessPackageCatalogsWithUniqueNameRequestBuilder) { + return NewEntitlementManagementAccessPackageCatalogsWithUniqueNameRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/entitlement_management_access_packages_access_package_item_request_builder.go b/identitygovernance/entitlement_management_access_packages_access_package_item_request_builder.go index 1bd38d29494..9f2b3614ced 100644 --- a/identitygovernance/entitlement_management_access_packages_access_package_item_request_builder.go +++ b/identitygovernance/entitlement_management_access_packages_access_package_item_request_builder.go @@ -61,6 +61,11 @@ func (m *EntitlementManagementAccessPackagesAccessPackageItemRequestBuilder) Acc func (m *EntitlementManagementAccessPackagesAccessPackageItemRequestBuilder) AccessPackagesIncompatibleWith()(*EntitlementManagementAccessPackagesItemAccessPackagesIncompatibleWithRequestBuilder) { return NewEntitlementManagementAccessPackagesItemAccessPackagesIncompatibleWithRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// AccessPackagesIncompatibleWithWithUniqueName provides operations to manage the accessPackagesIncompatibleWith property of the microsoft.graph.accessPackage entity. +// returns a *EntitlementManagementAccessPackagesItemAccessPackagesIncompatibleWithWithUniqueNameRequestBuilder when successful +func (m *EntitlementManagementAccessPackagesAccessPackageItemRequestBuilder) AccessPackagesIncompatibleWithWithUniqueName(uniqueName *string)(*EntitlementManagementAccessPackagesItemAccessPackagesIncompatibleWithWithUniqueNameRequestBuilder) { + return NewEntitlementManagementAccessPackagesItemAccessPackagesIncompatibleWithWithUniqueNameRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, uniqueName) +} // NewEntitlementManagementAccessPackagesAccessPackageItemRequestBuilderInternal instantiates a new EntitlementManagementAccessPackagesAccessPackageItemRequestBuilder and sets the default values. func NewEntitlementManagementAccessPackagesAccessPackageItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*EntitlementManagementAccessPackagesAccessPackageItemRequestBuilder) { m := &EntitlementManagementAccessPackagesAccessPackageItemRequestBuilder{ diff --git a/identitygovernance/entitlement_management_access_packages_with_unique_name_get_applicable_policy_requirements_response.go b/identitygovernance/entitlement_management_access_packages_with_unique_name_get_applicable_policy_requirements_response.go new file mode 100644 index 00000000000..02830f4c146 --- /dev/null +++ b/identitygovernance/entitlement_management_access_packages_with_unique_name_get_applicable_policy_requirements_response.go @@ -0,0 +1,27 @@ +package identitygovernance + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +// Deprecated: This class is obsolete. Use EntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsPostResponseable instead. +type EntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsResponse struct { + EntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsPostResponse +} +// NewEntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsResponse instantiates a new EntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsResponse and sets the default values. +func NewEntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsResponse()(*EntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsResponse) { + m := &EntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsResponse{ + EntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsPostResponse: *NewEntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsPostResponse(), + } + return m +} +// CreateEntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateEntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewEntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsResponse(), nil +} +// Deprecated: This class is obsolete. Use EntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsPostResponseable instead. +type EntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsResponseable interface { + EntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsPostResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable +} diff --git a/identitygovernance/entitlement_management_access_packages_with_unique_name_move_to_catalog_post_request_body.go b/identitygovernance/entitlement_management_access_packages_with_unique_name_move_to_catalog_post_request_body.go new file mode 100644 index 00000000000..1b35365f30e --- /dev/null +++ b/identitygovernance/entitlement_management_access_packages_with_unique_name_move_to_catalog_post_request_body.go @@ -0,0 +1,113 @@ +package identitygovernance + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type EntitlementManagementAccessPackagesWithUniqueNameMoveToCatalogPostRequestBody struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewEntitlementManagementAccessPackagesWithUniqueNameMoveToCatalogPostRequestBody instantiates a new EntitlementManagementAccessPackagesWithUniqueNameMoveToCatalogPostRequestBody and sets the default values. +func NewEntitlementManagementAccessPackagesWithUniqueNameMoveToCatalogPostRequestBody()(*EntitlementManagementAccessPackagesWithUniqueNameMoveToCatalogPostRequestBody) { + m := &EntitlementManagementAccessPackagesWithUniqueNameMoveToCatalogPostRequestBody{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateEntitlementManagementAccessPackagesWithUniqueNameMoveToCatalogPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateEntitlementManagementAccessPackagesWithUniqueNameMoveToCatalogPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewEntitlementManagementAccessPackagesWithUniqueNameMoveToCatalogPostRequestBody(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *EntitlementManagementAccessPackagesWithUniqueNameMoveToCatalogPostRequestBody) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *EntitlementManagementAccessPackagesWithUniqueNameMoveToCatalogPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetCatalogId gets the catalogId property value. The catalogId property +// returns a *string when successful +func (m *EntitlementManagementAccessPackagesWithUniqueNameMoveToCatalogPostRequestBody) GetCatalogId()(*string) { + val, err := m.GetBackingStore().Get("catalogId") + 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 *EntitlementManagementAccessPackagesWithUniqueNameMoveToCatalogPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["catalogId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetCatalogId(val) + } + return nil + } + return res +} +// Serialize serializes information the current object +func (m *EntitlementManagementAccessPackagesWithUniqueNameMoveToCatalogPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("catalogId", m.GetCatalogId()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *EntitlementManagementAccessPackagesWithUniqueNameMoveToCatalogPostRequestBody) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *EntitlementManagementAccessPackagesWithUniqueNameMoveToCatalogPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetCatalogId sets the catalogId property value. The catalogId property +func (m *EntitlementManagementAccessPackagesWithUniqueNameMoveToCatalogPostRequestBody) SetCatalogId(value *string)() { + err := m.GetBackingStore().Set("catalogId", value) + if err != nil { + panic(err) + } +} +type EntitlementManagementAccessPackagesWithUniqueNameMoveToCatalogPostRequestBodyable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetCatalogId()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetCatalogId(value *string)() +} diff --git a/identitygovernance/entitlement_management_access_packages_with_unique_name_move_to_catalog_request_builder.go b/identitygovernance/entitlement_management_access_packages_with_unique_name_move_to_catalog_request_builder.go new file mode 100644 index 00000000000..56fc15be713 --- /dev/null +++ b/identitygovernance/entitlement_management_access_packages_with_unique_name_move_to_catalog_request_builder.go @@ -0,0 +1,71 @@ +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// EntitlementManagementAccessPackagesWithUniqueNameMoveToCatalogRequestBuilder provides operations to call the moveToCatalog method. +type EntitlementManagementAccessPackagesWithUniqueNameMoveToCatalogRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// EntitlementManagementAccessPackagesWithUniqueNameMoveToCatalogRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type EntitlementManagementAccessPackagesWithUniqueNameMoveToCatalogRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewEntitlementManagementAccessPackagesWithUniqueNameMoveToCatalogRequestBuilderInternal instantiates a new EntitlementManagementAccessPackagesWithUniqueNameMoveToCatalogRequestBuilder and sets the default values. +func NewEntitlementManagementAccessPackagesWithUniqueNameMoveToCatalogRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*EntitlementManagementAccessPackagesWithUniqueNameMoveToCatalogRequestBuilder) { + m := &EntitlementManagementAccessPackagesWithUniqueNameMoveToCatalogRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages(uniqueName='{uniqueName}')/moveToCatalog", pathParameters), + } + return m +} +// NewEntitlementManagementAccessPackagesWithUniqueNameMoveToCatalogRequestBuilder instantiates a new EntitlementManagementAccessPackagesWithUniqueNameMoveToCatalogRequestBuilder and sets the default values. +func NewEntitlementManagementAccessPackagesWithUniqueNameMoveToCatalogRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*EntitlementManagementAccessPackagesWithUniqueNameMoveToCatalogRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewEntitlementManagementAccessPackagesWithUniqueNameMoveToCatalogRequestBuilderInternal(urlParams, requestAdapter) +} +// Post in Microsoft Entra entitlement management, this action moves the accessPackage to a specified target accessPackageCatalog. The resources in the access package must be present in the target catalog. +// 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/accesspackage-movetocatalog?view=graph-rest-beta +func (m *EntitlementManagementAccessPackagesWithUniqueNameMoveToCatalogRequestBuilder) Post(ctx context.Context, body EntitlementManagementAccessPackagesWithUniqueNameMoveToCatalogPostRequestBodyable, requestConfiguration *EntitlementManagementAccessPackagesWithUniqueNameMoveToCatalogRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation in Microsoft Entra entitlement management, this action moves the accessPackage to a specified target accessPackageCatalog. The resources in the access package must be present in the target catalog. +// returns a *RequestInformation when successful +func (m *EntitlementManagementAccessPackagesWithUniqueNameMoveToCatalogRequestBuilder) ToPostRequestInformation(ctx context.Context, body EntitlementManagementAccessPackagesWithUniqueNameMoveToCatalogPostRequestBodyable, requestConfiguration *EntitlementManagementAccessPackagesWithUniqueNameMoveToCatalogRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *EntitlementManagementAccessPackagesWithUniqueNameMoveToCatalogRequestBuilder when successful +func (m *EntitlementManagementAccessPackagesWithUniqueNameMoveToCatalogRequestBuilder) WithUrl(rawUrl string)(*EntitlementManagementAccessPackagesWithUniqueNameMoveToCatalogRequestBuilder) { + return NewEntitlementManagementAccessPackagesWithUniqueNameMoveToCatalogRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/entitlement_management_access_packages_with_unique_name_request_builder.go b/identitygovernance/entitlement_management_access_packages_with_unique_name_request_builder.go new file mode 100644 index 00000000000..a405e544244 --- /dev/null +++ b/identitygovernance/entitlement_management_access_packages_with_unique_name_request_builder.go @@ -0,0 +1,179 @@ +package identitygovernance + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// EntitlementManagementAccessPackagesWithUniqueNameRequestBuilder provides operations to manage the accessPackages property of the microsoft.graph.entitlementManagement entity. +type EntitlementManagementAccessPackagesWithUniqueNameRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// EntitlementManagementAccessPackagesWithUniqueNameRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type EntitlementManagementAccessPackagesWithUniqueNameRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// EntitlementManagementAccessPackagesWithUniqueNameRequestBuilderGetQueryParameters retrieve the properties and relationships of an accessPackage object. +type EntitlementManagementAccessPackagesWithUniqueNameRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// EntitlementManagementAccessPackagesWithUniqueNameRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type EntitlementManagementAccessPackagesWithUniqueNameRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *EntitlementManagementAccessPackagesWithUniqueNameRequestBuilderGetQueryParameters +} +// EntitlementManagementAccessPackagesWithUniqueNameRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type EntitlementManagementAccessPackagesWithUniqueNameRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewEntitlementManagementAccessPackagesWithUniqueNameRequestBuilderInternal instantiates a new EntitlementManagementAccessPackagesWithUniqueNameRequestBuilder and sets the default values. +func NewEntitlementManagementAccessPackagesWithUniqueNameRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter, uniqueName *string)(*EntitlementManagementAccessPackagesWithUniqueNameRequestBuilder) { + m := &EntitlementManagementAccessPackagesWithUniqueNameRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages(uniqueName='{uniqueName}'){?%24expand,%24select}", pathParameters), + } + if uniqueName != nil { + m.BaseRequestBuilder.PathParameters["uniqueName"] = *uniqueName + } + return m +} +// NewEntitlementManagementAccessPackagesWithUniqueNameRequestBuilder instantiates a new EntitlementManagementAccessPackagesWithUniqueNameRequestBuilder and sets the default values. +func NewEntitlementManagementAccessPackagesWithUniqueNameRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*EntitlementManagementAccessPackagesWithUniqueNameRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewEntitlementManagementAccessPackagesWithUniqueNameRequestBuilderInternal(urlParams, requestAdapter, nil) +} +// Delete delete an accessPackage object. You can't delete an access package if it has any accessPackageAssignment. To delete the access package, first query if there are any assignments with a filter to indicate the specific access package, such as: $filter=accessPackage/id eq 'a914b616-e04e-476b-aa37-91038f0b165b'. For more information on how to remove assignments that are still in the delivered state, see Remove an assignment. +// 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/accesspackage-delete?view=graph-rest-beta +func (m *EntitlementManagementAccessPackagesWithUniqueNameRequestBuilder) Delete(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackagesWithUniqueNameRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get retrieve the properties and relationships of an accessPackage object. +// returns a AccessPackageable 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/accesspackage-get?view=graph-rest-beta +func (m *EntitlementManagementAccessPackagesWithUniqueNameRequestBuilder) Get(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackagesWithUniqueNameRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateAccessPackageFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageable), nil +} +// GetApplicablePolicyRequirements provides operations to call the getApplicablePolicyRequirements method. +// returns a *EntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsRequestBuilder when successful +func (m *EntitlementManagementAccessPackagesWithUniqueNameRequestBuilder) GetApplicablePolicyRequirements()(*EntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsRequestBuilder) { + return NewEntitlementManagementAccessPackagesWithUniqueNameGetApplicablePolicyRequirementsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// MoveToCatalog provides operations to call the moveToCatalog method. +// returns a *EntitlementManagementAccessPackagesWithUniqueNameMoveToCatalogRequestBuilder when successful +func (m *EntitlementManagementAccessPackagesWithUniqueNameRequestBuilder) MoveToCatalog()(*EntitlementManagementAccessPackagesWithUniqueNameMoveToCatalogRequestBuilder) { + return NewEntitlementManagementAccessPackagesWithUniqueNameMoveToCatalogRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Patch update an existing accessPackage object to change one or more of its properties, such as the display name or description. +// returns a AccessPackageable 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/accesspackage-update?view=graph-rest-beta +func (m *EntitlementManagementAccessPackagesWithUniqueNameRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageable, requestConfiguration *EntitlementManagementAccessPackagesWithUniqueNameRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateAccessPackageFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageable), nil +} +// ToDeleteRequestInformation delete an accessPackage object. You can't delete an access package if it has any accessPackageAssignment. To delete the access package, first query if there are any assignments with a filter to indicate the specific access package, such as: $filter=accessPackage/id eq 'a914b616-e04e-476b-aa37-91038f0b165b'. For more information on how to remove assignments that are still in the delivered state, see Remove an assignment. +// returns a *RequestInformation when successful +func (m *EntitlementManagementAccessPackagesWithUniqueNameRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackagesWithUniqueNameRequestBuilderDeleteRequestConfiguration)(*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 properties and relationships of an accessPackage object. +// returns a *RequestInformation when successful +func (m *EntitlementManagementAccessPackagesWithUniqueNameRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *EntitlementManagementAccessPackagesWithUniqueNameRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 an existing accessPackage object to change one or more of its properties, such as the display name or description. +// returns a *RequestInformation when successful +func (m *EntitlementManagementAccessPackagesWithUniqueNameRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessPackageable, requestConfiguration *EntitlementManagementAccessPackagesWithUniqueNameRequestBuilderPatchRequestConfiguration)(*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 *EntitlementManagementAccessPackagesWithUniqueNameRequestBuilder when successful +func (m *EntitlementManagementAccessPackagesWithUniqueNameRequestBuilder) WithUrl(rawUrl string)(*EntitlementManagementAccessPackagesWithUniqueNameRequestBuilder) { + return NewEntitlementManagementAccessPackagesWithUniqueNameRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/identitygovernance/entitlement_management_assignment_requests_item_resume_request_builder.go b/identitygovernance/entitlement_management_assignment_requests_item_resume_request_builder.go index 08d402de483..dfb7e31dfe5 100644 --- a/identitygovernance/entitlement_management_assignment_requests_item_resume_request_builder.go +++ b/identitygovernance/entitlement_management_assignment_requests_item_resume_request_builder.go @@ -30,7 +30,7 @@ func NewEntitlementManagementAssignmentRequestsItemResumeRequestBuilder(rawUrl s urlParams["request-raw-url"] = rawUrl return NewEntitlementManagementAssignmentRequestsItemResumeRequestBuilderInternal(urlParams, requestAdapter) } -// Post in Microsoft Entra entitlement management, when an access package policy has been enabled to call out a custom extension and the request processing is waiting for the callback from the customer, the customer can initiate a resume action. It is performed on an accessPackageAssignmentRequest object whose requestStatus is in a WaitingForCallback state. +// Post resume a user's access package request after waiting for a callback from a custom extension. In Microsoft Entra entitlement management, when an access package policy has been enabled to call out a custom extension and the request processing is waiting for the callback from the customer, the customer can initiate a resume action. It's performed on an accessPackageAssignmentRequest object whose requestStatus is in a WaitingForCallback state. // Deprecated: as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -50,7 +50,7 @@ func (m *EntitlementManagementAssignmentRequestsItemResumeRequestBuilder) Post(c } return nil } -// ToPostRequestInformation in Microsoft Entra entitlement management, when an access package policy has been enabled to call out a custom extension and the request processing is waiting for the callback from the customer, the customer can initiate a resume action. It is performed on an accessPackageAssignmentRequest object whose requestStatus is in a WaitingForCallback state. +// ToPostRequestInformation resume a user's access package request after waiting for a callback from a custom extension. In Microsoft Entra entitlement management, when an access package policy has been enabled to call out a custom extension and the request processing is waiting for the callback from the customer, the customer can initiate a resume action. It's performed on an accessPackageAssignmentRequest object whose requestStatus is in a WaitingForCallback state. // Deprecated: as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions // returns a *RequestInformation when successful func (m *EntitlementManagementAssignmentRequestsItemResumeRequestBuilder) ToPostRequestInformation(ctx context.Context, body EntitlementManagementAssignmentRequestsItemResumePostRequestBodyable, requestConfiguration *EntitlementManagementAssignmentRequestsItemResumeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { diff --git a/identitygovernance/entitlement_management_request_builder.go b/identitygovernance/entitlement_management_request_builder.go index dfc2dc8451a..602ac7b5e47 100644 --- a/identitygovernance/entitlement_management_request_builder.go +++ b/identitygovernance/entitlement_management_request_builder.go @@ -71,6 +71,12 @@ func (m *EntitlementManagementRequestBuilder) AccessPackageAssignments()(*Entitl func (m *EntitlementManagementRequestBuilder) AccessPackageCatalogs()(*EntitlementManagementAccessPackageCatalogsRequestBuilder) { return NewEntitlementManagementAccessPackageCatalogsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// AccessPackageCatalogsWithUniqueName provides operations to manage the accessPackageCatalogs property of the microsoft.graph.entitlementManagement entity. +// Deprecated: as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions +// returns a *EntitlementManagementAccessPackageCatalogsWithUniqueNameRequestBuilder when successful +func (m *EntitlementManagementRequestBuilder) AccessPackageCatalogsWithUniqueName(uniqueName *string)(*EntitlementManagementAccessPackageCatalogsWithUniqueNameRequestBuilder) { + return NewEntitlementManagementAccessPackageCatalogsWithUniqueNameRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, uniqueName) +} // AccessPackageResourceEnvironments provides operations to manage the accessPackageResourceEnvironments property of the microsoft.graph.entitlementManagement entity. // returns a *EntitlementManagementAccessPackageResourceEnvironmentsRequestBuilder when successful func (m *EntitlementManagementRequestBuilder) AccessPackageResourceEnvironments()(*EntitlementManagementAccessPackageResourceEnvironmentsRequestBuilder) { @@ -96,6 +102,11 @@ func (m *EntitlementManagementRequestBuilder) AccessPackageResources()(*Entitlem func (m *EntitlementManagementRequestBuilder) AccessPackages()(*EntitlementManagementAccessPackagesRequestBuilder) { return NewEntitlementManagementAccessPackagesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// AccessPackagesWithUniqueName provides operations to manage the accessPackages property of the microsoft.graph.entitlementManagement entity. +// returns a *EntitlementManagementAccessPackagesWithUniqueNameRequestBuilder when successful +func (m *EntitlementManagementRequestBuilder) AccessPackagesWithUniqueName(uniqueName *string)(*EntitlementManagementAccessPackagesWithUniqueNameRequestBuilder) { + return NewEntitlementManagementAccessPackagesWithUniqueNameRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, uniqueName) +} // AssignmentRequests provides operations to manage the assignmentRequests property of the microsoft.graph.entitlementManagement entity. // returns a *EntitlementManagementAssignmentRequestsRequestBuilder when successful func (m *EntitlementManagementRequestBuilder) AssignmentRequests()(*EntitlementManagementAssignmentRequestsRequestBuilder) { diff --git a/identitygovernance/f36e0d7fcde3a48e0c85b75ed43e6931a3b917728839c54df7ffd1c9cbf43738.go b/identitygovernance/f36e0d7fcde3a48e0c85b75ed43e6931a3b917728839c54df7ffd1c9cbf43738.go index 9290d89c806..2c833abb590 100644 --- a/identitygovernance/f36e0d7fcde3a48e0c85b75ed43e6931a3b917728839c54df7ffd1c9cbf43738.go +++ b/identitygovernance/f36e0d7fcde3a48e0c85b75ed43e6931a3b917728839c54df7ffd1c9cbf43738.go @@ -48,6 +48,7 @@ func NewLifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskProc return NewLifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskPro return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskPro return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskPro return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskPro return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/f55abea7c923f960e6c24b099dc0c7579f879205eeae479405e8a98e415162b7.go b/identitygovernance/f55abea7c923f960e6c24b099dc0c7579f879205eeae479405e8a98e415162b7.go index 307abb967f7..56659f30474 100644 --- a/identitygovernance/f55abea7c923f960e6c24b099dc0c7579f879205eeae479405e8a98e415162b7.go +++ b/identitygovernance/f55abea7c923f960e6c24b099dc0c7579f879205eeae479405e8a98e415162b7.go @@ -40,6 +40,7 @@ func NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResults return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResult return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResult return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/f8741a3a5864e1703fde2e9f0c62614a1161c099c38559a8ecc2a21ab323c1f0.go b/identitygovernance/f8741a3a5864e1703fde2e9f0c62614a1161c099c38559a8ecc2a21ab323c1f0.go index 8dada290626..151daf4cc51 100644 --- a/identitygovernance/f8741a3a5864e1703fde2e9f0c62614a1161c099c38559a8ecc2a21ab323c1f0.go +++ b/identitygovernance/f8741a3a5864e1703fde2e9f0c62614a1161c099c38559a8ecc2a21ab323c1f0.go @@ -58,6 +58,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResult return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResult return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResult return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemRunsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/fb1ba992ed3d2634f0f29cf5563d8cdbcfb1c184406eafb3dd2f8b14fca4f3f8.go b/identitygovernance/fb1ba992ed3d2634f0f29cf5563d8cdbcfb1c184406eafb3dd2f8b14fca4f3f8.go index e9918f51cd2..dd608107046 100644 --- a/identitygovernance/fb1ba992ed3d2634f0f29cf5563d8cdbcfb1c184406eafb3dd2f8b14fca4f3f8.go +++ b/identitygovernance/fb1ba992ed3d2634f0f29cf5563d8cdbcfb1c184406eafb3dd2f8b14fca4f3f8.go @@ -30,7 +30,7 @@ func NewEntitlementManagementAccessPackageAssignmentsItemAccessPackageAssignment urlParams["request-raw-url"] = rawUrl return NewEntitlementManagementAccessPackageAssignmentsItemAccessPackageAssignmentRequestsItemResumeRequestBuilderInternal(urlParams, requestAdapter) } -// Post in Microsoft Entra entitlement management, when an access package policy has been enabled to call out a custom extension and the request processing is waiting for the callback from the customer, the customer can initiate a resume action. It is performed on an accessPackageAssignmentRequest object whose requestStatus is in a WaitingForCallback state. +// Post resume a user's access package request after waiting for a callback from a custom extension. In Microsoft Entra entitlement management, when an access package policy has been enabled to call out a custom extension and the request processing is waiting for the callback from the customer, the customer can initiate a resume action. It's performed on an accessPackageAssignmentRequest object whose requestStatus is in a WaitingForCallback state. // Deprecated: as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -50,7 +50,7 @@ func (m *EntitlementManagementAccessPackageAssignmentsItemAccessPackageAssignmen } return nil } -// ToPostRequestInformation in Microsoft Entra entitlement management, when an access package policy has been enabled to call out a custom extension and the request processing is waiting for the callback from the customer, the customer can initiate a resume action. It is performed on an accessPackageAssignmentRequest object whose requestStatus is in a WaitingForCallback state. +// ToPostRequestInformation resume a user's access package request after waiting for a callback from a custom extension. In Microsoft Entra entitlement management, when an access package policy has been enabled to call out a custom extension and the request processing is waiting for the callback from the customer, the customer can initiate a resume action. It's performed on an accessPackageAssignmentRequest object whose requestStatus is in a WaitingForCallback state. // Deprecated: as of 2022-10/PrivatePreview:MicrosofEntitlementManagementCustomextensions // returns a *RequestInformation when successful func (m *EntitlementManagementAccessPackageAssignmentsItemAccessPackageAssignmentRequestsItemResumeRequestBuilder) ToPostRequestInformation(ctx context.Context, body EntitlementManagementAccessPackageAssignmentsItemAccessPackageAssignmentRequestsItemResumePostRequestBodyable, requestConfiguration *EntitlementManagementAccessPackageAssignmentsItemAccessPackageAssignmentRequestsItemResumeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { diff --git a/identitygovernance/fb6dce86b42560180ca62d4f2970bd03523818843f86e055ca2c5b9cd80ea363.go b/identitygovernance/fb6dce86b42560180ca62d4f2970bd03523818843f86e055ca2c5b9cd80ea363.go index 8cbaad9df4d..dfad4d1d2e2 100644 --- a/identitygovernance/fb6dce86b42560180ca62d4f2970bd03523818843f86e055ca2c5b9cd80ea363.go +++ b/identitygovernance/fb6dce86b42560180ca62d4f2970bd03523818843f86e055ca2c5b9cd80ea363.go @@ -58,6 +58,7 @@ func (m *LifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubject return NewLifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *LifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubject return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *LifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubject return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/fd93926879b2fdf8c00da4405056145980e7459a2cfbdabec969879702636172.go b/identitygovernance/fd93926879b2fdf8c00da4405056145980e7459a2cfbdabec969879702636172.go index 56f6ea423db..749649de620 100644 --- a/identitygovernance/fd93926879b2fdf8c00da4405056145980e7459a2cfbdabec969879702636172.go +++ b/identitygovernance/fd93926879b2fdf8c00da4405056145980e7459a2cfbdabec969879702636172.go @@ -58,6 +58,7 @@ func (m *LifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItem return NewLifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *LifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItem return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *LifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItem return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemTaskReportsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/fe6a2ebce5fb158e2f582d8d0abd23e2827a4fc64e7ec993c2af47d617129136.go b/identitygovernance/fe6a2ebce5fb158e2f582d8d0abd23e2827a4fc64e7ec993c2af47d617129136.go index 253b7aec66c..668c46358af 100644 --- a/identitygovernance/fe6a2ebce5fb158e2f582d8d0abd23e2827a4fc64e7ec993c2af47d617129136.go +++ b/identitygovernance/fe6a2ebce5fb158e2f582d8d0abd23e2827a4fc64e7ec993c2af47d617129136.go @@ -48,6 +48,7 @@ func NewLifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsIte return NewLifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *LifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsIt return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *LifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsIt return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *LifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsIt return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *LifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsIt return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder) { return NewLifecycleWorkflowsWorkflowTemplatesItemTasksItemTaskProcessingResultsItemSubjectMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/lifecycle_workflows_custom_task_extensions_item_created_by_mailbox_settings_request_builder.go b/identitygovernance/lifecycle_workflows_custom_task_extensions_item_created_by_mailbox_settings_request_builder.go index ba8789fd218..b3e08bbd394 100644 --- a/identitygovernance/lifecycle_workflows_custom_task_extensions_item_created_by_mailbox_settings_request_builder.go +++ b/identitygovernance/lifecycle_workflows_custom_task_extensions_item_created_by_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewLifecycleWorkflowsCustomTaskExtensionsItemCreatedByMailboxSettingsReques return NewLifecycleWorkflowsCustomTaskExtensionsItemCreatedByMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsCustomTaskExtensionsItemCreatedByMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsCustomTaskExtensionsItemCreatedByMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *LifecycleWorkflowsCustomTaskExtensionsItemCreatedByMailboxSettingsReque return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsCustomTaskExtensionsItemCreatedByMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsCustomTaskExtensionsItemCreatedByMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *LifecycleWorkflowsCustomTaskExtensionsItemCreatedByMailboxSettingsReque return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsCustomTaskExtensionsItemCreatedByMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsCustomTaskExtensionsItemCreatedByMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *LifecycleWorkflowsCustomTaskExtensionsItemCreatedByMailboxSettingsReque return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsCustomTaskExtensionsItemCreatedByMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsCustomTaskExtensionsItemCreatedByMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *LifecycleWorkflowsCustomTaskExtensionsItemCreatedByMailboxSettingsReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsCustomTaskExtensionsItemCreatedByMailboxSettingsRequestBuilder when successful func (m *LifecycleWorkflowsCustomTaskExtensionsItemCreatedByMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsCustomTaskExtensionsItemCreatedByMailboxSettingsRequestBuilder) { return NewLifecycleWorkflowsCustomTaskExtensionsItemCreatedByMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/lifecycle_workflows_custom_task_extensions_item_created_by_request_builder.go b/identitygovernance/lifecycle_workflows_custom_task_extensions_item_created_by_request_builder.go index c52f07881a8..16dd550c409 100644 --- a/identitygovernance/lifecycle_workflows_custom_task_extensions_item_created_by_request_builder.go +++ b/identitygovernance/lifecycle_workflows_custom_task_extensions_item_created_by_request_builder.go @@ -41,6 +41,7 @@ func NewLifecycleWorkflowsCustomTaskExtensionsItemCreatedByRequestBuilder(rawUrl return NewLifecycleWorkflowsCustomTaskExtensionsItemCreatedByRequestBuilderInternal(urlParams, requestAdapter) } // Get the unique identifier of the Microsoft Entra user that created the custom task extension.Supports $filter(eq, ne) and $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsCustomTaskExtensionsItemCreatedByRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsCustomTaskExtensionsItemCreatedByRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *LifecycleWorkflowsCustomTaskExtensionsItemCreatedByRequestBuilder) Serv return NewLifecycleWorkflowsCustomTaskExtensionsItemCreatedByServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation the unique identifier of the Microsoft Entra user that created the custom task extension.Supports $filter(eq, ne) and $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsCustomTaskExtensionsItemCreatedByRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsCustomTaskExtensionsItemCreatedByRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *LifecycleWorkflowsCustomTaskExtensionsItemCreatedByRequestBuilder) ToGe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsCustomTaskExtensionsItemCreatedByRequestBuilder when successful func (m *LifecycleWorkflowsCustomTaskExtensionsItemCreatedByRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsCustomTaskExtensionsItemCreatedByRequestBuilder) { return NewLifecycleWorkflowsCustomTaskExtensionsItemCreatedByRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/lifecycle_workflows_custom_task_extensions_item_last_modified_by_mailbox_settings_request_builder.go b/identitygovernance/lifecycle_workflows_custom_task_extensions_item_last_modified_by_mailbox_settings_request_builder.go index 7ad6f44dd2c..0e2b0f553ac 100644 --- a/identitygovernance/lifecycle_workflows_custom_task_extensions_item_last_modified_by_mailbox_settings_request_builder.go +++ b/identitygovernance/lifecycle_workflows_custom_task_extensions_item_last_modified_by_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewLifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByMailboxSettingsR return NewLifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *LifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByMailboxSettings return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *LifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByMailboxSettings return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *LifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByMailboxSettings return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *LifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByMailboxSettings return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByMailboxSettingsRequestBuilder when successful func (m *LifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByMailboxSettingsRequestBuilder) { return NewLifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/lifecycle_workflows_custom_task_extensions_item_last_modified_by_request_builder.go b/identitygovernance/lifecycle_workflows_custom_task_extensions_item_last_modified_by_request_builder.go index f410fb88eb6..34b4a63906e 100644 --- a/identitygovernance/lifecycle_workflows_custom_task_extensions_item_last_modified_by_request_builder.go +++ b/identitygovernance/lifecycle_workflows_custom_task_extensions_item_last_modified_by_request_builder.go @@ -41,6 +41,7 @@ func NewLifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByRequestBuilder(r return NewLifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByRequestBuilderInternal(urlParams, requestAdapter) } // Get the unique identifier of the Microsoft Entra user that modified the custom task extension last.Supports $filter(eq, ne) and $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *LifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByRequestBuilder) return NewLifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation the unique identifier of the Microsoft Entra user that modified the custom task extension last.Supports $filter(eq, ne) and $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *LifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByRequestBuilder when successful func (m *LifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByRequestBuilder) { return NewLifecycleWorkflowsCustomTaskExtensionsItemLastModifiedByRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/lifecycle_workflows_deleted_items_workflows_item_created_by_mailbox_settings_request_builder.go b/identitygovernance/lifecycle_workflows_deleted_items_workflows_item_created_by_mailbox_settings_request_builder.go index 8f330632885..c79ec0e8659 100644 --- a/identitygovernance/lifecycle_workflows_deleted_items_workflows_item_created_by_mailbox_settings_request_builder.go +++ b/identitygovernance/lifecycle_workflows_deleted_items_workflows_item_created_by_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewLifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByMailboxSettingsReque return NewLifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByMailboxSettingsRequ return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByMailboxSettingsRequ return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByMailboxSettingsRequ return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByMailboxSettingsRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByMailboxSettingsRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByMailboxSettingsRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/lifecycle_workflows_deleted_items_workflows_item_created_by_request_builder.go b/identitygovernance/lifecycle_workflows_deleted_items_workflows_item_created_by_request_builder.go index 2c26ca514bd..d682c63dd0b 100644 --- a/identitygovernance/lifecycle_workflows_deleted_items_workflows_item_created_by_request_builder.go +++ b/identitygovernance/lifecycle_workflows_deleted_items_workflows_item_created_by_request_builder.go @@ -41,6 +41,7 @@ func NewLifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByRequestBuilder(rawUr return NewLifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByRequestBuilderInternal(urlParams, requestAdapter) } // Get the user who created the workflow. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByRequestBuilder) Ser return NewLifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation the user who created the workflow. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByRequestBuilder) ToG return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemCreatedByRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/lifecycle_workflows_deleted_items_workflows_item_last_modified_by_mailbox_settings_request_builder.go b/identitygovernance/lifecycle_workflows_deleted_items_workflows_item_last_modified_by_mailbox_settings_request_builder.go index 0219b8a0572..f6f28edd766 100644 --- a/identitygovernance/lifecycle_workflows_deleted_items_workflows_item_last_modified_by_mailbox_settings_request_builder.go +++ b/identitygovernance/lifecycle_workflows_deleted_items_workflows_item_last_modified_by_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewLifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByMailboxSettings return NewLifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByMailboxSetting return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByMailboxSetting return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByMailboxSetting return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByMailboxSetting return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByMailboxSettingsRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByMailboxSettingsRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/lifecycle_workflows_deleted_items_workflows_item_last_modified_by_request_builder.go b/identitygovernance/lifecycle_workflows_deleted_items_workflows_item_last_modified_by_request_builder.go index e515f310014..e0e822f5a71 100644 --- a/identitygovernance/lifecycle_workflows_deleted_items_workflows_item_last_modified_by_request_builder.go +++ b/identitygovernance/lifecycle_workflows_deleted_items_workflows_item_last_modified_by_request_builder.go @@ -41,6 +41,7 @@ func NewLifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByRequestBuilder( return NewLifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByRequestBuilderInternal(urlParams, requestAdapter) } // Get the user who last modified the workflow. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByRequestBuilder return NewLifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation the user who last modified the workflow. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByRequestBuilder return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemLastModifiedByRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/lifecycle_workflows_deleted_items_workflows_item_versions_item_created_by_request_builder.go b/identitygovernance/lifecycle_workflows_deleted_items_workflows_item_versions_item_created_by_request_builder.go index f42feb6ca9a..bf6056392d8 100644 --- a/identitygovernance/lifecycle_workflows_deleted_items_workflows_item_versions_item_created_by_request_builder.go +++ b/identitygovernance/lifecycle_workflows_deleted_items_workflows_item_versions_item_created_by_request_builder.go @@ -41,6 +41,7 @@ func NewLifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByRequestB return NewLifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByRequestBuilderInternal(urlParams, requestAdapter) } // Get the user who created the workflow. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByRequest return NewLifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation the user who created the workflow. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemCreatedByRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/lifecycle_workflows_deleted_items_workflows_item_versions_item_last_modified_by_request_builder.go b/identitygovernance/lifecycle_workflows_deleted_items_workflows_item_versions_item_last_modified_by_request_builder.go index 4e63517955c..c3b44bd273f 100644 --- a/identitygovernance/lifecycle_workflows_deleted_items_workflows_item_versions_item_last_modified_by_request_builder.go +++ b/identitygovernance/lifecycle_workflows_deleted_items_workflows_item_versions_item_last_modified_by_request_builder.go @@ -41,6 +41,7 @@ func NewLifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByReq return NewLifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByRequestBuilderInternal(urlParams, requestAdapter) } // Get the user who last modified the workflow. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByRe return NewLifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation the user who last modified the workflow. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByRequestBuilder when successful func (m *LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByRequestBuilder) { return NewLifecycleWorkflowsDeletedItemsWorkflowsItemVersionsItemLastModifiedByRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/lifecycle_workflows_deleted_items_workflows_workflow_item_request_builder.go b/identitygovernance/lifecycle_workflows_deleted_items_workflows_workflow_item_request_builder.go index 40f196c8be4..2ebcfe60dc5 100644 --- a/identitygovernance/lifecycle_workflows_deleted_items_workflows_workflow_item_request_builder.go +++ b/identitygovernance/lifecycle_workflows_deleted_items_workflows_workflow_item_request_builder.go @@ -56,7 +56,7 @@ func (m *LifecycleWorkflowsDeletedItemsWorkflowsWorkflowItemRequestBuilder) Crea // 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/identitygovernance-deletedItemcontainer-delete?view=graph-rest-beta +// [Find more info here]: https://learn.microsoft.com/graph/api/identitygovernance-deleteditemcontainer-delete?view=graph-rest-beta func (m *LifecycleWorkflowsDeletedItemsWorkflowsWorkflowItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *LifecycleWorkflowsDeletedItemsWorkflowsWorkflowItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { diff --git a/identitygovernance/lifecycle_workflows_task_definitions_request_builder.go b/identitygovernance/lifecycle_workflows_task_definitions_request_builder.go index 74a5d257b8d..503c2c498ae 100644 --- a/identitygovernance/lifecycle_workflows_task_definitions_request_builder.go +++ b/identitygovernance/lifecycle_workflows_task_definitions_request_builder.go @@ -11,7 +11,7 @@ import ( type LifecycleWorkflowsTaskDefinitionsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// LifecycleWorkflowsTaskDefinitionsRequestBuilderGetQueryParameters get a list of the taskDefinition objects and their properties. +// LifecycleWorkflowsTaskDefinitionsRequestBuilderGetQueryParameters get a list of built-in workflow tasks in Lifecycle Workflows. A task is represented by the taskDefinition object. type LifecycleWorkflowsTaskDefinitionsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -69,7 +69,7 @@ func NewLifecycleWorkflowsTaskDefinitionsRequestBuilder(rawUrl string, requestAd func (m *LifecycleWorkflowsTaskDefinitionsRequestBuilder) Count()(*LifecycleWorkflowsTaskDefinitionsCountRequestBuilder) { return NewLifecycleWorkflowsTaskDefinitionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get a list of the taskDefinition objects and their properties. +// Get get a list of built-in workflow tasks in Lifecycle Workflows. A task is represented by the taskDefinition object. // returns a TaskDefinitionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -92,7 +92,7 @@ func (m *LifecycleWorkflowsTaskDefinitionsRequestBuilder) Get(ctx context.Contex } return res.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.TaskDefinitionCollectionResponseable), nil } -// ToGetRequestInformation get a list of the taskDefinition objects and their properties. +// ToGetRequestInformation get a list of built-in workflow tasks in Lifecycle Workflows. A task is represented by the taskDefinition object. // returns a *RequestInformation when successful func (m *LifecycleWorkflowsTaskDefinitionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsTaskDefinitionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/identitygovernance/lifecycle_workflows_task_definitions_task_definition_item_request_builder.go b/identitygovernance/lifecycle_workflows_task_definitions_task_definition_item_request_builder.go index ad8fd4fc362..168a8a8b2a5 100644 --- a/identitygovernance/lifecycle_workflows_task_definitions_task_definition_item_request_builder.go +++ b/identitygovernance/lifecycle_workflows_task_definitions_task_definition_item_request_builder.go @@ -11,7 +11,7 @@ import ( type LifecycleWorkflowsTaskDefinitionsTaskDefinitionItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// LifecycleWorkflowsTaskDefinitionsTaskDefinitionItemRequestBuilderGetQueryParameters read the details of a built-in workflow task. +// LifecycleWorkflowsTaskDefinitionsTaskDefinitionItemRequestBuilderGetQueryParameters read the details of a built-in workflow task in Lifecycle Workflows. type LifecycleWorkflowsTaskDefinitionsTaskDefinitionItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -40,7 +40,7 @@ func NewLifecycleWorkflowsTaskDefinitionsTaskDefinitionItemRequestBuilder(rawUrl urlParams["request-raw-url"] = rawUrl return NewLifecycleWorkflowsTaskDefinitionsTaskDefinitionItemRequestBuilderInternal(urlParams, requestAdapter) } -// Get read the details of a built-in workflow task. +// Get read the details of a built-in workflow task in Lifecycle Workflows. // returns a TaskDefinitionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -63,7 +63,7 @@ func (m *LifecycleWorkflowsTaskDefinitionsTaskDefinitionItemRequestBuilder) Get( } return res.(i45fdec8a8c1f65ca74c5cf52921d432ad02ee300dbbd24b25f33cc8ecf6a1a91.TaskDefinitionable), nil } -// ToGetRequestInformation read the details of a built-in workflow task. +// ToGetRequestInformation read the details of a built-in workflow task in Lifecycle Workflows. // returns a *RequestInformation when successful func (m *LifecycleWorkflowsTaskDefinitionsTaskDefinitionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsTaskDefinitionsTaskDefinitionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/identitygovernance/lifecycle_workflows_workflows_item_created_by_mailbox_settings_request_builder.go b/identitygovernance/lifecycle_workflows_workflows_item_created_by_mailbox_settings_request_builder.go index dc1396caefc..5a3987e3022 100644 --- a/identitygovernance/lifecycle_workflows_workflows_item_created_by_mailbox_settings_request_builder.go +++ b/identitygovernance/lifecycle_workflows_workflows_item_created_by_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewLifecycleWorkflowsWorkflowsItemCreatedByMailboxSettingsRequestBuilder(ra return NewLifecycleWorkflowsWorkflowsItemCreatedByMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemCreatedByMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemCreatedByMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *LifecycleWorkflowsWorkflowsItemCreatedByMailboxSettingsRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemCreatedByMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsWorkflowsItemCreatedByMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *LifecycleWorkflowsWorkflowsItemCreatedByMailboxSettingsRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemCreatedByMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemCreatedByMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *LifecycleWorkflowsWorkflowsItemCreatedByMailboxSettingsRequestBuilder) return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemCreatedByMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsWorkflowsItemCreatedByMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *LifecycleWorkflowsWorkflowsItemCreatedByMailboxSettingsRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemCreatedByMailboxSettingsRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemCreatedByMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemCreatedByMailboxSettingsRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemCreatedByMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/lifecycle_workflows_workflows_item_created_by_request_builder.go b/identitygovernance/lifecycle_workflows_workflows_item_created_by_request_builder.go index b3f5fecbf43..51d4d7e7746 100644 --- a/identitygovernance/lifecycle_workflows_workflows_item_created_by_request_builder.go +++ b/identitygovernance/lifecycle_workflows_workflows_item_created_by_request_builder.go @@ -41,6 +41,7 @@ func NewLifecycleWorkflowsWorkflowsItemCreatedByRequestBuilder(rawUrl string, re return NewLifecycleWorkflowsWorkflowsItemCreatedByRequestBuilderInternal(urlParams, requestAdapter) } // Get the user who created the workflow. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemCreatedByRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemCreatedByRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *LifecycleWorkflowsWorkflowsItemCreatedByRequestBuilder) ServiceProvisio return NewLifecycleWorkflowsWorkflowsItemCreatedByServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation the user who created the workflow. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemCreatedByRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemCreatedByRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *LifecycleWorkflowsWorkflowsItemCreatedByRequestBuilder) ToGetRequestInf return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemCreatedByRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemCreatedByRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemCreatedByRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemCreatedByRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/lifecycle_workflows_workflows_item_created_by_service_provisioning_errors_count_request_builder.go b/identitygovernance/lifecycle_workflows_workflows_item_created_by_service_provisioning_errors_count_request_builder.go index 4e48089c685..bd8ab1a6b80 100644 --- a/identitygovernance/lifecycle_workflows_workflows_item_created_by_service_provisioning_errors_count_request_builder.go +++ b/identitygovernance/lifecycle_workflows_workflows_item_created_by_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewLifecycleWorkflowsWorkflowsItemCreatedByServiceProvisioningErrorsCountRe return NewLifecycleWorkflowsWorkflowsItemCreatedByServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemCreatedByServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemCreatedByServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *LifecycleWorkflowsWorkflowsItemCreatedByServiceProvisioningErrorsCountR return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemCreatedByServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemCreatedByServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *LifecycleWorkflowsWorkflowsItemCreatedByServiceProvisioningErrorsCountR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemCreatedByServiceProvisioningErrorsCountRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemCreatedByServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemCreatedByServiceProvisioningErrorsCountRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemCreatedByServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/lifecycle_workflows_workflows_item_created_by_service_provisioning_errors_request_builder.go b/identitygovernance/lifecycle_workflows_workflows_item_created_by_service_provisioning_errors_request_builder.go index 90579fe58a2..d01f9d9b4f6 100644 --- a/identitygovernance/lifecycle_workflows_workflows_item_created_by_service_provisioning_errors_request_builder.go +++ b/identitygovernance/lifecycle_workflows_workflows_item_created_by_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *LifecycleWorkflowsWorkflowsItemCreatedByServiceProvisioningErrorsReques return NewLifecycleWorkflowsWorkflowsItemCreatedByServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemCreatedByServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemCreatedByServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *LifecycleWorkflowsWorkflowsItemCreatedByServiceProvisioningErrorsReques return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemCreatedByServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemCreatedByServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *LifecycleWorkflowsWorkflowsItemCreatedByServiceProvisioningErrorsReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemCreatedByServiceProvisioningErrorsRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemCreatedByServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemCreatedByServiceProvisioningErrorsRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemCreatedByServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/lifecycle_workflows_workflows_item_last_modified_by_mailbox_settings_request_builder.go b/identitygovernance/lifecycle_workflows_workflows_item_last_modified_by_mailbox_settings_request_builder.go index 915596ad461..7d66a87c720 100644 --- a/identitygovernance/lifecycle_workflows_workflows_item_last_modified_by_mailbox_settings_request_builder.go +++ b/identitygovernance/lifecycle_workflows_workflows_item_last_modified_by_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewLifecycleWorkflowsWorkflowsItemLastModifiedByMailboxSettingsRequestBuild return NewLifecycleWorkflowsWorkflowsItemLastModifiedByMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemLastModifiedByMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemLastModifiedByMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *LifecycleWorkflowsWorkflowsItemLastModifiedByMailboxSettingsRequestBuil return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemLastModifiedByMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsWorkflowsItemLastModifiedByMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *LifecycleWorkflowsWorkflowsItemLastModifiedByMailboxSettingsRequestBuil return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemLastModifiedByMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemLastModifiedByMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *LifecycleWorkflowsWorkflowsItemLastModifiedByMailboxSettingsRequestBuil return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemLastModifiedByMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsWorkflowsItemLastModifiedByMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *LifecycleWorkflowsWorkflowsItemLastModifiedByMailboxSettingsRequestBuil return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemLastModifiedByMailboxSettingsRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemLastModifiedByMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemLastModifiedByMailboxSettingsRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemLastModifiedByMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/lifecycle_workflows_workflows_item_last_modified_by_request_builder.go b/identitygovernance/lifecycle_workflows_workflows_item_last_modified_by_request_builder.go index ec14199f1b3..d369f939f09 100644 --- a/identitygovernance/lifecycle_workflows_workflows_item_last_modified_by_request_builder.go +++ b/identitygovernance/lifecycle_workflows_workflows_item_last_modified_by_request_builder.go @@ -41,6 +41,7 @@ func NewLifecycleWorkflowsWorkflowsItemLastModifiedByRequestBuilder(rawUrl strin return NewLifecycleWorkflowsWorkflowsItemLastModifiedByRequestBuilderInternal(urlParams, requestAdapter) } // Get the user who last modified the workflow. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemLastModifiedByRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemLastModifiedByRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *LifecycleWorkflowsWorkflowsItemLastModifiedByRequestBuilder) ServicePro return NewLifecycleWorkflowsWorkflowsItemLastModifiedByServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation the user who last modified the workflow. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemLastModifiedByRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemLastModifiedByRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *LifecycleWorkflowsWorkflowsItemLastModifiedByRequestBuilder) ToGetReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemLastModifiedByRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemLastModifiedByRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemLastModifiedByRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemLastModifiedByRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/lifecycle_workflows_workflows_item_last_modified_by_service_provisioning_errors_request_builder.go b/identitygovernance/lifecycle_workflows_workflows_item_last_modified_by_service_provisioning_errors_request_builder.go index e22d9634415..4684c9e886e 100644 --- a/identitygovernance/lifecycle_workflows_workflows_item_last_modified_by_service_provisioning_errors_request_builder.go +++ b/identitygovernance/lifecycle_workflows_workflows_item_last_modified_by_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *LifecycleWorkflowsWorkflowsItemLastModifiedByServiceProvisioningErrorsR return NewLifecycleWorkflowsWorkflowsItemLastModifiedByServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemLastModifiedByServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemLastModifiedByServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *LifecycleWorkflowsWorkflowsItemLastModifiedByServiceProvisioningErrorsR return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemLastModifiedByServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemLastModifiedByServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *LifecycleWorkflowsWorkflowsItemLastModifiedByServiceProvisioningErrorsR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemLastModifiedByServiceProvisioningErrorsRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemLastModifiedByServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemLastModifiedByServiceProvisioningErrorsRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemLastModifiedByServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/lifecycle_workflows_workflows_item_runs_item_task_processing_results_item_subject_request_builder.go b/identitygovernance/lifecycle_workflows_workflows_item_runs_item_task_processing_results_item_subject_request_builder.go index e2087d24f76..a2afc70c9af 100644 --- a/identitygovernance/lifecycle_workflows_workflows_item_runs_item_task_processing_results_item_subject_request_builder.go +++ b/identitygovernance/lifecycle_workflows_workflows_item_runs_item_task_processing_results_item_subject_request_builder.go @@ -41,6 +41,7 @@ func NewLifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectR return NewLifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectRequestBuilderInternal(urlParams, requestAdapter) } // Get the unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *LifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubject return NewLifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation the unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *LifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubject return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemRunsItemTaskProcessingResultsItemSubjectRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/lifecycle_workflows_workflows_item_runs_item_user_processing_results_item_subject_request_builder.go b/identitygovernance/lifecycle_workflows_workflows_item_runs_item_user_processing_results_item_subject_request_builder.go index bb1667e44f3..8eeb34e6cd9 100644 --- a/identitygovernance/lifecycle_workflows_workflows_item_runs_item_user_processing_results_item_subject_request_builder.go +++ b/identitygovernance/lifecycle_workflows_workflows_item_runs_item_user_processing_results_item_subject_request_builder.go @@ -41,6 +41,7 @@ func NewLifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubjectR return NewLifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubjectRequestBuilderInternal(urlParams, requestAdapter) } // Get the unique identifier of the AAD user targeted for the taskProcessingResult.Supports $filter(eq, ne) and $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubjectRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubject return NewLifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation the unique identifier of the AAD user targeted for the taskProcessingResult.Supports $filter(eq, ne) and $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubjectRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubject return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubjectRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubjectRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubjectRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemRunsItemUserProcessingResultsItemSubjectRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/lifecycle_workflows_workflows_item_tasks_item_task_processing_results_item_subject_request_builder.go b/identitygovernance/lifecycle_workflows_workflows_item_tasks_item_task_processing_results_item_subject_request_builder.go index 6d990d13212..dcacccc6fa7 100644 --- a/identitygovernance/lifecycle_workflows_workflows_item_tasks_item_task_processing_results_item_subject_request_builder.go +++ b/identitygovernance/lifecycle_workflows_workflows_item_tasks_item_task_processing_results_item_subject_request_builder.go @@ -41,6 +41,7 @@ func NewLifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubject return NewLifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectRequestBuilderInternal(urlParams, requestAdapter) } // Get the unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *LifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjec return NewLifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation the unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *LifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjec return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemTasksItemTaskProcessingResultsItemSubjectRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/lifecycle_workflows_workflows_item_user_processing_results_item_subject_request_builder.go b/identitygovernance/lifecycle_workflows_workflows_item_user_processing_results_item_subject_request_builder.go index 018da51b628..b7f1a861a7a 100644 --- a/identitygovernance/lifecycle_workflows_workflows_item_user_processing_results_item_subject_request_builder.go +++ b/identitygovernance/lifecycle_workflows_workflows_item_user_processing_results_item_subject_request_builder.go @@ -41,6 +41,7 @@ func NewLifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectRequestBu return NewLifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectRequestBuilderInternal(urlParams, requestAdapter) } // Get the unique identifier of the AAD user targeted for the taskProcessingResult.Supports $filter(eq, ne) and $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectRequestB return NewLifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation the unique identifier of the AAD user targeted for the taskProcessingResult.Supports $filter(eq, ne) and $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectRequestB return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemUserProcessingResultsItemSubjectRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/lifecycle_workflows_workflows_item_versions_item_created_by_mailbox_settings_request_builder.go b/identitygovernance/lifecycle_workflows_workflows_item_versions_item_created_by_mailbox_settings_request_builder.go index 70c326d1447..5c11dc148dd 100644 --- a/identitygovernance/lifecycle_workflows_workflows_item_versions_item_created_by_mailbox_settings_request_builder.go +++ b/identitygovernance/lifecycle_workflows_workflows_item_versions_item_created_by_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewLifecycleWorkflowsWorkflowsItemVersionsItemCreatedByMailboxSettingsReque return NewLifecycleWorkflowsWorkflowsItemVersionsItemCreatedByMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemVersionsItemCreatedByMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemVersionsItemCreatedByMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *LifecycleWorkflowsWorkflowsItemVersionsItemCreatedByMailboxSettingsRequ return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemVersionsItemCreatedByMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsWorkflowsItemVersionsItemCreatedByMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *LifecycleWorkflowsWorkflowsItemVersionsItemCreatedByMailboxSettingsRequ return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemVersionsItemCreatedByMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemVersionsItemCreatedByMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *LifecycleWorkflowsWorkflowsItemVersionsItemCreatedByMailboxSettingsRequ return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemVersionsItemCreatedByMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsWorkflowsItemVersionsItemCreatedByMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *LifecycleWorkflowsWorkflowsItemVersionsItemCreatedByMailboxSettingsRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemVersionsItemCreatedByMailboxSettingsRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemVersionsItemCreatedByMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemVersionsItemCreatedByMailboxSettingsRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemVersionsItemCreatedByMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/lifecycle_workflows_workflows_item_versions_item_created_by_request_builder.go b/identitygovernance/lifecycle_workflows_workflows_item_versions_item_created_by_request_builder.go index 5931a137de9..284b4a878d1 100644 --- a/identitygovernance/lifecycle_workflows_workflows_item_versions_item_created_by_request_builder.go +++ b/identitygovernance/lifecycle_workflows_workflows_item_versions_item_created_by_request_builder.go @@ -41,6 +41,7 @@ func NewLifecycleWorkflowsWorkflowsItemVersionsItemCreatedByRequestBuilder(rawUr return NewLifecycleWorkflowsWorkflowsItemVersionsItemCreatedByRequestBuilderInternal(urlParams, requestAdapter) } // Get the user who created the workflow. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemVersionsItemCreatedByRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemVersionsItemCreatedByRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *LifecycleWorkflowsWorkflowsItemVersionsItemCreatedByRequestBuilder) Ser return NewLifecycleWorkflowsWorkflowsItemVersionsItemCreatedByServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation the user who created the workflow. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemVersionsItemCreatedByRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemVersionsItemCreatedByRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *LifecycleWorkflowsWorkflowsItemVersionsItemCreatedByRequestBuilder) ToG return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemVersionsItemCreatedByRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemVersionsItemCreatedByRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemVersionsItemCreatedByRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemVersionsItemCreatedByRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/lifecycle_workflows_workflows_item_versions_item_last_modified_by_mailbox_settings_request_builder.go b/identitygovernance/lifecycle_workflows_workflows_item_versions_item_last_modified_by_mailbox_settings_request_builder.go index 9498305f88c..bcb312b77f3 100644 --- a/identitygovernance/lifecycle_workflows_workflows_item_versions_item_last_modified_by_mailbox_settings_request_builder.go +++ b/identitygovernance/lifecycle_workflows_workflows_item_versions_item_last_modified_by_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewLifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByMailboxSettings return NewLifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *LifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByMailboxSetting return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *LifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByMailboxSetting return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *LifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByMailboxSetting return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *LifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *LifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByMailboxSetting return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByMailboxSettingsRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByMailboxSettingsRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/lifecycle_workflows_workflows_item_versions_item_last_modified_by_request_builder.go b/identitygovernance/lifecycle_workflows_workflows_item_versions_item_last_modified_by_request_builder.go index 7ea499a512f..cfe76c1cdda 100644 --- a/identitygovernance/lifecycle_workflows_workflows_item_versions_item_last_modified_by_request_builder.go +++ b/identitygovernance/lifecycle_workflows_workflows_item_versions_item_last_modified_by_request_builder.go @@ -41,6 +41,7 @@ func NewLifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByRequestBuilder( return NewLifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByRequestBuilderInternal(urlParams, requestAdapter) } // Get the user who last modified the workflow. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *LifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByRequestBuilder) Get(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *LifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByRequestBuilder return NewLifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation the user who last modified the workflow. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *LifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *LifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByRequestBuilder return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *LifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByRequestBuilder when successful func (m *LifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByRequestBuilder) WithUrl(rawUrl string)(*LifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByRequestBuilder) { return NewLifecycleWorkflowsWorkflowsItemVersionsItemLastModifiedByRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/identitygovernance/terms_of_use_agreements_agreement_item_request_builder.go b/identitygovernance/terms_of_use_agreements_agreement_item_request_builder.go index bf553211a66..de390f73231 100644 --- a/identitygovernance/terms_of_use_agreements_agreement_item_request_builder.go +++ b/identitygovernance/terms_of_use_agreements_agreement_item_request_builder.go @@ -18,7 +18,7 @@ type TermsOfUseAgreementsAgreementItemRequestBuilderDeleteRequestConfiguration s // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// TermsOfUseAgreementsAgreementItemRequestBuilderGetQueryParameters retrieve the properties and relationships of an agreement object. +// TermsOfUseAgreementsAgreementItemRequestBuilderGetQueryParameters retrieve all files related to an agreement. This includes the default file and all localized files. type TermsOfUseAgreementsAgreementItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -88,12 +88,12 @@ func (m *TermsOfUseAgreementsAgreementItemRequestBuilder) File()(*TermsOfUseAgre func (m *TermsOfUseAgreementsAgreementItemRequestBuilder) Files()(*TermsOfUseAgreementsItemFilesRequestBuilder) { return NewTermsOfUseAgreementsItemFilesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get retrieve the properties and relationships of an agreement object. +// Get retrieve all files related to an agreement. This includes the default file and all localized files. // returns a Agreementable 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/agreement-get?view=graph-rest-beta +// [Find more info here]: https://learn.microsoft.com/graph/api/agreement-list-files?view=graph-rest-beta func (m *TermsOfUseAgreementsAgreementItemRequestBuilder) Get(ctx context.Context, requestConfiguration *TermsOfUseAgreementsAgreementItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Agreementable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -145,7 +145,7 @@ func (m *TermsOfUseAgreementsAgreementItemRequestBuilder) ToDeleteRequestInforma requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation retrieve the properties and relationships of an agreement object. +// ToGetRequestInformation retrieve all files related to an agreement. This includes the default file and all localized files. // returns a *RequestInformation when successful func (m *TermsOfUseAgreementsAgreementItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TermsOfUseAgreementsAgreementItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/identityprotection/risky_users_request_builder.go b/identityprotection/risky_users_request_builder.go index 1073ad678eb..2907469e6b6 100644 --- a/identityprotection/risky_users_request_builder.go +++ b/identityprotection/risky_users_request_builder.go @@ -11,7 +11,7 @@ import ( type RiskyUsersRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// RiskyUsersRequestBuilderGetQueryParameters retrieve the properties and relationships of a riskyUser object. +// RiskyUsersRequestBuilderGetQueryParameters retrieve the properties and relationships of a collection of riskyUser objects. type RiskyUsersRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -86,12 +86,12 @@ func (m *RiskyUsersRequestBuilder) Count()(*RiskyUsersCountRequestBuilder) { func (m *RiskyUsersRequestBuilder) Dismiss()(*RiskyUsersDismissRequestBuilder) { return NewRiskyUsersDismissRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get retrieve the properties and relationships of a riskyUser object. +// Get retrieve the properties and relationships of a collection of riskyUser objects. // returns a RiskyUserCollectionResponseable 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/riskyusers-get?view=graph-rest-beta +// [Find more info here]: https://learn.microsoft.com/graph/api/riskyusers-list?view=graph-rest-beta func (m *RiskyUsersRequestBuilder) Get(ctx context.Context, requestConfiguration *RiskyUsersRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RiskyUserCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -129,7 +129,7 @@ func (m *RiskyUsersRequestBuilder) Post(ctx context.Context, body ie233ee762e29b } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RiskyUserable), nil } -// ToGetRequestInformation retrieve the properties and relationships of a riskyUser object. +// ToGetRequestInformation retrieve the properties and relationships of a collection of riskyUser objects. // returns a *RequestInformation when successful func (m *RiskyUsersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *RiskyUsersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/invitations/invited_user_mailbox_settings_request_builder.go b/invitations/invited_user_mailbox_settings_request_builder.go index 3b8f7c6f289..849749a0b85 100644 --- a/invitations/invited_user_mailbox_settings_request_builder.go +++ b/invitations/invited_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewInvitedUserMailboxSettingsRequestBuilder(rawUrl string, requestAdapter i return NewInvitedUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *InvitedUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *InvitedUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *InvitedUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requ return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *InvitedUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *InvitedUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *InvitedUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, bo return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *InvitedUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *InvitedUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *InvitedUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx c return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *InvitedUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *InvitedUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *InvitedUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *InvitedUserMailboxSettingsRequestBuilder when successful func (m *InvitedUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*InvitedUserMailboxSettingsRequestBuilder) { return NewInvitedUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/invitations/invited_user_request_builder.go b/invitations/invited_user_request_builder.go index d9fd04e60db..1f2e7f4bc63 100644 --- a/invitations/invited_user_request_builder.go +++ b/invitations/invited_user_request_builder.go @@ -41,6 +41,7 @@ func NewInvitedUserRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee26 return NewInvitedUserRequestBuilderInternal(urlParams, requestAdapter) } // Get the user created as part of the invitation creation. Read-Only. The id property is required in the request body to reset a redemption status. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *InvitedUserRequestBuilder) Get(ctx context.Context, requestConfiguration *InvitedUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *InvitedUserRequestBuilder) ServiceProvisioningErrors()(*InvitedUserServ return NewInvitedUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation the user created as part of the invitation creation. Read-Only. The id property is required in the request body to reset a redemption status. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *InvitedUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *InvitedUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *InvitedUserRequestBuilder) ToGetRequestInformation(ctx context.Context, return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *InvitedUserRequestBuilder when successful func (m *InvitedUserRequestBuilder) WithUrl(rawUrl string)(*InvitedUserRequestBuilder) { return NewInvitedUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/invitations/invited_user_service_provisioning_errors_count_request_builder.go b/invitations/invited_user_service_provisioning_errors_count_request_builder.go index 18167314829..b077b846eeb 100644 --- a/invitations/invited_user_service_provisioning_errors_count_request_builder.go +++ b/invitations/invited_user_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewInvitedUserServiceProvisioningErrorsCountRequestBuilder(rawUrl string, r return NewInvitedUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *InvitedUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *InvitedUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *InvitedUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx contex return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *InvitedUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *InvitedUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *InvitedUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *InvitedUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *InvitedUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*InvitedUserServiceProvisioningErrorsCountRequestBuilder) { return NewInvitedUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/invitations/invited_user_service_provisioning_errors_request_builder.go b/invitations/invited_user_service_provisioning_errors_request_builder.go index f106eec27fd..891207e9985 100644 --- a/invitations/invited_user_service_provisioning_errors_request_builder.go +++ b/invitations/invited_user_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *InvitedUserServiceProvisioningErrorsRequestBuilder) Count()(*InvitedUse return NewInvitedUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *InvitedUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *InvitedUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *InvitedUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *InvitedUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *InvitedUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *InvitedUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *InvitedUserServiceProvisioningErrorsRequestBuilder when successful func (m *InvitedUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*InvitedUserServiceProvisioningErrorsRequestBuilder) { return NewInvitedUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/kiota-lock.json b/kiota-lock.json index d3e9d4815ea..c9f99c75bbd 100644 --- a/kiota-lock.json +++ b/kiota-lock.json @@ -1,8 +1,8 @@ { - "descriptionHash": "383FDBDA3117C1C7A3A848D968FCC76C799C7B7E58F2507C1C65491C2264B9200037C4685D3F657B3B8AA811699D39B15947E7CDE3FC15C96E387AE0D901877C", + "descriptionHash": "CE216DA090BDCA5DBEA201AA93E5FF7CD6EC5A83BC9300FDAF35885B9C26B342E7D2EFF90C70FE262EDC7E65F917174FC7F824439E44BB9F3EE9BCEC9B5FD4AE", "descriptionLocation": "../../msgraph-metadata/clean_beta_openapi/openapi.yaml", "lockFileVersion": "1.0.0", - "kiotaVersion": "1.17.0", + "kiotaVersion": "1.18.0", "clientClassName": "GraphBaseServiceClient", "clientNamespaceName": "github.com/microsoftgraph/msgraph-beta-sdk-go/", "language": "Go", diff --git a/models/access_package.go b/models/access_package.go index 5485b36512e..6ecb5050612 100644 --- a/models/access_package.go +++ b/models/access_package.go @@ -312,6 +312,16 @@ func (m *AccessPackage) GetFieldDeserializers()(map[string]func(i878a80d2330e89d } return nil } + res["uniqueName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetUniqueName(val) + } + return nil + } return res } // GetIncompatibleAccessPackages gets the incompatibleAccessPackages property value. The access packages whose assigned users are ineligible to be assigned this access package. @@ -386,6 +396,18 @@ func (m *AccessPackage) GetModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6 } return nil } +// GetUniqueName gets the uniqueName property value. The uniqueName property +// returns a *string when successful +func (m *AccessPackage) GetUniqueName()(*string) { + val, err := m.GetBackingStore().Get("uniqueName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // Serialize serializes information the current object func (m *AccessPackage) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.Entity.Serialize(writer) @@ -512,6 +534,12 @@ func (m *AccessPackage) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0 return err } } + { + err = writer.WriteStringValue("uniqueName", m.GetUniqueName()) + if err != nil { + return err + } + } return nil } // SetAccessPackageAssignmentPolicies sets the accessPackageAssignmentPolicies property value. Read-only. Nullable. Supports $expand. @@ -619,6 +647,13 @@ func (m *AccessPackage) SetModifiedDateTime(value *i336074805fc853987abe6f7fe3ad panic(err) } } +// SetUniqueName sets the uniqueName property value. The uniqueName property +func (m *AccessPackage) SetUniqueName(value *string)() { + err := m.GetBackingStore().Set("uniqueName", value) + if err != nil { + panic(err) + } +} type AccessPackageable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable @@ -637,6 +672,7 @@ type AccessPackageable interface { GetIsRoleScopesVisible()(*bool) GetModifiedBy()(*string) GetModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetUniqueName()(*string) SetAccessPackageAssignmentPolicies(value []AccessPackageAssignmentPolicyable)() SetAccessPackageCatalog(value AccessPackageCatalogable)() SetAccessPackageResourceRoleScopes(value []AccessPackageResourceRoleScopeable)() @@ -652,4 +688,5 @@ type AccessPackageable interface { SetIsRoleScopesVisible(value *bool)() SetModifiedBy(value *string)() SetModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetUniqueName(value *string)() } diff --git a/models/access_package_assignment_policy.go b/models/access_package_assignment_policy.go index 89b3ff02f75..e0802a439b9 100644 --- a/models/access_package_assignment_policy.go +++ b/models/access_package_assignment_policy.go @@ -56,6 +56,18 @@ func (m *AccessPackageAssignmentPolicy) GetAccessPackageId()(*string) { } return nil } +// GetAccessPackageNotificationSettings gets the accessPackageNotificationSettings property value. The accessPackageNotificationSettings property +// returns a AccessPackageNotificationSettingsable when successful +func (m *AccessPackageAssignmentPolicy) GetAccessPackageNotificationSettings()(AccessPackageNotificationSettingsable) { + val, err := m.GetBackingStore().Get("accessPackageNotificationSettings") + if err != nil { + panic(err) + } + if val != nil { + return val.(AccessPackageNotificationSettingsable) + } + return nil +} // GetAccessReviewSettings gets the accessReviewSettings property value. Who must review, and how often, the assignments to the access package from this policy. This property is null if reviews aren't required. // returns a AssignmentReviewSettingsable when successful func (m *AccessPackageAssignmentPolicy) GetAccessReviewSettings()(AssignmentReviewSettingsable) { @@ -210,6 +222,16 @@ func (m *AccessPackageAssignmentPolicy) GetFieldDeserializers()(map[string]func( } return nil } + res["accessPackageNotificationSettings"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateAccessPackageNotificationSettingsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetAccessPackageNotificationSettings(val.(AccessPackageNotificationSettingsable)) + } + return nil + } res["accessReviewSettings"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateAssignmentReviewSettingsFromDiscriminatorValue) if err != nil { @@ -486,6 +508,12 @@ func (m *AccessPackageAssignmentPolicy) Serialize(writer i878a80d2330e89d2689638 return err } } + { + err = writer.WriteObjectValue("accessPackageNotificationSettings", m.GetAccessPackageNotificationSettings()) + if err != nil { + return err + } + } { err = writer.WriteObjectValue("accessReviewSettings", m.GetAccessReviewSettings()) if err != nil { @@ -623,6 +651,13 @@ func (m *AccessPackageAssignmentPolicy) SetAccessPackageId(value *string)() { panic(err) } } +// SetAccessPackageNotificationSettings sets the accessPackageNotificationSettings property value. The accessPackageNotificationSettings property +func (m *AccessPackageAssignmentPolicy) SetAccessPackageNotificationSettings(value AccessPackageNotificationSettingsable)() { + err := m.GetBackingStore().Set("accessPackageNotificationSettings", value) + if err != nil { + panic(err) + } +} // SetAccessReviewSettings sets the accessReviewSettings property value. Who must review, and how often, the assignments to the access package from this policy. This property is null if reviews aren't required. func (m *AccessPackageAssignmentPolicy) SetAccessReviewSettings(value AssignmentReviewSettingsable)() { err := m.GetBackingStore().Set("accessReviewSettings", value) @@ -741,6 +776,7 @@ type AccessPackageAssignmentPolicyable interface { GetAccessPackage()(AccessPackageable) GetAccessPackageCatalog()(AccessPackageCatalogable) GetAccessPackageId()(*string) + GetAccessPackageNotificationSettings()(AccessPackageNotificationSettingsable) GetAccessReviewSettings()(AssignmentReviewSettingsable) GetCanExtend()(*bool) GetCreatedBy()(*string) @@ -760,6 +796,7 @@ type AccessPackageAssignmentPolicyable interface { SetAccessPackage(value AccessPackageable)() SetAccessPackageCatalog(value AccessPackageCatalogable)() SetAccessPackageId(value *string)() + SetAccessPackageNotificationSettings(value AccessPackageNotificationSettingsable)() SetAccessReviewSettings(value AssignmentReviewSettingsable)() SetCanExtend(value *bool)() SetCreatedBy(value *string)() diff --git a/models/access_package_catalog.go b/models/access_package_catalog.go index e41f3458c95..d12ea608c57 100644 --- a/models/access_package_catalog.go +++ b/models/access_package_catalog.go @@ -354,6 +354,16 @@ func (m *AccessPackageCatalog) GetFieldDeserializers()(map[string]func(i878a80d2 } return nil } + res["uniqueName"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetUniqueName(val) + } + return nil + } return res } // GetIsExternallyVisible gets the isExternallyVisible property value. Whether the access packages in this catalog can be requested by users outside of the tenant. @@ -392,6 +402,18 @@ func (m *AccessPackageCatalog) GetModifiedDateTime()(*i336074805fc853987abe6f7fe } return nil } +// GetUniqueName gets the uniqueName property value. The uniqueName property +// returns a *string when successful +func (m *AccessPackageCatalog) GetUniqueName()(*string) { + val, err := m.GetBackingStore().Get("uniqueName") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} // Serialize serializes information the current object func (m *AccessPackageCatalog) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.Entity.Serialize(writer) @@ -524,6 +546,12 @@ func (m *AccessPackageCatalog) Serialize(writer i878a80d2330e89d26896388a3f487ee return err } } + { + err = writer.WriteStringValue("uniqueName", m.GetUniqueName()) + if err != nil { + return err + } + } return nil } // SetAccessPackageCustomWorkflowExtensions sets the accessPackageCustomWorkflowExtensions property value. The attributes of a logic app, which can be called at various stages of an access package request and assignment cycle. @@ -631,6 +659,13 @@ func (m *AccessPackageCatalog) SetModifiedDateTime(value *i336074805fc853987abe6 panic(err) } } +// SetUniqueName sets the uniqueName property value. The uniqueName property +func (m *AccessPackageCatalog) SetUniqueName(value *string)() { + err := m.GetBackingStore().Set("uniqueName", value) + if err != nil { + panic(err) + } +} type AccessPackageCatalogable interface { Entityable i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable @@ -649,6 +684,7 @@ type AccessPackageCatalogable interface { GetIsExternallyVisible()(*bool) GetModifiedBy()(*string) GetModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetUniqueName()(*string) SetAccessPackageCustomWorkflowExtensions(value []CustomCalloutExtensionable)() SetAccessPackageResourceRoles(value []AccessPackageResourceRoleable)() SetAccessPackageResources(value []AccessPackageResourceable)() @@ -664,4 +700,5 @@ type AccessPackageCatalogable interface { SetIsExternallyVisible(value *bool)() SetModifiedBy(value *string)() SetModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetUniqueName(value *string)() } diff --git a/models/access_package_notification_settings.go b/models/access_package_notification_settings.go new file mode 100644 index 00000000000..a3b65849578 --- /dev/null +++ b/models/access_package_notification_settings.go @@ -0,0 +1,150 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type AccessPackageNotificationSettings struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewAccessPackageNotificationSettings instantiates a new AccessPackageNotificationSettings and sets the default values. +func NewAccessPackageNotificationSettings()(*AccessPackageNotificationSettings) { + m := &AccessPackageNotificationSettings{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateAccessPackageNotificationSettingsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateAccessPackageNotificationSettingsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewAccessPackageNotificationSettings(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *AccessPackageNotificationSettings) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *AccessPackageNotificationSettings) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *AccessPackageNotificationSettings) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["isAssignmentNotificationDisabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsAssignmentNotificationDisabled(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 + } + return res +} +// GetIsAssignmentNotificationDisabled gets the isAssignmentNotificationDisabled property value. The isAssignmentNotificationDisabled property +// returns a *bool when successful +func (m *AccessPackageNotificationSettings) GetIsAssignmentNotificationDisabled()(*bool) { + val, err := m.GetBackingStore().Get("isAssignmentNotificationDisabled") + 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 *AccessPackageNotificationSettings) 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 *AccessPackageNotificationSettings) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteBoolValue("isAssignmentNotificationDisabled", m.GetIsAssignmentNotificationDisabled()) + 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 *AccessPackageNotificationSettings) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *AccessPackageNotificationSettings) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetIsAssignmentNotificationDisabled sets the isAssignmentNotificationDisabled property value. The isAssignmentNotificationDisabled property +func (m *AccessPackageNotificationSettings) SetIsAssignmentNotificationDisabled(value *bool)() { + err := m.GetBackingStore().Set("isAssignmentNotificationDisabled", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *AccessPackageNotificationSettings) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +type AccessPackageNotificationSettingsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetIsAssignmentNotificationDisabled()(*bool) + GetOdataType()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetIsAssignmentNotificationDisabled(value *bool)() + SetOdataType(value *string)() +} diff --git a/models/admin.go b/models/admin.go index ea4dd9b22b1..71db7e3a83a 100644 --- a/models/admin.go +++ b/models/admin.go @@ -76,6 +76,18 @@ func (m *Admin) GetEdge()(Edgeable) { } return nil } +// GetEntra gets the entra property value. The entra property +// returns a Entraable when successful +func (m *Admin) GetEntra()(Entraable) { + val, err := m.GetBackingStore().Get("entra") + if err != nil { + panic(err) + } + if val != nil { + return val.(Entraable) + } + return nil +} // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *Admin) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { @@ -110,6 +122,16 @@ func (m *Admin) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388 } return nil } + res["entra"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateEntraFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetEntra(val.(Entraable)) + } + return nil + } res["forms"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateAdminFormsFromDiscriminatorValue) if err != nil { @@ -330,6 +352,12 @@ func (m *Admin) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c4 return err } } + { + err := writer.WriteObjectValue("entra", m.GetEntra()) + if err != nil { + return err + } + } { err := writer.WriteObjectValue("forms", m.GetForms()) if err != nil { @@ -424,6 +452,13 @@ func (m *Admin) SetEdge(value Edgeable)() { panic(err) } } +// SetEntra sets the entra property value. The entra property +func (m *Admin) SetEntra(value Entraable)() { + err := m.GetBackingStore().Set("entra", value) + if err != nil { + panic(err) + } +} // SetForms sets the forms property value. The forms property func (m *Admin) SetForms(value AdminFormsable)() { err := m.GetBackingStore().Set("forms", value) @@ -495,6 +530,7 @@ type Adminable interface { GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetDynamics()(AdminDynamicsable) GetEdge()(Edgeable) + GetEntra()(Entraable) GetForms()(AdminFormsable) GetMicrosoft365Apps()(AdminMicrosoft365Appsable) GetOdataType()(*string) @@ -508,6 +544,7 @@ type Adminable interface { SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetDynamics(value AdminDynamicsable)() SetEdge(value Edgeable)() + SetEntra(value Entraable)() SetForms(value AdminFormsable)() SetMicrosoft365Apps(value AdminMicrosoft365Appsable)() SetOdataType(value *string)() diff --git a/models/admin_report_settings.go b/models/admin_report_settings.go index 03dce2dd5b6..f9cf57d93f4 100644 --- a/models/admin_report_settings.go +++ b/models/admin_report_settings.go @@ -19,7 +19,7 @@ func NewAdminReportSettings()(*AdminReportSettings) { func CreateAdminReportSettingsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewAdminReportSettings(), nil } -// GetDisplayConcealedNames gets the displayConcealedNames property value. If set to true, all reports will conceal user information such as usernames, groups, and sites. If false, all reports will show identifiable information. This property represents a setting in the Microsoft 365 admin center. Required. +// GetDisplayConcealedNames gets the displayConcealedNames property value. If set to true, all reports conceal user information such as usernames, groups, and sites. If false, all reports show identifiable information. This property represents a setting in the Microsoft 365 admin center. Required. // returns a *bool when successful func (m *AdminReportSettings) GetDisplayConcealedNames()(*bool) { val, err := m.GetBackingStore().Get("displayConcealedNames") @@ -61,7 +61,7 @@ func (m *AdminReportSettings) Serialize(writer i878a80d2330e89d26896388a3f487eef } return nil } -// SetDisplayConcealedNames sets the displayConcealedNames property value. If set to true, all reports will conceal user information such as usernames, groups, and sites. If false, all reports will show identifiable information. This property represents a setting in the Microsoft 365 admin center. Required. +// SetDisplayConcealedNames sets the displayConcealedNames property value. If set to true, all reports conceal user information such as usernames, groups, and sites. If false, all reports show identifiable information. This property represents a setting in the Microsoft 365 admin center. Required. func (m *AdminReportSettings) SetDisplayConcealedNames(value *bool)() { err := m.GetBackingStore().Set("displayConcealedNames", value) if err != nil { diff --git a/models/app_credential_sign_in_activity.go b/models/app_credential_sign_in_activity.go index a2fcfc5faf2..87ce48ba161 100644 --- a/models/app_credential_sign_in_activity.go +++ b/models/app_credential_sign_in_activity.go @@ -20,7 +20,7 @@ func NewAppCredentialSignInActivity()(*AppCredentialSignInActivity) { func CreateAppCredentialSignInActivityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewAppCredentialSignInActivity(), nil } -// GetAppId gets the appId property value. The globally unique appId (also called client ID on the Microsoft Entra admin center) of the credential application. +// GetAppId gets the appId property value. The globally unique appId (also called client ID on the Microsoft Entra admin center) of the credentialed application. // returns a *string when successful func (m *AppCredentialSignInActivity) GetAppId()(*string) { val, err := m.GetBackingStore().Get("appId") @@ -345,7 +345,7 @@ func (m *AppCredentialSignInActivity) Serialize(writer i878a80d2330e89d26896388a } return nil } -// SetAppId sets the appId property value. The globally unique appId (also called client ID on the Microsoft Entra admin center) of the credential application. +// SetAppId sets the appId property value. The globally unique appId (also called client ID on the Microsoft Entra admin center) of the credentialed application. func (m *AppCredentialSignInActivity) SetAppId(value *string)() { err := m.GetBackingStore().Set("appId", value) if err != nil { diff --git a/models/app_role_assignment.go b/models/app_role_assignment.go index 050f2e9a5f7..9e8d16d8601 100644 --- a/models/app_role_assignment.go +++ b/models/app_role_assignment.go @@ -21,7 +21,7 @@ func NewAppRoleAssignment()(*AppRoleAssignment) { func CreateAppRoleAssignmentFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewAppRoleAssignment(), nil } -// GetAppRoleId gets the appRoleId property value. The identifier (id) for the app role which is assigned to the principal. This app role must be exposed in the appRoles property on the resource application's service principal (resourceId). If the resource application has not declared any app roles, a default app role ID of 00000000-0000-0000-0000-000000000000 can be specified to signal that the principal is assigned to the resource app without any specific app roles. Required on create. +// GetAppRoleId gets the appRoleId property value. The identifier (id) for the app role that is assigned to the principal. This app role must be exposed in the appRoles property on the resource application's service principal (resourceId). If the resource application hasn't declared any app roles, a default app role ID of 00000000-0000-0000-0000-000000000000 can be specified to signal that the principal is assigned to the resource app without any specific app roles. Required on create. // returns a *UUID when successful func (m *AppRoleAssignment) GetAppRoleId()(*i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID) { val, err := m.GetBackingStore().Get("appRoleId") @@ -231,7 +231,7 @@ func (m *AppRoleAssignment) Serialize(writer i878a80d2330e89d26896388a3f487eef27 } return nil } -// SetAppRoleId sets the appRoleId property value. The identifier (id) for the app role which is assigned to the principal. This app role must be exposed in the appRoles property on the resource application's service principal (resourceId). If the resource application has not declared any app roles, a default app role ID of 00000000-0000-0000-0000-000000000000 can be specified to signal that the principal is assigned to the resource app without any specific app roles. Required on create. +// SetAppRoleId sets the appRoleId property value. The identifier (id) for the app role that is assigned to the principal. This app role must be exposed in the appRoles property on the resource application's service principal (resourceId). If the resource application hasn't declared any app roles, a default app role ID of 00000000-0000-0000-0000-000000000000 can be specified to signal that the principal is assigned to the resource app without any specific app roles. Required on create. func (m *AppRoleAssignment) SetAppRoleId(value *i561e97a8befe7661a44c8f54600992b4207a3a0cf6770e5559949bc276de2e22.UUID)() { err := m.GetBackingStore().Set("appRoleId", value) if err != nil { diff --git a/models/application.go b/models/application.go index 35b7eab310c..185aa6bbadb 100644 --- a/models/application.go +++ b/models/application.go @@ -71,7 +71,7 @@ func (m *Application) GetAppRoles()([]AppRoleable) { } return nil } -// GetAuthenticationBehaviors gets the authenticationBehaviors property value. The collection of authentication behaviors set for the application. Authentication behaviors are unset by default and must be explicitly enabled (or disabled). Returned only on $select. For more information about authentication behaviors, see Manage application authenticationBehaviors to avoid unverified use of email claims for user identification or authorization. +// GetAuthenticationBehaviors gets the authenticationBehaviors property value. The collection of breaking change behaviors related to token issuance that are configured for the application. Authentication behaviors are unset by default (null) and must be explicitly enabled or disabled. Nullable. Returned only on $select. For more information about authentication behaviors, see Manage application authenticationBehaviors to avoid unverified use of email claims for user identification or authorization. // returns a AuthenticationBehaviorsable when successful func (m *Application) GetAuthenticationBehaviors()(AuthenticationBehaviorsable) { val, err := m.GetBackingStore().Get("authenticationBehaviors") @@ -1554,7 +1554,7 @@ func (m *Application) SetAppRoles(value []AppRoleable)() { panic(err) } } -// SetAuthenticationBehaviors sets the authenticationBehaviors property value. The collection of authentication behaviors set for the application. Authentication behaviors are unset by default and must be explicitly enabled (or disabled). Returned only on $select. For more information about authentication behaviors, see Manage application authenticationBehaviors to avoid unverified use of email claims for user identification or authorization. +// SetAuthenticationBehaviors sets the authenticationBehaviors property value. The collection of breaking change behaviors related to token issuance that are configured for the application. Authentication behaviors are unset by default (null) and must be explicitly enabled or disabled. Nullable. Returned only on $select. For more information about authentication behaviors, see Manage application authenticationBehaviors to avoid unverified use of email claims for user identification or authorization. func (m *Application) SetAuthenticationBehaviors(value AuthenticationBehaviorsable)() { err := m.GetBackingStore().Set("authenticationBehaviors", value) if err != nil { diff --git a/models/approval_identity_set.go b/models/approval_identity_set.go new file mode 100644 index 00000000000..41509260f41 --- /dev/null +++ b/models/approval_identity_set.go @@ -0,0 +1,78 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type ApprovalIdentitySet struct { + IdentitySet +} +// NewApprovalIdentitySet instantiates a new ApprovalIdentitySet and sets the default values. +func NewApprovalIdentitySet()(*ApprovalIdentitySet) { + m := &ApprovalIdentitySet{ + IdentitySet: *NewIdentitySet(), + } + odataTypeValue := "#microsoft.graph.approvalIdentitySet" + m.SetOdataType(&odataTypeValue) + return m +} +// CreateApprovalIdentitySetFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateApprovalIdentitySetFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewApprovalIdentitySet(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ApprovalIdentitySet) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.IdentitySet.GetFieldDeserializers() + res["group"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateIdentityFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetGroup(val.(Identityable)) + } + return nil + } + return res +} +// GetGroup gets the group property value. The Microsoft Entra group associated with the approval item. +// returns a Identityable when successful +func (m *ApprovalIdentitySet) GetGroup()(Identityable) { + val, err := m.GetBackingStore().Get("group") + if err != nil { + panic(err) + } + if val != nil { + return val.(Identityable) + } + return nil +} +// Serialize serializes information the current object +func (m *ApprovalIdentitySet) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.IdentitySet.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteObjectValue("group", m.GetGroup()) + if err != nil { + return err + } + } + return nil +} +// SetGroup sets the group property value. The Microsoft Entra group associated with the approval item. +func (m *ApprovalIdentitySet) SetGroup(value Identityable)() { + err := m.GetBackingStore().Set("group", value) + if err != nil { + panic(err) + } +} +type ApprovalIdentitySetable interface { + IdentitySetable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetGroup()(Identityable) + SetGroup(value Identityable)() +} diff --git a/models/approval_item.go b/models/approval_item.go new file mode 100644 index 00000000000..2380629fc6a --- /dev/null +++ b/models/approval_item.go @@ -0,0 +1,596 @@ +package models + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type ApprovalItem struct { + Entity +} +// NewApprovalItem instantiates a new ApprovalItem and sets the default values. +func NewApprovalItem()(*ApprovalItem) { + m := &ApprovalItem{ + Entity: *NewEntity(), + } + return m +} +// CreateApprovalItemFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateApprovalItemFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewApprovalItem(), nil +} +// GetAllowCancel gets the allowCancel property value. Indicates whether the approval item can be canceled. +// returns a *bool when successful +func (m *ApprovalItem) GetAllowCancel()(*bool) { + val, err := m.GetBackingStore().Get("allowCancel") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetAllowEmailNotification gets the allowEmailNotification property value. Indicates whether email notification is enabled. +// returns a *bool when successful +func (m *ApprovalItem) GetAllowEmailNotification()(*bool) { + val, err := m.GetBackingStore().Get("allowEmailNotification") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetApprovalType gets the approvalType property value. The workflow type of the approval item. The possible values are: basic, basicAwaitAll, custom, customAwaitAll. Required. +// returns a *ApprovalItemType when successful +func (m *ApprovalItem) GetApprovalType()(*ApprovalItemType) { + val, err := m.GetBackingStore().Get("approvalType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*ApprovalItemType) + } + return nil +} +// GetApprovers gets the approvers property value. The identity of the principals to whom the approval item was initially assigned. Required. +// returns a []ApprovalIdentitySetable when successful +func (m *ApprovalItem) GetApprovers()([]ApprovalIdentitySetable) { + val, err := m.GetBackingStore().Get("approvers") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ApprovalIdentitySetable) + } + return nil +} +// GetCompletedDateTime gets the completedDateTime property value. Approval request completion date and time. Read-only. +// returns a *Time when successful +func (m *ApprovalItem) GetCompletedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("completedDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetCreatedDateTime gets the createdDateTime property value. Creation date and time of the approval request. Read-only. +// returns a *Time when successful +func (m *ApprovalItem) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("createdDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetDescription gets the description property value. The description of the approval request. +// returns a *string when successful +func (m *ApprovalItem) GetDescription()(*string) { + val, err := m.GetBackingStore().Get("description") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetDisplayName gets the displayName property value. The displayName of the approval request. Required. +// returns a *string when successful +func (m *ApprovalItem) 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 *ApprovalItem) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["allowCancel"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetAllowCancel(val) + } + return nil + } + res["allowEmailNotification"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetAllowEmailNotification(val) + } + return nil + } + res["approvalType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseApprovalItemType) + if err != nil { + return err + } + if val != nil { + m.SetApprovalType(val.(*ApprovalItemType)) + } + return nil + } + res["approvers"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateApprovalIdentitySetFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ApprovalIdentitySetable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ApprovalIdentitySetable) + } + } + m.SetApprovers(res) + } + return nil + } + res["completedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetCompletedDateTime(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["description"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetDescription(val) + } + return nil + } + 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["owner"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateApprovalIdentitySetFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetOwner(val.(ApprovalIdentitySetable)) + } + return nil + } + res["requests"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateApprovalItemRequestFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ApprovalItemRequestable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ApprovalItemRequestable) + } + } + m.SetRequests(res) + } + return nil + } + res["responsePrompts"] = 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.SetResponsePrompts(res) + } + return nil + } + res["responses"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateApprovalItemResponseFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ApprovalItemResponseable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ApprovalItemResponseable) + } + } + m.SetResponses(res) + } + return nil + } + res["result"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResult(val) + } + return nil + } + res["state"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseApprovalItemState) + if err != nil { + return err + } + if val != nil { + m.SetState(val.(*ApprovalItemState)) + } + return nil + } + res["viewPoint"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateApprovalItemViewPointFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetViewPoint(val.(ApprovalItemViewPointable)) + } + return nil + } + return res +} +// GetOwner gets the owner property value. The identity set of the principal who owns the approval item. Only provide a value for this property when creating an approval item on behalf of the principal. If the owner field isn't provided, the user information from the user context is used. +// returns a ApprovalIdentitySetable when successful +func (m *ApprovalItem) GetOwner()(ApprovalIdentitySetable) { + val, err := m.GetBackingStore().Get("owner") + if err != nil { + panic(err) + } + if val != nil { + return val.(ApprovalIdentitySetable) + } + return nil +} +// GetRequests gets the requests property value. A collection of requests created for each approver on the approval item. +// returns a []ApprovalItemRequestable when successful +func (m *ApprovalItem) GetRequests()([]ApprovalItemRequestable) { + val, err := m.GetBackingStore().Get("requests") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ApprovalItemRequestable) + } + return nil +} +// GetResponsePrompts gets the responsePrompts property value. Approval response prompts. Only provide a value for this property when creating a custom approval item. For custom approval items, supply two response prompt strings. The default response prompts are 'Approve' and 'Reject'. +// returns a []string when successful +func (m *ApprovalItem) GetResponsePrompts()([]string) { + val, err := m.GetBackingStore().Get("responsePrompts") + if err != nil { + panic(err) + } + if val != nil { + return val.([]string) + } + return nil +} +// GetResponses gets the responses property value. A collection of responses created for the approval item. +// returns a []ApprovalItemResponseable when successful +func (m *ApprovalItem) GetResponses()([]ApprovalItemResponseable) { + val, err := m.GetBackingStore().Get("responses") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ApprovalItemResponseable) + } + return nil +} +// GetResult gets the result property value. The result field is only populated once the approval item is in its final state. The result of the approval item is based on the approvalType. For basic approval items, the result is either 'Approved' or 'Rejected'. For custom approval items, the result could either be a single response or multiple responses separated by a semi-colon. Read-only. +// returns a *string when successful +func (m *ApprovalItem) GetResult()(*string) { + val, err := m.GetBackingStore().Get("result") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetState gets the state property value. The approval item state. The possible values are: canceled, created, pending, completed. Read-only. +// returns a *ApprovalItemState when successful +func (m *ApprovalItem) GetState()(*ApprovalItemState) { + val, err := m.GetBackingStore().Get("state") + if err != nil { + panic(err) + } + if val != nil { + return val.(*ApprovalItemState) + } + return nil +} +// GetViewPoint gets the viewPoint property value. Represents user viewpoints data on the ApprovalItem. The data includes the users roles regarding the approval item. Read-only. +// returns a ApprovalItemViewPointable when successful +func (m *ApprovalItem) GetViewPoint()(ApprovalItemViewPointable) { + val, err := m.GetBackingStore().Get("viewPoint") + if err != nil { + panic(err) + } + if val != nil { + return val.(ApprovalItemViewPointable) + } + return nil +} +// Serialize serializes information the current object +func (m *ApprovalItem) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteBoolValue("allowEmailNotification", m.GetAllowEmailNotification()) + if err != nil { + return err + } + } + if m.GetApprovalType() != nil { + cast := (*m.GetApprovalType()).String() + err = writer.WriteStringValue("approvalType", &cast) + if err != nil { + return err + } + } + if m.GetApprovers() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetApprovers())) + for i, v := range m.GetApprovers() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("approvers", cast) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("description", m.GetDescription()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("displayName", m.GetDisplayName()) + if err != nil { + return err + } + } + if m.GetRequests() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetRequests())) + for i, v := range m.GetRequests() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("requests", cast) + if err != nil { + return err + } + } + if m.GetResponsePrompts() != nil { + err = writer.WriteCollectionOfStringValues("responsePrompts", m.GetResponsePrompts()) + if err != nil { + return err + } + } + if m.GetResponses() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetResponses())) + for i, v := range m.GetResponses() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("responses", cast) + if err != nil { + return err + } + } + return nil +} +// SetAllowCancel sets the allowCancel property value. Indicates whether the approval item can be canceled. +func (m *ApprovalItem) SetAllowCancel(value *bool)() { + err := m.GetBackingStore().Set("allowCancel", value) + if err != nil { + panic(err) + } +} +// SetAllowEmailNotification sets the allowEmailNotification property value. Indicates whether email notification is enabled. +func (m *ApprovalItem) SetAllowEmailNotification(value *bool)() { + err := m.GetBackingStore().Set("allowEmailNotification", value) + if err != nil { + panic(err) + } +} +// SetApprovalType sets the approvalType property value. The workflow type of the approval item. The possible values are: basic, basicAwaitAll, custom, customAwaitAll. Required. +func (m *ApprovalItem) SetApprovalType(value *ApprovalItemType)() { + err := m.GetBackingStore().Set("approvalType", value) + if err != nil { + panic(err) + } +} +// SetApprovers sets the approvers property value. The identity of the principals to whom the approval item was initially assigned. Required. +func (m *ApprovalItem) SetApprovers(value []ApprovalIdentitySetable)() { + err := m.GetBackingStore().Set("approvers", value) + if err != nil { + panic(err) + } +} +// SetCompletedDateTime sets the completedDateTime property value. Approval request completion date and time. Read-only. +func (m *ApprovalItem) SetCompletedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("completedDateTime", value) + if err != nil { + panic(err) + } +} +// SetCreatedDateTime sets the createdDateTime property value. Creation date and time of the approval request. Read-only. +func (m *ApprovalItem) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("createdDateTime", value) + if err != nil { + panic(err) + } +} +// SetDescription sets the description property value. The description of the approval request. +func (m *ApprovalItem) SetDescription(value *string)() { + err := m.GetBackingStore().Set("description", value) + if err != nil { + panic(err) + } +} +// SetDisplayName sets the displayName property value. The displayName of the approval request. Required. +func (m *ApprovalItem) SetDisplayName(value *string)() { + err := m.GetBackingStore().Set("displayName", value) + if err != nil { + panic(err) + } +} +// SetOwner sets the owner property value. The identity set of the principal who owns the approval item. Only provide a value for this property when creating an approval item on behalf of the principal. If the owner field isn't provided, the user information from the user context is used. +func (m *ApprovalItem) SetOwner(value ApprovalIdentitySetable)() { + err := m.GetBackingStore().Set("owner", value) + if err != nil { + panic(err) + } +} +// SetRequests sets the requests property value. A collection of requests created for each approver on the approval item. +func (m *ApprovalItem) SetRequests(value []ApprovalItemRequestable)() { + err := m.GetBackingStore().Set("requests", value) + if err != nil { + panic(err) + } +} +// SetResponsePrompts sets the responsePrompts property value. Approval response prompts. Only provide a value for this property when creating a custom approval item. For custom approval items, supply two response prompt strings. The default response prompts are 'Approve' and 'Reject'. +func (m *ApprovalItem) SetResponsePrompts(value []string)() { + err := m.GetBackingStore().Set("responsePrompts", value) + if err != nil { + panic(err) + } +} +// SetResponses sets the responses property value. A collection of responses created for the approval item. +func (m *ApprovalItem) SetResponses(value []ApprovalItemResponseable)() { + err := m.GetBackingStore().Set("responses", value) + if err != nil { + panic(err) + } +} +// SetResult sets the result property value. The result field is only populated once the approval item is in its final state. The result of the approval item is based on the approvalType. For basic approval items, the result is either 'Approved' or 'Rejected'. For custom approval items, the result could either be a single response or multiple responses separated by a semi-colon. Read-only. +func (m *ApprovalItem) SetResult(value *string)() { + err := m.GetBackingStore().Set("result", value) + if err != nil { + panic(err) + } +} +// SetState sets the state property value. The approval item state. The possible values are: canceled, created, pending, completed. Read-only. +func (m *ApprovalItem) SetState(value *ApprovalItemState)() { + err := m.GetBackingStore().Set("state", value) + if err != nil { + panic(err) + } +} +// SetViewPoint sets the viewPoint property value. Represents user viewpoints data on the ApprovalItem. The data includes the users roles regarding the approval item. Read-only. +func (m *ApprovalItem) SetViewPoint(value ApprovalItemViewPointable)() { + err := m.GetBackingStore().Set("viewPoint", value) + if err != nil { + panic(err) + } +} +type ApprovalItemable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetAllowCancel()(*bool) + GetAllowEmailNotification()(*bool) + GetApprovalType()(*ApprovalItemType) + GetApprovers()([]ApprovalIdentitySetable) + GetCompletedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetDescription()(*string) + GetDisplayName()(*string) + GetOwner()(ApprovalIdentitySetable) + GetRequests()([]ApprovalItemRequestable) + GetResponsePrompts()([]string) + GetResponses()([]ApprovalItemResponseable) + GetResult()(*string) + GetState()(*ApprovalItemState) + GetViewPoint()(ApprovalItemViewPointable) + SetAllowCancel(value *bool)() + SetAllowEmailNotification(value *bool)() + SetApprovalType(value *ApprovalItemType)() + SetApprovers(value []ApprovalIdentitySetable)() + SetCompletedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetDescription(value *string)() + SetDisplayName(value *string)() + SetOwner(value ApprovalIdentitySetable)() + SetRequests(value []ApprovalItemRequestable)() + SetResponsePrompts(value []string)() + SetResponses(value []ApprovalItemResponseable)() + SetResult(value *string)() + SetState(value *ApprovalItemState)() + SetViewPoint(value ApprovalItemViewPointable)() +} diff --git a/models/approval_item_collection_response.go b/models/approval_item_collection_response.go new file mode 100644 index 00000000000..b7cdb07fa56 --- /dev/null +++ b/models/approval_item_collection_response.go @@ -0,0 +1,88 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type ApprovalItemCollectionResponse struct { + BaseCollectionPaginationCountResponse +} +// NewApprovalItemCollectionResponse instantiates a new ApprovalItemCollectionResponse and sets the default values. +func NewApprovalItemCollectionResponse()(*ApprovalItemCollectionResponse) { + m := &ApprovalItemCollectionResponse{ + BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateApprovalItemCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateApprovalItemCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewApprovalItemCollectionResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ApprovalItemCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateApprovalItemFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ApprovalItemable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ApprovalItemable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []ApprovalItemable when successful +func (m *ApprovalItemCollectionResponse) GetValue()([]ApprovalItemable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ApprovalItemable) + } + return nil +} +// Serialize serializes information the current object +func (m *ApprovalItemCollectionResponse) 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 *ApprovalItemCollectionResponse) SetValue(value []ApprovalItemable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type ApprovalItemCollectionResponseable interface { + BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]ApprovalItemable) + SetValue(value []ApprovalItemable)() +} diff --git a/models/approval_item_request.go b/models/approval_item_request.go new file mode 100644 index 00000000000..db82079fae4 --- /dev/null +++ b/models/approval_item_request.go @@ -0,0 +1,164 @@ +package models + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type ApprovalItemRequest struct { + Entity +} +// NewApprovalItemRequest instantiates a new ApprovalItemRequest and sets the default values. +func NewApprovalItemRequest()(*ApprovalItemRequest) { + m := &ApprovalItemRequest{ + Entity: *NewEntity(), + } + return m +} +// CreateApprovalItemRequestFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateApprovalItemRequestFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewApprovalItemRequest(), nil +} +// GetApprover gets the approver property value. The identity set of the principal assigned to this request. +// returns a ApprovalIdentitySetable when successful +func (m *ApprovalItemRequest) GetApprover()(ApprovalIdentitySetable) { + val, err := m.GetBackingStore().Get("approver") + if err != nil { + panic(err) + } + if val != nil { + return val.(ApprovalIdentitySetable) + } + return nil +} +// GetCreatedDateTime gets the createdDateTime property value. Creation date and time for the request. +// returns a *Time when successful +func (m *ApprovalItemRequest) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("createdDateTime") + 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 *ApprovalItemRequest) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["approver"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateApprovalIdentitySetFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetApprover(val.(ApprovalIdentitySetable)) + } + 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["isReassigned"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetIsReassigned(val) + } + return nil + } + res["reassignedFrom"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateApprovalIdentitySetFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetReassignedFrom(val.(ApprovalIdentitySetable)) + } + return nil + } + return res +} +// GetIsReassigned gets the isReassigned property value. Indicates whether a request was reassigned. +// returns a *bool when successful +func (m *ApprovalItemRequest) GetIsReassigned()(*bool) { + val, err := m.GetBackingStore().Get("isReassigned") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// GetReassignedFrom gets the reassignedFrom property value. The identity set of the principal who reassigned the request. +// returns a ApprovalIdentitySetable when successful +func (m *ApprovalItemRequest) GetReassignedFrom()(ApprovalIdentitySetable) { + val, err := m.GetBackingStore().Get("reassignedFrom") + if err != nil { + panic(err) + } + if val != nil { + return val.(ApprovalIdentitySetable) + } + return nil +} +// Serialize serializes information the current object +func (m *ApprovalItemRequest) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + return nil +} +// SetApprover sets the approver property value. The identity set of the principal assigned to this request. +func (m *ApprovalItemRequest) SetApprover(value ApprovalIdentitySetable)() { + err := m.GetBackingStore().Set("approver", value) + if err != nil { + panic(err) + } +} +// SetCreatedDateTime sets the createdDateTime property value. Creation date and time for the request. +func (m *ApprovalItemRequest) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("createdDateTime", value) + if err != nil { + panic(err) + } +} +// SetIsReassigned sets the isReassigned property value. Indicates whether a request was reassigned. +func (m *ApprovalItemRequest) SetIsReassigned(value *bool)() { + err := m.GetBackingStore().Set("isReassigned", value) + if err != nil { + panic(err) + } +} +// SetReassignedFrom sets the reassignedFrom property value. The identity set of the principal who reassigned the request. +func (m *ApprovalItemRequest) SetReassignedFrom(value ApprovalIdentitySetable)() { + err := m.GetBackingStore().Set("reassignedFrom", value) + if err != nil { + panic(err) + } +} +type ApprovalItemRequestable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetApprover()(ApprovalIdentitySetable) + GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetIsReassigned()(*bool) + GetReassignedFrom()(ApprovalIdentitySetable) + SetApprover(value ApprovalIdentitySetable)() + SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetIsReassigned(value *bool)() + SetReassignedFrom(value ApprovalIdentitySetable)() +} diff --git a/models/approval_item_request_collection_response.go b/models/approval_item_request_collection_response.go new file mode 100644 index 00000000000..9ad1c61c817 --- /dev/null +++ b/models/approval_item_request_collection_response.go @@ -0,0 +1,88 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type ApprovalItemRequestCollectionResponse struct { + BaseCollectionPaginationCountResponse +} +// NewApprovalItemRequestCollectionResponse instantiates a new ApprovalItemRequestCollectionResponse and sets the default values. +func NewApprovalItemRequestCollectionResponse()(*ApprovalItemRequestCollectionResponse) { + m := &ApprovalItemRequestCollectionResponse{ + BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateApprovalItemRequestCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateApprovalItemRequestCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewApprovalItemRequestCollectionResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ApprovalItemRequestCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateApprovalItemRequestFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ApprovalItemRequestable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ApprovalItemRequestable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []ApprovalItemRequestable when successful +func (m *ApprovalItemRequestCollectionResponse) GetValue()([]ApprovalItemRequestable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ApprovalItemRequestable) + } + return nil +} +// Serialize serializes information the current object +func (m *ApprovalItemRequestCollectionResponse) 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 *ApprovalItemRequestCollectionResponse) SetValue(value []ApprovalItemRequestable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type ApprovalItemRequestCollectionResponseable interface { + BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]ApprovalItemRequestable) + SetValue(value []ApprovalItemRequestable)() +} diff --git a/models/approval_item_response.go b/models/approval_item_response.go new file mode 100644 index 00000000000..fd3785e447e --- /dev/null +++ b/models/approval_item_response.go @@ -0,0 +1,219 @@ +package models + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type ApprovalItemResponse struct { + Entity +} +// NewApprovalItemResponse instantiates a new ApprovalItemResponse and sets the default values. +func NewApprovalItemResponse()(*ApprovalItemResponse) { + m := &ApprovalItemResponse{ + Entity: *NewEntity(), + } + return m +} +// CreateApprovalItemResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateApprovalItemResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewApprovalItemResponse(), nil +} +// GetComments gets the comments property value. The comment made by the approver. +// returns a *string when successful +func (m *ApprovalItemResponse) GetComments()(*string) { + val, err := m.GetBackingStore().Get("comments") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetCreatedBy gets the createdBy property value. The identity set of the approver. +// returns a ApprovalIdentitySetable when successful +func (m *ApprovalItemResponse) GetCreatedBy()(ApprovalIdentitySetable) { + val, err := m.GetBackingStore().Get("createdBy") + if err != nil { + panic(err) + } + if val != nil { + return val.(ApprovalIdentitySetable) + } + return nil +} +// GetCreatedDateTime gets the createdDateTime property value. Creation date and time of the response. +// returns a *Time when successful +func (m *ApprovalItemResponse) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("createdDateTime") + 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 *ApprovalItemResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["comments"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetComments(val) + } + return nil + } + res["createdBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateApprovalIdentitySetFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetCreatedBy(val.(ApprovalIdentitySetable)) + } + 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["owners"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateApprovalIdentitySetFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ApprovalIdentitySetable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ApprovalIdentitySetable) + } + } + m.SetOwners(res) + } + return nil + } + res["response"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResponse(val) + } + return nil + } + return res +} +// GetOwners gets the owners property value. The identity set of the principal who owns the approval item. +// returns a []ApprovalIdentitySetable when successful +func (m *ApprovalItemResponse) GetOwners()([]ApprovalIdentitySetable) { + val, err := m.GetBackingStore().Get("owners") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ApprovalIdentitySetable) + } + return nil +} +// GetResponse gets the response property value. Approver response based on the response options. The default response options are 'Approved' and 'Rejected'. The approval item creator can also define custom response options during approval item creation. +// returns a *string when successful +func (m *ApprovalItemResponse) GetResponse()(*string) { + val, err := m.GetBackingStore().Get("response") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ApprovalItemResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteStringValue("comments", m.GetComments()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("createdBy", m.GetCreatedBy()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("response", m.GetResponse()) + if err != nil { + return err + } + } + return nil +} +// SetComments sets the comments property value. The comment made by the approver. +func (m *ApprovalItemResponse) SetComments(value *string)() { + err := m.GetBackingStore().Set("comments", value) + if err != nil { + panic(err) + } +} +// SetCreatedBy sets the createdBy property value. The identity set of the approver. +func (m *ApprovalItemResponse) SetCreatedBy(value ApprovalIdentitySetable)() { + err := m.GetBackingStore().Set("createdBy", value) + if err != nil { + panic(err) + } +} +// SetCreatedDateTime sets the createdDateTime property value. Creation date and time of the response. +func (m *ApprovalItemResponse) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("createdDateTime", value) + if err != nil { + panic(err) + } +} +// SetOwners sets the owners property value. The identity set of the principal who owns the approval item. +func (m *ApprovalItemResponse) SetOwners(value []ApprovalIdentitySetable)() { + err := m.GetBackingStore().Set("owners", value) + if err != nil { + panic(err) + } +} +// SetResponse sets the response property value. Approver response based on the response options. The default response options are 'Approved' and 'Rejected'. The approval item creator can also define custom response options during approval item creation. +func (m *ApprovalItemResponse) SetResponse(value *string)() { + err := m.GetBackingStore().Set("response", value) + if err != nil { + panic(err) + } +} +type ApprovalItemResponseable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetComments()(*string) + GetCreatedBy()(ApprovalIdentitySetable) + GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetOwners()([]ApprovalIdentitySetable) + GetResponse()(*string) + SetComments(value *string)() + SetCreatedBy(value ApprovalIdentitySetable)() + SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetOwners(value []ApprovalIdentitySetable)() + SetResponse(value *string)() +} diff --git a/models/approval_item_response_collection_response.go b/models/approval_item_response_collection_response.go new file mode 100644 index 00000000000..212ff9e0537 --- /dev/null +++ b/models/approval_item_response_collection_response.go @@ -0,0 +1,88 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type ApprovalItemResponseCollectionResponse struct { + BaseCollectionPaginationCountResponse +} +// NewApprovalItemResponseCollectionResponse instantiates a new ApprovalItemResponseCollectionResponse and sets the default values. +func NewApprovalItemResponseCollectionResponse()(*ApprovalItemResponseCollectionResponse) { + m := &ApprovalItemResponseCollectionResponse{ + BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateApprovalItemResponseCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateApprovalItemResponseCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewApprovalItemResponseCollectionResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ApprovalItemResponseCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateApprovalItemResponseFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ApprovalItemResponseable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ApprovalItemResponseable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []ApprovalItemResponseable when successful +func (m *ApprovalItemResponseCollectionResponse) GetValue()([]ApprovalItemResponseable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ApprovalItemResponseable) + } + return nil +} +// Serialize serializes information the current object +func (m *ApprovalItemResponseCollectionResponse) 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 *ApprovalItemResponseCollectionResponse) SetValue(value []ApprovalItemResponseable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type ApprovalItemResponseCollectionResponseable interface { + BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]ApprovalItemResponseable) + SetValue(value []ApprovalItemResponseable)() +} diff --git a/models/approval_item_state.go b/models/approval_item_state.go new file mode 100644 index 00000000000..4cdc5738cef --- /dev/null +++ b/models/approval_item_state.go @@ -0,0 +1,42 @@ +package models +type ApprovalItemState int + +const ( + CANCELED_APPROVALITEMSTATE ApprovalItemState = iota + CREATED_APPROVALITEMSTATE + PENDING_APPROVALITEMSTATE + COMPLETED_APPROVALITEMSTATE + UNKNOWNFUTUREVALUE_APPROVALITEMSTATE +) + +func (i ApprovalItemState) String() string { + return []string{"canceled", "created", "pending", "completed", "unknownFutureValue"}[i] +} +func ParseApprovalItemState(v string) (any, error) { + result := CANCELED_APPROVALITEMSTATE + switch v { + case "canceled": + result = CANCELED_APPROVALITEMSTATE + case "created": + result = CREATED_APPROVALITEMSTATE + case "pending": + result = PENDING_APPROVALITEMSTATE + case "completed": + result = COMPLETED_APPROVALITEMSTATE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_APPROVALITEMSTATE + default: + return nil, nil + } + return &result, nil +} +func SerializeApprovalItemState(values []ApprovalItemState) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i ApprovalItemState) isMultiValue() bool { + return false +} diff --git a/models/approval_item_type.go b/models/approval_item_type.go new file mode 100644 index 00000000000..e7883cfe4a2 --- /dev/null +++ b/models/approval_item_type.go @@ -0,0 +1,42 @@ +package models +type ApprovalItemType int + +const ( + BASIC_APPROVALITEMTYPE ApprovalItemType = iota + BASICAWAITALL_APPROVALITEMTYPE + CUSTOM_APPROVALITEMTYPE + CUSTOMAWAITALL_APPROVALITEMTYPE + UNKNOWNFUTUREVALUE_APPROVALITEMTYPE +) + +func (i ApprovalItemType) String() string { + return []string{"basic", "basicAwaitAll", "custom", "customAwaitAll", "unknownFutureValue"}[i] +} +func ParseApprovalItemType(v string) (any, error) { + result := BASIC_APPROVALITEMTYPE + switch v { + case "basic": + result = BASIC_APPROVALITEMTYPE + case "basicAwaitAll": + result = BASICAWAITALL_APPROVALITEMTYPE + case "custom": + result = CUSTOM_APPROVALITEMTYPE + case "customAwaitAll": + result = CUSTOMAWAITALL_APPROVALITEMTYPE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_APPROVALITEMTYPE + default: + return nil, nil + } + return &result, nil +} +func SerializeApprovalItemType(values []ApprovalItemType) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i ApprovalItemType) isMultiValue() bool { + return false +} diff --git a/models/approval_item_view_point.go b/models/approval_item_view_point.go new file mode 100644 index 00000000000..96af8f796d1 --- /dev/null +++ b/models/approval_item_view_point.go @@ -0,0 +1,156 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type ApprovalItemViewPoint struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewApprovalItemViewPoint instantiates a new ApprovalItemViewPoint and sets the default values. +func NewApprovalItemViewPoint()(*ApprovalItemViewPoint) { + m := &ApprovalItemViewPoint{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateApprovalItemViewPointFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateApprovalItemViewPointFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewApprovalItemViewPoint(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ApprovalItemViewPoint) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ApprovalItemViewPoint) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ApprovalItemViewPoint) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + 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["roles"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfEnumValues(ParseApproverRole) + if err != nil { + return err + } + if val != nil { + res := make([]ApproverRole, len(val)) + for i, v := range val { + if v != nil { + res[i] = *(v.(*ApproverRole)) + } + } + m.SetRoles(res) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *ApprovalItemViewPoint) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetRoles gets the roles property value. Collection of roles associated with the requesting user for the approval item. If the owner of the approval item is making the request, the collection of roles includes the role owner. If the requesting user was assigned as an approver, the collection includes the role approver. +// returns a []ApproverRole when successful +func (m *ApprovalItemViewPoint) GetRoles()([]ApproverRole) { + val, err := m.GetBackingStore().Get("roles") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ApproverRole) + } + return nil +} +// Serialize serializes information the current object +func (m *ApprovalItemViewPoint) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + if m.GetRoles() != nil { + err := writer.WriteCollectionOfStringValues("roles", SerializeApproverRole(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 *ApprovalItemViewPoint) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ApprovalItemViewPoint) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ApprovalItemViewPoint) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetRoles sets the roles property value. Collection of roles associated with the requesting user for the approval item. If the owner of the approval item is making the request, the collection of roles includes the role owner. If the requesting user was assigned as an approver, the collection includes the role approver. +func (m *ApprovalItemViewPoint) SetRoles(value []ApproverRole)() { + err := m.GetBackingStore().Set("roles", value) + if err != nil { + panic(err) + } +} +type ApprovalItemViewPointable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetOdataType()(*string) + GetRoles()([]ApproverRole) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetOdataType(value *string)() + SetRoles(value []ApproverRole)() +} diff --git a/models/approval_operation.go b/models/approval_operation.go new file mode 100644 index 00000000000..001bb45c7a5 --- /dev/null +++ b/models/approval_operation.go @@ -0,0 +1,226 @@ +package models + +import ( + i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e "time" + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type ApprovalOperation struct { + Entity +} +// NewApprovalOperation instantiates a new ApprovalOperation and sets the default values. +func NewApprovalOperation()(*ApprovalOperation) { + m := &ApprovalOperation{ + Entity: *NewEntity(), + } + return m +} +// CreateApprovalOperationFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateApprovalOperationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewApprovalOperation(), nil +} +// GetCreatedDateTime gets the createdDateTime property value. The date and time when the operation was created. +// returns a *Time when successful +func (m *ApprovalOperation) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("createdDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetError gets the error property value. The error if the operation failed. +// returns a PublicErrorable when successful +func (m *ApprovalOperation) GetError()(PublicErrorable) { + val, err := m.GetBackingStore().Get("error") + if err != nil { + panic(err) + } + if val != nil { + return val.(PublicErrorable) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ApprovalOperation) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + 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["error"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreatePublicErrorFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetError(val.(PublicErrorable)) + } + return nil + } + res["lastActionDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetLastActionDateTime(val) + } + return nil + } + res["resourceLocation"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetResourceLocation(val) + } + return nil + } + res["status"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseApprovalOperationStatus) + if err != nil { + return err + } + if val != nil { + m.SetStatus(val.(*ApprovalOperationStatus)) + } + return nil + } + return res +} +// GetLastActionDateTime gets the lastActionDateTime property value. The date and time when this operation was most recently updated. +// returns a *Time when successful +func (m *ApprovalOperation) GetLastActionDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("lastActionDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} +// GetResourceLocation gets the resourceLocation property value. The URL for the resource that was newly created or acted upon. +// returns a *string when successful +func (m *ApprovalOperation) GetResourceLocation()(*string) { + val, err := m.GetBackingStore().Get("resourceLocation") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetStatus gets the status property value. The status of the operation. The possible values are: scheduled, inProgress, succeeded, failed, timeout, unknownFutureValue. +// returns a *ApprovalOperationStatus when successful +func (m *ApprovalOperation) GetStatus()(*ApprovalOperationStatus) { + val, err := m.GetBackingStore().Get("status") + if err != nil { + panic(err) + } + if val != nil { + return val.(*ApprovalOperationStatus) + } + return nil +} +// Serialize serializes information the current object +func (m *ApprovalOperation) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteTimeValue("createdDateTime", m.GetCreatedDateTime()) + if err != nil { + return err + } + } + { + err = writer.WriteObjectValue("error", m.GetError()) + if err != nil { + return err + } + } + { + err = writer.WriteTimeValue("lastActionDateTime", m.GetLastActionDateTime()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("resourceLocation", m.GetResourceLocation()) + if err != nil { + return err + } + } + if m.GetStatus() != nil { + cast := (*m.GetStatus()).String() + err = writer.WriteStringValue("status", &cast) + if err != nil { + return err + } + } + return nil +} +// SetCreatedDateTime sets the createdDateTime property value. The date and time when the operation was created. +func (m *ApprovalOperation) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("createdDateTime", value) + if err != nil { + panic(err) + } +} +// SetError sets the error property value. The error if the operation failed. +func (m *ApprovalOperation) SetError(value PublicErrorable)() { + err := m.GetBackingStore().Set("error", value) + if err != nil { + panic(err) + } +} +// SetLastActionDateTime sets the lastActionDateTime property value. The date and time when this operation was most recently updated. +func (m *ApprovalOperation) SetLastActionDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("lastActionDateTime", value) + if err != nil { + panic(err) + } +} +// SetResourceLocation sets the resourceLocation property value. The URL for the resource that was newly created or acted upon. +func (m *ApprovalOperation) SetResourceLocation(value *string)() { + err := m.GetBackingStore().Set("resourceLocation", value) + if err != nil { + panic(err) + } +} +// SetStatus sets the status property value. The status of the operation. The possible values are: scheduled, inProgress, succeeded, failed, timeout, unknownFutureValue. +func (m *ApprovalOperation) SetStatus(value *ApprovalOperationStatus)() { + err := m.GetBackingStore().Set("status", value) + if err != nil { + panic(err) + } +} +type ApprovalOperationable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetError()(PublicErrorable) + GetLastActionDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetResourceLocation()(*string) + GetStatus()(*ApprovalOperationStatus) + SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetError(value PublicErrorable)() + SetLastActionDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetResourceLocation(value *string)() + SetStatus(value *ApprovalOperationStatus)() +} diff --git a/models/approval_operation_collection_response.go b/models/approval_operation_collection_response.go new file mode 100644 index 00000000000..007256004c3 --- /dev/null +++ b/models/approval_operation_collection_response.go @@ -0,0 +1,88 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type ApprovalOperationCollectionResponse struct { + BaseCollectionPaginationCountResponse +} +// NewApprovalOperationCollectionResponse instantiates a new ApprovalOperationCollectionResponse and sets the default values. +func NewApprovalOperationCollectionResponse()(*ApprovalOperationCollectionResponse) { + m := &ApprovalOperationCollectionResponse{ + BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateApprovalOperationCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateApprovalOperationCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewApprovalOperationCollectionResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ApprovalOperationCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateApprovalOperationFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ApprovalOperationable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ApprovalOperationable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []ApprovalOperationable when successful +func (m *ApprovalOperationCollectionResponse) GetValue()([]ApprovalOperationable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ApprovalOperationable) + } + return nil +} +// Serialize serializes information the current object +func (m *ApprovalOperationCollectionResponse) 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 *ApprovalOperationCollectionResponse) SetValue(value []ApprovalOperationable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type ApprovalOperationCollectionResponseable interface { + BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]ApprovalOperationable) + SetValue(value []ApprovalOperationable)() +} diff --git a/models/approval_operation_status.go b/models/approval_operation_status.go new file mode 100644 index 00000000000..b402ec1d360 --- /dev/null +++ b/models/approval_operation_status.go @@ -0,0 +1,45 @@ +package models +type ApprovalOperationStatus int + +const ( + SCHEDULED_APPROVALOPERATIONSTATUS ApprovalOperationStatus = iota + INPROGRESS_APPROVALOPERATIONSTATUS + SUCCEEDED_APPROVALOPERATIONSTATUS + FAILED_APPROVALOPERATIONSTATUS + TIMEOUT_APPROVALOPERATIONSTATUS + UNKNOWNFUTUREVALUE_APPROVALOPERATIONSTATUS +) + +func (i ApprovalOperationStatus) String() string { + return []string{"scheduled", "inProgress", "succeeded", "failed", "timeout", "unknownFutureValue"}[i] +} +func ParseApprovalOperationStatus(v string) (any, error) { + result := SCHEDULED_APPROVALOPERATIONSTATUS + switch v { + case "scheduled": + result = SCHEDULED_APPROVALOPERATIONSTATUS + case "inProgress": + result = INPROGRESS_APPROVALOPERATIONSTATUS + case "succeeded": + result = SUCCEEDED_APPROVALOPERATIONSTATUS + case "failed": + result = FAILED_APPROVALOPERATIONSTATUS + case "timeout": + result = TIMEOUT_APPROVALOPERATIONSTATUS + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_APPROVALOPERATIONSTATUS + default: + return nil, nil + } + return &result, nil +} +func SerializeApprovalOperationStatus(values []ApprovalOperationStatus) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i ApprovalOperationStatus) isMultiValue() bool { + return false +} diff --git a/models/approval_solution.go b/models/approval_solution.go new file mode 100644 index 00000000000..4dc0f3faa78 --- /dev/null +++ b/models/approval_solution.go @@ -0,0 +1,175 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type ApprovalSolution struct { + Entity +} +// NewApprovalSolution instantiates a new ApprovalSolution and sets the default values. +func NewApprovalSolution()(*ApprovalSolution) { + m := &ApprovalSolution{ + Entity: *NewEntity(), + } + return m +} +// CreateApprovalSolutionFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateApprovalSolutionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewApprovalSolution(), nil +} +// GetApprovalItems gets the approvalItems property value. A collection of approval items. +// returns a []ApprovalItemable when successful +func (m *ApprovalSolution) GetApprovalItems()([]ApprovalItemable) { + val, err := m.GetBackingStore().Get("approvalItems") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ApprovalItemable) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ApprovalSolution) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["approvalItems"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateApprovalItemFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ApprovalItemable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ApprovalItemable) + } + } + m.SetApprovalItems(res) + } + return nil + } + res["operations"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateApprovalOperationFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ApprovalOperationable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ApprovalOperationable) + } + } + m.SetOperations(res) + } + return nil + } + res["provisioningStatus"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseProvisionState) + if err != nil { + return err + } + if val != nil { + m.SetProvisioningStatus(val.(*ProvisionState)) + } + return nil + } + return res +} +// GetOperations gets the operations property value. The operations property +// returns a []ApprovalOperationable when successful +func (m *ApprovalSolution) GetOperations()([]ApprovalOperationable) { + val, err := m.GetBackingStore().Get("operations") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ApprovalOperationable) + } + return nil +} +// GetProvisioningStatus gets the provisioningStatus property value. The approval provisioning status for a tenant on an environment. The possible values are: notProvisioned, provisioningInProgress, provisioningFailed, provisioningCompleted, unknownFutureValue. +// returns a *ProvisionState when successful +func (m *ApprovalSolution) GetProvisioningStatus()(*ProvisionState) { + val, err := m.GetBackingStore().Get("provisioningStatus") + if err != nil { + panic(err) + } + if val != nil { + return val.(*ProvisionState) + } + return nil +} +// Serialize serializes information the current object +func (m *ApprovalSolution) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + if m.GetApprovalItems() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetApprovalItems())) + for i, v := range m.GetApprovalItems() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("approvalItems", cast) + if err != nil { + return err + } + } + if m.GetOperations() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetOperations())) + for i, v := range m.GetOperations() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("operations", cast) + if err != nil { + return err + } + } + if m.GetProvisioningStatus() != nil { + cast := (*m.GetProvisioningStatus()).String() + err = writer.WriteStringValue("provisioningStatus", &cast) + if err != nil { + return err + } + } + return nil +} +// SetApprovalItems sets the approvalItems property value. A collection of approval items. +func (m *ApprovalSolution) SetApprovalItems(value []ApprovalItemable)() { + err := m.GetBackingStore().Set("approvalItems", value) + if err != nil { + panic(err) + } +} +// SetOperations sets the operations property value. The operations property +func (m *ApprovalSolution) SetOperations(value []ApprovalOperationable)() { + err := m.GetBackingStore().Set("operations", value) + if err != nil { + panic(err) + } +} +// SetProvisioningStatus sets the provisioningStatus property value. The approval provisioning status for a tenant on an environment. The possible values are: notProvisioned, provisioningInProgress, provisioningFailed, provisioningCompleted, unknownFutureValue. +func (m *ApprovalSolution) SetProvisioningStatus(value *ProvisionState)() { + err := m.GetBackingStore().Set("provisioningStatus", value) + if err != nil { + panic(err) + } +} +type ApprovalSolutionable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetApprovalItems()([]ApprovalItemable) + GetOperations()([]ApprovalOperationable) + GetProvisioningStatus()(*ProvisionState) + SetApprovalItems(value []ApprovalItemable)() + SetOperations(value []ApprovalOperationable)() + SetProvisioningStatus(value *ProvisionState)() +} diff --git a/models/approver_role.go b/models/approver_role.go new file mode 100644 index 00000000000..465d9d93cdd --- /dev/null +++ b/models/approver_role.go @@ -0,0 +1,51 @@ +package models +import ( + "math" + "strings" +) +type ApproverRole int + +const ( + OWNER_APPROVERROLE = 1 + APPROVER_APPROVERROLE = 2 + UNKNOWNFUTUREVALUE_APPROVERROLE = 4 +) + +func (i ApproverRole) String() string { + var values []string + options := []string{"owner", "approver", "unknownFutureValue"} + for p := 0; p < 3; p++ { + mantis := ApproverRole(int(math.Pow(2, float64(p)))) + if i&mantis == mantis { + values = append(values, options[p]) + } + } + return strings.Join(values, ",") +} +func ParseApproverRole(v string) (any, error) { + var result ApproverRole + values := strings.Split(v, ",") + for _, str := range values { + switch str { + case "owner": + result |= OWNER_APPROVERROLE + case "approver": + result |= APPROVER_APPROVERROLE + case "unknownFutureValue": + result |= UNKNOWNFUTUREVALUE_APPROVERROLE + default: + return nil, nil + } + } + return &result, nil +} +func SerializeApproverRole(values []ApproverRole) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i ApproverRole) isMultiValue() bool { + return true +} diff --git a/models/artifact_query.go b/models/artifact_query.go new file mode 100644 index 00000000000..1a76ce159c2 --- /dev/null +++ b/models/artifact_query.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 ArtifactQuery struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewArtifactQuery instantiates a new ArtifactQuery and sets the default values. +func NewArtifactQuery()(*ArtifactQuery) { + m := &ArtifactQuery{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateArtifactQueryFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateArtifactQueryFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewArtifactQuery(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *ArtifactQuery) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetArtifactType gets the artifactType property value. The type of artifact to search. The possible values are: message, unknownFutureValue. +// returns a *RestorableArtifact when successful +func (m *ArtifactQuery) GetArtifactType()(*RestorableArtifact) { + val, err := m.GetBackingStore().Get("artifactType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*RestorableArtifact) + } + return nil +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *ArtifactQuery) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *ArtifactQuery) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["artifactType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseRestorableArtifact) + if err != nil { + return err + } + if val != nil { + m.SetArtifactType(val.(*RestorableArtifact)) + } + 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["queryExpression"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetQueryExpression(val) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *ArtifactQuery) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetQueryExpression gets the queryExpression property value. Specifies criteria to retrieve artifacts. +// returns a *string when successful +func (m *ArtifactQuery) GetQueryExpression()(*string) { + val, err := m.GetBackingStore().Get("queryExpression") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *ArtifactQuery) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetArtifactType() != nil { + cast := (*m.GetArtifactType()).String() + err := writer.WriteStringValue("artifactType", &cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("queryExpression", m.GetQueryExpression()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *ArtifactQuery) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetArtifactType sets the artifactType property value. The type of artifact to search. The possible values are: message, unknownFutureValue. +func (m *ArtifactQuery) SetArtifactType(value *RestorableArtifact)() { + err := m.GetBackingStore().Set("artifactType", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *ArtifactQuery) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *ArtifactQuery) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetQueryExpression sets the queryExpression property value. Specifies criteria to retrieve artifacts. +func (m *ArtifactQuery) SetQueryExpression(value *string)() { + err := m.GetBackingStore().Set("queryExpression", value) + if err != nil { + panic(err) + } +} +type ArtifactQueryable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetArtifactType()(*RestorableArtifact) + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetOdataType()(*string) + GetQueryExpression()(*string) + SetArtifactType(value *RestorableArtifact)() + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetOdataType(value *string)() + SetQueryExpression(value *string)() +} diff --git a/models/authentication_attribute_collection_input_configuration.go b/models/authentication_attribute_collection_input_configuration.go index 3b1fcd5fdfb..74f4c50396a 100644 --- a/models/authentication_attribute_collection_input_configuration.go +++ b/models/authentication_attribute_collection_input_configuration.go @@ -52,7 +52,7 @@ func (m *AuthenticationAttributeCollectionInputConfiguration) GetAttribute()(*st func (m *AuthenticationAttributeCollectionInputConfiguration) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetDefaultValue gets the defaultValue property value. The default value of the attribute displayed to the end user. +// GetDefaultValue gets the defaultValue property value. The default value of the attribute displayed to the end user. The capability to set the default value isn't available through the Microsoft Entra admin center. // returns a *string when successful func (m *AuthenticationAttributeCollectionInputConfiguration) GetDefaultValue()(*string) { val, err := m.GetBackingStore().Get("defaultValue") @@ -64,7 +64,7 @@ func (m *AuthenticationAttributeCollectionInputConfiguration) GetDefaultValue()( } return nil } -// GetEditable gets the editable property value. Whether the attribute is editable by the end user. +// GetEditable gets the editable property value. Defines whether the attribute is editable by the end user. // returns a *bool when successful func (m *AuthenticationAttributeCollectionInputConfiguration) GetEditable()(*bool) { val, err := m.GetBackingStore().Get("editable") @@ -198,7 +198,7 @@ func (m *AuthenticationAttributeCollectionInputConfiguration) GetFieldDeserializ } return res } -// GetHidden gets the hidden property value. Whether the attribute is displayed to the end user. +// GetHidden gets the hidden property value. Defines whether the attribute is displayed to the end user. The capability to hide isn't available through the Microsoft Entra admin center. // returns a *bool when successful func (m *AuthenticationAttributeCollectionInputConfiguration) GetHidden()(*bool) { val, err := m.GetBackingStore().Get("hidden") @@ -222,7 +222,7 @@ func (m *AuthenticationAttributeCollectionInputConfiguration) GetInputType()(*Au } return nil } -// GetLabel gets the label property value. The label of the attribute field that is displayed to end user, unless overridden. +// GetLabel gets the label property value. The label of the attribute field that's displayed to end user, unless overridden. // returns a *string when successful func (m *AuthenticationAttributeCollectionInputConfiguration) GetLabel()(*string) { val, err := m.GetBackingStore().Get("label") @@ -258,7 +258,7 @@ func (m *AuthenticationAttributeCollectionInputConfiguration) GetOptions()([]Aut } return nil } -// GetRequired gets the required property value. Whether the field is required. +// GetRequired gets the required property value. Defines whether the field is required. // returns a *bool when successful func (m *AuthenticationAttributeCollectionInputConfiguration) GetRequired()(*bool) { val, err := m.GetBackingStore().Get("required") @@ -270,7 +270,7 @@ func (m *AuthenticationAttributeCollectionInputConfiguration) GetRequired()(*boo } return nil } -// GetValidationRegEx gets the validationRegEx property value. The regex for the value of the field. +// GetValidationRegEx gets the validationRegEx property value. The regex for the value of the field. For more information about the supported regexes, see validationRegEx values for inputType objects. To understand how to specify regexes, see the Regular expressions cheat sheet. // returns a *string when successful func (m *AuthenticationAttributeCollectionInputConfiguration) GetValidationRegEx()(*string) { val, err := m.GetBackingStore().Get("validationRegEx") @@ -282,7 +282,7 @@ func (m *AuthenticationAttributeCollectionInputConfiguration) GetValidationRegEx } return nil } -// GetWriteToDirectory gets the writeToDirectory property value. Whether the value collected is stored. +// GetWriteToDirectory gets the writeToDirectory property value. Defines whether Microsoft Entra ID stores the value that it collects. // returns a *bool when successful func (m *AuthenticationAttributeCollectionInputConfiguration) GetWriteToDirectory()(*bool) { val, err := m.GetBackingStore().Get("writeToDirectory") @@ -395,21 +395,21 @@ func (m *AuthenticationAttributeCollectionInputConfiguration) SetAttribute(value func (m *AuthenticationAttributeCollectionInputConfiguration) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetDefaultValue sets the defaultValue property value. The default value of the attribute displayed to the end user. +// SetDefaultValue sets the defaultValue property value. The default value of the attribute displayed to the end user. The capability to set the default value isn't available through the Microsoft Entra admin center. func (m *AuthenticationAttributeCollectionInputConfiguration) SetDefaultValue(value *string)() { err := m.GetBackingStore().Set("defaultValue", value) if err != nil { panic(err) } } -// SetEditable sets the editable property value. Whether the attribute is editable by the end user. +// SetEditable sets the editable property value. Defines whether the attribute is editable by the end user. func (m *AuthenticationAttributeCollectionInputConfiguration) SetEditable(value *bool)() { err := m.GetBackingStore().Set("editable", value) if err != nil { panic(err) } } -// SetHidden sets the hidden property value. Whether the attribute is displayed to the end user. +// SetHidden sets the hidden property value. Defines whether the attribute is displayed to the end user. The capability to hide isn't available through the Microsoft Entra admin center. func (m *AuthenticationAttributeCollectionInputConfiguration) SetHidden(value *bool)() { err := m.GetBackingStore().Set("hidden", value) if err != nil { @@ -423,7 +423,7 @@ func (m *AuthenticationAttributeCollectionInputConfiguration) SetInputType(value panic(err) } } -// SetLabel sets the label property value. The label of the attribute field that is displayed to end user, unless overridden. +// SetLabel sets the label property value. The label of the attribute field that's displayed to end user, unless overridden. func (m *AuthenticationAttributeCollectionInputConfiguration) SetLabel(value *string)() { err := m.GetBackingStore().Set("label", value) if err != nil { @@ -444,21 +444,21 @@ func (m *AuthenticationAttributeCollectionInputConfiguration) SetOptions(value [ panic(err) } } -// SetRequired sets the required property value. Whether the field is required. +// SetRequired sets the required property value. Defines whether the field is required. func (m *AuthenticationAttributeCollectionInputConfiguration) SetRequired(value *bool)() { err := m.GetBackingStore().Set("required", value) if err != nil { panic(err) } } -// SetValidationRegEx sets the validationRegEx property value. The regex for the value of the field. +// SetValidationRegEx sets the validationRegEx property value. The regex for the value of the field. For more information about the supported regexes, see validationRegEx values for inputType objects. To understand how to specify regexes, see the Regular expressions cheat sheet. func (m *AuthenticationAttributeCollectionInputConfiguration) SetValidationRegEx(value *string)() { err := m.GetBackingStore().Set("validationRegEx", value) if err != nil { panic(err) } } -// SetWriteToDirectory sets the writeToDirectory property value. Whether the value collected is stored. +// SetWriteToDirectory sets the writeToDirectory property value. Defines whether Microsoft Entra ID stores the value that it collects. func (m *AuthenticationAttributeCollectionInputConfiguration) SetWriteToDirectory(value *bool)() { err := m.GetBackingStore().Set("writeToDirectory", value) if err != nil { diff --git a/models/authentication_attribute_collection_page_view_configuration.go b/models/authentication_attribute_collection_page_view_configuration.go index 9b5ef802fd1..b1a9a57a712 100644 --- a/models/authentication_attribute_collection_page_view_configuration.go +++ b/models/authentication_attribute_collection_page_view_configuration.go @@ -104,7 +104,7 @@ func (m *AuthenticationAttributeCollectionPageViewConfiguration) GetFieldDeseria } return res } -// GetInputs gets the inputs property value. The display configuration of attributes being collected on the attribute collection page. +// GetInputs gets the inputs property value. The display configuration of attributes being collected on the attribute collection page. You must specify all attributes that you want to retain, otherwise they're removed from the user flow. // returns a []AuthenticationAttributeCollectionInputConfigurationable when successful func (m *AuthenticationAttributeCollectionPageViewConfiguration) GetInputs()([]AuthenticationAttributeCollectionInputConfigurationable) { val, err := m.GetBackingStore().Get("inputs") @@ -198,7 +198,7 @@ func (m *AuthenticationAttributeCollectionPageViewConfiguration) SetDescription( panic(err) } } -// SetInputs sets the inputs property value. The display configuration of attributes being collected on the attribute collection page. +// SetInputs sets the inputs property value. The display configuration of attributes being collected on the attribute collection page. You must specify all attributes that you want to retain, otherwise they're removed from the user flow. func (m *AuthenticationAttributeCollectionPageViewConfiguration) SetInputs(value []AuthenticationAttributeCollectionInputConfigurationable)() { err := m.GetBackingStore().Set("inputs", value) if err != nil { diff --git a/models/authentication_behaviors.go b/models/authentication_behaviors.go index 8ce1f9e7644..6b51e53e91c 100644 --- a/models/authentication_behaviors.go +++ b/models/authentication_behaviors.go @@ -40,7 +40,7 @@ func (m *AuthenticationBehaviors) GetAdditionalData()(map[string]any) { func (m *AuthenticationBehaviors) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetBlockAzureADGraphAccess gets the blockAzureADGraphAccess property value. The blockAzureADGraphAccess property +// GetBlockAzureADGraphAccess gets the blockAzureADGraphAccess property value. If false, allows the app to have extended access to Azure AD Graph until June 30, 2025 when Azure AD Graph is fully retired. For more information on Azure AD retirement updates, see June 2024 update on Azure AD Graph API retirement. // returns a *bool when successful func (m *AuthenticationBehaviors) GetBlockAzureADGraphAccess()(*bool) { val, err := m.GetBackingStore().Get("blockAzureADGraphAccess") @@ -110,7 +110,7 @@ func (m *AuthenticationBehaviors) GetOdataType()(*string) { } return nil } -// GetRemoveUnverifiedEmailClaim gets the removeUnverifiedEmailClaim property value. Removes the email claim from tokens sent to an application when the email address's domain can't be verified. +// GetRemoveUnverifiedEmailClaim gets the removeUnverifiedEmailClaim property value. If true, removes the email claim from tokens sent to an application when the email address's domain can't be verified. // returns a *bool when successful func (m *AuthenticationBehaviors) GetRemoveUnverifiedEmailClaim()(*bool) { val, err := m.GetBackingStore().Get("removeUnverifiedEmailClaim") @@ -122,7 +122,7 @@ func (m *AuthenticationBehaviors) GetRemoveUnverifiedEmailClaim()(*bool) { } return nil } -// GetRequireClientServicePrincipal gets the requireClientServicePrincipal property value. Requires multitenant applications to have a service principal in the resource tenant as part of authorization checks before they're granted access tokens. This property is only modifiable for multi-tenant resource applications that rely on access from clients without a service principal and had this behavior as set to false by Microsoft. Tenant administrators should respond to security advisories sent through Azure Health Service events and the Microsoft 365 message center. +// GetRequireClientServicePrincipal gets the requireClientServicePrincipal property value. If true, requires multitenant applications to have a service principal in the resource tenant as part of authorization checks before they're granted access tokens. This property is only modifiable for multitenant resource applications that rely on access from clients without a service principal and had this behavior as set to false by Microsoft. Tenant administrators should respond to security advisories sent through Azure Health Service events and the Microsoft 365 message center. // returns a *bool when successful func (m *AuthenticationBehaviors) GetRequireClientServicePrincipal()(*bool) { val, err := m.GetBackingStore().Get("requireClientServicePrincipal") @@ -179,7 +179,7 @@ func (m *AuthenticationBehaviors) SetAdditionalData(value map[string]any)() { func (m *AuthenticationBehaviors) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetBlockAzureADGraphAccess sets the blockAzureADGraphAccess property value. The blockAzureADGraphAccess property +// SetBlockAzureADGraphAccess sets the blockAzureADGraphAccess property value. If false, allows the app to have extended access to Azure AD Graph until June 30, 2025 when Azure AD Graph is fully retired. For more information on Azure AD retirement updates, see June 2024 update on Azure AD Graph API retirement. func (m *AuthenticationBehaviors) SetBlockAzureADGraphAccess(value *bool)() { err := m.GetBackingStore().Set("blockAzureADGraphAccess", value) if err != nil { @@ -193,14 +193,14 @@ func (m *AuthenticationBehaviors) SetOdataType(value *string)() { panic(err) } } -// SetRemoveUnverifiedEmailClaim sets the removeUnverifiedEmailClaim property value. Removes the email claim from tokens sent to an application when the email address's domain can't be verified. +// SetRemoveUnverifiedEmailClaim sets the removeUnverifiedEmailClaim property value. If true, removes the email claim from tokens sent to an application when the email address's domain can't be verified. func (m *AuthenticationBehaviors) SetRemoveUnverifiedEmailClaim(value *bool)() { err := m.GetBackingStore().Set("removeUnverifiedEmailClaim", value) if err != nil { panic(err) } } -// SetRequireClientServicePrincipal sets the requireClientServicePrincipal property value. Requires multitenant applications to have a service principal in the resource tenant as part of authorization checks before they're granted access tokens. This property is only modifiable for multi-tenant resource applications that rely on access from clients without a service principal and had this behavior as set to false by Microsoft. Tenant administrators should respond to security advisories sent through Azure Health Service events and the Microsoft 365 message center. +// SetRequireClientServicePrincipal sets the requireClientServicePrincipal property value. If true, requires multitenant applications to have a service principal in the resource tenant as part of authorization checks before they're granted access tokens. This property is only modifiable for multitenant resource applications that rely on access from clients without a service principal and had this behavior as set to false by Microsoft. Tenant administrators should respond to security advisories sent through Azure Health Service events and the Microsoft 365 message center. func (m *AuthenticationBehaviors) SetRequireClientServicePrincipal(value *bool)() { err := m.GetBackingStore().Set("requireClientServicePrincipal", value) if err != nil { diff --git a/models/authentication_events_flow.go b/models/authentication_events_flow.go index 11ea34625de..c2b8ec874dc 100644 --- a/models/authentication_events_flow.go +++ b/models/authentication_events_flow.go @@ -37,7 +37,7 @@ func CreateAuthenticationEventsFlowFromDiscriminatorValue(parseNode i878a80d2330 } return NewAuthenticationEventsFlow(), nil } -// GetConditions gets the conditions property value. The conditions representing the context of the authentication request that's used to decide whether the events policy is invoked. +// GetConditions gets the conditions property value. The conditions representing the context of the authentication request that's used to decide whether the events policy is invoked. Supports $filter (eq). See support for filtering on user flows for syntax information. // returns a AuthenticationConditionsable when successful func (m *AuthenticationEventsFlow) GetConditions()(AuthenticationConditionsable) { val, err := m.GetBackingStore().Get("conditions") @@ -163,7 +163,7 @@ func (m *AuthenticationEventsFlow) Serialize(writer i878a80d2330e89d26896388a3f4 } return nil } -// SetConditions sets the conditions property value. The conditions representing the context of the authentication request that's used to decide whether the events policy is invoked. +// SetConditions sets the conditions property value. The conditions representing the context of the authentication request that's used to decide whether the events policy is invoked. Supports $filter (eq). See support for filtering on user flows for syntax information. func (m *AuthenticationEventsFlow) SetConditions(value AuthenticationConditionsable)() { err := m.GetBackingStore().Set("conditions", value) if err != nil { diff --git a/models/authentication_methods_policy.go b/models/authentication_methods_policy.go index f0af22641d7..df342e49056 100644 --- a/models/authentication_methods_policy.go +++ b/models/authentication_methods_policy.go @@ -106,6 +106,16 @@ func (m *AuthenticationMethodsPolicy) GetFieldDeserializers()(map[string]func(i8 } return nil } + res["microsoftAuthenticatorPlatformSettings"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateMicrosoftAuthenticatorPlatformSettingsFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetMicrosoftAuthenticatorPlatformSettings(val.(MicrosoftAuthenticatorPlatformSettingsable)) + } + return nil + } res["policyMigrationState"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetEnumValue(ParseAuthenticationMethodsPolicyMigrationState) if err != nil { @@ -180,6 +190,18 @@ func (m *AuthenticationMethodsPolicy) GetLastModifiedDateTime()(*i336074805fc853 } return nil } +// GetMicrosoftAuthenticatorPlatformSettings gets the microsoftAuthenticatorPlatformSettings property value. The microsoftAuthenticatorPlatformSettings property +// returns a MicrosoftAuthenticatorPlatformSettingsable when successful +func (m *AuthenticationMethodsPolicy) GetMicrosoftAuthenticatorPlatformSettings()(MicrosoftAuthenticatorPlatformSettingsable) { + val, err := m.GetBackingStore().Get("microsoftAuthenticatorPlatformSettings") + if err != nil { + panic(err) + } + if val != nil { + return val.(MicrosoftAuthenticatorPlatformSettingsable) + } + return nil +} // GetPolicyMigrationState gets the policyMigrationState property value. The state of migration of the authentication methods policy from the legacy multifactor authentication and self-service password reset (SSPR) policies. The possible values are: premigration - means the authentication methods policy is used for authentication only, legacy policies are respected. migrationInProgress - means the authentication methods policy is used for both authentication and SSPR, legacy policies are respected. migrationComplete - means the authentication methods policy is used for authentication and SSPR, legacy policies are ignored. unknownFutureValue - Evolvable enumeration sentinel value. Don't use. // returns a *AuthenticationMethodsPolicyMigrationState when successful func (m *AuthenticationMethodsPolicy) GetPolicyMigrationState()(*AuthenticationMethodsPolicyMigrationState) { @@ -288,6 +310,12 @@ func (m *AuthenticationMethodsPolicy) Serialize(writer i878a80d2330e89d26896388a return err } } + { + err = writer.WriteObjectValue("microsoftAuthenticatorPlatformSettings", m.GetMicrosoftAuthenticatorPlatformSettings()) + if err != nil { + return err + } + } if m.GetPolicyMigrationState() != nil { cast := (*m.GetPolicyMigrationState()).String() err = writer.WriteStringValue("policyMigrationState", &cast) @@ -355,6 +383,13 @@ func (m *AuthenticationMethodsPolicy) SetLastModifiedDateTime(value *i336074805f panic(err) } } +// SetMicrosoftAuthenticatorPlatformSettings sets the microsoftAuthenticatorPlatformSettings property value. The microsoftAuthenticatorPlatformSettings property +func (m *AuthenticationMethodsPolicy) SetMicrosoftAuthenticatorPlatformSettings(value MicrosoftAuthenticatorPlatformSettingsable)() { + err := m.GetBackingStore().Set("microsoftAuthenticatorPlatformSettings", value) + if err != nil { + panic(err) + } +} // SetPolicyMigrationState sets the policyMigrationState property value. The state of migration of the authentication methods policy from the legacy multifactor authentication and self-service password reset (SSPR) policies. The possible values are: premigration - means the authentication methods policy is used for authentication only, legacy policies are respected. migrationInProgress - means the authentication methods policy is used for both authentication and SSPR, legacy policies are respected. migrationComplete - means the authentication methods policy is used for authentication and SSPR, legacy policies are ignored. unknownFutureValue - Evolvable enumeration sentinel value. Don't use. func (m *AuthenticationMethodsPolicy) SetPolicyMigrationState(value *AuthenticationMethodsPolicyMigrationState)() { err := m.GetBackingStore().Set("policyMigrationState", value) @@ -404,6 +439,7 @@ type AuthenticationMethodsPolicyable interface { GetDescription()(*string) GetDisplayName()(*string) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetMicrosoftAuthenticatorPlatformSettings()(MicrosoftAuthenticatorPlatformSettingsable) GetPolicyMigrationState()(*AuthenticationMethodsPolicyMigrationState) GetPolicyVersion()(*string) GetReconfirmationInDays()(*int32) @@ -414,6 +450,7 @@ type AuthenticationMethodsPolicyable interface { SetDescription(value *string)() SetDisplayName(value *string)() SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetMicrosoftAuthenticatorPlatformSettings(value MicrosoftAuthenticatorPlatformSettingsable)() SetPolicyMigrationState(value *AuthenticationMethodsPolicyMigrationState)() SetPolicyVersion(value *string)() SetReconfirmationInDays(value *int32)() diff --git a/models/chat_message_reaction.go b/models/chat_message_reaction.go index 5d133d976a0..9c4a22f2d81 100644 --- a/models/chat_message_reaction.go +++ b/models/chat_message_reaction.go @@ -53,6 +53,18 @@ func (m *ChatMessageReaction) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3a } return nil } +// GetDisplayName gets the displayName property value. The name of the reaction. +// returns a *string when successful +func (m *ChatMessageReaction) 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 *ChatMessageReaction) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { @@ -67,6 +79,16 @@ func (m *ChatMessageReaction) GetFieldDeserializers()(map[string]func(i878a80d23 } return nil } + 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["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -133,7 +155,7 @@ func (m *ChatMessageReaction) GetReactionContentUrl()(*string) { } return nil } -// GetReactionType gets the reactionType property value. Supported values are Unicode characters and custom. Some backward-compatible reaction types include like, angry, sad, laugh, heart, and surprised. +// GetReactionType gets the reactionType property value. The reaction type. Supported values include Unicode characters, custom, and some backward-compatible reaction types, such as like, angry, sad, laugh, heart, and surprised. // returns a *string when successful func (m *ChatMessageReaction) GetReactionType()(*string) { val, err := m.GetBackingStore().Get("reactionType") @@ -165,6 +187,12 @@ func (m *ChatMessageReaction) Serialize(writer i878a80d2330e89d26896388a3f487eef return err } } + { + err := writer.WriteStringValue("displayName", m.GetDisplayName()) + if err != nil { + return err + } + } { err := writer.WriteStringValue("@odata.type", m.GetOdataType()) if err != nil { @@ -215,6 +243,13 @@ func (m *ChatMessageReaction) SetCreatedDateTime(value *i336074805fc853987abe6f7 panic(err) } } +// SetDisplayName sets the displayName property value. The name of the reaction. +func (m *ChatMessageReaction) SetDisplayName(value *string)() { + err := m.GetBackingStore().Set("displayName", value) + if err != nil { + panic(err) + } +} // SetOdataType sets the @odata.type property value. The OdataType property func (m *ChatMessageReaction) SetOdataType(value *string)() { err := m.GetBackingStore().Set("odataType", value) @@ -229,7 +264,7 @@ func (m *ChatMessageReaction) SetReactionContentUrl(value *string)() { panic(err) } } -// SetReactionType sets the reactionType property value. Supported values are Unicode characters and custom. Some backward-compatible reaction types include like, angry, sad, laugh, heart, and surprised. +// SetReactionType sets the reactionType property value. The reaction type. Supported values include Unicode characters, custom, and some backward-compatible reaction types, such as like, angry, sad, laugh, heart, and surprised. func (m *ChatMessageReaction) SetReactionType(value *string)() { err := m.GetBackingStore().Set("reactionType", value) if err != nil { @@ -249,12 +284,14 @@ type ChatMessageReactionable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetDisplayName()(*string) GetOdataType()(*string) GetReactionContentUrl()(*string) GetReactionType()(*string) GetUser()(ChatMessageReactionIdentitySetable) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetDisplayName(value *string)() SetOdataType(value *string)() SetReactionContentUrl(value *string)() SetReactionType(value *string)() diff --git a/models/click_source.go b/models/click_source.go new file mode 100644 index 00000000000..093031b8f96 --- /dev/null +++ b/models/click_source.go @@ -0,0 +1,39 @@ +package models +type ClickSource int + +const ( + UNKNOWN_CLICKSOURCE ClickSource = iota + QRCODE_CLICKSOURCE + PHISHINGURL_CLICKSOURCE + UNKNOWNFUTUREVALUE_CLICKSOURCE +) + +func (i ClickSource) String() string { + return []string{"unknown", "qrCode", "phishingUrl", "unknownFutureValue"}[i] +} +func ParseClickSource(v string) (any, error) { + result := UNKNOWN_CLICKSOURCE + switch v { + case "unknown": + result = UNKNOWN_CLICKSOURCE + case "qrCode": + result = QRCODE_CLICKSOURCE + case "phishingUrl": + result = PHISHINGURL_CLICKSOURCE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_CLICKSOURCE + default: + return nil, nil + } + return &result, nil +} +func SerializeClickSource(values []ClickSource) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i ClickSource) isMultiValue() bool { + return false +} diff --git a/models/cloud_pc_notification_setting.go b/models/cloud_pc_notification_setting.go new file mode 100644 index 00000000000..fc12c32a816 --- /dev/null +++ b/models/cloud_pc_notification_setting.go @@ -0,0 +1,150 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type CloudPcNotificationSetting struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewCloudPcNotificationSetting instantiates a new CloudPcNotificationSetting and sets the default values. +func NewCloudPcNotificationSetting()(*CloudPcNotificationSetting) { + m := &CloudPcNotificationSetting{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateCloudPcNotificationSettingFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateCloudPcNotificationSettingFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewCloudPcNotificationSetting(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *CloudPcNotificationSetting) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *CloudPcNotificationSetting) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *CloudPcNotificationSetting) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + 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["restartPromptsDisabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() + if err != nil { + return err + } + if val != nil { + m.SetRestartPromptsDisabled(val) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *CloudPcNotificationSetting) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetRestartPromptsDisabled gets the restartPromptsDisabled property value. The restartPromptsDisabled property +// returns a *bool when successful +func (m *CloudPcNotificationSetting) GetRestartPromptsDisabled()(*bool) { + val, err := m.GetBackingStore().Get("restartPromptsDisabled") + if err != nil { + panic(err) + } + if val != nil { + return val.(*bool) + } + return nil +} +// Serialize serializes information the current object +func (m *CloudPcNotificationSetting) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteBoolValue("restartPromptsDisabled", m.GetRestartPromptsDisabled()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *CloudPcNotificationSetting) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *CloudPcNotificationSetting) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *CloudPcNotificationSetting) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetRestartPromptsDisabled sets the restartPromptsDisabled property value. The restartPromptsDisabled property +func (m *CloudPcNotificationSetting) SetRestartPromptsDisabled(value *bool)() { + err := m.GetBackingStore().Set("restartPromptsDisabled", value) + if err != nil { + panic(err) + } +} +type CloudPcNotificationSettingable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetOdataType()(*string) + GetRestartPromptsDisabled()(*bool) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetOdataType(value *string)() + SetRestartPromptsDisabled(value *bool)() +} diff --git a/models/cloud_pc_user_setting.go b/models/cloud_pc_user_setting.go index 2fc99187c24..cd0a8fce9ba 100644 --- a/models/cloud_pc_user_setting.go +++ b/models/cloud_pc_user_setting.go @@ -138,6 +138,16 @@ func (m *CloudPcUserSetting) GetFieldDeserializers()(map[string]func(i878a80d233 } return nil } + res["notificationSetting"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateCloudPcNotificationSettingFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetNotificationSetting(val.(CloudPcNotificationSettingable)) + } + return nil + } res["resetEnabled"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetBoolValue() if err != nil { @@ -194,6 +204,18 @@ func (m *CloudPcUserSetting) GetLocalAdminEnabled()(*bool) { } return nil } +// GetNotificationSetting gets the notificationSetting property value. The notificationSetting property +// returns a CloudPcNotificationSettingable when successful +func (m *CloudPcUserSetting) GetNotificationSetting()(CloudPcNotificationSettingable) { + val, err := m.GetBackingStore().Get("notificationSetting") + if err != nil { + panic(err) + } + if val != nil { + return val.(CloudPcNotificationSettingable) + } + return nil +} // GetResetEnabled gets the resetEnabled property value. Indicates whether an end user is allowed to reset their Cloud PC. When true, the user is allowed to reset their Cloud PC. When false, end-user initiated reset is not allowed. The default value is false. // returns a *bool when successful func (m *CloudPcUserSetting) GetResetEnabled()(*bool) { @@ -278,6 +300,12 @@ func (m *CloudPcUserSetting) Serialize(writer i878a80d2330e89d26896388a3f487eef2 return err } } + { + err = writer.WriteObjectValue("notificationSetting", m.GetNotificationSetting()) + if err != nil { + return err + } + } { err = writer.WriteBoolValue("resetEnabled", m.GetResetEnabled()) if err != nil { @@ -340,6 +368,13 @@ func (m *CloudPcUserSetting) SetLocalAdminEnabled(value *bool)() { panic(err) } } +// SetNotificationSetting sets the notificationSetting property value. The notificationSetting property +func (m *CloudPcUserSetting) SetNotificationSetting(value CloudPcNotificationSettingable)() { + err := m.GetBackingStore().Set("notificationSetting", value) + if err != nil { + panic(err) + } +} // SetResetEnabled sets the resetEnabled property value. Indicates whether an end user is allowed to reset their Cloud PC. When true, the user is allowed to reset their Cloud PC. When false, end-user initiated reset is not allowed. The default value is false. func (m *CloudPcUserSetting) SetResetEnabled(value *bool)() { err := m.GetBackingStore().Set("resetEnabled", value) @@ -370,6 +405,7 @@ type CloudPcUserSettingable interface { GetDisplayName()(*string) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetLocalAdminEnabled()(*bool) + GetNotificationSetting()(CloudPcNotificationSettingable) GetResetEnabled()(*bool) GetRestorePointSetting()(CloudPcRestorePointSettingable) GetSelfServiceEnabled()(*bool) @@ -379,6 +415,7 @@ type CloudPcUserSettingable interface { SetDisplayName(value *string)() SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetLocalAdminEnabled(value *bool)() + SetNotificationSetting(value CloudPcNotificationSettingable)() SetResetEnabled(value *bool)() SetRestorePointSetting(value CloudPcRestorePointSettingable)() SetSelfServiceEnabled(value *bool)() diff --git a/models/column_definition.go b/models/column_definition.go index 51b4b5a8b39..f6f7cc11af4 100644 --- a/models/column_definition.go +++ b/models/column_definition.go @@ -19,7 +19,7 @@ func NewColumnDefinition()(*ColumnDefinition) { func CreateColumnDefinitionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewColumnDefinition(), nil } -// GetBoolean gets the boolean property value. This column stores boolean values. +// GetBoolean gets the boolean property value. This column stores Boolean values. // returns a BooleanColumnable when successful func (m *ColumnDefinition) GetBoolean()(BooleanColumnable) { val, err := m.GetBackingStore().Get("boolean") @@ -930,7 +930,7 @@ func (m *ColumnDefinition) Serialize(writer i878a80d2330e89d26896388a3f487eef27b } return nil } -// SetBoolean sets the boolean property value. This column stores boolean values. +// SetBoolean sets the boolean property value. This column stores Boolean values. func (m *ColumnDefinition) SetBoolean(value BooleanColumnable)() { err := m.GetBackingStore().Set("boolean", value) if err != nil { diff --git a/models/community.go b/models/community.go index fbe49372d4f..cb637b80013 100644 --- a/models/community.go +++ b/models/community.go @@ -19,7 +19,7 @@ func NewCommunity()(*Community) { func CreateCommunityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewCommunity(), nil } -// GetDescription gets the description property value. The description of the community. The maximum length is 1024 characters. +// GetDescription gets the description property value. The description of the community. The maximum length is 1,024 characters. // returns a *string when successful func (m *Community) GetDescription()(*string) { val, err := m.GetBackingStore().Get("description") @@ -214,7 +214,7 @@ func (m *Community) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c0 } return nil } -// SetDescription sets the description property value. The description of the community. The maximum length is 1024 characters. +// SetDescription sets the description property value. The description of the community. The maximum length is 1,024 characters. func (m *Community) SetDescription(value *string)() { err := m.GetBackingStore().Set("description", value) if err != nil { diff --git a/models/company_detail.go b/models/company_detail.go index 6cb56b28fb9..9b2b7101772 100644 --- a/models/company_detail.go +++ b/models/company_detail.go @@ -220,7 +220,7 @@ func (m *CompanyDetail) GetPronunciation()(*string) { } return nil } -// GetSecondaryDepartment gets the secondaryDepartment property value. The secondaryDepartment property +// GetSecondaryDepartment gets the secondaryDepartment property value. Secondary Department Name within a company. // returns a *string when successful func (m *CompanyDetail) GetSecondaryDepartment()(*string) { val, err := m.GetBackingStore().Get("secondaryDepartment") @@ -368,7 +368,7 @@ func (m *CompanyDetail) SetPronunciation(value *string)() { panic(err) } } -// SetSecondaryDepartment sets the secondaryDepartment property value. The secondaryDepartment property +// SetSecondaryDepartment sets the secondaryDepartment property value. Secondary Department Name within a company. func (m *CompanyDetail) SetSecondaryDepartment(value *string)() { err := m.GetBackingStore().Set("secondaryDepartment", value) if err != nil { diff --git a/models/contact.go b/models/contact.go index 08808d4e480..3f5f5b694d5 100644 --- a/models/contact.go +++ b/models/contact.go @@ -82,7 +82,7 @@ func (m *Contact) GetDepartment()(*string) { } return nil } -// GetDisplayName gets the displayName property value. The contact's display name. You can specify the display name in a create or update operation. Note that later updates to other properties may cause an automatically generated value to overwrite the displayName value you have specified. To preserve a pre-existing value, always include it as displayName in an update operation. +// GetDisplayName gets the displayName property value. The contact's display name. You can specify the display name in a create or update operation. Later updates to other properties might cause an automatically generated value to overwrite the displayName value you specified. To preserve a pre-existing value, always include it as displayName in an update operation. // returns a *string when successful func (m *Contact) GetDisplayName()(*string) { val, err := m.GetBackingStore().Get("displayName") @@ -1203,7 +1203,7 @@ func (m *Contact) SetDepartment(value *string)() { panic(err) } } -// SetDisplayName sets the displayName property value. The contact's display name. You can specify the display name in a create or update operation. Note that later updates to other properties may cause an automatically generated value to overwrite the displayName value you have specified. To preserve a pre-existing value, always include it as displayName in an update operation. +// SetDisplayName sets the displayName property value. The contact's display name. You can specify the display name in a create or update operation. Later updates to other properties might cause an automatically generated value to overwrite the displayName value you specified. To preserve a pre-existing value, always include it as displayName in an update operation. func (m *Contact) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) if err != nil { diff --git a/models/device.go b/models/device.go index 8d949ff0b78..b091c88bd8b 100644 --- a/models/device.go +++ b/models/device.go @@ -178,7 +178,7 @@ func (m *Device) GetEnrollmentProfileName()(*string) { } return nil } -// GetEnrollmentType gets the enrollmentType property value. Enrollment type of the device. This property is set by Intune. Possible values are: unknown, userEnrollment, deviceEnrollmentManager, appleBulkWithUser, appleBulkWithoutUser, windowsAzureADJoin, windowsBulkUserless, windowsAutoEnrollment, windowsBulkAzureDomainJoin, windowsCoManagement. +// GetEnrollmentType gets the enrollmentType property value. Enrollment type of the device. This property is set by Intune. Possible values are: unknown, userEnrollment, deviceEnrollmentManager, appleBulkWithUser, appleBulkWithoutUser, windowsAzureADJoin, windowsBulkUserless, windowsAutoEnrollment, windowsBulkAzureDomainJoin, windowsCoManagement, windowsAzureADJoinUsingDeviceAuth,appleUserEnrollment, appleUserEnrollmentWithServiceAccount. NOTE: This property might return other values apart from those listed. // returns a *string when successful func (m *Device) GetEnrollmentType()(*string) { val, err := m.GetBackingStore().Get("enrollmentType") @@ -762,7 +762,7 @@ func (m *Device) GetIsManaged()(*bool) { } return nil } -// GetIsManagementRestricted gets the isManagementRestricted property value. Indicates whether the device is a member of a restricted management administrative unit, in which case it requires a role scoped to the restricted administrative unit to manage. The default value is false. Read-only. To manage a device that's a member of a restricted administrative unit, the calling app must be assigned the Directory.Write.Restricted permission. For delegated scenarios, the administrators must also be explicitly assigned supported roles at the restricted administrative unit scope. +// GetIsManagementRestricted gets the isManagementRestricted property value. Indicates whether the device is a member of a restricted management administrative unit. The default value is false. Read-only. To manage a device that's a member of a restricted management administrative unit, the administrator or calling app must be assigned a Microsoft Entra role at the scope of the restricted management administrative unit. // returns a *bool when successful func (m *Device) GetIsManagementRestricted()(*bool) { val, err := m.GetBackingStore().Get("isManagementRestricted") @@ -1473,7 +1473,7 @@ func (m *Device) SetEnrollmentProfileName(value *string)() { panic(err) } } -// SetEnrollmentType sets the enrollmentType property value. Enrollment type of the device. This property is set by Intune. Possible values are: unknown, userEnrollment, deviceEnrollmentManager, appleBulkWithUser, appleBulkWithoutUser, windowsAzureADJoin, windowsBulkUserless, windowsAutoEnrollment, windowsBulkAzureDomainJoin, windowsCoManagement. +// SetEnrollmentType sets the enrollmentType property value. Enrollment type of the device. This property is set by Intune. Possible values are: unknown, userEnrollment, deviceEnrollmentManager, appleBulkWithUser, appleBulkWithoutUser, windowsAzureADJoin, windowsBulkUserless, windowsAutoEnrollment, windowsBulkAzureDomainJoin, windowsCoManagement, windowsAzureADJoinUsingDeviceAuth,appleUserEnrollment, appleUserEnrollmentWithServiceAccount. NOTE: This property might return other values apart from those listed. func (m *Device) SetEnrollmentType(value *string)() { err := m.GetBackingStore().Set("enrollmentType", value) if err != nil { @@ -1515,7 +1515,7 @@ func (m *Device) SetIsManaged(value *bool)() { panic(err) } } -// SetIsManagementRestricted sets the isManagementRestricted property value. Indicates whether the device is a member of a restricted management administrative unit, in which case it requires a role scoped to the restricted administrative unit to manage. The default value is false. Read-only. To manage a device that's a member of a restricted administrative unit, the calling app must be assigned the Directory.Write.Restricted permission. For delegated scenarios, the administrators must also be explicitly assigned supported roles at the restricted administrative unit scope. +// SetIsManagementRestricted sets the isManagementRestricted property value. Indicates whether the device is a member of a restricted management administrative unit. The default value is false. Read-only. To manage a device that's a member of a restricted management administrative unit, the administrator or calling app must be assigned a Microsoft Entra role at the scope of the restricted management administrative unit. func (m *Device) SetIsManagementRestricted(value *bool)() { err := m.GetBackingStore().Set("isManagementRestricted", value) if err != nil { diff --git a/models/device_detail.go b/models/device_detail.go index 6faa1877f48..a37e7140ac6 100644 --- a/models/device_detail.go +++ b/models/device_detail.go @@ -40,7 +40,7 @@ func (m *DeviceDetail) GetAdditionalData()(map[string]any) { func (m *DeviceDetail) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetBrowser gets the browser property value. Indicates the browser information of the used for signing-in. +// GetBrowser gets the browser property value. Indicates the browser information of the used in the sign-in. Populated for devices registered in Microsoft Entra. // returns a *string when successful func (m *DeviceDetail) GetBrowser()(*string) { val, err := m.GetBackingStore().Get("browser") @@ -64,7 +64,7 @@ func (m *DeviceDetail) GetBrowserId()(*string) { } return nil } -// GetDeviceId gets the deviceId property value. Refers to the UniqueID of the device used for signing-in. +// GetDeviceId gets the deviceId property value. Refers to the unique ID of the device used in the sign-in. Populated for devices registered in Microsoft Entra. // returns a *string when successful func (m *DeviceDetail) GetDeviceId()(*string) { val, err := m.GetBackingStore().Get("deviceId") @@ -76,7 +76,7 @@ func (m *DeviceDetail) GetDeviceId()(*string) { } return nil } -// GetDisplayName gets the displayName property value. Refers to the name of the device used for signing-in. +// GetDisplayName gets the displayName property value. Refers to the name of the device used in the sign-in. Populated for devices registered in Microsoft Entra. // returns a *string when successful func (m *DeviceDetail) GetDisplayName()(*string) { val, err := m.GetBackingStore().Get("displayName") @@ -220,7 +220,7 @@ func (m *DeviceDetail) GetOdataType()(*string) { } return nil } -// GetOperatingSystem gets the operatingSystem property value. Indicates the OS name and version used for signing-in. +// GetOperatingSystem gets the operatingSystem property value. Indicates the OS name and version used in the sign-in. // returns a *string when successful func (m *DeviceDetail) GetOperatingSystem()(*string) { val, err := m.GetBackingStore().Get("operatingSystem") @@ -232,7 +232,7 @@ func (m *DeviceDetail) GetOperatingSystem()(*string) { } return nil } -// GetTrustType gets the trustType property value. Indicates information on whether the signed-in device is Workplace Joined, AzureAD Joined, Domain Joined. +// GetTrustType gets the trustType property value. Indicates information on whether the device used in the sign-in is workplace-joined, Microsoft Entra-joined, domain-joined. // returns a *string when successful func (m *DeviceDetail) GetTrustType()(*string) { val, err := m.GetBackingStore().Get("trustType") @@ -319,7 +319,7 @@ func (m *DeviceDetail) SetAdditionalData(value map[string]any)() { func (m *DeviceDetail) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetBrowser sets the browser property value. Indicates the browser information of the used for signing-in. +// SetBrowser sets the browser property value. Indicates the browser information of the used in the sign-in. Populated for devices registered in Microsoft Entra. func (m *DeviceDetail) SetBrowser(value *string)() { err := m.GetBackingStore().Set("browser", value) if err != nil { @@ -333,14 +333,14 @@ func (m *DeviceDetail) SetBrowserId(value *string)() { panic(err) } } -// SetDeviceId sets the deviceId property value. Refers to the UniqueID of the device used for signing-in. +// SetDeviceId sets the deviceId property value. Refers to the unique ID of the device used in the sign-in. Populated for devices registered in Microsoft Entra. func (m *DeviceDetail) SetDeviceId(value *string)() { err := m.GetBackingStore().Set("deviceId", value) if err != nil { panic(err) } } -// SetDisplayName sets the displayName property value. Refers to the name of the device used for signing-in. +// SetDisplayName sets the displayName property value. Refers to the name of the device used in the sign-in. Populated for devices registered in Microsoft Entra. func (m *DeviceDetail) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) if err != nil { @@ -368,14 +368,14 @@ func (m *DeviceDetail) SetOdataType(value *string)() { panic(err) } } -// SetOperatingSystem sets the operatingSystem property value. Indicates the OS name and version used for signing-in. +// SetOperatingSystem sets the operatingSystem property value. Indicates the OS name and version used in the sign-in. func (m *DeviceDetail) SetOperatingSystem(value *string)() { err := m.GetBackingStore().Set("operatingSystem", value) if err != nil { panic(err) } } -// SetTrustType sets the trustType property value. Indicates information on whether the signed-in device is Workplace Joined, AzureAD Joined, Domain Joined. +// SetTrustType sets the trustType property value. Indicates information on whether the device used in the sign-in is workplace-joined, Microsoft Entra-joined, domain-joined. func (m *DeviceDetail) SetTrustType(value *string)() { err := m.GetBackingStore().Set("trustType", value) if err != nil { diff --git a/models/device_management_configuration_choice_setting_definition.go b/models/device_management_configuration_choice_setting_definition.go index 4c89328c405..2eeebaa89d4 100644 --- a/models/device_management_configuration_choice_setting_definition.go +++ b/models/device_management_configuration_choice_setting_definition.go @@ -37,7 +37,7 @@ func CreateDeviceManagementConfigurationChoiceSettingDefinitionFromDiscriminator } return NewDeviceManagementConfigurationChoiceSettingDefinition(), nil } -// GetDefaultOptionId gets the defaultOptionId property value. Default option for choice setting +// GetDefaultOptionId gets the defaultOptionId property value. Default option for the choice setting. // returns a *string when successful func (m *DeviceManagementConfigurationChoiceSettingDefinition) GetDefaultOptionId()(*string) { val, err := m.GetBackingStore().Get("defaultOptionId") @@ -81,7 +81,7 @@ func (m *DeviceManagementConfigurationChoiceSettingDefinition) GetFieldDeseriali } return res } -// GetOptions gets the options property value. Options for the setting that can be selected +// GetOptions gets the options property value. Options for the setting that can be selected. // returns a []DeviceManagementConfigurationOptionDefinitionable when successful func (m *DeviceManagementConfigurationChoiceSettingDefinition) GetOptions()([]DeviceManagementConfigurationOptionDefinitionable) { val, err := m.GetBackingStore().Get("options") @@ -119,14 +119,14 @@ func (m *DeviceManagementConfigurationChoiceSettingDefinition) Serialize(writer } return nil } -// SetDefaultOptionId sets the defaultOptionId property value. Default option for choice setting +// SetDefaultOptionId sets the defaultOptionId property value. Default option for the choice setting. func (m *DeviceManagementConfigurationChoiceSettingDefinition) SetDefaultOptionId(value *string)() { err := m.GetBackingStore().Set("defaultOptionId", value) if err != nil { panic(err) } } -// SetOptions sets the options property value. Options for the setting that can be selected +// SetOptions sets the options property value. Options for the setting that can be selected. func (m *DeviceManagementConfigurationChoiceSettingDefinition) SetOptions(value []DeviceManagementConfigurationOptionDefinitionable)() { err := m.GetBackingStore().Set("options", value) if err != nil { diff --git a/models/device_management_configuration_referred_setting_information.go b/models/device_management_configuration_referred_setting_information.go index 8f0d294486c..16fe9c74a9a 100644 --- a/models/device_management_configuration_referred_setting_information.go +++ b/models/device_management_configuration_referred_setting_information.go @@ -79,7 +79,7 @@ func (m *DeviceManagementConfigurationReferredSettingInformation) GetOdataType() } return nil } -// GetSettingDefinitionId gets the settingDefinitionId property value. Setting definition id that is being referred to a setting. Applicable for reusable setting. +// GetSettingDefinitionId gets the settingDefinitionId property value. Setting definition id that is being referred to a setting. Applicable for reusable setting // returns a *string when successful func (m *DeviceManagementConfigurationReferredSettingInformation) GetSettingDefinitionId()(*string) { val, err := m.GetBackingStore().Get("settingDefinitionId") @@ -131,7 +131,7 @@ func (m *DeviceManagementConfigurationReferredSettingInformation) SetOdataType(v panic(err) } } -// SetSettingDefinitionId sets the settingDefinitionId property value. Setting definition id that is being referred to a setting. Applicable for reusable setting. +// SetSettingDefinitionId sets the settingDefinitionId property value. Setting definition id that is being referred to a setting. Applicable for reusable setting func (m *DeviceManagementConfigurationReferredSettingInformation) SetSettingDefinitionId(value *string)() { err := m.GetBackingStore().Set("settingDefinitionId", value) if err != nil { diff --git a/models/device_management_configuration_setting_definition.go b/models/device_management_configuration_setting_definition.go index c011e5384f7..6587253802f 100644 --- a/models/device_management_configuration_setting_definition.go +++ b/models/device_management_configuration_setting_definition.go @@ -61,7 +61,7 @@ func (m *DeviceManagementConfigurationSettingDefinition) GetAccessTypes()(*Devic } return nil } -// GetApplicability gets the applicability property value. Details which device setting is applicable on +// GetApplicability gets the applicability property value. Details which device setting is applicable on. Supports: $filters. // returns a DeviceManagementConfigurationSettingApplicabilityable when successful func (m *DeviceManagementConfigurationSettingDefinition) GetApplicability()(DeviceManagementConfigurationSettingApplicabilityable) { val, err := m.GetBackingStore().Get("applicability") @@ -85,7 +85,7 @@ func (m *DeviceManagementConfigurationSettingDefinition) GetBaseUri()(*string) { } return nil } -// GetCategoryId gets the categoryId property value. Specifies the area group under which the setting is configured in a specified configuration service provider (CSP) +// GetCategoryId gets the categoryId property value. Specify category in which the setting is under. Support $filters. // returns a *string when successful func (m *DeviceManagementConfigurationSettingDefinition) GetCategoryId()(*string) { val, err := m.GetBackingStore().Get("categoryId") @@ -97,7 +97,7 @@ func (m *DeviceManagementConfigurationSettingDefinition) GetCategoryId()(*string } return nil } -// GetDescription gets the description property value. Description of the item +// GetDescription gets the description property value. Description of the setting. // returns a *string when successful func (m *DeviceManagementConfigurationSettingDefinition) GetDescription()(*string) { val, err := m.GetBackingStore().Get("description") @@ -109,7 +109,7 @@ func (m *DeviceManagementConfigurationSettingDefinition) GetDescription()(*strin } return nil } -// GetDisplayName gets the displayName property value. Display name of the item +// GetDisplayName gets the displayName property value. Name of the setting. For example: Allow Toast. // returns a *string when successful func (m *DeviceManagementConfigurationSettingDefinition) GetDisplayName()(*string) { val, err := m.GetBackingStore().Get("displayName") @@ -325,7 +325,7 @@ func (m *DeviceManagementConfigurationSettingDefinition) GetFieldDeserializers() } return res } -// GetHelpText gets the helpText property value. Help text of the item +// GetHelpText gets the helpText property value. Help text of the setting. Give more details of the setting. // returns a *string when successful func (m *DeviceManagementConfigurationSettingDefinition) GetHelpText()(*string) { val, err := m.GetBackingStore().Get("helpText") @@ -337,7 +337,7 @@ func (m *DeviceManagementConfigurationSettingDefinition) GetHelpText()(*string) } return nil } -// GetInfoUrls gets the infoUrls property value. List of links more info for the setting can be found at +// GetInfoUrls gets the infoUrls property value. List of links more info for the setting can be found at. // returns a []string when successful func (m *DeviceManagementConfigurationSettingDefinition) GetInfoUrls()([]string) { val, err := m.GetBackingStore().Get("infoUrls") @@ -409,7 +409,7 @@ func (m *DeviceManagementConfigurationSettingDefinition) GetReferredSettingInfor } return nil } -// GetRootDefinitionId gets the rootDefinitionId property value. Root setting definition if the setting is a child setting. +// GetRootDefinitionId gets the rootDefinitionId property value. Root setting definition id if the setting is a child setting. // returns a *string when successful func (m *DeviceManagementConfigurationSettingDefinition) GetRootDefinitionId()(*string) { val, err := m.GetBackingStore().Get("rootDefinitionId") @@ -602,7 +602,7 @@ func (m *DeviceManagementConfigurationSettingDefinition) SetAccessTypes(value *D panic(err) } } -// SetApplicability sets the applicability property value. Details which device setting is applicable on +// SetApplicability sets the applicability property value. Details which device setting is applicable on. Supports: $filters. func (m *DeviceManagementConfigurationSettingDefinition) SetApplicability(value DeviceManagementConfigurationSettingApplicabilityable)() { err := m.GetBackingStore().Set("applicability", value) if err != nil { @@ -616,35 +616,35 @@ func (m *DeviceManagementConfigurationSettingDefinition) SetBaseUri(value *strin panic(err) } } -// SetCategoryId sets the categoryId property value. Specifies the area group under which the setting is configured in a specified configuration service provider (CSP) +// SetCategoryId sets the categoryId property value. Specify category in which the setting is under. Support $filters. func (m *DeviceManagementConfigurationSettingDefinition) SetCategoryId(value *string)() { err := m.GetBackingStore().Set("categoryId", value) if err != nil { panic(err) } } -// SetDescription sets the description property value. Description of the item +// SetDescription sets the description property value. Description of the setting. func (m *DeviceManagementConfigurationSettingDefinition) SetDescription(value *string)() { err := m.GetBackingStore().Set("description", value) if err != nil { panic(err) } } -// SetDisplayName sets the displayName property value. Display name of the item +// SetDisplayName sets the displayName property value. Name of the setting. For example: Allow Toast. func (m *DeviceManagementConfigurationSettingDefinition) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) if err != nil { panic(err) } } -// SetHelpText sets the helpText property value. Help text of the item +// SetHelpText sets the helpText property value. Help text of the setting. Give more details of the setting. func (m *DeviceManagementConfigurationSettingDefinition) SetHelpText(value *string)() { err := m.GetBackingStore().Set("helpText", value) if err != nil { panic(err) } } -// SetInfoUrls sets the infoUrls property value. List of links more info for the setting can be found at +// SetInfoUrls sets the infoUrls property value. List of links more info for the setting can be found at. func (m *DeviceManagementConfigurationSettingDefinition) SetInfoUrls(value []string)() { err := m.GetBackingStore().Set("infoUrls", value) if err != nil { @@ -686,7 +686,7 @@ func (m *DeviceManagementConfigurationSettingDefinition) SetReferredSettingInfor panic(err) } } -// SetRootDefinitionId sets the rootDefinitionId property value. Root setting definition if the setting is a child setting. +// SetRootDefinitionId sets the rootDefinitionId property value. Root setting definition id if the setting is a child setting. func (m *DeviceManagementConfigurationSettingDefinition) SetRootDefinitionId(value *string)() { err := m.GetBackingStore().Set("rootDefinitionId", value) if err != nil { diff --git a/models/device_management_configuration_setting_group_collection_definition.go b/models/device_management_configuration_setting_group_collection_definition.go index 5d493903800..72e7bfbc56a 100644 --- a/models/device_management_configuration_setting_group_collection_definition.go +++ b/models/device_management_configuration_setting_group_collection_definition.go @@ -45,7 +45,7 @@ func (m *DeviceManagementConfigurationSettingGroupCollectionDefinition) GetField } return res } -// GetMaximumCount gets the maximumCount property value. Maximum number of setting group count in the collection. Valid values 1 to 100 +// GetMaximumCount gets the maximumCount property value. Maximum number of setting group count in the collection // returns a *int32 when successful func (m *DeviceManagementConfigurationSettingGroupCollectionDefinition) GetMaximumCount()(*int32) { val, err := m.GetBackingStore().Get("maximumCount") @@ -57,7 +57,7 @@ func (m *DeviceManagementConfigurationSettingGroupCollectionDefinition) GetMaxim } return nil } -// GetMinimumCount gets the minimumCount property value. Minimum number of setting group count in the collection. Valid values 1 to 100 +// GetMinimumCount gets the minimumCount property value. Minimum number of setting group count in the collection // returns a *int32 when successful func (m *DeviceManagementConfigurationSettingGroupCollectionDefinition) GetMinimumCount()(*int32) { val, err := m.GetBackingStore().Get("minimumCount") @@ -89,14 +89,14 @@ func (m *DeviceManagementConfigurationSettingGroupCollectionDefinition) Serializ } return nil } -// SetMaximumCount sets the maximumCount property value. Maximum number of setting group count in the collection. Valid values 1 to 100 +// SetMaximumCount sets the maximumCount property value. Maximum number of setting group count in the collection func (m *DeviceManagementConfigurationSettingGroupCollectionDefinition) SetMaximumCount(value *int32)() { err := m.GetBackingStore().Set("maximumCount", value) if err != nil { panic(err) } } -// SetMinimumCount sets the minimumCount property value. Minimum number of setting group count in the collection. Valid values 1 to 100 +// SetMinimumCount sets the minimumCount property value. Minimum number of setting group count in the collection func (m *DeviceManagementConfigurationSettingGroupCollectionDefinition) SetMinimumCount(value *int32)() { err := m.GetBackingStore().Set("minimumCount", value) if err != nil { diff --git a/models/device_management_configuration_simple_setting_collection_definition.go b/models/device_management_configuration_simple_setting_collection_definition.go index a0dad4d29ad..e9f80aa1da0 100644 --- a/models/device_management_configuration_simple_setting_collection_definition.go +++ b/models/device_management_configuration_simple_setting_collection_definition.go @@ -45,7 +45,7 @@ func (m *DeviceManagementConfigurationSimpleSettingCollectionDefinition) GetFiel } return res } -// GetMaximumCount gets the maximumCount property value. Maximum number of simple settings in the collection. Valid values 1 to 100 +// GetMaximumCount gets the maximumCount property value. Maximum number of simple settings in the collection // returns a *int32 when successful func (m *DeviceManagementConfigurationSimpleSettingCollectionDefinition) GetMaximumCount()(*int32) { val, err := m.GetBackingStore().Get("maximumCount") @@ -57,7 +57,7 @@ func (m *DeviceManagementConfigurationSimpleSettingCollectionDefinition) GetMaxi } return nil } -// GetMinimumCount gets the minimumCount property value. Minimum number of simple settings in the collection. Valid values 1 to 100 +// GetMinimumCount gets the minimumCount property value. Minimum number of simple settings in the collection // returns a *int32 when successful func (m *DeviceManagementConfigurationSimpleSettingCollectionDefinition) GetMinimumCount()(*int32) { val, err := m.GetBackingStore().Get("minimumCount") @@ -89,14 +89,14 @@ func (m *DeviceManagementConfigurationSimpleSettingCollectionDefinition) Seriali } return nil } -// SetMaximumCount sets the maximumCount property value. Maximum number of simple settings in the collection. Valid values 1 to 100 +// SetMaximumCount sets the maximumCount property value. Maximum number of simple settings in the collection func (m *DeviceManagementConfigurationSimpleSettingCollectionDefinition) SetMaximumCount(value *int32)() { err := m.GetBackingStore().Set("maximumCount", value) if err != nil { panic(err) } } -// SetMinimumCount sets the minimumCount property value. Minimum number of simple settings in the collection. Valid values 1 to 100 +// SetMinimumCount sets the minimumCount property value. Minimum number of simple settings in the collection func (m *DeviceManagementConfigurationSimpleSettingCollectionDefinition) SetMinimumCount(value *int32)() { err := m.GetBackingStore().Set("minimumCount", value) if err != nil { diff --git a/models/device_management_configuration_simple_setting_definition.go b/models/device_management_configuration_simple_setting_definition.go index acf2724ebd6..20e692fcff0 100644 --- a/models/device_management_configuration_simple_setting_definition.go +++ b/models/device_management_configuration_simple_setting_definition.go @@ -37,7 +37,7 @@ func CreateDeviceManagementConfigurationSimpleSettingDefinitionFromDiscriminator } return NewDeviceManagementConfigurationSimpleSettingDefinition(), nil } -// GetDefaultValue gets the defaultValue property value. Default setting value for this setting +// GetDefaultValue gets the defaultValue property value. Default setting value for this setting. // returns a DeviceManagementConfigurationSettingValueable when successful func (m *DeviceManagementConfigurationSimpleSettingDefinition) GetDefaultValue()(DeviceManagementConfigurationSettingValueable) { val, err := m.GetBackingStore().Get("defaultValue") @@ -49,7 +49,7 @@ func (m *DeviceManagementConfigurationSimpleSettingDefinition) GetDefaultValue() } return nil } -// GetDependedOnBy gets the dependedOnBy property value. list of child settings that depend on this setting +// GetDependedOnBy gets the dependedOnBy property value. list of child settings that depend on this setting. // returns a []DeviceManagementConfigurationSettingDependedOnByable when successful func (m *DeviceManagementConfigurationSimpleSettingDefinition) GetDependedOnBy()([]DeviceManagementConfigurationSettingDependedOnByable) { val, err := m.GetBackingStore().Get("dependedOnBy") @@ -61,7 +61,7 @@ func (m *DeviceManagementConfigurationSimpleSettingDefinition) GetDependedOnBy() } return nil } -// GetDependentOn gets the dependentOn property value. list of parent settings this setting is dependent on +// GetDependentOn gets the dependentOn property value. list of parent settings this setting is dependent on. // returns a []DeviceManagementConfigurationDependentOnable when successful func (m *DeviceManagementConfigurationSimpleSettingDefinition) GetDependentOn()([]DeviceManagementConfigurationDependentOnable) { val, err := m.GetBackingStore().Get("dependentOn") @@ -131,7 +131,7 @@ func (m *DeviceManagementConfigurationSimpleSettingDefinition) GetFieldDeseriali } return res } -// GetValueDefinition gets the valueDefinition property value. Definition of the value for this setting +// GetValueDefinition gets the valueDefinition property value. Definition of the value for this setting. // returns a DeviceManagementConfigurationSettingValueDefinitionable when successful func (m *DeviceManagementConfigurationSimpleSettingDefinition) GetValueDefinition()(DeviceManagementConfigurationSettingValueDefinitionable) { val, err := m.GetBackingStore().Get("valueDefinition") @@ -187,28 +187,28 @@ func (m *DeviceManagementConfigurationSimpleSettingDefinition) Serialize(writer } return nil } -// SetDefaultValue sets the defaultValue property value. Default setting value for this setting +// SetDefaultValue sets the defaultValue property value. Default setting value for this setting. func (m *DeviceManagementConfigurationSimpleSettingDefinition) SetDefaultValue(value DeviceManagementConfigurationSettingValueable)() { err := m.GetBackingStore().Set("defaultValue", value) if err != nil { panic(err) } } -// SetDependedOnBy sets the dependedOnBy property value. list of child settings that depend on this setting +// SetDependedOnBy sets the dependedOnBy property value. list of child settings that depend on this setting. func (m *DeviceManagementConfigurationSimpleSettingDefinition) SetDependedOnBy(value []DeviceManagementConfigurationSettingDependedOnByable)() { err := m.GetBackingStore().Set("dependedOnBy", value) if err != nil { panic(err) } } -// SetDependentOn sets the dependentOn property value. list of parent settings this setting is dependent on +// SetDependentOn sets the dependentOn property value. list of parent settings this setting is dependent on. func (m *DeviceManagementConfigurationSimpleSettingDefinition) SetDependentOn(value []DeviceManagementConfigurationDependentOnable)() { err := m.GetBackingStore().Set("dependentOn", value) if err != nil { panic(err) } } -// SetValueDefinition sets the valueDefinition property value. Definition of the value for this setting +// SetValueDefinition sets the valueDefinition property value. Definition of the value for this setting. func (m *DeviceManagementConfigurationSimpleSettingDefinition) SetValueDefinition(value DeviceManagementConfigurationSettingValueDefinitionable)() { err := m.GetBackingStore().Set("valueDefinition", value) if err != nil { diff --git a/models/disable_reason.go b/models/disable_reason.go index dc30fded809..b2c4013baaf 100644 --- a/models/disable_reason.go +++ b/models/disable_reason.go @@ -6,10 +6,11 @@ const ( INVALIDBILLINGPROFILE_DISABLEREASON USERREQUESTED_DISABLEREASON UNKNOWNFUTUREVALUE_DISABLEREASON + CONTROLLERSERVICEAPPDELETED_DISABLEREASON ) func (i DisableReason) String() string { - return []string{"none", "invalidBillingProfile", "userRequested", "unknownFutureValue"}[i] + return []string{"none", "invalidBillingProfile", "userRequested", "unknownFutureValue", "controllerServiceAppDeleted"}[i] } func ParseDisableReason(v string) (any, error) { result := NONE_DISABLEREASON @@ -22,6 +23,8 @@ func ParseDisableReason(v string) (any, error) { result = USERREQUESTED_DISABLEREASON case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_DISABLEREASON + case "controllerServiceAppDeleted": + result = CONTROLLERSERVICEAPPDELETED_DISABLEREASON default: return nil, nil } diff --git a/models/education_submission.go b/models/education_submission.go index 762e66bc631..9ca421c0de9 100644 --- a/models/education_submission.go +++ b/models/education_submission.go @@ -68,6 +68,26 @@ func (m *EducationSubmission) GetFieldDeserializers()(map[string]func(i878a80d23 } return nil } + res["lastModifiedBy"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateIdentitySetFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetLastModifiedBy(val.(IdentitySetable)) + } + return nil + } + res["lastModifiedDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetTimeValue() + if err != nil { + return err + } + if val != nil { + m.SetLastModifiedDateTime(val) + } + return nil + } res["outcomes"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateEducationOutcomeFromDiscriminatorValue) if err != nil { @@ -238,6 +258,30 @@ func (m *EducationSubmission) GetFieldDeserializers()(map[string]func(i878a80d23 } return res } +// GetLastModifiedBy gets the lastModifiedBy property value. The lastModifiedBy property +// returns a IdentitySetable when successful +func (m *EducationSubmission) GetLastModifiedBy()(IdentitySetable) { + val, err := m.GetBackingStore().Get("lastModifiedBy") + if err != nil { + panic(err) + } + if val != nil { + return val.(IdentitySetable) + } + return nil +} +// GetLastModifiedDateTime gets the lastModifiedDateTime property value. The lastModifiedDateTime property +// returns a *Time when successful +func (m *EducationSubmission) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { + val, err := m.GetBackingStore().Get("lastModifiedDateTime") + if err != nil { + panic(err) + } + if val != nil { + return val.(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + } + return nil +} // GetOutcomes gets the outcomes property value. The outcomes property // returns a []EducationOutcomeable when successful func (m *EducationSubmission) GetOutcomes()([]EducationOutcomeable) { @@ -482,6 +526,20 @@ func (m *EducationSubmission) SetExcusedDateTime(value *i336074805fc853987abe6f7 panic(err) } } +// SetLastModifiedBy sets the lastModifiedBy property value. The lastModifiedBy property +func (m *EducationSubmission) SetLastModifiedBy(value IdentitySetable)() { + err := m.GetBackingStore().Set("lastModifiedBy", value) + if err != nil { + panic(err) + } +} +// SetLastModifiedDateTime sets the lastModifiedDateTime property value. The lastModifiedDateTime property +func (m *EducationSubmission) SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { + err := m.GetBackingStore().Set("lastModifiedDateTime", value) + if err != nil { + panic(err) + } +} // SetOutcomes sets the outcomes property value. The outcomes property func (m *EducationSubmission) SetOutcomes(value []EducationOutcomeable)() { err := m.GetBackingStore().Set("outcomes", value) @@ -592,6 +650,8 @@ type EducationSubmissionable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetExcusedBy()(IdentitySetable) GetExcusedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) + GetLastModifiedBy()(IdentitySetable) + GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetOutcomes()([]EducationOutcomeable) GetReassignedBy()(IdentitySetable) GetReassignedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) @@ -609,6 +669,8 @@ type EducationSubmissionable interface { GetWebUrl()(*string) SetExcusedBy(value IdentitySetable)() SetExcusedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() + SetLastModifiedBy(value IdentitySetable)() + SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetOutcomes(value []EducationOutcomeable)() SetReassignedBy(value IdentitySetable)() SetReassignedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() diff --git a/models/enforce_app_p_i_n.go b/models/enforce_app_p_i_n.go new file mode 100644 index 00000000000..1b27eb524ff --- /dev/null +++ b/models/enforce_app_p_i_n.go @@ -0,0 +1,211 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type EnforceAppPIN struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewEnforceAppPIN instantiates a new EnforceAppPIN and sets the default values. +func NewEnforceAppPIN()(*EnforceAppPIN) { + m := &EnforceAppPIN{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateEnforceAppPINFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateEnforceAppPINFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewEnforceAppPIN(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *EnforceAppPIN) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *EnforceAppPIN) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetExcludeTargets gets the excludeTargets property value. The excludeTargets property +// returns a []ExcludeTargetable when successful +func (m *EnforceAppPIN) GetExcludeTargets()([]ExcludeTargetable) { + val, err := m.GetBackingStore().Get("excludeTargets") + if err != nil { + panic(err) + } + if val != nil { + return val.([]ExcludeTargetable) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *EnforceAppPIN) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["excludeTargets"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateExcludeTargetFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]ExcludeTargetable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(ExcludeTargetable) + } + } + m.SetExcludeTargets(res) + } + return nil + } + res["includeTargets"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateIncludeTargetFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]IncludeTargetable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(IncludeTargetable) + } + } + m.SetIncludeTargets(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 +} +// GetIncludeTargets gets the includeTargets property value. The includeTargets property +// returns a []IncludeTargetable when successful +func (m *EnforceAppPIN) GetIncludeTargets()([]IncludeTargetable) { + val, err := m.GetBackingStore().Get("includeTargets") + if err != nil { + panic(err) + } + if val != nil { + return val.([]IncludeTargetable) + } + return nil +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *EnforceAppPIN) 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 *EnforceAppPIN) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetExcludeTargets() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetExcludeTargets())) + for i, v := range m.GetExcludeTargets() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("excludeTargets", cast) + if err != nil { + return err + } + } + if m.GetIncludeTargets() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetIncludeTargets())) + for i, v := range m.GetIncludeTargets() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err := writer.WriteCollectionOfObjectValues("includeTargets", 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 *EnforceAppPIN) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *EnforceAppPIN) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetExcludeTargets sets the excludeTargets property value. The excludeTargets property +func (m *EnforceAppPIN) SetExcludeTargets(value []ExcludeTargetable)() { + err := m.GetBackingStore().Set("excludeTargets", value) + if err != nil { + panic(err) + } +} +// SetIncludeTargets sets the includeTargets property value. The includeTargets property +func (m *EnforceAppPIN) SetIncludeTargets(value []IncludeTargetable)() { + err := m.GetBackingStore().Set("includeTargets", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *EnforceAppPIN) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +type EnforceAppPINable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetExcludeTargets()([]ExcludeTargetable) + GetIncludeTargets()([]IncludeTargetable) + GetOdataType()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetExcludeTargets(value []ExcludeTargetable)() + SetIncludeTargets(value []IncludeTargetable)() + SetOdataType(value *string)() +} diff --git a/models/entity.go b/models/entity.go index 126ac1d28c7..ec4dd622ae6 100644 --- a/models/entity.go +++ b/models/entity.go @@ -336,6 +336,16 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewAppRoleAssignment(), nil case "#microsoft.graph.approval": return NewApproval(), nil + case "#microsoft.graph.approvalItem": + return NewApprovalItem(), nil + case "#microsoft.graph.approvalItemRequest": + return NewApprovalItemRequest(), nil + case "#microsoft.graph.approvalItemResponse": + return NewApprovalItemResponse(), nil + case "#microsoft.graph.approvalOperation": + return NewApprovalOperation(), nil + case "#microsoft.graph.approvalSolution": + return NewApprovalSolution(), nil case "#microsoft.graph.approvalStep": return NewApprovalStep(), nil case "#microsoft.graph.approvalWorkflowProvider": @@ -1210,6 +1220,8 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewEntitlementManagement(), nil case "#microsoft.graph.entitlementManagementSettings": return NewEntitlementManagementSettings(), nil + case "#microsoft.graph.entra": + return NewEntra(), nil case "#microsoft.graph.evaluateLabelJobResponse": return NewEvaluateLabelJobResponse(), nil case "#microsoft.graph.event": @@ -1342,6 +1354,8 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewGovernanceRoleSetting(), nil case "#microsoft.graph.governanceSubject": return NewGovernanceSubject(), nil + case "#microsoft.graph.granularMailboxRestoreArtifact": + return NewGranularMailboxRestoreArtifact(), nil case "#microsoft.graph.group": return NewGroup(), nil case "#microsoft.graph.groupLifecyclePolicy": @@ -2976,6 +2990,8 @@ func CreateEntityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487 return NewUserTeamwork(), nil case "#microsoft.graph.userVirtualEventsRoot": return NewUserVirtualEventsRoot(), nil + case "#microsoft.graph.uxSetting": + return NewUxSetting(), nil case "#microsoft.graph.verticalSection": return NewVerticalSection(), nil case "#microsoft.graph.videoNewsLinkPage": diff --git a/models/entra.go b/models/entra.go new file mode 100644 index 00000000000..49a286fcfb0 --- /dev/null +++ b/models/entra.go @@ -0,0 +1,76 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type Entra struct { + Entity +} +// NewEntra instantiates a new Entra and sets the default values. +func NewEntra()(*Entra) { + m := &Entra{ + Entity: *NewEntity(), + } + return m +} +// CreateEntraFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateEntraFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewEntra(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *Entra) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["uxSetting"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateUxSettingFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetUxSetting(val.(UxSettingable)) + } + return nil + } + return res +} +// GetUxSetting gets the uxSetting property value. The uxSetting property +// returns a UxSettingable when successful +func (m *Entra) GetUxSetting()(UxSettingable) { + val, err := m.GetBackingStore().Get("uxSetting") + if err != nil { + panic(err) + } + if val != nil { + return val.(UxSettingable) + } + return nil +} +// Serialize serializes information the current object +func (m *Entra) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteObjectValue("uxSetting", m.GetUxSetting()) + if err != nil { + return err + } + } + return nil +} +// SetUxSetting sets the uxSetting property value. The uxSetting property +func (m *Entra) SetUxSetting(value UxSettingable)() { + err := m.GetBackingStore().Set("uxSetting", value) + if err != nil { + panic(err) + } +} +type Entraable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetUxSetting()(UxSettingable) + SetUxSetting(value UxSettingable)() +} diff --git a/models/event.go b/models/event.go index a4dfc79b1a4..9750380b778 100644 --- a/models/event.go +++ b/models/event.go @@ -710,7 +710,7 @@ func (m *Event) GetImportance()(*Importance) { } return nil } -// GetInstances gets the instances property value. The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// GetInstances gets the instances property value. The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. // returns a []Eventable when successful func (m *Event) GetInstances()([]Eventable) { val, err := m.GetBackingStore().Get("instances") @@ -758,7 +758,7 @@ func (m *Event) GetIsDraft()(*bool) { } return nil } -// GetIsOnlineMeeting gets the isOnlineMeeting property value. True if this event has online meeting information (that is, onlineMeeting points to an onlineMeetingInfo resource), false otherwise. Default is false (onlineMeeting is null). Optional. After you set isOnlineMeeting to true, Microsoft Graph initializes onlineMeeting. Subsequently Outlook ignores any further changes to isOnlineMeeting, and the meeting remains available online. +// GetIsOnlineMeeting gets the isOnlineMeeting property value. True if this event has online meeting information (that is, onlineMeeting points to an onlineMeetingInfo resource), false otherwise. Default is false (onlineMeeting is null). Optional. After you set isOnlineMeeting to true, Microsoft Graph initializes onlineMeeting. Outlook then ignores any further changes to isOnlineMeeting, and the meeting remains available online. // returns a *bool when successful func (m *Event) GetIsOnlineMeeting()(*bool) { val, err := m.GetBackingStore().Get("isOnlineMeeting") @@ -842,7 +842,7 @@ func (m *Event) GetOccurrenceId()(*string) { } return nil } -// GetOnlineMeeting gets the onlineMeeting property value. Details for an attendee to join the meeting online. Default is null. Read-only. After you set the isOnlineMeeting and onlineMeetingProvider properties to enable a meeting online, Microsoft Graph initializes onlineMeeting. When set, the meeting remains available online, and you cannot change the isOnlineMeeting, onlineMeetingProvider, and onlneMeeting properties again. +// GetOnlineMeeting gets the onlineMeeting property value. Details for an attendee to join the meeting online. Default is null. Read-only. After you set the isOnlineMeeting and onlineMeetingProvider properties to enable a meeting online, Microsoft Graph initializes onlineMeeting. When set, the meeting remains available online, and you can't change the isOnlineMeeting, onlineMeetingProvider, and onlneMeeting properties again. // returns a OnlineMeetingInfoable when successful func (m *Event) GetOnlineMeeting()(OnlineMeetingInfoable) { val, err := m.GetBackingStore().Get("onlineMeeting") @@ -854,7 +854,7 @@ func (m *Event) GetOnlineMeeting()(OnlineMeetingInfoable) { } return nil } -// GetOnlineMeetingProvider gets the onlineMeetingProvider property value. Represents the online meeting service provider. By default, onlineMeetingProvider is unknown. The possible values are unknown, teamsForBusiness, skypeForBusiness, and skypeForConsumer. Optional. After you set onlineMeetingProvider, Microsoft Graph initializes onlineMeeting. Subsequently you cannot change onlineMeetingProvider again, and the meeting remains available online. +// GetOnlineMeetingProvider gets the onlineMeetingProvider property value. Represents the online meeting service provider. By default, onlineMeetingProvider is unknown. The possible values are unknown, teamsForBusiness, skypeForBusiness, and skypeForConsumer. Optional. After you set onlineMeetingProvider, Microsoft Graph initializes onlineMeeting. Subsequently you can't change onlineMeetingProvider again, and the meeting remains available online. // returns a *OnlineMeetingProviderType when successful func (m *Event) GetOnlineMeetingProvider()(*OnlineMeetingProviderType) { val, err := m.GetBackingStore().Get("onlineMeetingProvider") @@ -902,7 +902,7 @@ func (m *Event) GetOriginalEndTimeZone()(*string) { } return nil } -// GetOriginalStart gets the originalStart property value. Represents the start time of an event when it is initially created as an occurrence or exception in a recurring series. This property isn't returned for events that are single instances. Its date and time information is expressed in ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z +// GetOriginalStart gets the originalStart property value. Represents the start time of an event when it's initially created as an occurrence or exception in a recurring series. This property isn't returned for events that are single instances. Its date and time information is expressed in 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 *Event) GetOriginalStart()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("originalStart") @@ -1046,7 +1046,7 @@ func (m *Event) GetSubject()(*string) { } return nil } -// GetTransactionId gets the transactionId property value. A custom identifier specified by a client app for the server to avoid redundant POST operations in case of client retries to create the same event. This is useful when low network connectivity causes the client to time out before receiving a response from the server for the client's prior create-event request. After you set transactionId when creating an event, you cannot change transactionId in a subsequent update. This property is only returned in a response payload if an app has set it. Optional. +// GetTransactionId gets the transactionId property value. A custom identifier specified by a client app for the server to avoid redundant POST operations if the client retries to create the same event. This is useful when low network connectivity causes the client to time out before receiving a response from the server for the client's prior create-event request. After you set transactionId when creating an event, you can't change transactionId in a subsequent update. This property is only returned in a response payload if an app has set it. Optional. // returns a *string when successful func (m *Event) GetTransactionId()(*string) { val, err := m.GetBackingStore().Get("transactionId") @@ -1082,7 +1082,7 @@ func (m *Event) GetUid()(*string) { } return nil } -// GetWebLink gets the webLink property value. The URL to open the event in Outlook on the web.Outlook on the web opens the event in the browser if you are signed in to your mailbox. Otherwise, Outlook on the web prompts you to sign in.This URL cannot be accessed from within an iFrame. +// GetWebLink gets the webLink property value. The URL to open the event in Outlook on the web.Outlook on the web opens the event in the browser if you're signed in to your mailbox. Otherwise, Outlook on the web prompts you to sign in.This URL can't be accessed from within an iFrame. // returns a *string when successful func (m *Event) GetWebLink()(*string) { val, err := m.GetBackingStore().Get("webLink") @@ -1529,7 +1529,7 @@ func (m *Event) SetImportance(value *Importance)() { panic(err) } } -// SetInstances sets the instances property value. The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// SetInstances sets the instances property value. The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. func (m *Event) SetInstances(value []Eventable)() { err := m.GetBackingStore().Set("instances", value) if err != nil { @@ -1557,7 +1557,7 @@ func (m *Event) SetIsDraft(value *bool)() { panic(err) } } -// SetIsOnlineMeeting sets the isOnlineMeeting property value. True if this event has online meeting information (that is, onlineMeeting points to an onlineMeetingInfo resource), false otherwise. Default is false (onlineMeeting is null). Optional. After you set isOnlineMeeting to true, Microsoft Graph initializes onlineMeeting. Subsequently Outlook ignores any further changes to isOnlineMeeting, and the meeting remains available online. +// SetIsOnlineMeeting sets the isOnlineMeeting property value. True if this event has online meeting information (that is, onlineMeeting points to an onlineMeetingInfo resource), false otherwise. Default is false (onlineMeeting is null). Optional. After you set isOnlineMeeting to true, Microsoft Graph initializes onlineMeeting. Outlook then ignores any further changes to isOnlineMeeting, and the meeting remains available online. func (m *Event) SetIsOnlineMeeting(value *bool)() { err := m.GetBackingStore().Set("isOnlineMeeting", value) if err != nil { @@ -1606,14 +1606,14 @@ func (m *Event) SetOccurrenceId(value *string)() { panic(err) } } -// SetOnlineMeeting sets the onlineMeeting property value. Details for an attendee to join the meeting online. Default is null. Read-only. After you set the isOnlineMeeting and onlineMeetingProvider properties to enable a meeting online, Microsoft Graph initializes onlineMeeting. When set, the meeting remains available online, and you cannot change the isOnlineMeeting, onlineMeetingProvider, and onlneMeeting properties again. +// SetOnlineMeeting sets the onlineMeeting property value. Details for an attendee to join the meeting online. Default is null. Read-only. After you set the isOnlineMeeting and onlineMeetingProvider properties to enable a meeting online, Microsoft Graph initializes onlineMeeting. When set, the meeting remains available online, and you can't change the isOnlineMeeting, onlineMeetingProvider, and onlneMeeting properties again. func (m *Event) SetOnlineMeeting(value OnlineMeetingInfoable)() { err := m.GetBackingStore().Set("onlineMeeting", value) if err != nil { panic(err) } } -// SetOnlineMeetingProvider sets the onlineMeetingProvider property value. Represents the online meeting service provider. By default, onlineMeetingProvider is unknown. The possible values are unknown, teamsForBusiness, skypeForBusiness, and skypeForConsumer. Optional. After you set onlineMeetingProvider, Microsoft Graph initializes onlineMeeting. Subsequently you cannot change onlineMeetingProvider again, and the meeting remains available online. +// SetOnlineMeetingProvider sets the onlineMeetingProvider property value. Represents the online meeting service provider. By default, onlineMeetingProvider is unknown. The possible values are unknown, teamsForBusiness, skypeForBusiness, and skypeForConsumer. Optional. After you set onlineMeetingProvider, Microsoft Graph initializes onlineMeeting. Subsequently you can't change onlineMeetingProvider again, and the meeting remains available online. func (m *Event) SetOnlineMeetingProvider(value *OnlineMeetingProviderType)() { err := m.GetBackingStore().Set("onlineMeetingProvider", value) if err != nil { @@ -1641,7 +1641,7 @@ func (m *Event) SetOriginalEndTimeZone(value *string)() { panic(err) } } -// SetOriginalStart sets the originalStart property value. Represents the start time of an event when it is initially created as an occurrence or exception in a recurring series. This property isn't returned for events that are single instances. Its date and time information is expressed in ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z +// SetOriginalStart sets the originalStart property value. Represents the start time of an event when it's initially created as an occurrence or exception in a recurring series. This property isn't returned for events that are single instances. Its date and time information is expressed in ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z func (m *Event) SetOriginalStart(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("originalStart", value) if err != nil { @@ -1725,7 +1725,7 @@ func (m *Event) SetSubject(value *string)() { panic(err) } } -// SetTransactionId sets the transactionId property value. A custom identifier specified by a client app for the server to avoid redundant POST operations in case of client retries to create the same event. This is useful when low network connectivity causes the client to time out before receiving a response from the server for the client's prior create-event request. After you set transactionId when creating an event, you cannot change transactionId in a subsequent update. This property is only returned in a response payload if an app has set it. Optional. +// SetTransactionId sets the transactionId property value. A custom identifier specified by a client app for the server to avoid redundant POST operations if the client retries to create the same event. This is useful when low network connectivity causes the client to time out before receiving a response from the server for the client's prior create-event request. After you set transactionId when creating an event, you can't change transactionId in a subsequent update. This property is only returned in a response payload if an app has set it. Optional. func (m *Event) SetTransactionId(value *string)() { err := m.GetBackingStore().Set("transactionId", value) if err != nil { @@ -1746,7 +1746,7 @@ func (m *Event) SetUid(value *string)() { panic(err) } } -// SetWebLink sets the webLink property value. The URL to open the event in Outlook on the web.Outlook on the web opens the event in the browser if you are signed in to your mailbox. Otherwise, Outlook on the web prompts you to sign in.This URL cannot be accessed from within an iFrame. +// SetWebLink sets the webLink property value. The URL to open the event in Outlook on the web.Outlook on the web opens the event in the browser if you're signed in to your mailbox. Otherwise, Outlook on the web prompts you to sign in.This URL can't be accessed from within an iFrame. func (m *Event) SetWebLink(value *string)() { err := m.GetBackingStore().Set("webLink", value) if err != nil { diff --git a/models/exchange_restore_session.go b/models/exchange_restore_session.go index c1a1b700a2a..22b9a4b5bee 100644 --- a/models/exchange_restore_session.go +++ b/models/exchange_restore_session.go @@ -25,6 +25,22 @@ func CreateExchangeRestoreSessionFromDiscriminatorValue(parseNode i878a80d2330e8 // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *ExchangeRestoreSession) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.RestoreSessionBase.GetFieldDeserializers() + res["granularMailboxRestoreArtifacts"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateGranularMailboxRestoreArtifactFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]GranularMailboxRestoreArtifactable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(GranularMailboxRestoreArtifactable) + } + } + m.SetGranularMailboxRestoreArtifacts(res) + } + return nil + } res["mailboxRestoreArtifacts"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetCollectionOfObjectValues(CreateMailboxRestoreArtifactFromDiscriminatorValue) if err != nil { @@ -43,6 +59,18 @@ func (m *ExchangeRestoreSession) GetFieldDeserializers()(map[string]func(i878a80 } return res } +// GetGranularMailboxRestoreArtifacts gets the granularMailboxRestoreArtifacts property value. The granularMailboxRestoreArtifacts property +// returns a []GranularMailboxRestoreArtifactable when successful +func (m *ExchangeRestoreSession) GetGranularMailboxRestoreArtifacts()([]GranularMailboxRestoreArtifactable) { + val, err := m.GetBackingStore().Get("granularMailboxRestoreArtifacts") + if err != nil { + panic(err) + } + if val != nil { + return val.([]GranularMailboxRestoreArtifactable) + } + return nil +} // GetMailboxRestoreArtifacts gets the mailboxRestoreArtifacts property value. A collection of restore points and destination details that can be used to restore Exchange mailboxes. // returns a []MailboxRestoreArtifactable when successful func (m *ExchangeRestoreSession) GetMailboxRestoreArtifacts()([]MailboxRestoreArtifactable) { @@ -61,6 +89,18 @@ func (m *ExchangeRestoreSession) Serialize(writer i878a80d2330e89d26896388a3f487 if err != nil { return err } + if m.GetGranularMailboxRestoreArtifacts() != nil { + cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetGranularMailboxRestoreArtifacts())) + for i, v := range m.GetGranularMailboxRestoreArtifacts() { + if v != nil { + cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) + } + } + err = writer.WriteCollectionOfObjectValues("granularMailboxRestoreArtifacts", cast) + if err != nil { + return err + } + } if m.GetMailboxRestoreArtifacts() != nil { cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetMailboxRestoreArtifacts())) for i, v := range m.GetMailboxRestoreArtifacts() { @@ -75,6 +115,13 @@ func (m *ExchangeRestoreSession) Serialize(writer i878a80d2330e89d26896388a3f487 } return nil } +// SetGranularMailboxRestoreArtifacts sets the granularMailboxRestoreArtifacts property value. The granularMailboxRestoreArtifacts property +func (m *ExchangeRestoreSession) SetGranularMailboxRestoreArtifacts(value []GranularMailboxRestoreArtifactable)() { + err := m.GetBackingStore().Set("granularMailboxRestoreArtifacts", value) + if err != nil { + panic(err) + } +} // SetMailboxRestoreArtifacts sets the mailboxRestoreArtifacts property value. A collection of restore points and destination details that can be used to restore Exchange mailboxes. func (m *ExchangeRestoreSession) SetMailboxRestoreArtifacts(value []MailboxRestoreArtifactable)() { err := m.GetBackingStore().Set("mailboxRestoreArtifacts", value) @@ -85,6 +132,8 @@ func (m *ExchangeRestoreSession) SetMailboxRestoreArtifacts(value []MailboxResto type ExchangeRestoreSessionable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable RestoreSessionBaseable + GetGranularMailboxRestoreArtifacts()([]GranularMailboxRestoreArtifactable) GetMailboxRestoreArtifacts()([]MailboxRestoreArtifactable) + SetGranularMailboxRestoreArtifacts(value []GranularMailboxRestoreArtifactable)() SetMailboxRestoreArtifacts(value []MailboxRestoreArtifactable)() } diff --git a/models/exclusion_group_assignment_target.go b/models/exclusion_group_assignment_target.go index ab4f83b0af1..aa705a767db 100644 --- a/models/exclusion_group_assignment_target.go +++ b/models/exclusion_group_assignment_target.go @@ -4,7 +4,7 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// ExclusionGroupAssignmentTarget represents a group that should be excluded from an assignment. +// ExclusionGroupAssignmentTarget the AAD Group we are deploying firmware updates to type ExclusionGroupAssignmentTarget struct { GroupAssignmentTarget } diff --git a/models/external_users_self_service_sign_up_events_flow.go b/models/external_users_self_service_sign_up_events_flow.go index 12e62c4dac2..79054105ed7 100644 --- a/models/external_users_self_service_sign_up_events_flow.go +++ b/models/external_users_self_service_sign_up_events_flow.go @@ -123,7 +123,7 @@ func (m *ExternalUsersSelfServiceSignUpEventsFlow) GetOnAttributeCollectionSubmi } return nil } -// GetOnAuthenticationMethodLoadStart gets the onAuthenticationMethodLoadStart property value. Required. The configuration for what to invoke when authentication methods are ready to be presented to the user. Must have at least one identity provider linked. +// GetOnAuthenticationMethodLoadStart gets the onAuthenticationMethodLoadStart property value. Required. The configuration for what to invoke when authentication methods are ready to be presented to the user. Must have at least one identity provider linked. Supports $filter (eq). See support for filtering on user flows for syntax information. // returns a OnAuthenticationMethodLoadStartHandlerable when successful func (m *ExternalUsersSelfServiceSignUpEventsFlow) GetOnAuthenticationMethodLoadStart()(OnAuthenticationMethodLoadStartHandlerable) { val, err := m.GetBackingStore().Get("onAuthenticationMethodLoadStart") @@ -224,7 +224,7 @@ func (m *ExternalUsersSelfServiceSignUpEventsFlow) SetOnAttributeCollectionSubmi panic(err) } } -// SetOnAuthenticationMethodLoadStart sets the onAuthenticationMethodLoadStart property value. Required. The configuration for what to invoke when authentication methods are ready to be presented to the user. Must have at least one identity provider linked. +// SetOnAuthenticationMethodLoadStart sets the onAuthenticationMethodLoadStart property value. Required. The configuration for what to invoke when authentication methods are ready to be presented to the user. Must have at least one identity provider linked. Supports $filter (eq). See support for filtering on user flows for syntax information. func (m *ExternalUsersSelfServiceSignUpEventsFlow) SetOnAuthenticationMethodLoadStart(value OnAuthenticationMethodLoadStartHandlerable)() { err := m.GetBackingStore().Set("onAuthenticationMethodLoadStart", value) if err != nil { diff --git a/models/file_storage_container_settings.go b/models/file_storage_container_settings.go index 2d7000d7ed7..25ef7ea19d3 100644 --- a/models/file_storage_container_settings.go +++ b/models/file_storage_container_settings.go @@ -66,7 +66,7 @@ func (m *FileStorageContainerSettings) GetFieldDeserializers()(map[string]func(i } return res } -// GetIsOcrEnabled gets the isOcrEnabled property value. The isOcrEnabled property +// GetIsOcrEnabled gets the isOcrEnabled property value. Indicates whether OCR is enabled for a given container. If OCR is enabled on a container, OCR extraction is performed for recently added or updated documents (of supported document types) and the extracted fields are added to the metadata of the document. This enables end-user search and search-driven solutions. // returns a *bool when successful func (m *FileStorageContainerSettings) GetIsOcrEnabled()(*bool) { val, err := m.GetBackingStore().Get("isOcrEnabled") @@ -123,7 +123,7 @@ func (m *FileStorageContainerSettings) SetAdditionalData(value map[string]any)() func (m *FileStorageContainerSettings) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetIsOcrEnabled sets the isOcrEnabled property value. The isOcrEnabled property +// SetIsOcrEnabled sets the isOcrEnabled property value. Indicates whether OCR is enabled for a given container. If OCR is enabled on a container, OCR extraction is performed for recently added or updated documents (of supported document types) and the extracted fields are added to the metadata of the document. This enables end-user search and search-driven solutions. func (m *FileStorageContainerSettings) SetIsOcrEnabled(value *bool)() { err := m.GetBackingStore().Set("isOcrEnabled", value) if err != nil { diff --git a/models/granular_mailbox_restore_artifact.go b/models/granular_mailbox_restore_artifact.go new file mode 100644 index 00000000000..935a7ed1f45 --- /dev/null +++ b/models/granular_mailbox_restore_artifact.go @@ -0,0 +1,113 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type GranularMailboxRestoreArtifact struct { + MailboxRestoreArtifact +} +// NewGranularMailboxRestoreArtifact instantiates a new GranularMailboxRestoreArtifact and sets the default values. +func NewGranularMailboxRestoreArtifact()(*GranularMailboxRestoreArtifact) { + m := &GranularMailboxRestoreArtifact{ + MailboxRestoreArtifact: *NewMailboxRestoreArtifact(), + } + return m +} +// CreateGranularMailboxRestoreArtifactFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateGranularMailboxRestoreArtifactFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewGranularMailboxRestoreArtifact(), nil +} +// GetArtifactCount gets the artifactCount property value. . +// returns a *int32 when successful +func (m *GranularMailboxRestoreArtifact) GetArtifactCount()(*int32) { + val, err := m.GetBackingStore().Get("artifactCount") + 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 *GranularMailboxRestoreArtifact) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.MailboxRestoreArtifact.GetFieldDeserializers() + res["artifactCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetArtifactCount(val) + } + return nil + } + res["searchResponseId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetSearchResponseId(val) + } + return nil + } + return res +} +// GetSearchResponseId gets the searchResponseId property value. . +// returns a *string when successful +func (m *GranularMailboxRestoreArtifact) GetSearchResponseId()(*string) { + val, err := m.GetBackingStore().Get("searchResponseId") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// Serialize serializes information the current object +func (m *GranularMailboxRestoreArtifact) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.MailboxRestoreArtifact.Serialize(writer) + if err != nil { + return err + } + { + err = writer.WriteInt32Value("artifactCount", m.GetArtifactCount()) + if err != nil { + return err + } + } + { + err = writer.WriteStringValue("searchResponseId", m.GetSearchResponseId()) + if err != nil { + return err + } + } + return nil +} +// SetArtifactCount sets the artifactCount property value. . +func (m *GranularMailboxRestoreArtifact) SetArtifactCount(value *int32)() { + err := m.GetBackingStore().Set("artifactCount", value) + if err != nil { + panic(err) + } +} +// SetSearchResponseId sets the searchResponseId property value. . +func (m *GranularMailboxRestoreArtifact) SetSearchResponseId(value *string)() { + err := m.GetBackingStore().Set("searchResponseId", value) + if err != nil { + panic(err) + } +} +type GranularMailboxRestoreArtifactable interface { + MailboxRestoreArtifactable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetArtifactCount()(*int32) + GetSearchResponseId()(*string) + SetArtifactCount(value *int32)() + SetSearchResponseId(value *string)() +} diff --git a/models/granular_mailbox_restore_artifact_collection_response.go b/models/granular_mailbox_restore_artifact_collection_response.go new file mode 100644 index 00000000000..8824615dfdd --- /dev/null +++ b/models/granular_mailbox_restore_artifact_collection_response.go @@ -0,0 +1,88 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type GranularMailboxRestoreArtifactCollectionResponse struct { + BaseCollectionPaginationCountResponse +} +// NewGranularMailboxRestoreArtifactCollectionResponse instantiates a new GranularMailboxRestoreArtifactCollectionResponse and sets the default values. +func NewGranularMailboxRestoreArtifactCollectionResponse()(*GranularMailboxRestoreArtifactCollectionResponse) { + m := &GranularMailboxRestoreArtifactCollectionResponse{ + BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), + } + return m +} +// CreateGranularMailboxRestoreArtifactCollectionResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateGranularMailboxRestoreArtifactCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewGranularMailboxRestoreArtifactCollectionResponse(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *GranularMailboxRestoreArtifactCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetCollectionOfObjectValues(CreateGranularMailboxRestoreArtifactFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + res := make([]GranularMailboxRestoreArtifactable, len(val)) + for i, v := range val { + if v != nil { + res[i] = v.(GranularMailboxRestoreArtifactable) + } + } + m.SetValue(res) + } + return nil + } + return res +} +// GetValue gets the value property value. The value property +// returns a []GranularMailboxRestoreArtifactable when successful +func (m *GranularMailboxRestoreArtifactCollectionResponse) GetValue()([]GranularMailboxRestoreArtifactable) { + val, err := m.GetBackingStore().Get("value") + if err != nil { + panic(err) + } + if val != nil { + return val.([]GranularMailboxRestoreArtifactable) + } + return nil +} +// Serialize serializes information the current object +func (m *GranularMailboxRestoreArtifactCollectionResponse) 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 *GranularMailboxRestoreArtifactCollectionResponse) SetValue(value []GranularMailboxRestoreArtifactable)() { + err := m.GetBackingStore().Set("value", value) + if err != nil { + panic(err) + } +} +type GranularMailboxRestoreArtifactCollectionResponseable interface { + BaseCollectionPaginationCountResponseable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetValue()([]GranularMailboxRestoreArtifactable) + SetValue(value []GranularMailboxRestoreArtifactable)() +} diff --git a/models/group.go b/models/group.go index 9186b369e17..add965f4fa1 100644 --- a/models/group.go +++ b/models/group.go @@ -70,7 +70,7 @@ func (m *Group) GetAppRoleAssignments()([]AppRoleAssignmentable) { } return nil } -// GetAssignedLabels gets the assignedLabels property value. The list of sensitivity label pairs (label ID, label name) associated with a Microsoft 365 group. Returned only on $select. +// GetAssignedLabels gets the assignedLabels property value. The list of sensitivity label pairs (label ID, label name) associated with a Microsoft 365 group. Returned only on $select. This property can be updated only in delegated scenarios where the caller requires both the Microsoft Graph permission and a supported administrator role. // returns a []AssignedLabelable when successful func (m *Group) GetAssignedLabels()([]AssignedLabelable) { val, err := m.GetBackingStore().Get("assignedLabels") @@ -1380,7 +1380,7 @@ func (m *Group) GetIsFavorite()(*bool) { } return nil } -// GetIsManagementRestricted gets the isManagementRestricted property value. Indicates whether the group is a member of a restricted management administrative unit, in which case it requires a role scoped to the restricted administrative unit to manage. The default value is false. Read-only. To manage a group member of a restricted administrative unit, the calling app must be assigned the Directory.Write.Restricted permission. For delegated scenarios, the administrators must also be explicitly assigned supported roles at the restricted administrative unit scope. +// GetIsManagementRestricted gets the isManagementRestricted property value. Indicates whether the group is a member of a restricted management administrative unit. The default value is false. Read-only. To manage a group member of a restricted management administrative unit, the administrator or calling app must be assigned a Microsoft Entra role at the scope of the restricted management administrative unit. // returns a *bool when successful func (m *Group) GetIsManagementRestricted()(*bool) { val, err := m.GetBackingStore().Get("isManagementRestricted") @@ -2635,7 +2635,7 @@ func (m *Group) SetAppRoleAssignments(value []AppRoleAssignmentable)() { panic(err) } } -// SetAssignedLabels sets the assignedLabels property value. The list of sensitivity label pairs (label ID, label name) associated with a Microsoft 365 group. Returned only on $select. +// SetAssignedLabels sets the assignedLabels property value. The list of sensitivity label pairs (label ID, label name) associated with a Microsoft 365 group. Returned only on $select. This property can be updated only in delegated scenarios where the caller requires both the Microsoft Graph permission and a supported administrator role. func (m *Group) SetAssignedLabels(value []AssignedLabelable)() { err := m.GetBackingStore().Set("assignedLabels", value) if err != nil { @@ -2824,7 +2824,7 @@ func (m *Group) SetIsFavorite(value *bool)() { panic(err) } } -// SetIsManagementRestricted sets the isManagementRestricted property value. Indicates whether the group is a member of a restricted management administrative unit, in which case it requires a role scoped to the restricted administrative unit to manage. The default value is false. Read-only. To manage a group member of a restricted administrative unit, the calling app must be assigned the Directory.Write.Restricted permission. For delegated scenarios, the administrators must also be explicitly assigned supported roles at the restricted administrative unit scope. +// SetIsManagementRestricted sets the isManagementRestricted property value. Indicates whether the group is a member of a restricted management administrative unit. The default value is false. Read-only. To manage a group member of a restricted management administrative unit, the administrator or calling app must be assigned a Microsoft Entra role at the scope of the restricted management administrative unit. func (m *Group) SetIsManagementRestricted(value *bool)() { err := m.GetBackingStore().Set("isManagementRestricted", value) if err != nil { diff --git a/models/group_assignment_target.go b/models/group_assignment_target.go index 5fec0b89930..8d92d326ce9 100644 --- a/models/group_assignment_target.go +++ b/models/group_assignment_target.go @@ -4,7 +4,7 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// GroupAssignmentTarget represents an assignment to a group. +// GroupAssignmentTarget the AAD Group we are deploying firmware updates to type GroupAssignmentTarget struct { DeviceAndAppManagementAssignmentTarget } diff --git a/models/identity_set.go b/models/identity_set.go index 749df189cbf..1069fcfc94e 100644 --- a/models/identity_set.go +++ b/models/identity_set.go @@ -32,6 +32,8 @@ func CreateIdentitySetFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a } if mappingValue != nil { switch *mappingValue { + case "#microsoft.graph.approvalIdentitySet": + return NewApprovalIdentitySet(), nil case "#microsoft.graph.chatMessageFromIdentitySet": return NewChatMessageFromIdentitySet(), nil case "#microsoft.graph.chatMessageMentionedIdentitySet": diff --git a/models/identitygovernance/task.go b/models/identitygovernance/task.go index adc0e1e9401..bf40552b7c5 100644 --- a/models/identitygovernance/task.go +++ b/models/identitygovernance/task.go @@ -44,7 +44,7 @@ func (m *Task) GetCategory()(*LifecycleTaskCategory) { } return nil } -// GetContinueOnError gets the continueOnError property value. A boolean value that specifies whether, if this task fails, the workflow stops, and subsequent tasks aren't run. Optional. +// GetContinueOnError gets the continueOnError property value. A Boolean value that specifies whether, if this task fails, the workflow stops, and subsequent tasks aren't run. Optional. // returns a *bool when successful func (m *Task) GetContinueOnError()(*bool) { val, err := m.GetBackingStore().Get("continueOnError") @@ -200,7 +200,7 @@ func (m *Task) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a } return res } -// GetIsEnabled gets the isEnabled property value. A boolean value that denotes whether the task is set to run or not. Optional.Supports $filter(eq, ne) and orderBy. +// GetIsEnabled gets the isEnabled property value. A Boolean value that denotes whether the task is set to run or not. Optional.Supports $filter(eq, ne) and orderBy. // returns a *bool when successful func (m *Task) GetIsEnabled()(*bool) { val, err := m.GetBackingStore().Get("isEnabled") @@ -325,7 +325,7 @@ func (m *Task) SetCategory(value *LifecycleTaskCategory)() { panic(err) } } -// SetContinueOnError sets the continueOnError property value. A boolean value that specifies whether, if this task fails, the workflow stops, and subsequent tasks aren't run. Optional. +// SetContinueOnError sets the continueOnError property value. A Boolean value that specifies whether, if this task fails, the workflow stops, and subsequent tasks aren't run. Optional. func (m *Task) SetContinueOnError(value *bool)() { err := m.GetBackingStore().Set("continueOnError", value) if err != nil { @@ -353,7 +353,7 @@ func (m *Task) SetExecutionSequence(value *int32)() { panic(err) } } -// SetIsEnabled sets the isEnabled property value. A boolean value that denotes whether the task is set to run or not. Optional.Supports $filter(eq, ne) and orderBy. +// SetIsEnabled sets the isEnabled property value. A Boolean value that denotes whether the task is set to run or not. Optional.Supports $filter(eq, ne) and orderBy. func (m *Task) SetIsEnabled(value *bool)() { err := m.GetBackingStore().Set("isEnabled", value) if err != nil { diff --git a/models/incoming_token_type.go b/models/incoming_token_type.go index 57f322e335f..4e995744ca6 100644 --- a/models/incoming_token_type.go +++ b/models/incoming_token_type.go @@ -12,12 +12,13 @@ const ( SAML20_INCOMINGTOKENTYPE = 8 UNKNOWNFUTUREVALUE_INCOMINGTOKENTYPE = 16 REMOTEDESKTOPTOKEN_INCOMINGTOKENTYPE = 32 + REFRESHTOKEN_INCOMINGTOKENTYPE = 64 ) func (i IncomingTokenType) String() string { var values []string - options := []string{"none", "primaryRefreshToken", "saml11", "saml20", "unknownFutureValue", "remoteDesktopToken"} - for p := 0; p < 6; p++ { + options := []string{"none", "primaryRefreshToken", "saml11", "saml20", "unknownFutureValue", "remoteDesktopToken", "refreshToken"} + for p := 0; p < 7; p++ { mantis := IncomingTokenType(int(math.Pow(2, float64(p)))) if i&mantis == mantis { values = append(values, options[p]) @@ -42,6 +43,8 @@ func ParseIncomingTokenType(v string) (any, error) { result |= UNKNOWNFUTUREVALUE_INCOMINGTOKENTYPE case "remoteDesktopToken": result |= REMOTEDESKTOPTOKEN_INCOMINGTOKENTYPE + case "refreshToken": + result |= REFRESHTOKEN_INCOMINGTOKENTYPE default: return nil, nil } diff --git a/models/industrydata/security_group_creation_options.go b/models/industrydata/security_group_creation_options.go index 51089c6d65e..5556611499b 100644 --- a/models/industrydata/security_group_creation_options.go +++ b/models/industrydata/security_group_creation_options.go @@ -52,7 +52,7 @@ func (m *SecurityGroupCreationOptions) GetCreateBasedOnOrgPlusRoleGroup()(*bool) } return nil } -// GetCreateBasedOnRoleGroup gets the createBasedOnRoleGroup property value. A boolean choice indicating whether the security group should be created based on the role group +// GetCreateBasedOnRoleGroup gets the createBasedOnRoleGroup property value. A Boolean choice indicating whether the security group should be created based on the role group // returns a *bool when successful func (m *SecurityGroupCreationOptions) GetCreateBasedOnRoleGroup()(*bool) { val, err := m.GetBackingStore().Get("createBasedOnRoleGroup") @@ -158,7 +158,7 @@ func (m *SecurityGroupCreationOptions) SetCreateBasedOnOrgPlusRoleGroup(value *b panic(err) } } -// SetCreateBasedOnRoleGroup sets the createBasedOnRoleGroup property value. A boolean choice indicating whether the security group should be created based on the role group +// SetCreateBasedOnRoleGroup sets the createBasedOnRoleGroup property value. A Boolean choice indicating whether the security group should be created based on the role group func (m *SecurityGroupCreationOptions) SetCreateBasedOnRoleGroup(value *bool)() { err := m.GetBackingStore().Set("createBasedOnRoleGroup", value) if err != nil { diff --git a/models/industrydata/user_provisioning_flow.go b/models/industrydata/user_provisioning_flow.go index ef0d2d11f87..eac00c8e990 100644 --- a/models/industrydata/user_provisioning_flow.go +++ b/models/industrydata/user_provisioning_flow.go @@ -21,7 +21,7 @@ func NewUserProvisioningFlow()(*UserProvisioningFlow) { func CreateUserProvisioningFlowFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewUserProvisioningFlow(), nil } -// GetCreateUnmatchedUsers gets the createUnmatchedUsers property value. A boolean choice indicating whether unmatched users should be created or ignored. +// GetCreateUnmatchedUsers gets the createUnmatchedUsers property value. A Boolean choice indicating whether unmatched users should be created or ignored. // returns a *bool when successful func (m *UserProvisioningFlow) GetCreateUnmatchedUsers()(*bool) { val, err := m.GetBackingStore().Get("createUnmatchedUsers") @@ -119,7 +119,7 @@ func (m *UserProvisioningFlow) Serialize(writer i878a80d2330e89d26896388a3f487ee } return nil } -// SetCreateUnmatchedUsers sets the createUnmatchedUsers property value. A boolean choice indicating whether unmatched users should be created or ignored. +// SetCreateUnmatchedUsers sets the createUnmatchedUsers property value. A Boolean choice indicating whether unmatched users should be created or ignored. func (m *UserProvisioningFlow) SetCreateUnmatchedUsers(value *bool)() { err := m.GetBackingStore().Set("createUnmatchedUsers", value) if err != nil { diff --git a/models/ios_lob_app_provisioning_configuration.go b/models/ios_lob_app_provisioning_configuration.go index 4c72c8d7e93..762ebf06ff5 100644 --- a/models/ios_lob_app_provisioning_configuration.go +++ b/models/ios_lob_app_provisioning_configuration.go @@ -21,7 +21,7 @@ func NewIosLobAppProvisioningConfiguration()(*IosLobAppProvisioningConfiguration func CreateIosLobAppProvisioningConfigurationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewIosLobAppProvisioningConfiguration(), nil } -// GetAssignments gets the assignments property value. The associated group assignments for IosLobAppProvisioningConfiguration. +// GetAssignments gets the assignments property value. The associated group assignments for IosLobAppProvisioningConfiguration, this determines which devices/users the IOS LOB app provisioning conifguration will be targeted to. // returns a []IosLobAppProvisioningConfigurationAssignmentable when successful func (m *IosLobAppProvisioningConfiguration) GetAssignments()([]IosLobAppProvisioningConfigurationAssignmentable) { val, err := m.GetBackingStore().Get("assignments") @@ -81,7 +81,7 @@ func (m *IosLobAppProvisioningConfiguration) GetDisplayName()(*string) { } return nil } -// GetExpirationDateTime gets the expirationDateTime property value. Optional profile expiration date and time. +// GetExpirationDateTime gets the expirationDateTime property value. Optional profile expiration date and time. 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 would look like this: '2014-01-01T00:00:00Z'. Returned by default. // returns a *Time when successful func (m *IosLobAppProvisioningConfiguration) GetExpirationDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("expirationDateTime") @@ -453,7 +453,7 @@ func (m *IosLobAppProvisioningConfiguration) Serialize(writer i878a80d2330e89d26 } return nil } -// SetAssignments sets the assignments property value. The associated group assignments for IosLobAppProvisioningConfiguration. +// SetAssignments sets the assignments property value. The associated group assignments for IosLobAppProvisioningConfiguration, this determines which devices/users the IOS LOB app provisioning conifguration will be targeted to. func (m *IosLobAppProvisioningConfiguration) SetAssignments(value []IosLobAppProvisioningConfigurationAssignmentable)() { err := m.GetBackingStore().Set("assignments", value) if err != nil { @@ -488,7 +488,7 @@ func (m *IosLobAppProvisioningConfiguration) SetDisplayName(value *string)() { panic(err) } } -// SetExpirationDateTime sets the expirationDateTime property value. Optional profile expiration date and time. +// SetExpirationDateTime sets the expirationDateTime property value. Optional profile expiration date and time. 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 would look like this: '2014-01-01T00:00:00Z'. Returned by default. func (m *IosLobAppProvisioningConfiguration) SetExpirationDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("expirationDateTime", value) if err != nil { diff --git a/models/mac_os_lob_app_assignment_settings.go b/models/mac_os_lob_app_assignment_settings.go index 9e02d20973f..7a1282a3942 100644 --- a/models/mac_os_lob_app_assignment_settings.go +++ b/models/mac_os_lob_app_assignment_settings.go @@ -38,7 +38,7 @@ func (m *MacOsLobAppAssignmentSettings) GetFieldDeserializers()(map[string]func( } return res } -// GetUninstallOnDeviceRemoval gets the uninstallOnDeviceRemoval property value. Whether or not to uninstall the app when device is removed from Intune. +// GetUninstallOnDeviceRemoval gets the uninstallOnDeviceRemoval property value. When TRUE, indicates that the app should be uninstalled when the device is removed from Intune. When FALSE, indicates that the app will not be uninstalled when the device is removed from Intune. // returns a *bool when successful func (m *MacOsLobAppAssignmentSettings) GetUninstallOnDeviceRemoval()(*bool) { val, err := m.GetBackingStore().Get("uninstallOnDeviceRemoval") @@ -64,7 +64,7 @@ func (m *MacOsLobAppAssignmentSettings) Serialize(writer i878a80d2330e89d2689638 } return nil } -// SetUninstallOnDeviceRemoval sets the uninstallOnDeviceRemoval property value. Whether or not to uninstall the app when device is removed from Intune. +// SetUninstallOnDeviceRemoval sets the uninstallOnDeviceRemoval property value. When TRUE, indicates that the app should be uninstalled when the device is removed from Intune. When FALSE, indicates that the app will not be uninstalled when the device is removed from Intune. func (m *MacOsLobAppAssignmentSettings) SetUninstallOnDeviceRemoval(value *bool)() { err := m.GetBackingStore().Set("uninstallOnDeviceRemoval", value) if err != nil { diff --git a/models/mailbox_restore_artifact.go b/models/mailbox_restore_artifact.go index ad36906ba3c..1446efb891c 100644 --- a/models/mailbox_restore_artifact.go +++ b/models/mailbox_restore_artifact.go @@ -17,6 +17,24 @@ func NewMailboxRestoreArtifact()(*MailboxRestoreArtifact) { // CreateMailboxRestoreArtifactFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value // returns a Parsable when successful func CreateMailboxRestoreArtifactFromDiscriminatorValue(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.granularMailboxRestoreArtifact": + return NewGranularMailboxRestoreArtifact(), nil + } + } + } + } return NewMailboxRestoreArtifact(), nil } // GetFieldDeserializers the deserialization information for the current model diff --git a/models/microsoft_authenticator_platform_settings.go b/models/microsoft_authenticator_platform_settings.go new file mode 100644 index 00000000000..e095efa87c1 --- /dev/null +++ b/models/microsoft_authenticator_platform_settings.go @@ -0,0 +1,150 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e "github.com/microsoft/kiota-abstractions-go/store" +) + +type MicrosoftAuthenticatorPlatformSettings struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewMicrosoftAuthenticatorPlatformSettings instantiates a new MicrosoftAuthenticatorPlatformSettings and sets the default values. +func NewMicrosoftAuthenticatorPlatformSettings()(*MicrosoftAuthenticatorPlatformSettings) { + m := &MicrosoftAuthenticatorPlatformSettings{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateMicrosoftAuthenticatorPlatformSettingsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateMicrosoftAuthenticatorPlatformSettingsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewMicrosoftAuthenticatorPlatformSettings(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *MicrosoftAuthenticatorPlatformSettings) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *MicrosoftAuthenticatorPlatformSettings) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetEnforceAppPIN gets the enforceAppPIN property value. The enforceAppPIN property +// returns a EnforceAppPINable when successful +func (m *MicrosoftAuthenticatorPlatformSettings) GetEnforceAppPIN()(EnforceAppPINable) { + val, err := m.GetBackingStore().Get("enforceAppPIN") + if err != nil { + panic(err) + } + if val != nil { + return val.(EnforceAppPINable) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *MicrosoftAuthenticatorPlatformSettings) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["enforceAppPIN"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateEnforceAppPINFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetEnforceAppPIN(val.(EnforceAppPINable)) + } + 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 *MicrosoftAuthenticatorPlatformSettings) 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 *MicrosoftAuthenticatorPlatformSettings) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("enforceAppPIN", m.GetEnforceAppPIN()) + 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 *MicrosoftAuthenticatorPlatformSettings) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *MicrosoftAuthenticatorPlatformSettings) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetEnforceAppPIN sets the enforceAppPIN property value. The enforceAppPIN property +func (m *MicrosoftAuthenticatorPlatformSettings) SetEnforceAppPIN(value EnforceAppPINable)() { + err := m.GetBackingStore().Set("enforceAppPIN", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *MicrosoftAuthenticatorPlatformSettings) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +type MicrosoftAuthenticatorPlatformSettingsable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetEnforceAppPIN()(EnforceAppPINable) + GetOdataType()(*string) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetEnforceAppPIN(value EnforceAppPINable)() + SetOdataType(value *string)() +} diff --git a/models/mobile_app.go b/models/mobile_app.go index 8e1ccc1f51c..9d4b6d04b34 100644 --- a/models/mobile_app.go +++ b/models/mobile_app.go @@ -141,7 +141,7 @@ func (m *MobileApp) GetCategories()([]MobileAppCategoryable) { } return nil } -// GetCreatedDateTime gets the createdDateTime property value. The date and time the app was created. This property is read-only. +// GetCreatedDateTime gets the createdDateTime property value. The date and time the app was created. // returns a *Time when successful func (m *MobileApp) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("createdDateTime") @@ -153,7 +153,7 @@ func (m *MobileApp) GetCreatedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f30 } return nil } -// GetDependentAppCount gets the dependentAppCount property value. The total number of dependencies the child app has. This property is read-only. +// GetDependentAppCount gets the dependentAppCount property value. The total number of dependencies the child app has. // returns a *int32 when successful func (m *MobileApp) GetDependentAppCount()(*int32) { val, err := m.GetBackingStore().Get("dependentAppCount") @@ -463,7 +463,7 @@ func (m *MobileApp) GetInformationUrl()(*string) { } return nil } -// GetIsAssigned gets the isAssigned property value. The value indicating whether the app is assigned to at least one group. This property is read-only. +// GetIsAssigned gets the isAssigned property value. The value indicating whether the app is assigned to at least one group. // returns a *bool when successful func (m *MobileApp) GetIsAssigned()(*bool) { val, err := m.GetBackingStore().Get("isAssigned") @@ -499,7 +499,7 @@ func (m *MobileApp) GetLargeIcon()(MimeContentable) { } return nil } -// GetLastModifiedDateTime gets the lastModifiedDateTime property value. The date and time the app was last modified. This property is read-only. +// GetLastModifiedDateTime gets the lastModifiedDateTime property value. The date and time the app was last modified. // returns a *Time when successful func (m *MobileApp) GetLastModifiedDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { val, err := m.GetBackingStore().Get("lastModifiedDateTime") @@ -571,7 +571,7 @@ func (m *MobileApp) GetPublishingState()(*MobileAppPublishingState) { } return nil } -// GetRelationships gets the relationships property value. The set of direct relationships for this app. +// GetRelationships gets the relationships property value. List of relationships for this mobile app. // returns a []MobileAppRelationshipable when successful func (m *MobileApp) GetRelationships()([]MobileAppRelationshipable) { val, err := m.GetBackingStore().Get("relationships") @@ -619,7 +619,7 @@ func (m *MobileApp) GetSupersedingAppCount()(*int32) { } return nil } -// GetUploadState gets the uploadState property value. The upload state. Possible values are: 0 - Not Ready, 1 - Ready, 2 - Processing. This property is read-only. +// GetUploadState gets the uploadState property value. The upload state. // returns a *int32 when successful func (m *MobileApp) GetUploadState()(*int32) { val, err := m.GetBackingStore().Get("uploadState") @@ -762,14 +762,14 @@ func (m *MobileApp) SetCategories(value []MobileAppCategoryable)() { panic(err) } } -// SetCreatedDateTime sets the createdDateTime property value. The date and time the app was created. This property is read-only. +// SetCreatedDateTime sets the createdDateTime property value. The date and time the app was created. func (m *MobileApp) SetCreatedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("createdDateTime", value) if err != nil { panic(err) } } -// SetDependentAppCount sets the dependentAppCount property value. The total number of dependencies the child app has. This property is read-only. +// SetDependentAppCount sets the dependentAppCount property value. The total number of dependencies the child app has. func (m *MobileApp) SetDependentAppCount(value *int32)() { err := m.GetBackingStore().Set("dependentAppCount", value) if err != nil { @@ -804,7 +804,7 @@ func (m *MobileApp) SetInformationUrl(value *string)() { panic(err) } } -// SetIsAssigned sets the isAssigned property value. The value indicating whether the app is assigned to at least one group. This property is read-only. +// SetIsAssigned sets the isAssigned property value. The value indicating whether the app is assigned to at least one group. func (m *MobileApp) SetIsAssigned(value *bool)() { err := m.GetBackingStore().Set("isAssigned", value) if err != nil { @@ -825,7 +825,7 @@ func (m *MobileApp) SetLargeIcon(value MimeContentable)() { panic(err) } } -// SetLastModifiedDateTime sets the lastModifiedDateTime property value. The date and time the app was last modified. This property is read-only. +// SetLastModifiedDateTime sets the lastModifiedDateTime property value. The date and time the app was last modified. func (m *MobileApp) SetLastModifiedDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("lastModifiedDateTime", value) if err != nil { @@ -867,7 +867,7 @@ func (m *MobileApp) SetPublishingState(value *MobileAppPublishingState)() { panic(err) } } -// SetRelationships sets the relationships property value. The set of direct relationships for this app. +// SetRelationships sets the relationships property value. List of relationships for this mobile app. func (m *MobileApp) SetRelationships(value []MobileAppRelationshipable)() { err := m.GetBackingStore().Set("relationships", value) if err != nil { @@ -895,7 +895,7 @@ func (m *MobileApp) SetSupersedingAppCount(value *int32)() { panic(err) } } -// SetUploadState sets the uploadState property value. The upload state. Possible values are: 0 - Not Ready, 1 - Ready, 2 - Processing. This property is read-only. +// SetUploadState sets the uploadState property value. The upload state. func (m *MobileApp) SetUploadState(value *int32)() { err := m.GetBackingStore().Set("uploadState", value) if err != nil { diff --git a/models/mobile_app_troubleshooting_event.go b/models/mobile_app_troubleshooting_event.go index df58bebcc6b..d7f4a34e5ae 100644 --- a/models/mobile_app_troubleshooting_event.go +++ b/models/mobile_app_troubleshooting_event.go @@ -32,7 +32,7 @@ func (m *MobileAppTroubleshootingEvent) GetApplicationId()(*string) { } return nil } -// GetAppLogCollectionRequests gets the appLogCollectionRequests property value. Indicates collection of App Log Upload Request. +// GetAppLogCollectionRequests gets the appLogCollectionRequests property value. The collection property of AppLogUploadRequest. // returns a []AppLogCollectionRequestable when successful func (m *MobileAppTroubleshootingEvent) GetAppLogCollectionRequests()([]AppLogCollectionRequestable) { val, err := m.GetBackingStore().Get("appLogCollectionRequests") @@ -233,7 +233,7 @@ func (m *MobileAppTroubleshootingEvent) SetApplicationId(value *string)() { panic(err) } } -// SetAppLogCollectionRequests sets the appLogCollectionRequests property value. Indicates collection of App Log Upload Request. +// SetAppLogCollectionRequests sets the appLogCollectionRequests property value. The collection property of AppLogUploadRequest. func (m *MobileAppTroubleshootingEvent) SetAppLogCollectionRequests(value []AppLogCollectionRequestable)() { err := m.GetBackingStore().Set("appLogCollectionRequests", value) if err != nil { diff --git a/models/networkaccess/filtering_policy_action.go b/models/networkaccess/filtering_policy_action.go index ab6b856b487..25b2be6e366 100644 --- a/models/networkaccess/filtering_policy_action.go +++ b/models/networkaccess/filtering_policy_action.go @@ -5,10 +5,12 @@ const ( BLOCK_FILTERINGPOLICYACTION FilteringPolicyAction = iota ALLOW_FILTERINGPOLICYACTION UNKNOWNFUTUREVALUE_FILTERINGPOLICYACTION + BYPASS_FILTERINGPOLICYACTION + ALERT_FILTERINGPOLICYACTION ) func (i FilteringPolicyAction) String() string { - return []string{"block", "allow", "unknownFutureValue"}[i] + return []string{"block", "allow", "unknownFutureValue", "bypass", "alert"}[i] } func ParseFilteringPolicyAction(v string) (any, error) { result := BLOCK_FILTERINGPOLICYACTION @@ -19,6 +21,10 @@ func ParseFilteringPolicyAction(v string) (any, error) { result = ALLOW_FILTERINGPOLICYACTION case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_FILTERINGPOLICYACTION + case "bypass": + result = BYPASS_FILTERINGPOLICYACTION + case "alert": + result = ALERT_FILTERINGPOLICYACTION default: return nil, nil } diff --git a/models/non_admin_setting.go b/models/non_admin_setting.go new file mode 100644 index 00000000000..42819ea8044 --- /dev/null +++ b/models/non_admin_setting.go @@ -0,0 +1,36 @@ +package models +type NonAdminSetting int + +const ( + FALSE_NONADMINSETTING NonAdminSetting = iota + TRUE_NONADMINSETTING + UNKNOWNFUTUREVALUE_NONADMINSETTING +) + +func (i NonAdminSetting) String() string { + return []string{"false", "true", "unknownFutureValue"}[i] +} +func ParseNonAdminSetting(v string) (any, error) { + result := FALSE_NONADMINSETTING + switch v { + case "false": + result = FALSE_NONADMINSETTING + case "true": + result = TRUE_NONADMINSETTING + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_NONADMINSETTING + default: + return nil, nil + } + return &result, nil +} +func SerializeNonAdminSetting(values []NonAdminSetting) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i NonAdminSetting) isMultiValue() bool { + return false +} diff --git a/models/on_premises_directory_synchronization.go b/models/on_premises_directory_synchronization.go index 60299562f53..2f08064dd85 100644 --- a/models/on_premises_directory_synchronization.go +++ b/models/on_premises_directory_synchronization.go @@ -19,7 +19,7 @@ func NewOnPremisesDirectorySynchronization()(*OnPremisesDirectorySynchronization func CreateOnPremisesDirectorySynchronizationFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewOnPremisesDirectorySynchronization(), nil } -// GetConfiguration gets the configuration property value. Consists of configurations that can be fine-tuned and impact the on-premises directory synchronization process for a tenant. +// GetConfiguration gets the configuration property value. Consists of configurations that can be fine-tuned and impact the on-premises directory synchronization process for a tenant. Nullable. // returns a OnPremisesDirectorySynchronizationConfigurationable when successful func (m *OnPremisesDirectorySynchronization) GetConfiguration()(OnPremisesDirectorySynchronizationConfigurationable) { val, err := m.GetBackingStore().Get("configuration") @@ -89,7 +89,7 @@ func (m *OnPremisesDirectorySynchronization) Serialize(writer i878a80d2330e89d26 } return nil } -// SetConfiguration sets the configuration property value. Consists of configurations that can be fine-tuned and impact the on-premises directory synchronization process for a tenant. +// SetConfiguration sets the configuration property value. Consists of configurations that can be fine-tuned and impact the on-premises directory synchronization process for a tenant. Nullable. func (m *OnPremisesDirectorySynchronization) SetConfiguration(value OnPremisesDirectorySynchronizationConfigurationable)() { err := m.GetBackingStore().Set("configuration", value) if err != nil { diff --git a/models/online_meeting_base.go b/models/online_meeting_base.go index 01bb5292849..952a687ef74 100644 --- a/models/online_meeting_base.go +++ b/models/online_meeting_base.go @@ -63,7 +63,7 @@ func (m *OnlineMeetingBase) GetAllowAttendeeToEnableMic()(*bool) { } return nil } -// GetAllowBreakoutRooms gets the allowBreakoutRooms property value. The allowBreakoutRooms property +// GetAllowBreakoutRooms gets the allowBreakoutRooms property value. Indicates whether breakout rooms are enabled for the meeting. // returns a *bool when successful func (m *OnlineMeetingBase) GetAllowBreakoutRooms()(*bool) { val, err := m.GetBackingStore().Get("allowBreakoutRooms") @@ -75,7 +75,7 @@ func (m *OnlineMeetingBase) GetAllowBreakoutRooms()(*bool) { } return nil } -// GetAllowedPresenters gets the allowedPresenters property value. Specifies who can be a presenter in a meeting. +// GetAllowedPresenters gets the allowedPresenters property value. Specifies who can be a presenter in a meeting. Possible values are: everyone, organization, roleIsPresenter, organizer, unknownFutureValue. // returns a *OnlineMeetingPresenters when successful func (m *OnlineMeetingBase) GetAllowedPresenters()(*OnlineMeetingPresenters) { val, err := m.GetBackingStore().Get("allowedPresenters") @@ -87,7 +87,7 @@ func (m *OnlineMeetingBase) GetAllowedPresenters()(*OnlineMeetingPresenters) { } return nil } -// GetAllowLiveShare gets the allowLiveShare property value. The allowLiveShare property +// GetAllowLiveShare gets the allowLiveShare property value. Indicates whether live share is enabled for the meeting. Possible values are: enabled, disabled, unknownFutureValue. // returns a *MeetingLiveShareOptions when successful func (m *OnlineMeetingBase) GetAllowLiveShare()(*MeetingLiveShareOptions) { val, err := m.GetBackingStore().Get("allowLiveShare") @@ -99,7 +99,7 @@ func (m *OnlineMeetingBase) GetAllowLiveShare()(*MeetingLiveShareOptions) { } return nil } -// GetAllowMeetingChat gets the allowMeetingChat property value. Specifies the mode of meeting chat. +// GetAllowMeetingChat gets the allowMeetingChat property value. Specifies the mode of meeting chat. Possible values are: enabled, disabled, limited, unknownFutureValue. // returns a *MeetingChatMode when successful func (m *OnlineMeetingBase) GetAllowMeetingChat()(*MeetingChatMode) { val, err := m.GetBackingStore().Get("allowMeetingChat") @@ -123,7 +123,7 @@ func (m *OnlineMeetingBase) GetAllowParticipantsToChangeName()(*bool) { } return nil } -// GetAllowPowerPointSharing gets the allowPowerPointSharing property value. The allowPowerPointSharing property +// GetAllowPowerPointSharing gets the allowPowerPointSharing property value. Indicates whether PowerPoint live is enabled for the meeting. // returns a *bool when successful func (m *OnlineMeetingBase) GetAllowPowerPointSharing()(*bool) { val, err := m.GetBackingStore().Get("allowPowerPointSharing") @@ -171,7 +171,7 @@ func (m *OnlineMeetingBase) GetAllowTranscription()(*bool) { } return nil } -// GetAllowWhiteboard gets the allowWhiteboard property value. The allowWhiteboard property +// GetAllowWhiteboard gets the allowWhiteboard property value. Indicates whether whiteboard is enabled for the meeting. // returns a *bool when successful func (m *OnlineMeetingBase) GetAllowWhiteboard()(*bool) { val, err := m.GetBackingStore().Get("allowWhiteboard") @@ -873,28 +873,28 @@ func (m *OnlineMeetingBase) SetAllowAttendeeToEnableMic(value *bool)() { panic(err) } } -// SetAllowBreakoutRooms sets the allowBreakoutRooms property value. The allowBreakoutRooms property +// SetAllowBreakoutRooms sets the allowBreakoutRooms property value. Indicates whether breakout rooms are enabled for the meeting. func (m *OnlineMeetingBase) SetAllowBreakoutRooms(value *bool)() { err := m.GetBackingStore().Set("allowBreakoutRooms", value) if err != nil { panic(err) } } -// SetAllowedPresenters sets the allowedPresenters property value. Specifies who can be a presenter in a meeting. +// SetAllowedPresenters sets the allowedPresenters property value. Specifies who can be a presenter in a meeting. Possible values are: everyone, organization, roleIsPresenter, organizer, unknownFutureValue. func (m *OnlineMeetingBase) SetAllowedPresenters(value *OnlineMeetingPresenters)() { err := m.GetBackingStore().Set("allowedPresenters", value) if err != nil { panic(err) } } -// SetAllowLiveShare sets the allowLiveShare property value. The allowLiveShare property +// SetAllowLiveShare sets the allowLiveShare property value. Indicates whether live share is enabled for the meeting. Possible values are: enabled, disabled, unknownFutureValue. func (m *OnlineMeetingBase) SetAllowLiveShare(value *MeetingLiveShareOptions)() { err := m.GetBackingStore().Set("allowLiveShare", value) if err != nil { panic(err) } } -// SetAllowMeetingChat sets the allowMeetingChat property value. Specifies the mode of meeting chat. +// SetAllowMeetingChat sets the allowMeetingChat property value. Specifies the mode of meeting chat. Possible values are: enabled, disabled, limited, unknownFutureValue. func (m *OnlineMeetingBase) SetAllowMeetingChat(value *MeetingChatMode)() { err := m.GetBackingStore().Set("allowMeetingChat", value) if err != nil { @@ -908,7 +908,7 @@ func (m *OnlineMeetingBase) SetAllowParticipantsToChangeName(value *bool)() { panic(err) } } -// SetAllowPowerPointSharing sets the allowPowerPointSharing property value. The allowPowerPointSharing property +// SetAllowPowerPointSharing sets the allowPowerPointSharing property value. Indicates whether PowerPoint live is enabled for the meeting. func (m *OnlineMeetingBase) SetAllowPowerPointSharing(value *bool)() { err := m.GetBackingStore().Set("allowPowerPointSharing", value) if err != nil { @@ -936,7 +936,7 @@ func (m *OnlineMeetingBase) SetAllowTranscription(value *bool)() { panic(err) } } -// SetAllowWhiteboard sets the allowWhiteboard property value. The allowWhiteboard property +// SetAllowWhiteboard sets the allowWhiteboard property value. Indicates whether whiteboard is enabled for the meeting. func (m *OnlineMeetingBase) SetAllowWhiteboard(value *bool)() { err := m.GetBackingStore().Set("allowWhiteboard", value) if err != nil { diff --git a/models/outlook_category.go b/models/outlook_category.go index 2441ababdb9..032a99fb7e8 100644 --- a/models/outlook_category.go +++ b/models/outlook_category.go @@ -19,7 +19,7 @@ func NewOutlookCategory()(*OutlookCategory) { func CreateOutlookCategoryFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewOutlookCategory(), nil } -// GetColor gets the color property value. A pre-set color constant that characterizes a category, and that is mapped to one of 25 predefined colors. For more details, see the following note. +// GetColor gets the color property value. A preset color constant that characterizes a category, and that is mapped to one of 25 predefined colors. For more information, see the following note. // returns a *CategoryColor when successful func (m *OutlookCategory) GetColor()(*CategoryColor) { val, err := m.GetBackingStore().Get("color") @@ -31,7 +31,7 @@ func (m *OutlookCategory) GetColor()(*CategoryColor) { } return nil } -// GetDisplayName gets the displayName property value. A unique name that identifies a category in the user's mailbox. After a category is created, the name cannot be changed. Read-only. +// GetDisplayName gets the displayName property value. A unique name that identifies a category in the user's mailbox. After a category is created, the name can't be changed. Read-only. // returns a *string when successful func (m *OutlookCategory) GetDisplayName()(*string) { val, err := m.GetBackingStore().Get("displayName") @@ -90,14 +90,14 @@ func (m *OutlookCategory) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0 } return nil } -// SetColor sets the color property value. A pre-set color constant that characterizes a category, and that is mapped to one of 25 predefined colors. For more details, see the following note. +// SetColor sets the color property value. A preset color constant that characterizes a category, and that is mapped to one of 25 predefined colors. For more information, see the following note. func (m *OutlookCategory) SetColor(value *CategoryColor)() { err := m.GetBackingStore().Set("color", value) if err != nil { panic(err) } } -// SetDisplayName sets the displayName property value. A unique name that identifies a category in the user's mailbox. After a category is created, the name cannot be changed. Read-only. +// SetDisplayName sets the displayName property value. A unique name that identifies a category in the user's mailbox. After a category is created, the name can't be changed. Read-only. func (m *OutlookCategory) SetDisplayName(value *string)() { err := m.GetBackingStore().Set("displayName", value) if err != nil { diff --git a/models/outlook_task.go b/models/outlook_task.go index 6e3fb2c76b5..480da6b73e2 100644 --- a/models/outlook_task.go +++ b/models/outlook_task.go @@ -33,7 +33,7 @@ func (m *OutlookTask) GetAssignedTo()(*string) { } return nil } -// GetAttachments gets the attachments property value. The collection of fileAttachment, itemAttachment, and referenceAttachment attachments for the task. Read-only. Nullable. +// GetAttachments gets the attachments property value. The collection of fileAttachment, itemAttachment, and referenceAttachment attachments for the task. Read-only. Nullable. // returns a []Attachmentable when successful func (m *OutlookTask) GetAttachments()([]Attachmentable) { val, err := m.GetBackingStore().Get("attachments") @@ -45,7 +45,7 @@ func (m *OutlookTask) GetAttachments()([]Attachmentable) { } return nil } -// GetBody gets the body property value. The task body that typically contains information about the task. Note that only HTML type is supported. +// GetBody gets the body property value. The task body that typically contains information about the task. Only the HTML type is supported. // returns a ItemBodyable when successful func (m *OutlookTask) GetBody()(ItemBodyable) { val, err := m.GetBackingStore().Get("body") @@ -585,14 +585,14 @@ func (m *OutlookTask) SetAssignedTo(value *string)() { panic(err) } } -// SetAttachments sets the attachments property value. The collection of fileAttachment, itemAttachment, and referenceAttachment attachments for the task. Read-only. Nullable. +// SetAttachments sets the attachments property value. The collection of fileAttachment, itemAttachment, and referenceAttachment attachments for the task. Read-only. Nullable. func (m *OutlookTask) SetAttachments(value []Attachmentable)() { err := m.GetBackingStore().Set("attachments", value) if err != nil { panic(err) } } -// SetBody sets the body property value. The task body that typically contains information about the task. Note that only HTML type is supported. +// SetBody sets the body property value. The task body that typically contains information about the task. Only the HTML type is supported. func (m *OutlookTask) SetBody(value ItemBodyable)() { err := m.GetBackingStore().Set("body", value) if err != nil { diff --git a/models/position_detail.go b/models/position_detail.go index 8557a428861..8f62ff9d799 100644 --- a/models/position_detail.go +++ b/models/position_detail.go @@ -40,7 +40,7 @@ func (m *PositionDetail) GetAdditionalData()(map[string]any) { func (m *PositionDetail) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetCompany gets the company property value. Detail about the company or employer. +// GetCompany gets the company property value. Information about the company or employer. // returns a CompanyDetailable when successful func (m *PositionDetail) GetCompany()(CompanyDetailable) { val, err := m.GetBackingStore().Get("company") @@ -52,7 +52,7 @@ func (m *PositionDetail) GetCompany()(CompanyDetailable) { } return nil } -// GetDescription gets the description property value. Description of the position in question. +// GetDescription gets the description property value. A description for the position in question. // returns a *string when successful func (m *PositionDetail) GetDescription()(*string) { val, err := m.GetBackingStore().Get("description") @@ -64,7 +64,7 @@ func (m *PositionDetail) GetDescription()(*string) { } return nil } -// GetEndMonthYear gets the endMonthYear property value. When the position ended. +// GetEndMonthYear gets the endMonthYear property value. The date when the position ended. // returns a *DateOnly when successful func (m *PositionDetail) GetEndMonthYear()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) { val, err := m.GetBackingStore().Get("endMonthYear") @@ -202,7 +202,7 @@ func (m *PositionDetail) GetFieldDeserializers()(map[string]func(i878a80d2330e89 } return res } -// GetJobTitle gets the jobTitle property value. The title held when in that position. +// GetJobTitle gets the jobTitle property value. The title of the position. // returns a *string when successful func (m *PositionDetail) GetJobTitle()(*string) { val, err := m.GetBackingStore().Get("jobTitle") @@ -262,7 +262,7 @@ func (m *PositionDetail) GetRole()(*string) { } return nil } -// GetSecondaryJobTitle gets the secondaryJobTitle property value. The secondaryJobTitle property +// GetSecondaryJobTitle gets the secondaryJobTitle property value. An optional job title for the position. // returns a *string when successful func (m *PositionDetail) GetSecondaryJobTitle()(*string) { val, err := m.GetBackingStore().Get("secondaryJobTitle") @@ -274,7 +274,7 @@ func (m *PositionDetail) GetSecondaryJobTitle()(*string) { } return nil } -// GetSecondaryRole gets the secondaryRole property value. The secondaryRole property +// GetSecondaryRole gets the secondaryRole property value. An optional role for the position entailed. // returns a *string when successful func (m *PositionDetail) GetSecondaryRole()(*string) { val, err := m.GetBackingStore().Get("secondaryRole") @@ -286,7 +286,7 @@ func (m *PositionDetail) GetSecondaryRole()(*string) { } return nil } -// GetStartMonthYear gets the startMonthYear property value. The start month and year of the position. +// GetStartMonthYear gets the startMonthYear property value. The start date of the position. // returns a *DateOnly when successful func (m *PositionDetail) GetStartMonthYear()(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly) { val, err := m.GetBackingStore().Get("startMonthYear") @@ -298,7 +298,7 @@ func (m *PositionDetail) GetStartMonthYear()(*i878a80d2330e89d26896388a3f487eef2 } return nil } -// GetSummary gets the summary property value. summary of the position. +// GetSummary gets the summary property value. The summary of the position. // returns a *string when successful func (m *PositionDetail) GetSummary()(*string) { val, err := m.GetBackingStore().Get("summary") @@ -403,28 +403,28 @@ func (m *PositionDetail) SetAdditionalData(value map[string]any)() { func (m *PositionDetail) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetCompany sets the company property value. Detail about the company or employer. +// SetCompany sets the company property value. Information about the company or employer. func (m *PositionDetail) SetCompany(value CompanyDetailable)() { err := m.GetBackingStore().Set("company", value) if err != nil { panic(err) } } -// SetDescription sets the description property value. Description of the position in question. +// SetDescription sets the description property value. A description for the position in question. func (m *PositionDetail) SetDescription(value *string)() { err := m.GetBackingStore().Set("description", value) if err != nil { panic(err) } } -// SetEndMonthYear sets the endMonthYear property value. When the position ended. +// SetEndMonthYear sets the endMonthYear property value. The date when the position ended. func (m *PositionDetail) SetEndMonthYear(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly)() { err := m.GetBackingStore().Set("endMonthYear", value) if err != nil { panic(err) } } -// SetJobTitle sets the jobTitle property value. The title held when in that position. +// SetJobTitle sets the jobTitle property value. The title of the position. func (m *PositionDetail) SetJobTitle(value *string)() { err := m.GetBackingStore().Set("jobTitle", value) if err != nil { @@ -459,28 +459,28 @@ func (m *PositionDetail) SetRole(value *string)() { panic(err) } } -// SetSecondaryJobTitle sets the secondaryJobTitle property value. The secondaryJobTitle property +// SetSecondaryJobTitle sets the secondaryJobTitle property value. An optional job title for the position. func (m *PositionDetail) SetSecondaryJobTitle(value *string)() { err := m.GetBackingStore().Set("secondaryJobTitle", value) if err != nil { panic(err) } } -// SetSecondaryRole sets the secondaryRole property value. The secondaryRole property +// SetSecondaryRole sets the secondaryRole property value. An optional role for the position entailed. func (m *PositionDetail) SetSecondaryRole(value *string)() { err := m.GetBackingStore().Set("secondaryRole", value) if err != nil { panic(err) } } -// SetStartMonthYear sets the startMonthYear property value. The start month and year of the position. +// SetStartMonthYear sets the startMonthYear property value. The start date of the position. func (m *PositionDetail) SetStartMonthYear(value *i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly)() { err := m.GetBackingStore().Set("startMonthYear", value) if err != nil { panic(err) } } -// SetSummary sets the summary property value. summary of the position. +// SetSummary sets the summary property value. The summary of the position. func (m *PositionDetail) SetSummary(value *string)() { err := m.GetBackingStore().Set("summary", value) if err != nil { diff --git a/models/provision_state.go b/models/provision_state.go new file mode 100644 index 00000000000..267923c87f1 --- /dev/null +++ b/models/provision_state.go @@ -0,0 +1,42 @@ +package models +type ProvisionState int + +const ( + NOTPROVISIONED_PROVISIONSTATE ProvisionState = iota + PROVISIONINGINPROGRESS_PROVISIONSTATE + PROVISIONINGFAILED_PROVISIONSTATE + PROVISIONINGCOMPLETED_PROVISIONSTATE + UNKNOWNFUTUREVALUE_PROVISIONSTATE +) + +func (i ProvisionState) String() string { + return []string{"notProvisioned", "provisioningInProgress", "provisioningFailed", "provisioningCompleted", "unknownFutureValue"}[i] +} +func ParseProvisionState(v string) (any, error) { + result := NOTPROVISIONED_PROVISIONSTATE + switch v { + case "notProvisioned": + result = NOTPROVISIONED_PROVISIONSTATE + case "provisioningInProgress": + result = PROVISIONINGINPROGRESS_PROVISIONSTATE + case "provisioningFailed": + result = PROVISIONINGFAILED_PROVISIONSTATE + case "provisioningCompleted": + result = PROVISIONINGCOMPLETED_PROVISIONSTATE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_PROVISIONSTATE + default: + return nil, nil + } + return &result, nil +} +func SerializeProvisionState(values []ProvisionState) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i ProvisionState) isMultiValue() bool { + return false +} diff --git a/models/public_client_application.go b/models/public_client_application.go index 52bdd9b4f4d..b7b7c40bf5a 100644 --- a/models/public_client_application.go +++ b/models/public_client_application.go @@ -84,7 +84,7 @@ func (m *PublicClientApplication) GetOdataType()(*string) { } return nil } -// GetRedirectUris gets the redirectUris property value. Specifies the URLs where user tokens are sent for sign-in, or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent. +// GetRedirectUris gets the redirectUris property value. Specifies the URLs where user tokens are sent for sign-in, or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent. For iOS and macOS apps, specify the value following the syntax msauth.{BUNDLEID}://auth, replacing '{BUNDLEID}'. For example, if the bundle ID is com.microsoft.identitysample.MSALiOS, the URI is msauth.com.microsoft.identitysample.MSALiOS://auth. // returns a []string when successful func (m *PublicClientApplication) GetRedirectUris()([]string) { val, err := m.GetBackingStore().Get("redirectUris") @@ -136,7 +136,7 @@ func (m *PublicClientApplication) SetOdataType(value *string)() { panic(err) } } -// SetRedirectUris sets the redirectUris property value. Specifies the URLs where user tokens are sent for sign-in, or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent. +// SetRedirectUris sets the redirectUris property value. Specifies the URLs where user tokens are sent for sign-in, or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent. For iOS and macOS apps, specify the value following the syntax msauth.{BUNDLEID}://auth, replacing '{BUNDLEID}'. For example, if the bundle ID is com.microsoft.identitysample.MSALiOS, the URI is msauth.com.microsoft.identitysample.MSALiOS://auth. func (m *PublicClientApplication) SetRedirectUris(value []string)() { err := m.GetBackingStore().Set("redirectUris", value) if err != nil { diff --git a/models/report.go b/models/report.go index 5b29a811055..f75f1545fa9 100644 --- a/models/report.go +++ b/models/report.go @@ -41,7 +41,7 @@ func (m *Report) GetAdditionalData()(map[string]any) { func (m *Report) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } -// GetContent gets the content property value. Report content; details vary by report type. +// GetContent gets the content property value. The http content that has the data // returns a []byte when successful func (m *Report) GetContent()([]byte) { val, err := m.GetBackingStore().Get("content") @@ -124,7 +124,7 @@ func (m *Report) SetAdditionalData(value map[string]any)() { func (m *Report) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetContent sets the content property value. Report content; details vary by report type. +// SetContent sets the content property value. The http content that has the data func (m *Report) SetContent(value []byte)() { err := m.GetBackingStore().Set("content", value) if err != nil { diff --git a/models/restorable_artifact.go b/models/restorable_artifact.go new file mode 100644 index 00000000000..09180b6bda1 --- /dev/null +++ b/models/restorable_artifact.go @@ -0,0 +1,33 @@ +package models +type RestorableArtifact int + +const ( + MESSAGE_RESTORABLEARTIFACT RestorableArtifact = iota + UNKNOWNFUTUREVALUE_RESTORABLEARTIFACT +) + +func (i RestorableArtifact) String() string { + return []string{"message", "unknownFutureValue"}[i] +} +func ParseRestorableArtifact(v string) (any, error) { + result := MESSAGE_RESTORABLEARTIFACT + switch v { + case "message": + result = MESSAGE_RESTORABLEARTIFACT + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_RESTORABLEARTIFACT + default: + return nil, nil + } + return &result, nil +} +func SerializeRestorableArtifact(values []RestorableArtifact) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i RestorableArtifact) isMultiValue() bool { + return false +} diff --git a/models/restore_artifact_base.go b/models/restore_artifact_base.go index 85d4dd76917..2e4001d4997 100644 --- a/models/restore_artifact_base.go +++ b/models/restore_artifact_base.go @@ -32,6 +32,8 @@ func CreateRestoreArtifactBaseFromDiscriminatorValue(parseNode i878a80d2330e89d2 switch *mappingValue { case "#microsoft.graph.driveRestoreArtifact": return NewDriveRestoreArtifact(), nil + case "#microsoft.graph.granularMailboxRestoreArtifact": + return NewGranularMailboxRestoreArtifact(), nil case "#microsoft.graph.mailboxRestoreArtifact": return NewMailboxRestoreArtifact(), nil case "#microsoft.graph.siteRestoreArtifact": diff --git a/models/restore_point_search_result.go b/models/restore_point_search_result.go index 9bd433bbba5..cc762b9740c 100644 --- a/models/restore_point_search_result.go +++ b/models/restore_point_search_result.go @@ -35,6 +35,18 @@ func (m *RestorePointSearchResult) GetAdditionalData()(map[string]any) { } return val.(map[string]any) } +// GetArtifactHitCount gets the artifactHitCount property value. Total number of artifacts restored. +// returns a *int32 when successful +func (m *RestorePointSearchResult) GetArtifactHitCount()(*int32) { + val, err := m.GetBackingStore().Get("artifactHitCount") + if err != nil { + panic(err) + } + if val != nil { + return val.(*int32) + } + return nil +} // GetBackingStore gets the BackingStore property value. Stores model information. // returns a BackingStore when successful func (m *RestorePointSearchResult) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { @@ -44,6 +56,16 @@ func (m *RestorePointSearchResult) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ec // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *RestorePointSearchResult) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["artifactHitCount"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetInt32Value() + if err != nil { + return err + } + if val != nil { + m.SetArtifactHitCount(val) + } + return nil + } res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -92,6 +114,12 @@ func (m *RestorePointSearchResult) GetRestorePoint()(RestorePointable) { } // Serialize serializes information the current object func (m *RestorePointSearchResult) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteInt32Value("artifactHitCount", m.GetArtifactHitCount()) + if err != nil { + return err + } + } { err := writer.WriteStringValue("@odata.type", m.GetOdataType()) if err != nil { @@ -119,6 +147,13 @@ func (m *RestorePointSearchResult) SetAdditionalData(value map[string]any)() { panic(err) } } +// SetArtifactHitCount sets the artifactHitCount property value. Total number of artifacts restored. +func (m *RestorePointSearchResult) SetArtifactHitCount(value *int32)() { + err := m.GetBackingStore().Set("artifactHitCount", value) + if err != nil { + panic(err) + } +} // SetBackingStore sets the BackingStore property value. Stores model information. func (m *RestorePointSearchResult) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value @@ -141,9 +176,11 @@ type RestorePointSearchResultable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetArtifactHitCount()(*int32) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetOdataType()(*string) GetRestorePoint()(RestorePointable) + SetArtifactHitCount(value *int32)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetOdataType(value *string)() SetRestorePoint(value RestorePointable)() diff --git a/models/security/alert.go b/models/security/alert.go index 5e13364d88b..84f51a9238a 100644 --- a/models/security/alert.go +++ b/models/security/alert.go @@ -165,7 +165,7 @@ func (m *Alert) GetDetectorId()(*string) { } return nil } -// GetDetermination gets the determination property value. Specifies the result of the investigation, whether the alert represents a true attack, and if so, the nature of the attack. Possible values are: unknown, apt, malware, securityPersonnel, securityTesting, unwantedSoftware, other, multiStagedAttack, compromisedUser, phishing, maliciousUserActivity, clean, insufficientData, confirmedUserActivity, lineOfBusinessApplication, unknownFutureValue. +// GetDetermination gets the determination property value. Specifies the result of the investigation, whether the alert represents a true attack, and if so, the nature of the attack. Possible values are: unknown, apt, malware, securityPersonnel, securityTesting, unwantedSoftware, other, multiStagedAttack, compromisedAccount, phishing, maliciousUserActivity, notMalicious, notEnoughDataToValidate, confirmedUserActivity, lineOfBusinessApplication, unknownFutureValue. // returns a *AlertDetermination when successful func (m *Alert) GetDetermination()(*AlertDetermination) { val, err := m.GetBackingStore().Get("determination") @@ -1057,7 +1057,7 @@ func (m *Alert) SetDetectorId(value *string)() { panic(err) } } -// SetDetermination sets the determination property value. Specifies the result of the investigation, whether the alert represents a true attack, and if so, the nature of the attack. Possible values are: unknown, apt, malware, securityPersonnel, securityTesting, unwantedSoftware, other, multiStagedAttack, compromisedUser, phishing, maliciousUserActivity, clean, insufficientData, confirmedUserActivity, lineOfBusinessApplication, unknownFutureValue. +// SetDetermination sets the determination property value. Specifies the result of the investigation, whether the alert represents a true attack, and if so, the nature of the attack. Possible values are: unknown, apt, malware, securityPersonnel, securityTesting, unwantedSoftware, other, multiStagedAttack, compromisedAccount, phishing, maliciousUserActivity, notMalicious, notEnoughDataToValidate, confirmedUserActivity, lineOfBusinessApplication, unknownFutureValue. func (m *Alert) SetDetermination(value *AlertDetermination)() { err := m.GetBackingStore().Set("determination", value) if err != nil { diff --git a/models/service_principal.go b/models/service_principal.go index ce6179d20da..1bf866e8e7f 100644 --- a/models/service_principal.go +++ b/models/service_principal.go @@ -1267,7 +1267,7 @@ func (m *ServicePrincipal) GetPermissionGrantPreApprovalPolicies()([]PermissionG } return nil } -// GetPreferredSingleSignOnMode gets the preferredSingleSignOnMode property value. Specifies the single sign-on mode configured for this application. Microsoft Entra ID uses the preferred single sign-on mode to launch the application from Microsoft 365 or the Microsoft Entra My Apps. The supported values are password, saml, notSupported, and oidc. +// GetPreferredSingleSignOnMode gets the preferredSingleSignOnMode property value. Specifies the single sign-on mode configured for this application. Microsoft Entra ID uses the preferred single sign-on mode to launch the application from Microsoft 365 or the Microsoft Entra My Apps. The supported values are password, saml, notSupported, and oidc. Note: This field might be null for older SAML apps and for OIDC applications where it isn't set automatically. // returns a *string when successful func (m *ServicePrincipal) GetPreferredSingleSignOnMode()(*string) { val, err := m.GetBackingStore().Get("preferredSingleSignOnMode") @@ -2275,7 +2275,7 @@ func (m *ServicePrincipal) SetPermissionGrantPreApprovalPolicies(value []Permiss panic(err) } } -// SetPreferredSingleSignOnMode sets the preferredSingleSignOnMode property value. Specifies the single sign-on mode configured for this application. Microsoft Entra ID uses the preferred single sign-on mode to launch the application from Microsoft 365 or the Microsoft Entra My Apps. The supported values are password, saml, notSupported, and oidc. +// SetPreferredSingleSignOnMode sets the preferredSingleSignOnMode property value. Specifies the single sign-on mode configured for this application. Microsoft Entra ID uses the preferred single sign-on mode to launch the application from Microsoft 365 or the Microsoft Entra My Apps. The supported values are password, saml, notSupported, and oidc. Note: This field might be null for older SAML apps and for OIDC applications where it isn't set automatically. func (m *ServicePrincipal) SetPreferredSingleSignOnMode(value *string)() { err := m.GetBackingStore().Set("preferredSingleSignOnMode", value) if err != nil { diff --git a/models/service_principal_sign_in_activity.go b/models/service_principal_sign_in_activity.go index 188e0262e21..b05ad3a0571 100644 --- a/models/service_principal_sign_in_activity.go +++ b/models/service_principal_sign_in_activity.go @@ -19,7 +19,7 @@ func NewServicePrincipalSignInActivity()(*ServicePrincipalSignInActivity) { func CreateServicePrincipalSignInActivityFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewServicePrincipalSignInActivity(), nil } -// GetAppId gets the appId property value. The application ID of the resource. +// GetAppId gets the appId property value. The globally unique appId (also called client ID on the Microsoft Entra admin center) of the credentialed resource application. // returns a *string when successful func (m *ServicePrincipalSignInActivity) GetAppId()(*string) { val, err := m.GetBackingStore().Get("appId") @@ -201,7 +201,7 @@ func (m *ServicePrincipalSignInActivity) Serialize(writer i878a80d2330e89d268963 } return nil } -// SetAppId sets the appId property value. The application ID of the resource. +// SetAppId sets the appId property value. The globally unique appId (also called client ID on the Microsoft Entra admin center) of the credentialed resource application. func (m *ServicePrincipalSignInActivity) SetAppId(value *string)() { err := m.GetBackingStore().Set("appId", value) if err != nil { diff --git a/models/service_status.go b/models/service_status.go index 64544e20e92..b6c90355dc8 100644 --- a/models/service_status.go +++ b/models/service_status.go @@ -53,7 +53,7 @@ func (m *ServiceStatus) GetBackupServiceConsumer()(*BackupServiceConsumer) { } return nil } -// GetDisableReason gets the disableReason property value. The reason the service is disabled. The possible values are: none, invalidBillingProfile, userRequested, unknownFutureValue. +// GetDisableReason gets the disableReason property value. The reason the service is disabled. The possible values are: none, controllerServiceAppDeleted, invalidBillingProfile, userRequested, unknownFutureValue. // returns a *DisableReason when successful func (m *ServiceStatus) GetDisableReason()(*DisableReason) { val, err := m.GetBackingStore().Get("disableReason") @@ -302,7 +302,7 @@ func (m *ServiceStatus) SetBackupServiceConsumer(value *BackupServiceConsumer)() panic(err) } } -// SetDisableReason sets the disableReason property value. The reason the service is disabled. The possible values are: none, invalidBillingProfile, userRequested, unknownFutureValue. +// SetDisableReason sets the disableReason property value. The reason the service is disabled. The possible values are: none, controllerServiceAppDeleted, invalidBillingProfile, userRequested, unknownFutureValue. func (m *ServiceStatus) SetDisableReason(value *DisableReason)() { err := m.GetBackingStore().Set("disableReason", value) if err != nil { diff --git a/models/sign_in.go b/models/sign_in.go index 9c22efe98b0..d8cb1355ef4 100644 --- a/models/sign_in.go +++ b/models/sign_in.go @@ -140,7 +140,7 @@ func (m *SignIn) GetAuthenticationMethodsUsed()([]string) { } return nil } -// GetAuthenticationProcessingDetails gets the authenticationProcessingDetails property value. More authentication processing details, such as the agent name for PTA and PHS, or a server or farm name for federated authentication. +// GetAuthenticationProcessingDetails gets the authenticationProcessingDetails property value. More authentication processing details, such as the agent name for PTA and PHS, or a server or farm name for federated authentication. // returns a []KeyValueable when successful func (m *SignIn) GetAuthenticationProcessingDetails()([]KeyValueable) { val, err := m.GetBackingStore().Get("authenticationProcessingDetails") @@ -236,7 +236,7 @@ func (m *SignIn) GetClientCredentialType()(*ClientCredentialType) { } return nil } -// GetConditionalAccessAudiences gets the conditionalAccessAudiences property value. A list that indicates the audience that was evaluated by Conditional Access during a sign-in event. Supports $filter (eq). +// GetConditionalAccessAudiences gets the conditionalAccessAudiences property value. A list that indicates the audience that Conditional Access evaluated during a sign-in event. Supports $filter (eq). // returns a []ConditionalAccessAudienceable when successful func (m *SignIn) GetConditionalAccessAudiences()([]ConditionalAccessAudienceable) { val, err := m.GetBackingStore().Get("conditionalAccessAudiences") @@ -260,7 +260,7 @@ func (m *SignIn) GetConditionalAccessStatus()(*ConditionalAccessStatus) { } return nil } -// GetCorrelationId gets the correlationId property value. The identifier the client sends when sign-in is initiated. This is used for troubleshooting the corresponding sign-in activity when calling for support. Supports $filter (eq). +// GetCorrelationId gets the correlationId property value. The identifier the client sends when sign-in is initiated. This property is used for troubleshooting the corresponding sign-in activity when calling for support. Supports $filter (eq). // returns a *string when successful func (m *SignIn) GetCorrelationId()(*string) { val, err := m.GetBackingStore().Get("correlationId") @@ -1140,7 +1140,7 @@ func (m *SignIn) GetHomeTenantId()(*string) { } return nil } -// GetHomeTenantName gets the homeTenantName property value. For user sign ins, the identifier of the tenant that the user is a member of. Only populated in cases where the home tenant has provided affirmative consent to Microsoft Entra ID to show the tenant content. +// GetHomeTenantName gets the homeTenantName property value. For user sign ins, the identifier of the tenant that the user is a member of. Only populated in cases where the home tenant provides affirmative consent to Microsoft Entra ID to show the tenant content. // returns a *string when successful func (m *SignIn) GetHomeTenantName()(*string) { val, err := m.GetBackingStore().Get("homeTenantName") @@ -2217,7 +2217,7 @@ func (m *SignIn) SetAuthenticationMethodsUsed(value []string)() { panic(err) } } -// SetAuthenticationProcessingDetails sets the authenticationProcessingDetails property value. More authentication processing details, such as the agent name for PTA and PHS, or a server or farm name for federated authentication. +// SetAuthenticationProcessingDetails sets the authenticationProcessingDetails property value. More authentication processing details, such as the agent name for PTA and PHS, or a server or farm name for federated authentication. func (m *SignIn) SetAuthenticationProcessingDetails(value []KeyValueable)() { err := m.GetBackingStore().Set("authenticationProcessingDetails", value) if err != nil { @@ -2273,7 +2273,7 @@ func (m *SignIn) SetClientCredentialType(value *ClientCredentialType)() { panic(err) } } -// SetConditionalAccessAudiences sets the conditionalAccessAudiences property value. A list that indicates the audience that was evaluated by Conditional Access during a sign-in event. Supports $filter (eq). +// SetConditionalAccessAudiences sets the conditionalAccessAudiences property value. A list that indicates the audience that Conditional Access evaluated during a sign-in event. Supports $filter (eq). func (m *SignIn) SetConditionalAccessAudiences(value []ConditionalAccessAudienceable)() { err := m.GetBackingStore().Set("conditionalAccessAudiences", value) if err != nil { @@ -2287,7 +2287,7 @@ func (m *SignIn) SetConditionalAccessStatus(value *ConditionalAccessStatus)() { panic(err) } } -// SetCorrelationId sets the correlationId property value. The identifier the client sends when sign-in is initiated. This is used for troubleshooting the corresponding sign-in activity when calling for support. Supports $filter (eq). +// SetCorrelationId sets the correlationId property value. The identifier the client sends when sign-in is initiated. This property is used for troubleshooting the corresponding sign-in activity when calling for support. Supports $filter (eq). func (m *SignIn) SetCorrelationId(value *string)() { err := m.GetBackingStore().Set("correlationId", value) if err != nil { @@ -2343,7 +2343,7 @@ func (m *SignIn) SetHomeTenantId(value *string)() { panic(err) } } -// SetHomeTenantName sets the homeTenantName property value. For user sign ins, the identifier of the tenant that the user is a member of. Only populated in cases where the home tenant has provided affirmative consent to Microsoft Entra ID to show the tenant content. +// SetHomeTenantName sets the homeTenantName property value. For user sign ins, the identifier of the tenant that the user is a member of. Only populated in cases where the home tenant provides affirmative consent to Microsoft Entra ID to show the tenant content. func (m *SignIn) SetHomeTenantName(value *string)() { err := m.GetBackingStore().Set("homeTenantName", value) if err != nil { diff --git a/models/solutions_root.go b/models/solutions_root.go index a9cb5673e13..318a2dad1b3 100644 --- a/models/solutions_root.go +++ b/models/solutions_root.go @@ -35,6 +35,18 @@ func (m *SolutionsRoot) GetAdditionalData()(map[string]any) { } return val.(map[string]any) } +// GetApproval gets the approval property value. The approval property +// returns a ApprovalSolutionable when successful +func (m *SolutionsRoot) GetApproval()(ApprovalSolutionable) { + val, err := m.GetBackingStore().Get("approval") + if err != nil { + panic(err) + } + if val != nil { + return val.(ApprovalSolutionable) + } + return nil +} // GetBackingStore gets the BackingStore property value. Stores model information. // returns a BackingStore when successful func (m *SolutionsRoot) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { @@ -92,6 +104,16 @@ func (m *SolutionsRoot) GetBusinessScenarios()([]BusinessScenarioable) { // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *SolutionsRoot) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["approval"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateApprovalSolutionFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetApproval(val.(ApprovalSolutionable)) + } + return nil + } res["backupRestore"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(CreateBackupRestoreRootFromDiscriminatorValue) if err != nil { @@ -198,6 +220,12 @@ func (m *SolutionsRoot) GetVirtualEvents()(VirtualEventsRootable) { } // Serialize serializes information the current object func (m *SolutionsRoot) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("approval", m.GetApproval()) + if err != nil { + return err + } + } { err := writer.WriteObjectValue("backupRestore", m.GetBackupRestore()) if err != nil { @@ -267,6 +295,13 @@ func (m *SolutionsRoot) SetAdditionalData(value map[string]any)() { panic(err) } } +// SetApproval sets the approval property value. The approval property +func (m *SolutionsRoot) SetApproval(value ApprovalSolutionable)() { + err := m.GetBackingStore().Set("approval", value) + if err != nil { + panic(err) + } +} // SetBackingStore sets the BackingStore property value. Stores model information. func (m *SolutionsRoot) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value @@ -317,6 +352,7 @@ type SolutionsRootable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetApproval()(ApprovalSolutionable) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetBackupRestore()(BackupRestoreRootable) GetBookingBusinesses()([]BookingBusinessable) @@ -324,6 +360,7 @@ type SolutionsRootable interface { GetBusinessScenarios()([]BusinessScenarioable) GetOdataType()(*string) GetVirtualEvents()(VirtualEventsRootable) + SetApproval(value ApprovalSolutionable)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetBackupRestore(value BackupRestoreRootable)() SetBookingBusinesses(value []BookingBusinessable)() diff --git a/models/teams_app_authorization.go b/models/teams_app_authorization.go index d1f18191d9f..8f122a90352 100644 --- a/models/teams_app_authorization.go +++ b/models/teams_app_authorization.go @@ -40,10 +40,32 @@ func (m *TeamsAppAuthorization) GetAdditionalData()(map[string]any) { func (m *TeamsAppAuthorization) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { return m.backingStore } +// GetClientAppId gets the clientAppId property value. The clientAppId property +// returns a *string when successful +func (m *TeamsAppAuthorization) GetClientAppId()(*string) { + val, err := m.GetBackingStore().Get("clientAppId") + 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 *TeamsAppAuthorization) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["clientAppId"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetClientAppId(val) + } + return nil + } res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -92,6 +114,12 @@ func (m *TeamsAppAuthorization) GetRequiredPermissionSet()(TeamsAppPermissionSet } // Serialize serializes information the current object func (m *TeamsAppAuthorization) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteStringValue("clientAppId", m.GetClientAppId()) + if err != nil { + return err + } + } { err := writer.WriteStringValue("@odata.type", m.GetOdataType()) if err != nil { @@ -123,6 +151,13 @@ func (m *TeamsAppAuthorization) SetAdditionalData(value map[string]any)() { func (m *TeamsAppAuthorization) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } +// SetClientAppId sets the clientAppId property value. The clientAppId property +func (m *TeamsAppAuthorization) SetClientAppId(value *string)() { + err := m.GetBackingStore().Set("clientAppId", value) + if err != nil { + panic(err) + } +} // SetOdataType sets the @odata.type property value. The OdataType property func (m *TeamsAppAuthorization) SetOdataType(value *string)() { err := m.GetBackingStore().Set("odataType", value) @@ -142,9 +177,11 @@ type TeamsAppAuthorizationable interface { ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetClientAppId()(*string) GetOdataType()(*string) GetRequiredPermissionSet()(TeamsAppPermissionSetable) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetClientAppId(value *string)() SetOdataType(value *string)() SetRequiredPermissionSet(value TeamsAppPermissionSetable)() } diff --git a/models/teamwork.go b/models/teamwork.go index d86208afd50..31159c012f9 100644 --- a/models/teamwork.go +++ b/models/teamwork.go @@ -183,7 +183,7 @@ func (m *Teamwork) GetIsTeamsEnabled()(*bool) { } return nil } -// 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. +// 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, Spain, Mexico, 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") @@ -345,7 +345,7 @@ func (m *Teamwork) SetIsTeamsEnabled(value *bool)() { panic(err) } } -// 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. +// 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, Spain, Mexico, 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/user.go b/models/user.go index 74252c0cb9c..f0d07db0e82 100644 --- a/models/user.go +++ b/models/user.go @@ -2736,7 +2736,7 @@ func (m *User) GetInformationProtection()(InformationProtectionable) { } return nil } -// GetInsights gets the insights property value. The insights property +// GetInsights gets the insights property value. Represents relationships between a user and items such as OneDrive for work or school documents, calculated using advanced analytics and machine learning techniques. Read-only. Nullable. // returns a ItemInsightsable when successful func (m *User) GetInsights()(ItemInsightsable) { val, err := m.GetBackingStore().Get("insights") @@ -2784,7 +2784,7 @@ func (m *User) GetIsLicenseReconciliationNeeded()(*bool) { } return nil } -// GetIsManagementRestricted gets the isManagementRestricted property value. true if the user is a member of a restricted management administrative unit, which requires a role scoped to the restricted administrative unit to manage. Default value is false. Read-only. To manage a user who is a member of a restricted administrative unit, the calling app must be assigned the Directory.Write.Restricted permission. For delegated scenarios, the administrators must also be explicitly assigned supported roles at the restricted administrative unit scope. +// GetIsManagementRestricted gets the isManagementRestricted property value. true if the user is a member of a restricted management administrative unit. Default value is false. Read-only. To manage a user who is a member of a restricted management administrative unit, the administrator or calling app must be assigned a Microsoft Entra role at the scope of the restricted management administrative unit. // returns a *bool when successful func (m *User) GetIsManagementRestricted()(*bool) { val, err := m.GetBackingStore().Get("isManagementRestricted") @@ -3660,7 +3660,7 @@ func (m *User) GetSkills()([]string) { } return nil } -// GetSolutions gets the solutions property value. The solutions property +// GetSolutions gets the solutions property value. Represents a user's custom solution entity. Read-Only. Nullable. // returns a UserSolutionRootable when successful func (m *User) GetSolutions()(UserSolutionRootable) { val, err := m.GetBackingStore().Get("solutions") @@ -5561,7 +5561,7 @@ func (m *User) SetInformationProtection(value InformationProtectionable)() { panic(err) } } -// SetInsights sets the insights property value. The insights property +// SetInsights sets the insights property value. Represents relationships between a user and items such as OneDrive for work or school documents, calculated using advanced analytics and machine learning techniques. Read-only. Nullable. func (m *User) SetInsights(value ItemInsightsable)() { err := m.GetBackingStore().Set("insights", value) if err != nil { @@ -5589,7 +5589,7 @@ func (m *User) SetIsLicenseReconciliationNeeded(value *bool)() { panic(err) } } -// SetIsManagementRestricted sets the isManagementRestricted property value. true if the user is a member of a restricted management administrative unit, which requires a role scoped to the restricted administrative unit to manage. Default value is false. Read-only. To manage a user who is a member of a restricted administrative unit, the calling app must be assigned the Directory.Write.Restricted permission. For delegated scenarios, the administrators must also be explicitly assigned supported roles at the restricted administrative unit scope. +// SetIsManagementRestricted sets the isManagementRestricted property value. true if the user is a member of a restricted management administrative unit. Default value is false. Read-only. To manage a user who is a member of a restricted management administrative unit, the administrator or calling app must be assigned a Microsoft Entra role at the scope of the restricted management administrative unit. func (m *User) SetIsManagementRestricted(value *bool)() { err := m.GetBackingStore().Set("isManagementRestricted", value) if err != nil { @@ -6100,7 +6100,7 @@ func (m *User) SetSkills(value []string)() { panic(err) } } -// SetSolutions sets the solutions property value. The solutions property +// SetSolutions sets the solutions property value. Represents a user's custom solution entity. Read-Only. Nullable. func (m *User) SetSolutions(value UserSolutionRootable)() { err := m.GetBackingStore().Set("solutions", value) if err != nil { diff --git a/models/user_insights_settings.go b/models/user_insights_settings.go index 5550c510b2c..ff66007211a 100644 --- a/models/user_insights_settings.go +++ b/models/user_insights_settings.go @@ -35,7 +35,7 @@ func (m *UserInsightsSettings) GetFieldDeserializers()(map[string]func(i878a80d2 } return res } -// GetIsEnabled gets the isEnabled property value. true if user's itemInsights and meeting hours insights are enabled; false if user's itemInsights and meeting hours insights are disabled. Default is true. Optional. +// GetIsEnabled gets the isEnabled property value. True if the user's itemInsights and meeting hours insights are enabled; false if the user's itemInsights and meeting hours insights are disabled. The default value is true. Optional. // returns a *bool when successful func (m *UserInsightsSettings) GetIsEnabled()(*bool) { val, err := m.GetBackingStore().Get("isEnabled") @@ -61,7 +61,7 @@ func (m *UserInsightsSettings) Serialize(writer i878a80d2330e89d26896388a3f487ee } return nil } -// SetIsEnabled sets the isEnabled property value. true if user's itemInsights and meeting hours insights are enabled; false if user's itemInsights and meeting hours insights are disabled. Default is true. Optional. +// SetIsEnabled sets the isEnabled property value. True if the user's itemInsights and meeting hours insights are enabled; false if the user's itemInsights and meeting hours insights are disabled. The default value is true. Optional. func (m *UserInsightsSettings) SetIsEnabled(value *bool)() { err := m.GetBackingStore().Set("isEnabled", value) if err != nil { diff --git a/models/user_simulation_event_info.go b/models/user_simulation_event_info.go index 83ec01dcb66..312294d4c2f 100644 --- a/models/user_simulation_event_info.go +++ b/models/user_simulation_event_info.go @@ -53,6 +53,18 @@ func (m *UserSimulationEventInfo) GetBrowser()(*string) { } return nil } +// GetClickSource gets the clickSource property value. The clickSource property +// returns a *ClickSource when successful +func (m *UserSimulationEventInfo) GetClickSource()(*ClickSource) { + val, err := m.GetBackingStore().Get("clickSource") + if err != nil { + panic(err) + } + if val != nil { + return val.(*ClickSource) + } + return nil +} // GetEventDateTime gets the eventDateTime property value. Date and time of the simulation event by a user in an attack simulation and training campaign. // returns a *Time when successful func (m *UserSimulationEventInfo) GetEventDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) { @@ -91,6 +103,16 @@ func (m *UserSimulationEventInfo) GetFieldDeserializers()(map[string]func(i878a8 } return nil } + res["clickSource"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseClickSource) + if err != nil { + return err + } + if val != nil { + m.SetClickSource(val.(*ClickSource)) + } + return nil + } res["eventDateTime"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetTimeValue() if err != nil { @@ -187,6 +209,13 @@ func (m *UserSimulationEventInfo) Serialize(writer i878a80d2330e89d26896388a3f48 return err } } + if m.GetClickSource() != nil { + cast := (*m.GetClickSource()).String() + err := writer.WriteStringValue("clickSource", &cast) + if err != nil { + return err + } + } { err := writer.WriteTimeValue("eventDateTime", m.GetEventDateTime()) if err != nil { @@ -243,6 +272,13 @@ func (m *UserSimulationEventInfo) SetBrowser(value *string)() { panic(err) } } +// SetClickSource sets the clickSource property value. The clickSource property +func (m *UserSimulationEventInfo) SetClickSource(value *ClickSource)() { + err := m.GetBackingStore().Set("clickSource", value) + if err != nil { + panic(err) + } +} // SetEventDateTime sets the eventDateTime property value. Date and time of the simulation event by a user in an attack simulation and training campaign. func (m *UserSimulationEventInfo) SetEventDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() { err := m.GetBackingStore().Set("eventDateTime", value) @@ -284,6 +320,7 @@ type UserSimulationEventInfoable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetBrowser()(*string) + GetClickSource()(*ClickSource) GetEventDateTime()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetEventName()(*string) GetIpAddress()(*string) @@ -291,6 +328,7 @@ type UserSimulationEventInfoable interface { GetOsPlatformDeviceDetails()(*string) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetBrowser(value *string)() + SetClickSource(value *ClickSource)() SetEventDateTime(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)() SetEventName(value *string)() SetIpAddress(value *string)() diff --git a/models/user_solution_root.go b/models/user_solution_root.go index e61b9d2de62..af59100f7ec 100644 --- a/models/user_solution_root.go +++ b/models/user_solution_root.go @@ -35,7 +35,7 @@ func (m *UserSolutionRoot) GetFieldDeserializers()(map[string]func(i878a80d2330e } return res } -// GetWorkingTimeSchedule gets the workingTimeSchedule property value. The workingTimeSchedule property +// GetWorkingTimeSchedule gets the workingTimeSchedule property value. The working time schedule entity associated with the solution. // returns a WorkingTimeScheduleable when successful func (m *UserSolutionRoot) GetWorkingTimeSchedule()(WorkingTimeScheduleable) { val, err := m.GetBackingStore().Get("workingTimeSchedule") @@ -61,7 +61,7 @@ func (m *UserSolutionRoot) Serialize(writer i878a80d2330e89d26896388a3f487eef27b } return nil } -// SetWorkingTimeSchedule sets the workingTimeSchedule property value. The workingTimeSchedule property +// SetWorkingTimeSchedule sets the workingTimeSchedule property value. The working time schedule entity associated with the solution. func (m *UserSolutionRoot) SetWorkingTimeSchedule(value WorkingTimeScheduleable)() { err := m.GetBackingStore().Set("workingTimeSchedule", value) if err != nil { diff --git a/models/user_teamwork.go b/models/user_teamwork.go index 42a4fe569bd..b6763dfe162 100644 --- a/models/user_teamwork.go +++ b/models/user_teamwork.go @@ -113,7 +113,7 @@ func (m *UserTeamwork) GetLocale()(*string) { } return nil } -// 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. +// 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, Spain, Mexico, 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") @@ -190,7 +190,7 @@ func (m *UserTeamwork) SetLocale(value *string)() { panic(err) } } -// 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. +// 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, Spain, Mexico, 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/ux_setting.go b/models/ux_setting.go new file mode 100644 index 00000000000..c3564a2cf0d --- /dev/null +++ b/models/ux_setting.go @@ -0,0 +1,77 @@ +package models + +import ( + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" +) + +type UxSetting struct { + Entity +} +// NewUxSetting instantiates a new UxSetting and sets the default values. +func NewUxSetting()(*UxSetting) { + m := &UxSetting{ + Entity: *NewEntity(), + } + return m +} +// CreateUxSettingFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateUxSettingFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewUxSetting(), nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *UxSetting) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := m.Entity.GetFieldDeserializers() + res["restrictNonAdminAccess"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseNonAdminSetting) + if err != nil { + return err + } + if val != nil { + m.SetRestrictNonAdminAccess(val.(*NonAdminSetting)) + } + return nil + } + return res +} +// GetRestrictNonAdminAccess gets the restrictNonAdminAccess property value. The restrictNonAdminAccess property +// returns a *NonAdminSetting when successful +func (m *UxSetting) GetRestrictNonAdminAccess()(*NonAdminSetting) { + val, err := m.GetBackingStore().Get("restrictNonAdminAccess") + if err != nil { + panic(err) + } + if val != nil { + return val.(*NonAdminSetting) + } + return nil +} +// Serialize serializes information the current object +func (m *UxSetting) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + err := m.Entity.Serialize(writer) + if err != nil { + return err + } + if m.GetRestrictNonAdminAccess() != nil { + cast := (*m.GetRestrictNonAdminAccess()).String() + err = writer.WriteStringValue("restrictNonAdminAccess", &cast) + if err != nil { + return err + } + } + return nil +} +// SetRestrictNonAdminAccess sets the restrictNonAdminAccess property value. The restrictNonAdminAccess property +func (m *UxSetting) SetRestrictNonAdminAccess(value *NonAdminSetting)() { + err := m.GetBackingStore().Set("restrictNonAdminAccess", value) + if err != nil { + panic(err) + } +} +type UxSettingable interface { + Entityable + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetRestrictNonAdminAccess()(*NonAdminSetting) + SetRestrictNonAdminAccess(value *NonAdminSetting)() +} diff --git a/models/windows_app_x_app_assignment_settings.go b/models/windows_app_x_app_assignment_settings.go index 1d7b26dfe27..9f8c4a96285 100644 --- a/models/windows_app_x_app_assignment_settings.go +++ b/models/windows_app_x_app_assignment_settings.go @@ -38,7 +38,7 @@ func (m *WindowsAppXAppAssignmentSettings) GetFieldDeserializers()(map[string]fu } return res } -// GetUseDeviceContext gets the useDeviceContext property value. Whether or not to use device execution context for Windows AppX mobile app. +// GetUseDeviceContext gets the useDeviceContext property value. When TRUE, indicates that device execution context will be used for the AppX mobile app. When FALSE, indicates that user context will be used for the AppX mobile app. By default, this property is set to FALSE. Once this property has been set to TRUE it cannot be changed. // returns a *bool when successful func (m *WindowsAppXAppAssignmentSettings) GetUseDeviceContext()(*bool) { val, err := m.GetBackingStore().Get("useDeviceContext") @@ -64,7 +64,7 @@ func (m *WindowsAppXAppAssignmentSettings) Serialize(writer i878a80d2330e89d2689 } return nil } -// SetUseDeviceContext sets the useDeviceContext property value. Whether or not to use device execution context for Windows AppX mobile app. +// SetUseDeviceContext sets the useDeviceContext property value. When TRUE, indicates that device execution context will be used for the AppX mobile app. When FALSE, indicates that user context will be used for the AppX mobile app. By default, this property is set to FALSE. Once this property has been set to TRUE it cannot be changed. func (m *WindowsAppXAppAssignmentSettings) SetUseDeviceContext(value *bool)() { err := m.GetBackingStore().Set("useDeviceContext", value) if err != nil { diff --git a/models/windows_universal_app_x_app_assignment_settings.go b/models/windows_universal_app_x_app_assignment_settings.go index 98044527a48..fc347495bb4 100644 --- a/models/windows_universal_app_x_app_assignment_settings.go +++ b/models/windows_universal_app_x_app_assignment_settings.go @@ -38,7 +38,7 @@ func (m *WindowsUniversalAppXAppAssignmentSettings) GetFieldDeserializers()(map[ } return res } -// GetUseDeviceContext gets the useDeviceContext property value. If true, uses device execution context for Windows Universal AppX mobile app. Device-context install is not allowed when this type of app is targeted with Available intent. Defaults to false. +// GetUseDeviceContext gets the useDeviceContext property value. Whether or not to use device execution context for Windows Universal AppX mobile app. // returns a *bool when successful func (m *WindowsUniversalAppXAppAssignmentSettings) GetUseDeviceContext()(*bool) { val, err := m.GetBackingStore().Get("useDeviceContext") @@ -64,7 +64,7 @@ func (m *WindowsUniversalAppXAppAssignmentSettings) Serialize(writer i878a80d233 } return nil } -// SetUseDeviceContext sets the useDeviceContext property value. If true, uses device execution context for Windows Universal AppX mobile app. Device-context install is not allowed when this type of app is targeted with Available intent. Defaults to false. +// SetUseDeviceContext sets the useDeviceContext property value. Whether or not to use device execution context for Windows Universal AppX mobile app. func (m *WindowsUniversalAppXAppAssignmentSettings) SetUseDeviceContext(value *bool)() { err := m.GetBackingStore().Set("useDeviceContext", value) if err != nil { diff --git a/models/workbook_chart_axis_title.go b/models/workbook_chart_axis_title.go index 0b97159753d..c0a288b9d35 100644 --- a/models/workbook_chart_axis_title.go +++ b/models/workbook_chart_axis_title.go @@ -79,7 +79,7 @@ func (m *WorkbookChartAxisTitle) GetText()(*string) { } return nil } -// GetVisible gets the visible property value. A boolean that specifies the visibility of an axis title. +// GetVisible gets the visible property value. A Boolean that specifies the visibility of an axis title. // returns a *bool when successful func (m *WorkbookChartAxisTitle) GetVisible()(*bool) { val, err := m.GetBackingStore().Get("visible") @@ -131,7 +131,7 @@ func (m *WorkbookChartAxisTitle) SetText(value *string)() { panic(err) } } -// SetVisible sets the visible property value. A boolean that specifies the visibility of an axis title. +// SetVisible sets the visible property value. A Boolean that specifies the visibility of an axis title. func (m *WorkbookChartAxisTitle) SetVisible(value *bool)() { err := m.GetBackingStore().Set("visible", value) if err != nil { diff --git a/models/workbook_chart_data_labels.go b/models/workbook_chart_data_labels.go index f8c9d56e33c..9d251053fee 100644 --- a/models/workbook_chart_data_labels.go +++ b/models/workbook_chart_data_labels.go @@ -139,7 +139,7 @@ func (m *WorkbookChartDataLabels) GetPosition()(*string) { } return nil } -// GetSeparator gets the separator property value. String representing the separator used for the data labels on a chart. +// GetSeparator gets the separator property value. String that represents the separator used for the data labels on a chart. // returns a *string when successful func (m *WorkbookChartDataLabels) GetSeparator()(*string) { val, err := m.GetBackingStore().Get("separator") @@ -151,7 +151,7 @@ func (m *WorkbookChartDataLabels) GetSeparator()(*string) { } return nil } -// GetShowBubbleSize gets the showBubbleSize property value. Boolean value representing if the data label bubble size is visible or not. +// GetShowBubbleSize gets the showBubbleSize property value. Boolean value that represents whether the data label bubble size is visible. // returns a *bool when successful func (m *WorkbookChartDataLabels) GetShowBubbleSize()(*bool) { val, err := m.GetBackingStore().Get("showBubbleSize") @@ -163,7 +163,7 @@ func (m *WorkbookChartDataLabels) GetShowBubbleSize()(*bool) { } return nil } -// GetShowCategoryName gets the showCategoryName property value. Boolean value representing if the data label category name is visible or not. +// GetShowCategoryName gets the showCategoryName property value. Boolean value that represents whether the data label category name is visible. // returns a *bool when successful func (m *WorkbookChartDataLabels) GetShowCategoryName()(*bool) { val, err := m.GetBackingStore().Get("showCategoryName") @@ -175,7 +175,7 @@ func (m *WorkbookChartDataLabels) GetShowCategoryName()(*bool) { } return nil } -// GetShowLegendKey gets the showLegendKey property value. Boolean value representing if the data label legend key is visible or not. +// GetShowLegendKey gets the showLegendKey property value. Boolean value that represents whether the data label legend key is visible. // returns a *bool when successful func (m *WorkbookChartDataLabels) GetShowLegendKey()(*bool) { val, err := m.GetBackingStore().Get("showLegendKey") @@ -187,7 +187,7 @@ func (m *WorkbookChartDataLabels) GetShowLegendKey()(*bool) { } return nil } -// GetShowPercentage gets the showPercentage property value. Boolean value representing if the data label percentage is visible or not. +// GetShowPercentage gets the showPercentage property value. Boolean value that represents whether the data label percentage is visible. // returns a *bool when successful func (m *WorkbookChartDataLabels) GetShowPercentage()(*bool) { val, err := m.GetBackingStore().Get("showPercentage") @@ -199,7 +199,7 @@ func (m *WorkbookChartDataLabels) GetShowPercentage()(*bool) { } return nil } -// GetShowSeriesName gets the showSeriesName property value. Boolean value representing if the data label series name is visible or not. +// GetShowSeriesName gets the showSeriesName property value. Boolean value that represents whether the data label series name is visible. // returns a *bool when successful func (m *WorkbookChartDataLabels) GetShowSeriesName()(*bool) { val, err := m.GetBackingStore().Get("showSeriesName") @@ -211,7 +211,7 @@ func (m *WorkbookChartDataLabels) GetShowSeriesName()(*bool) { } return nil } -// GetShowValue gets the showValue property value. Boolean value representing if the data label value is visible or not. +// GetShowValue gets the showValue property value. Boolean value that represents whether the data label value is visible. // returns a *bool when successful func (m *WorkbookChartDataLabels) GetShowValue()(*bool) { val, err := m.GetBackingStore().Get("showValue") @@ -299,49 +299,49 @@ func (m *WorkbookChartDataLabels) SetPosition(value *string)() { panic(err) } } -// SetSeparator sets the separator property value. String representing the separator used for the data labels on a chart. +// SetSeparator sets the separator property value. String that represents the separator used for the data labels on a chart. func (m *WorkbookChartDataLabels) SetSeparator(value *string)() { err := m.GetBackingStore().Set("separator", value) if err != nil { panic(err) } } -// SetShowBubbleSize sets the showBubbleSize property value. Boolean value representing if the data label bubble size is visible or not. +// SetShowBubbleSize sets the showBubbleSize property value. Boolean value that represents whether the data label bubble size is visible. func (m *WorkbookChartDataLabels) SetShowBubbleSize(value *bool)() { err := m.GetBackingStore().Set("showBubbleSize", value) if err != nil { panic(err) } } -// SetShowCategoryName sets the showCategoryName property value. Boolean value representing if the data label category name is visible or not. +// SetShowCategoryName sets the showCategoryName property value. Boolean value that represents whether the data label category name is visible. func (m *WorkbookChartDataLabels) SetShowCategoryName(value *bool)() { err := m.GetBackingStore().Set("showCategoryName", value) if err != nil { panic(err) } } -// SetShowLegendKey sets the showLegendKey property value. Boolean value representing if the data label legend key is visible or not. +// SetShowLegendKey sets the showLegendKey property value. Boolean value that represents whether the data label legend key is visible. func (m *WorkbookChartDataLabels) SetShowLegendKey(value *bool)() { err := m.GetBackingStore().Set("showLegendKey", value) if err != nil { panic(err) } } -// SetShowPercentage sets the showPercentage property value. Boolean value representing if the data label percentage is visible or not. +// SetShowPercentage sets the showPercentage property value. Boolean value that represents whether the data label percentage is visible. func (m *WorkbookChartDataLabels) SetShowPercentage(value *bool)() { err := m.GetBackingStore().Set("showPercentage", value) if err != nil { panic(err) } } -// SetShowSeriesName sets the showSeriesName property value. Boolean value representing if the data label series name is visible or not. +// SetShowSeriesName sets the showSeriesName property value. Boolean value that represents whether the data label series name is visible. func (m *WorkbookChartDataLabels) SetShowSeriesName(value *bool)() { err := m.GetBackingStore().Set("showSeriesName", value) if err != nil { panic(err) } } -// SetShowValue sets the showValue property value. Boolean value representing if the data label value is visible or not. +// SetShowValue sets the showValue property value. Boolean value that represents whether the data label value is visible. func (m *WorkbookChartDataLabels) SetShowValue(value *bool)() { err := m.GetBackingStore().Set("showValue", value) if err != nil { diff --git a/models/workbook_chart_font.go b/models/workbook_chart_font.go index 365e049c19b..1b26c51eef9 100644 --- a/models/workbook_chart_font.go +++ b/models/workbook_chart_font.go @@ -19,7 +19,7 @@ func NewWorkbookChartFont()(*WorkbookChartFont) { func CreateWorkbookChartFontFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewWorkbookChartFont(), nil } -// GetBold gets the bold property value. Represents the bold status of font. +// GetBold gets the bold property value. Indicates whether the fond is bold. // returns a *bool when successful func (m *WorkbookChartFont) GetBold()(*bool) { val, err := m.GetBackingStore().Get("bold") @@ -31,7 +31,7 @@ func (m *WorkbookChartFont) GetBold()(*bool) { } return nil } -// GetColor gets the color property value. HTML color code representation of the text color. for example #FF0000 represents Red. +// GetColor gets the color property value. The HTML color code representation of the text color. For example #FF0000 represents Red. // returns a *string when successful func (m *WorkbookChartFont) GetColor()(*string) { val, err := m.GetBackingStore().Get("color") @@ -109,7 +109,7 @@ func (m *WorkbookChartFont) GetFieldDeserializers()(map[string]func(i878a80d2330 } return res } -// GetItalic gets the italic property value. Represents the italic status of the font. +// GetItalic gets the italic property value. Indicates whether the fond is italic. // returns a *bool when successful func (m *WorkbookChartFont) GetItalic()(*bool) { val, err := m.GetBackingStore().Get("italic") @@ -121,7 +121,7 @@ func (m *WorkbookChartFont) GetItalic()(*bool) { } return nil } -// GetName gets the name property value. Font name (for example 'Calibri') +// GetName gets the name property value. The font name. For example 'Calibri'. // returns a *string when successful func (m *WorkbookChartFont) GetName()(*string) { val, err := m.GetBackingStore().Get("name") @@ -133,7 +133,7 @@ func (m *WorkbookChartFont) GetName()(*string) { } return nil } -// GetSize gets the size property value. Size of the font (for example 11) +// GetSize gets the size property value. The size of the font. For example, 11. // returns a *float64 when successful func (m *WorkbookChartFont) GetSize()(*float64) { val, err := m.GetBackingStore().Get("size") @@ -145,7 +145,7 @@ func (m *WorkbookChartFont) GetSize()(*float64) { } return nil } -// GetUnderline gets the underline property value. Type of underline applied to the font. The possible values are: None, Single. +// GetUnderline gets the underline property value. The type of underlining applied to the font. The possible values are: None, Single. // returns a *string when successful func (m *WorkbookChartFont) GetUnderline()(*string) { val, err := m.GetBackingStore().Get("underline") @@ -201,42 +201,42 @@ func (m *WorkbookChartFont) Serialize(writer i878a80d2330e89d26896388a3f487eef27 } return nil } -// SetBold sets the bold property value. Represents the bold status of font. +// SetBold sets the bold property value. Indicates whether the fond is bold. func (m *WorkbookChartFont) SetBold(value *bool)() { err := m.GetBackingStore().Set("bold", value) if err != nil { panic(err) } } -// SetColor sets the color property value. HTML color code representation of the text color. for example #FF0000 represents Red. +// SetColor sets the color property value. The HTML color code representation of the text color. For example #FF0000 represents Red. func (m *WorkbookChartFont) SetColor(value *string)() { err := m.GetBackingStore().Set("color", value) if err != nil { panic(err) } } -// SetItalic sets the italic property value. Represents the italic status of the font. +// SetItalic sets the italic property value. Indicates whether the fond is italic. func (m *WorkbookChartFont) SetItalic(value *bool)() { err := m.GetBackingStore().Set("italic", value) if err != nil { panic(err) } } -// SetName sets the name property value. Font name (for example 'Calibri') +// SetName sets the name property value. The font name. For example 'Calibri'. func (m *WorkbookChartFont) SetName(value *string)() { err := m.GetBackingStore().Set("name", value) if err != nil { panic(err) } } -// SetSize sets the size property value. Size of the font (for example 11) +// SetSize sets the size property value. The size of the font. For example, 11. func (m *WorkbookChartFont) SetSize(value *float64)() { err := m.GetBackingStore().Set("size", value) if err != nil { panic(err) } } -// SetUnderline sets the underline property value. Type of underline applied to the font. The possible values are: None, Single. +// SetUnderline sets the underline property value. The type of underlining applied to the font. The possible values are: None, Single. func (m *WorkbookChartFont) SetUnderline(value *string)() { err := m.GetBackingStore().Set("underline", value) if err != nil { diff --git a/models/workbook_chart_gridlines.go b/models/workbook_chart_gridlines.go index a31005f17ee..3499d7b691e 100644 --- a/models/workbook_chart_gridlines.go +++ b/models/workbook_chart_gridlines.go @@ -57,7 +57,7 @@ func (m *WorkbookChartGridlines) GetFormat()(WorkbookChartGridlinesFormatable) { } return nil } -// GetVisible gets the visible property value. Boolean value representing if the axis gridlines are visible or not. +// GetVisible gets the visible property value. Indicates whether the axis gridlines are visible. // returns a *bool when successful func (m *WorkbookChartGridlines) GetVisible()(*bool) { val, err := m.GetBackingStore().Get("visible") @@ -96,7 +96,7 @@ func (m *WorkbookChartGridlines) SetFormat(value WorkbookChartGridlinesFormatabl panic(err) } } -// SetVisible sets the visible property value. Boolean value representing if the axis gridlines are visible or not. +// SetVisible sets the visible property value. Indicates whether the axis gridlines are visible. func (m *WorkbookChartGridlines) SetVisible(value *bool)() { err := m.GetBackingStore().Set("visible", value) if err != nil { diff --git a/models/workbook_chart_legend.go b/models/workbook_chart_legend.go index 60cf5f879df..fac328e35b8 100644 --- a/models/workbook_chart_legend.go +++ b/models/workbook_chart_legend.go @@ -77,7 +77,7 @@ func (m *WorkbookChartLegend) GetFormat()(WorkbookChartLegendFormatable) { } return nil } -// GetOverlay gets the overlay property value. Boolean value for whether the chart legend should overlap with the main body of the chart. +// GetOverlay gets the overlay property value. Indicates whether the chart legend should overlap with the main body of the chart. // returns a *bool when successful func (m *WorkbookChartLegend) GetOverlay()(*bool) { val, err := m.GetBackingStore().Get("overlay") @@ -101,7 +101,7 @@ func (m *WorkbookChartLegend) GetPosition()(*string) { } return nil } -// GetVisible gets the visible property value. A boolean value the represents the visibility of a ChartLegend object. +// GetVisible gets the visible property value. Indicates whether the chart legend is visible. // returns a *bool when successful func (m *WorkbookChartLegend) GetVisible()(*bool) { val, err := m.GetBackingStore().Get("visible") @@ -152,7 +152,7 @@ func (m *WorkbookChartLegend) SetFormat(value WorkbookChartLegendFormatable)() { panic(err) } } -// SetOverlay sets the overlay property value. Boolean value for whether the chart legend should overlap with the main body of the chart. +// SetOverlay sets the overlay property value. Indicates whether the chart legend should overlap with the main body of the chart. func (m *WorkbookChartLegend) SetOverlay(value *bool)() { err := m.GetBackingStore().Set("overlay", value) if err != nil { @@ -166,7 +166,7 @@ func (m *WorkbookChartLegend) SetPosition(value *string)() { panic(err) } } -// SetVisible sets the visible property value. A boolean value the represents the visibility of a ChartLegend object. +// SetVisible sets the visible property value. Indicates whether the chart legend is visible. func (m *WorkbookChartLegend) SetVisible(value *bool)() { err := m.GetBackingStore().Set("visible", value) if err != nil { diff --git a/models/workbook_chart_line_format.go b/models/workbook_chart_line_format.go index 587d40e54e7..30379c5a4d8 100644 --- a/models/workbook_chart_line_format.go +++ b/models/workbook_chart_line_format.go @@ -19,7 +19,7 @@ func NewWorkbookChartLineFormat()(*WorkbookChartLineFormat) { func CreateWorkbookChartLineFormatFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewWorkbookChartLineFormat(), nil } -// GetColor gets the color property value. HTML color code representing the color of lines in the chart. +// GetColor gets the color property value. The HTML color code that represents the color of lines in the chart. // returns a *string when successful func (m *WorkbookChartLineFormat) GetColor()(*string) { val, err := m.GetBackingStore().Get("color") @@ -61,7 +61,7 @@ func (m *WorkbookChartLineFormat) Serialize(writer i878a80d2330e89d26896388a3f48 } return nil } -// SetColor sets the color property value. HTML color code representing the color of lines in the chart. +// SetColor sets the color property value. The HTML color code that represents the color of lines in the chart. func (m *WorkbookChartLineFormat) SetColor(value *string)() { err := m.GetBackingStore().Set("color", value) if err != nil { diff --git a/models/workbook_chart_point.go b/models/workbook_chart_point.go index 982bc34b0e6..34d010895b5 100644 --- a/models/workbook_chart_point.go +++ b/models/workbook_chart_point.go @@ -45,7 +45,7 @@ func (m *WorkbookChartPoint) GetFieldDeserializers()(map[string]func(i878a80d233 } return res } -// GetFormat gets the format property value. Encapsulates the format properties chart point. Read-only. +// GetFormat gets the format property value. The format properties of the chart point. Read-only. // returns a WorkbookChartPointFormatable when successful func (m *WorkbookChartPoint) GetFormat()(WorkbookChartPointFormatable) { val, err := m.GetBackingStore().Get("format") @@ -57,7 +57,7 @@ func (m *WorkbookChartPoint) GetFormat()(WorkbookChartPointFormatable) { } return nil } -// GetValue gets the value property value. Returns the value of a chart point. Read-only. +// GetValue gets the value property value. The value of a chart point. Read-only. // returns a UntypedNodeable when successful func (m *WorkbookChartPoint) GetValue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { val, err := m.GetBackingStore().Get("value") @@ -89,14 +89,14 @@ func (m *WorkbookChartPoint) Serialize(writer i878a80d2330e89d26896388a3f487eef2 } return nil } -// SetFormat sets the format property value. Encapsulates the format properties chart point. Read-only. +// SetFormat sets the format property value. The format properties of the chart point. Read-only. func (m *WorkbookChartPoint) SetFormat(value WorkbookChartPointFormatable)() { err := m.GetBackingStore().Set("format", value) if err != nil { panic(err) } } -// SetValue sets the value property value. Returns the value of a chart point. Read-only. +// SetValue sets the value property value. The value of a chart point. Read-only. func (m *WorkbookChartPoint) SetValue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { err := m.GetBackingStore().Set("value", value) if err != nil { diff --git a/models/workbook_chart_series.go b/models/workbook_chart_series.go index f4582c55c02..28ef5982829 100644 --- a/models/workbook_chart_series.go +++ b/models/workbook_chart_series.go @@ -61,7 +61,7 @@ func (m *WorkbookChartSeries) GetFieldDeserializers()(map[string]func(i878a80d23 } return res } -// GetFormat gets the format property value. Represents the formatting of a chart series, which includes fill and line formatting. Read-only. +// GetFormat gets the format property value. The formatting of a chart series, which includes fill and line formatting. Read-only. // returns a WorkbookChartSeriesFormatable when successful func (m *WorkbookChartSeries) GetFormat()(WorkbookChartSeriesFormatable) { val, err := m.GetBackingStore().Get("format") @@ -73,7 +73,7 @@ func (m *WorkbookChartSeries) GetFormat()(WorkbookChartSeriesFormatable) { } return nil } -// GetName gets the name property value. Represents the name of a series in a chart. +// GetName gets the name property value. The name of a series in a chart. // returns a *string when successful func (m *WorkbookChartSeries) GetName()(*string) { val, err := m.GetBackingStore().Get("name") @@ -85,7 +85,7 @@ func (m *WorkbookChartSeries) GetName()(*string) { } return nil } -// GetPoints gets the points property value. Represents a collection of all points in the series. Read-only. +// GetPoints gets the points property value. A collection of all points in the series. Read-only. // returns a []WorkbookChartPointable when successful func (m *WorkbookChartSeries) GetPoints()([]WorkbookChartPointable) { val, err := m.GetBackingStore().Get("points") @@ -129,21 +129,21 @@ func (m *WorkbookChartSeries) Serialize(writer i878a80d2330e89d26896388a3f487eef } return nil } -// SetFormat sets the format property value. Represents the formatting of a chart series, which includes fill and line formatting. Read-only. +// SetFormat sets the format property value. The formatting of a chart series, which includes fill and line formatting. Read-only. func (m *WorkbookChartSeries) SetFormat(value WorkbookChartSeriesFormatable)() { err := m.GetBackingStore().Set("format", value) if err != nil { panic(err) } } -// SetName sets the name property value. Represents the name of a series in a chart. +// SetName sets the name property value. The name of a series in a chart. func (m *WorkbookChartSeries) SetName(value *string)() { err := m.GetBackingStore().Set("name", value) if err != nil { panic(err) } } -// SetPoints sets the points property value. Represents a collection of all points in the series. Read-only. +// SetPoints sets the points property value. A collection of all points in the series. Read-only. func (m *WorkbookChartSeries) SetPoints(value []WorkbookChartPointable)() { err := m.GetBackingStore().Set("points", value) if err != nil { diff --git a/models/workbook_chart_title.go b/models/workbook_chart_title.go index 329ddf03ad4..a3d39d81cb7 100644 --- a/models/workbook_chart_title.go +++ b/models/workbook_chart_title.go @@ -65,7 +65,7 @@ func (m *WorkbookChartTitle) GetFieldDeserializers()(map[string]func(i878a80d233 } return res } -// GetFormat gets the format property value. Represents the formatting of a chart title, which includes fill and font formatting. Read-only. +// GetFormat gets the format property value. The formatting of a chart title, which includes fill and font formatting. Read-only. // returns a WorkbookChartTitleFormatable when successful func (m *WorkbookChartTitle) GetFormat()(WorkbookChartTitleFormatable) { val, err := m.GetBackingStore().Get("format") @@ -77,7 +77,7 @@ func (m *WorkbookChartTitle) GetFormat()(WorkbookChartTitleFormatable) { } return nil } -// GetOverlay gets the overlay property value. Boolean value representing if the chart title will overlay the chart or not. +// GetOverlay gets the overlay property value. Indicates whether the chart title will overlay the chart or not. // returns a *bool when successful func (m *WorkbookChartTitle) GetOverlay()(*bool) { val, err := m.GetBackingStore().Get("overlay") @@ -89,7 +89,7 @@ func (m *WorkbookChartTitle) GetOverlay()(*bool) { } return nil } -// GetText gets the text property value. Represents the title text of a chart. +// GetText gets the text property value. The title text of the chart. // returns a *string when successful func (m *WorkbookChartTitle) GetText()(*string) { val, err := m.GetBackingStore().Get("text") @@ -101,7 +101,7 @@ func (m *WorkbookChartTitle) GetText()(*string) { } return nil } -// GetVisible gets the visible property value. A boolean value that represents the visibility of a chart title object. +// GetVisible gets the visible property value. Indicates whether the chart title is visible. // returns a *bool when successful func (m *WorkbookChartTitle) GetVisible()(*bool) { val, err := m.GetBackingStore().Get("visible") @@ -145,28 +145,28 @@ func (m *WorkbookChartTitle) Serialize(writer i878a80d2330e89d26896388a3f487eef2 } return nil } -// SetFormat sets the format property value. Represents the formatting of a chart title, which includes fill and font formatting. Read-only. +// SetFormat sets the format property value. The formatting of a chart title, which includes fill and font formatting. Read-only. func (m *WorkbookChartTitle) SetFormat(value WorkbookChartTitleFormatable)() { err := m.GetBackingStore().Set("format", value) if err != nil { panic(err) } } -// SetOverlay sets the overlay property value. Boolean value representing if the chart title will overlay the chart or not. +// SetOverlay sets the overlay property value. Indicates whether the chart title will overlay the chart or not. func (m *WorkbookChartTitle) SetOverlay(value *bool)() { err := m.GetBackingStore().Set("overlay", value) if err != nil { panic(err) } } -// SetText sets the text property value. Represents the title text of a chart. +// SetText sets the text property value. The title text of the chart. func (m *WorkbookChartTitle) SetText(value *string)() { err := m.GetBackingStore().Set("text", value) if err != nil { panic(err) } } -// SetVisible sets the visible property value. A boolean value that represents the visibility of a chart title object. +// SetVisible sets the visible property value. Indicates whether the chart title is visible. func (m *WorkbookChartTitle) SetVisible(value *bool)() { err := m.GetBackingStore().Set("visible", value) if err != nil { diff --git a/models/workbook_comment.go b/models/workbook_comment.go index b5b40efb52d..492047b9028 100644 --- a/models/workbook_comment.go +++ b/models/workbook_comment.go @@ -31,7 +31,7 @@ func (m *WorkbookComment) GetContent()(*string) { } return nil } -// GetContentType gets the contentType property value. Indicates the type for the comment. +// GetContentType gets the contentType property value. The content type of the comment. // returns a *string when successful func (m *WorkbookComment) GetContentType()(*string) { val, err := m.GetBackingStore().Get("contentType") @@ -95,7 +95,7 @@ func (m *WorkbookComment) GetFieldDeserializers()(map[string]func(i878a80d2330e8 } return res } -// GetReplies gets the replies property value. The replies property +// GetReplies gets the replies property value. The list of replies to the comment. Read-only. Nullable. // returns a []WorkbookCommentReplyable when successful func (m *WorkbookComment) GetReplies()([]WorkbookCommentReplyable) { val, err := m.GetBackingStore().Get("replies") @@ -164,14 +164,14 @@ func (m *WorkbookComment) SetContent(value *string)() { panic(err) } } -// SetContentType sets the contentType property value. Indicates the type for the comment. +// SetContentType sets the contentType property value. The content type of the comment. func (m *WorkbookComment) SetContentType(value *string)() { err := m.GetBackingStore().Set("contentType", value) if err != nil { panic(err) } } -// SetReplies sets the replies property value. The replies property +// SetReplies sets the replies property value. The list of replies to the comment. Read-only. Nullable. func (m *WorkbookComment) SetReplies(value []WorkbookCommentReplyable)() { err := m.GetBackingStore().Set("replies", value) if err != nil { diff --git a/models/workbook_comment_reply.go b/models/workbook_comment_reply.go index 50f2310eb3d..eef505059c5 100644 --- a/models/workbook_comment_reply.go +++ b/models/workbook_comment_reply.go @@ -19,7 +19,7 @@ func NewWorkbookCommentReply()(*WorkbookCommentReply) { func CreateWorkbookCommentReplyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewWorkbookCommentReply(), nil } -// GetContent gets the content property value. The content of replied comment. +// GetContent gets the content property value. The content of the reply. // returns a *string when successful func (m *WorkbookCommentReply) GetContent()(*string) { val, err := m.GetBackingStore().Get("content") @@ -31,7 +31,7 @@ func (m *WorkbookCommentReply) GetContent()(*string) { } return nil } -// GetContentType gets the contentType property value. Indicates the type for the replied comment. +// GetContentType gets the contentType property value. The content type for the reply. // returns a *string when successful func (m *WorkbookCommentReply) GetContentType()(*string) { val, err := m.GetBackingStore().Get("contentType") @@ -117,14 +117,14 @@ func (m *WorkbookCommentReply) Serialize(writer i878a80d2330e89d26896388a3f487ee } return nil } -// SetContent sets the content property value. The content of replied comment. +// SetContent sets the content property value. The content of the reply. func (m *WorkbookCommentReply) SetContent(value *string)() { err := m.GetBackingStore().Set("content", value) if err != nil { panic(err) } } -// SetContentType sets the contentType property value. Indicates the type for the replied comment. +// SetContentType sets the contentType property value. The content type for the reply. func (m *WorkbookCommentReply) SetContentType(value *string)() { err := m.GetBackingStore().Set("contentType", value) if err != nil { diff --git a/models/workbook_icon.go b/models/workbook_icon.go index 39a9ac1c4c3..957220ed06b 100644 --- a/models/workbook_icon.go +++ b/models/workbook_icon.go @@ -76,7 +76,7 @@ func (m *WorkbookIcon) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2 } return res } -// GetIndex gets the index property value. Represents the index of the icon in the given set. +// GetIndex gets the index property value. The index of the icon in the given set. // returns a *int32 when successful func (m *WorkbookIcon) GetIndex()(*int32) { val, err := m.GetBackingStore().Get("index") @@ -100,7 +100,7 @@ func (m *WorkbookIcon) GetOdataType()(*string) { } return nil } -// GetSet gets the set property value. Represents the set that the icon is part of. Possible values are: Invalid, ThreeArrows, ThreeArrowsGray, ThreeFlags, ThreeTrafficLights1, ThreeTrafficLights2, ThreeSigns, ThreeSymbols, ThreeSymbols2, FourArrows, FourArrowsGray, FourRedToBlack, FourRating, FourTrafficLights, FiveArrows, FiveArrowsGray, FiveRating, FiveQuarters, ThreeStars, ThreeTriangles, FiveBoxes. +// GetSet gets the set property value. The set that the icon is part of. Possible values are: Invalid, ThreeArrows, ThreeArrowsGray, ThreeFlags, ThreeTrafficLights1, ThreeTrafficLights2, ThreeSigns, ThreeSymbols, ThreeSymbols2, FourArrows, FourArrowsGray, FourRedToBlack, FourRating, FourTrafficLights, FiveArrows, FiveArrowsGray, FiveRating, FiveQuarters, ThreeStars, ThreeTriangles, FiveBoxes. // returns a *string when successful func (m *WorkbookIcon) GetSet()(*string) { val, err := m.GetBackingStore().Get("set") @@ -151,7 +151,7 @@ func (m *WorkbookIcon) SetAdditionalData(value map[string]any)() { func (m *WorkbookIcon) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value } -// SetIndex sets the index property value. Represents the index of the icon in the given set. +// SetIndex sets the index property value. The index of the icon in the given set. func (m *WorkbookIcon) SetIndex(value *int32)() { err := m.GetBackingStore().Set("index", value) if err != nil { @@ -165,7 +165,7 @@ func (m *WorkbookIcon) SetOdataType(value *string)() { panic(err) } } -// SetSet sets the set property value. Represents the set that the icon is part of. Possible values are: Invalid, ThreeArrows, ThreeArrowsGray, ThreeFlags, ThreeTrafficLights1, ThreeTrafficLights2, ThreeSigns, ThreeSymbols, ThreeSymbols2, FourArrows, FourArrowsGray, FourRedToBlack, FourRating, FourTrafficLights, FiveArrows, FiveArrowsGray, FiveRating, FiveQuarters, ThreeStars, ThreeTriangles, FiveBoxes. +// SetSet sets the set property value. The set that the icon is part of. Possible values are: Invalid, ThreeArrows, ThreeArrowsGray, ThreeFlags, ThreeTrafficLights1, ThreeTrafficLights2, ThreeSigns, ThreeSymbols, ThreeSymbols2, FourArrows, FourArrowsGray, FourRedToBlack, FourRating, FourTrafficLights, FiveArrows, FiveArrowsGray, FiveRating, FiveQuarters, ThreeStars, ThreeTriangles, FiveBoxes. func (m *WorkbookIcon) SetSet(value *string)() { err := m.GetBackingStore().Set("set", value) if err != nil { diff --git a/models/workbook_named_item.go b/models/workbook_named_item.go index 672e0360e3e..f4d0dc4432c 100644 --- a/models/workbook_named_item.go +++ b/models/workbook_named_item.go @@ -19,7 +19,7 @@ func NewWorkbookNamedItem()(*WorkbookNamedItem) { func CreateWorkbookNamedItemFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewWorkbookNamedItem(), nil } -// GetComment gets the comment property value. Represents the comment associated with this name. +// GetComment gets the comment property value. The comment associated with this name. // returns a *string when successful func (m *WorkbookNamedItem) GetComment()(*string) { val, err := m.GetBackingStore().Get("comment") @@ -131,7 +131,7 @@ func (m *WorkbookNamedItem) GetScope()(*string) { } return nil } -// GetTypeEscaped gets the type property value. Indicates what type of reference is associated with the name. Possible values are: String, Integer, Double, Boolean, Range. Read-only. +// GetTypeEscaped gets the type property value. The type of reference is associated with the name. Possible values are: String, Integer, Double, Boolean, Range. Read-only. // returns a *string when successful func (m *WorkbookNamedItem) GetTypeEscaped()(*string) { val, err := m.GetBackingStore().Get("typeEscaped") @@ -143,7 +143,7 @@ func (m *WorkbookNamedItem) GetTypeEscaped()(*string) { } return nil } -// GetValue gets the value property value. Represents the formula that the name is defined to refer to. For example, =Sheet14!$B$2:$H$12 and =4.75. Read-only. +// GetValue gets the value property value. The formula that the name is defined to refer to. For example, =Sheet14!$B$2:$H$12 and =4.75. Read-only. // returns a UntypedNodeable when successful func (m *WorkbookNamedItem) GetValue()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { val, err := m.GetBackingStore().Get("value") @@ -155,7 +155,7 @@ func (m *WorkbookNamedItem) GetValue()(i878a80d2330e89d26896388a3f487eef27b0a0e6 } return nil } -// GetVisible gets the visible property value. Specifies whether the object is visible or not. +// GetVisible gets the visible property value. Indicates whether the object is visible. // returns a *bool when successful func (m *WorkbookNamedItem) GetVisible()(*bool) { val, err := m.GetBackingStore().Get("visible") @@ -167,7 +167,7 @@ func (m *WorkbookNamedItem) GetVisible()(*bool) { } return nil } -// GetWorksheet gets the worksheet property value. Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. +// GetWorksheet gets the worksheet property value. Return the worksheet to which the named item is scoped. Available only if the item is scoped to the worksheet. Read-only. // returns a WorkbookWorksheetable when successful func (m *WorkbookNamedItem) GetWorksheet()(WorkbookWorksheetable) { val, err := m.GetBackingStore().Get("worksheet") @@ -229,7 +229,7 @@ func (m *WorkbookNamedItem) Serialize(writer i878a80d2330e89d26896388a3f487eef27 } return nil } -// SetComment sets the comment property value. Represents the comment associated with this name. +// SetComment sets the comment property value. The comment associated with this name. func (m *WorkbookNamedItem) SetComment(value *string)() { err := m.GetBackingStore().Set("comment", value) if err != nil { @@ -250,28 +250,28 @@ func (m *WorkbookNamedItem) SetScope(value *string)() { panic(err) } } -// SetTypeEscaped sets the type property value. Indicates what type of reference is associated with the name. Possible values are: String, Integer, Double, Boolean, Range. Read-only. +// SetTypeEscaped sets the type property value. The type of reference is associated with the name. Possible values are: String, Integer, Double, Boolean, Range. Read-only. func (m *WorkbookNamedItem) SetTypeEscaped(value *string)() { err := m.GetBackingStore().Set("typeEscaped", value) if err != nil { panic(err) } } -// SetValue sets the value property value. Represents the formula that the name is defined to refer to. For example, =Sheet14!$B$2:$H$12 and =4.75. Read-only. +// SetValue sets the value property value. The formula that the name is defined to refer to. For example, =Sheet14!$B$2:$H$12 and =4.75. Read-only. func (m *WorkbookNamedItem) SetValue(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { err := m.GetBackingStore().Set("value", value) if err != nil { panic(err) } } -// SetVisible sets the visible property value. Specifies whether the object is visible or not. +// SetVisible sets the visible property value. Indicates whether the object is visible. func (m *WorkbookNamedItem) SetVisible(value *bool)() { err := m.GetBackingStore().Set("visible", value) if err != nil { panic(err) } } -// SetWorksheet sets the worksheet property value. Returns the worksheet on which the named item is scoped to. Available only if the item is scoped to the worksheet. Read-only. +// SetWorksheet sets the worksheet property value. Return the worksheet to which the named item is scoped. Available only if the item is scoped to the worksheet. Read-only. func (m *WorkbookNamedItem) SetWorksheet(value WorkbookWorksheetable)() { err := m.GetBackingStore().Set("worksheet", value) if err != nil { diff --git a/models/workbook_pivot_table.go b/models/workbook_pivot_table.go index d4595860baa..a3b952f3de3 100644 --- a/models/workbook_pivot_table.go +++ b/models/workbook_pivot_table.go @@ -45,7 +45,7 @@ func (m *WorkbookPivotTable) GetFieldDeserializers()(map[string]func(i878a80d233 } return res } -// GetName gets the name property value. Name of the PivotTable. +// GetName gets the name property value. The name of the pivot table. // returns a *string when successful func (m *WorkbookPivotTable) GetName()(*string) { val, err := m.GetBackingStore().Get("name") @@ -57,7 +57,7 @@ func (m *WorkbookPivotTable) GetName()(*string) { } return nil } -// GetWorksheet gets the worksheet property value. The worksheet containing the current PivotTable. Read-only. +// GetWorksheet gets the worksheet property value. The worksheet that contains the current pivot table. Read-only. // returns a WorkbookWorksheetable when successful func (m *WorkbookPivotTable) GetWorksheet()(WorkbookWorksheetable) { val, err := m.GetBackingStore().Get("worksheet") @@ -89,14 +89,14 @@ func (m *WorkbookPivotTable) Serialize(writer i878a80d2330e89d26896388a3f487eef2 } return nil } -// SetName sets the name property value. Name of the PivotTable. +// SetName sets the name property value. The name of the pivot table. func (m *WorkbookPivotTable) SetName(value *string)() { err := m.GetBackingStore().Set("name", value) if err != nil { panic(err) } } -// SetWorksheet sets the worksheet property value. The worksheet containing the current PivotTable. Read-only. +// SetWorksheet sets the worksheet property value. The worksheet that contains the current pivot table. Read-only. func (m *WorkbookPivotTable) SetWorksheet(value WorkbookWorksheetable)() { err := m.GetBackingStore().Set("worksheet", value) if err != nil { diff --git a/models/workbook_range.go b/models/workbook_range.go index d2310d1762b..b33ebac1f90 100644 --- a/models/workbook_range.go +++ b/models/workbook_range.go @@ -429,7 +429,7 @@ func (m *WorkbookRange) GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c } return nil } -// GetValues gets the values property value. Represents the raw values of the specified range. The data returned could be of type string, number, or a boolean. Cell that contains an error returns the error string. +// GetValues gets the values property value. Represents the raw values of the specified range. The data returned could be of type string, number, or a Boolean. Cell that contains an error returns the error string. // returns a UntypedNodeable when successful func (m *WorkbookRange) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { val, err := m.GetBackingStore().Get("values") @@ -712,7 +712,7 @@ func (m *WorkbookRange) SetText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c panic(err) } } -// SetValues sets the values property value. Represents the raw values of the specified range. The data returned could be of type string, number, or a boolean. Cell that contains an error returns the error string. +// SetValues sets the values property value. Represents the raw values of the specified range. The data returned could be of type string, number, or a Boolean. Cell that contains an error returns the error string. func (m *WorkbookRange) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { err := m.GetBackingStore().Set("values", value) if err != nil { diff --git a/models/workbook_range_border.go b/models/workbook_range_border.go index 29394cd3424..2ac511342e5 100644 --- a/models/workbook_range_border.go +++ b/models/workbook_range_border.go @@ -19,7 +19,7 @@ func NewWorkbookRangeBorder()(*WorkbookRangeBorder) { func CreateWorkbookRangeBorderFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewWorkbookRangeBorder(), nil } -// GetColor gets the color property value. HTML color code representing the color of the border line, of the form #RRGGBB (for example 'FFA500') or as a named HTML color (for example 'orange'). +// GetColor gets the color property value. The HTML color code that represents the color of the border line. Can either be of the form #RRGGBB, for example 'FFA500', or a named HTML color, for example 'orange'. // returns a *string when successful func (m *WorkbookRangeBorder) GetColor()(*string) { val, err := m.GetBackingStore().Get("color") @@ -77,7 +77,7 @@ func (m *WorkbookRangeBorder) GetFieldDeserializers()(map[string]func(i878a80d23 } return res } -// GetSideIndex gets the sideIndex property value. Constant value that indicates the specific side of the border. Possible values are: EdgeTop, EdgeBottom, EdgeLeft, EdgeRight, InsideVertical, InsideHorizontal, DiagonalDown, DiagonalUp. Read-only. +// GetSideIndex gets the sideIndex property value. Indicates the specific side of the border. The possible values are: EdgeTop, EdgeBottom, EdgeLeft, EdgeRight, InsideVertical, InsideHorizontal, DiagonalDown, DiagonalUp. Read-only. // returns a *string when successful func (m *WorkbookRangeBorder) GetSideIndex()(*string) { val, err := m.GetBackingStore().Get("sideIndex") @@ -89,7 +89,7 @@ func (m *WorkbookRangeBorder) GetSideIndex()(*string) { } return nil } -// GetStyle gets the style property value. One of the constants of line style specifying the line style for the border. Possible values are: None, Continuous, Dash, DashDot, DashDotDot, Dot, Double, SlantDashDot. +// GetStyle gets the style property value. Indicates the line style for the border. The possible values are: None, Continuous, Dash, DashDot, DashDotDot, Dot, Double, SlantDashDot. // returns a *string when successful func (m *WorkbookRangeBorder) GetStyle()(*string) { val, err := m.GetBackingStore().Get("style") @@ -101,7 +101,7 @@ func (m *WorkbookRangeBorder) GetStyle()(*string) { } return nil } -// GetWeight gets the weight property value. Specifies the weight of the border around a range. Possible values are: Hairline, Thin, Medium, Thick. +// GetWeight gets the weight property value. The weight of the border around a range. The possible values are: Hairline, Thin, Medium, Thick. // returns a *string when successful func (m *WorkbookRangeBorder) GetWeight()(*string) { val, err := m.GetBackingStore().Get("weight") @@ -145,28 +145,28 @@ func (m *WorkbookRangeBorder) Serialize(writer i878a80d2330e89d26896388a3f487eef } return nil } -// SetColor sets the color property value. HTML color code representing the color of the border line, of the form #RRGGBB (for example 'FFA500') or as a named HTML color (for example 'orange'). +// SetColor sets the color property value. The HTML color code that represents the color of the border line. Can either be of the form #RRGGBB, for example 'FFA500', or a named HTML color, for example 'orange'. func (m *WorkbookRangeBorder) SetColor(value *string)() { err := m.GetBackingStore().Set("color", value) if err != nil { panic(err) } } -// SetSideIndex sets the sideIndex property value. Constant value that indicates the specific side of the border. Possible values are: EdgeTop, EdgeBottom, EdgeLeft, EdgeRight, InsideVertical, InsideHorizontal, DiagonalDown, DiagonalUp. Read-only. +// SetSideIndex sets the sideIndex property value. Indicates the specific side of the border. The possible values are: EdgeTop, EdgeBottom, EdgeLeft, EdgeRight, InsideVertical, InsideHorizontal, DiagonalDown, DiagonalUp. Read-only. func (m *WorkbookRangeBorder) SetSideIndex(value *string)() { err := m.GetBackingStore().Set("sideIndex", value) if err != nil { panic(err) } } -// SetStyle sets the style property value. One of the constants of line style specifying the line style for the border. Possible values are: None, Continuous, Dash, DashDot, DashDotDot, Dot, Double, SlantDashDot. +// SetStyle sets the style property value. Indicates the line style for the border. The possible values are: None, Continuous, Dash, DashDot, DashDotDot, Dot, Double, SlantDashDot. func (m *WorkbookRangeBorder) SetStyle(value *string)() { err := m.GetBackingStore().Set("style", value) if err != nil { panic(err) } } -// SetWeight sets the weight property value. Specifies the weight of the border around a range. Possible values are: Hairline, Thin, Medium, Thick. +// SetWeight sets the weight property value. The weight of the border around a range. The possible values are: Hairline, Thin, Medium, Thick. func (m *WorkbookRangeBorder) SetWeight(value *string)() { err := m.GetBackingStore().Set("weight", value) if err != nil { diff --git a/models/workbook_range_fill.go b/models/workbook_range_fill.go index 53d5d11291b..43e9d2a761b 100644 --- a/models/workbook_range_fill.go +++ b/models/workbook_range_fill.go @@ -19,7 +19,7 @@ func NewWorkbookRangeFill()(*WorkbookRangeFill) { func CreateWorkbookRangeFillFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewWorkbookRangeFill(), nil } -// GetColor gets the color property value. HTML color code representing the color of the border line, of the form #RRGGBB (for example 'FFA500') or as a named HTML color (for example 'orange') +// GetColor gets the color property value. HTML color code representing the color of the border line. Can either be of the form #RRGGBB, for example 'FFA500', or be a named HTML color, for example 'orange'. // returns a *string when successful func (m *WorkbookRangeFill) GetColor()(*string) { val, err := m.GetBackingStore().Get("color") @@ -61,7 +61,7 @@ func (m *WorkbookRangeFill) Serialize(writer i878a80d2330e89d26896388a3f487eef27 } return nil } -// SetColor sets the color property value. HTML color code representing the color of the border line, of the form #RRGGBB (for example 'FFA500') or as a named HTML color (for example 'orange') +// SetColor sets the color property value. HTML color code representing the color of the border line. Can either be of the form #RRGGBB, for example 'FFA500', or be a named HTML color, for example 'orange'. func (m *WorkbookRangeFill) SetColor(value *string)() { err := m.GetBackingStore().Set("color", value) if err != nil { diff --git a/models/workbook_range_font.go b/models/workbook_range_font.go index 08deeb6bad0..6e2f66e980a 100644 --- a/models/workbook_range_font.go +++ b/models/workbook_range_font.go @@ -19,7 +19,7 @@ func NewWorkbookRangeFont()(*WorkbookRangeFont) { func CreateWorkbookRangeFontFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewWorkbookRangeFont(), nil } -// GetBold gets the bold property value. Represents the bold status of font. +// GetBold gets the bold property value. Inidicates whether the font is bold. // returns a *bool when successful func (m *WorkbookRangeFont) GetBold()(*bool) { val, err := m.GetBackingStore().Get("bold") @@ -31,7 +31,7 @@ func (m *WorkbookRangeFont) GetBold()(*bool) { } return nil } -// GetColor gets the color property value. HTML color code representation of the text color. for example #FF0000 represents Red. +// GetColor gets the color property value. The HTML color code representation of the text color. For example, #FF0000 represents the color red. // returns a *string when successful func (m *WorkbookRangeFont) GetColor()(*string) { val, err := m.GetBackingStore().Get("color") @@ -109,7 +109,7 @@ func (m *WorkbookRangeFont) GetFieldDeserializers()(map[string]func(i878a80d2330 } return res } -// GetItalic gets the italic property value. Represents the italic status of the font. +// GetItalic gets the italic property value. Inidicates whether the font is italic. // returns a *bool when successful func (m *WorkbookRangeFont) GetItalic()(*bool) { val, err := m.GetBackingStore().Get("italic") @@ -121,7 +121,7 @@ func (m *WorkbookRangeFont) GetItalic()(*bool) { } return nil } -// GetName gets the name property value. Font name (for example 'Calibri') +// GetName gets the name property value. The font name. For example, 'Calibri'. // returns a *string when successful func (m *WorkbookRangeFont) GetName()(*string) { val, err := m.GetBackingStore().Get("name") @@ -133,7 +133,7 @@ func (m *WorkbookRangeFont) GetName()(*string) { } return nil } -// GetSize gets the size property value. Font size. +// GetSize gets the size property value. The font size. // returns a *float64 when successful func (m *WorkbookRangeFont) GetSize()(*float64) { val, err := m.GetBackingStore().Get("size") @@ -145,7 +145,7 @@ func (m *WorkbookRangeFont) GetSize()(*float64) { } return nil } -// GetUnderline gets the underline property value. Type of underline applied to the font. Possible values are: None, Single, Double, SingleAccountant, DoubleAccountant. +// GetUnderline gets the underline property value. The type of underlining applied to the font. The possible values are: None, Single, Double, SingleAccountant, DoubleAccountant. // returns a *string when successful func (m *WorkbookRangeFont) GetUnderline()(*string) { val, err := m.GetBackingStore().Get("underline") @@ -201,42 +201,42 @@ func (m *WorkbookRangeFont) Serialize(writer i878a80d2330e89d26896388a3f487eef27 } return nil } -// SetBold sets the bold property value. Represents the bold status of font. +// SetBold sets the bold property value. Inidicates whether the font is bold. func (m *WorkbookRangeFont) SetBold(value *bool)() { err := m.GetBackingStore().Set("bold", value) if err != nil { panic(err) } } -// SetColor sets the color property value. HTML color code representation of the text color. for example #FF0000 represents Red. +// SetColor sets the color property value. The HTML color code representation of the text color. For example, #FF0000 represents the color red. func (m *WorkbookRangeFont) SetColor(value *string)() { err := m.GetBackingStore().Set("color", value) if err != nil { panic(err) } } -// SetItalic sets the italic property value. Represents the italic status of the font. +// SetItalic sets the italic property value. Inidicates whether the font is italic. func (m *WorkbookRangeFont) SetItalic(value *bool)() { err := m.GetBackingStore().Set("italic", value) if err != nil { panic(err) } } -// SetName sets the name property value. Font name (for example 'Calibri') +// SetName sets the name property value. The font name. For example, 'Calibri'. func (m *WorkbookRangeFont) SetName(value *string)() { err := m.GetBackingStore().Set("name", value) if err != nil { panic(err) } } -// SetSize sets the size property value. Font size. +// SetSize sets the size property value. The font size. func (m *WorkbookRangeFont) SetSize(value *float64)() { err := m.GetBackingStore().Set("size", value) if err != nil { panic(err) } } -// SetUnderline sets the underline property value. Type of underline applied to the font. Possible values are: None, Single, Double, SingleAccountant, DoubleAccountant. +// SetUnderline sets the underline property value. The type of underlining applied to the font. The possible values are: None, Single, Double, SingleAccountant, DoubleAccountant. func (m *WorkbookRangeFont) SetUnderline(value *string)() { err := m.GetBackingStore().Set("underline", value) if err != nil { diff --git a/models/workbook_range_format.go b/models/workbook_range_format.go index 99844df1cfa..a49139333fe 100644 --- a/models/workbook_range_format.go +++ b/models/workbook_range_format.go @@ -31,7 +31,7 @@ func (m *WorkbookRangeFormat) GetBorders()([]WorkbookRangeBorderable) { } return nil } -// GetColumnWidth gets the columnWidth property value. Gets or sets the width of all columns within the range. If the column widths aren't uniform, null will be returned. +// GetColumnWidth gets the columnWidth property value. The width of all columns within the range. If the column widths aren't uniform, null will be returned. // returns a *float64 when successful func (m *WorkbookRangeFormat) GetColumnWidth()(*float64) { val, err := m.GetBackingStore().Get("columnWidth") @@ -169,7 +169,7 @@ func (m *WorkbookRangeFormat) GetFont()(WorkbookRangeFontable) { } return nil } -// GetHorizontalAlignment gets the horizontalAlignment property value. Represents the horizontal alignment for the specified object. Possible values are: General, Left, Center, Right, Fill, Justify, CenterAcrossSelection, Distributed. +// GetHorizontalAlignment gets the horizontalAlignment property value. The horizontal alignment for the specified object. Possible values are: General, Left, Center, Right, Fill, Justify, CenterAcrossSelection, Distributed. // returns a *string when successful func (m *WorkbookRangeFormat) GetHorizontalAlignment()(*string) { val, err := m.GetBackingStore().Get("horizontalAlignment") @@ -193,7 +193,7 @@ func (m *WorkbookRangeFormat) GetProtection()(WorkbookFormatProtectionable) { } return nil } -// GetRowHeight gets the rowHeight property value. Gets or sets the height of all rows in the range. If the row heights aren't uniform null will be returned. +// GetRowHeight gets the rowHeight property value. The height of all rows in the range. If the row heights aren't uniform null will be returned. // returns a *float64 when successful func (m *WorkbookRangeFormat) GetRowHeight()(*float64) { val, err := m.GetBackingStore().Get("rowHeight") @@ -205,7 +205,7 @@ func (m *WorkbookRangeFormat) GetRowHeight()(*float64) { } return nil } -// GetVerticalAlignment gets the verticalAlignment property value. Represents the vertical alignment for the specified object. Possible values are: Top, Center, Bottom, Justify, Distributed. +// GetVerticalAlignment gets the verticalAlignment property value. The vertical alignment for the specified object. Possible values are: Top, Center, Bottom, Justify, Distributed. // returns a *string when successful func (m *WorkbookRangeFormat) GetVerticalAlignment()(*string) { val, err := m.GetBackingStore().Get("verticalAlignment") @@ -217,7 +217,7 @@ func (m *WorkbookRangeFormat) GetVerticalAlignment()(*string) { } return nil } -// GetWrapText gets the wrapText property value. Indicates if Excel wraps the text in the object. A null value indicates that the entire range doesn't have uniform wrap setting +// GetWrapText gets the wrapText property value. Indicates whether Excel wraps the text in the object. A null value indicates that the entire range doesn't have a uniform wrap setting. // returns a *bool when successful func (m *WorkbookRangeFormat) GetWrapText()(*bool) { val, err := m.GetBackingStore().Get("wrapText") @@ -304,7 +304,7 @@ func (m *WorkbookRangeFormat) SetBorders(value []WorkbookRangeBorderable)() { panic(err) } } -// SetColumnWidth sets the columnWidth property value. Gets or sets the width of all columns within the range. If the column widths aren't uniform, null will be returned. +// SetColumnWidth sets the columnWidth property value. The width of all columns within the range. If the column widths aren't uniform, null will be returned. func (m *WorkbookRangeFormat) SetColumnWidth(value *float64)() { err := m.GetBackingStore().Set("columnWidth", value) if err != nil { @@ -325,7 +325,7 @@ func (m *WorkbookRangeFormat) SetFont(value WorkbookRangeFontable)() { panic(err) } } -// SetHorizontalAlignment sets the horizontalAlignment property value. Represents the horizontal alignment for the specified object. Possible values are: General, Left, Center, Right, Fill, Justify, CenterAcrossSelection, Distributed. +// SetHorizontalAlignment sets the horizontalAlignment property value. The horizontal alignment for the specified object. Possible values are: General, Left, Center, Right, Fill, Justify, CenterAcrossSelection, Distributed. func (m *WorkbookRangeFormat) SetHorizontalAlignment(value *string)() { err := m.GetBackingStore().Set("horizontalAlignment", value) if err != nil { @@ -339,21 +339,21 @@ func (m *WorkbookRangeFormat) SetProtection(value WorkbookFormatProtectionable)( panic(err) } } -// SetRowHeight sets the rowHeight property value. Gets or sets the height of all rows in the range. If the row heights aren't uniform null will be returned. +// SetRowHeight sets the rowHeight property value. The height of all rows in the range. If the row heights aren't uniform null will be returned. func (m *WorkbookRangeFormat) SetRowHeight(value *float64)() { err := m.GetBackingStore().Set("rowHeight", value) if err != nil { panic(err) } } -// SetVerticalAlignment sets the verticalAlignment property value. Represents the vertical alignment for the specified object. Possible values are: Top, Center, Bottom, Justify, Distributed. +// SetVerticalAlignment sets the verticalAlignment property value. The vertical alignment for the specified object. Possible values are: Top, Center, Bottom, Justify, Distributed. func (m *WorkbookRangeFormat) SetVerticalAlignment(value *string)() { err := m.GetBackingStore().Set("verticalAlignment", value) if err != nil { panic(err) } } -// SetWrapText sets the wrapText property value. Indicates if Excel wraps the text in the object. A null value indicates that the entire range doesn't have uniform wrap setting +// SetWrapText sets the wrapText property value. Indicates whether Excel wraps the text in the object. A null value indicates that the entire range doesn't have a uniform wrap setting. func (m *WorkbookRangeFormat) SetWrapText(value *bool)() { err := m.GetBackingStore().Set("wrapText", value) if err != nil { diff --git a/models/workbook_range_view.go b/models/workbook_range_view.go index a35543873c3..fe8e54a5c2a 100644 --- a/models/workbook_range_view.go +++ b/models/workbook_range_view.go @@ -31,7 +31,7 @@ func (m *WorkbookRangeView) GetCellAddresses()(i878a80d2330e89d26896388a3f487eef } return nil } -// GetColumnCount gets the columnCount property value. Returns the number of visible columns. Read-only. +// GetColumnCount gets the columnCount property value. The number of visible columns. Read-only. // returns a *int32 when successful func (m *WorkbookRangeView) GetColumnCount()(*int32) { val, err := m.GetBackingStore().Get("columnCount") @@ -175,7 +175,7 @@ func (m *WorkbookRangeView) GetFieldDeserializers()(map[string]func(i878a80d2330 } return res } -// GetFormulas gets the formulas property value. Represents the formula in A1-style notation. +// GetFormulas gets the formulas property value. The formula in A1-style notation. // returns a UntypedNodeable when successful func (m *WorkbookRangeView) GetFormulas()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { val, err := m.GetBackingStore().Get("formulas") @@ -187,7 +187,7 @@ func (m *WorkbookRangeView) GetFormulas()(i878a80d2330e89d26896388a3f487eef27b0a } return nil } -// GetFormulasLocal gets the formulasLocal property value. Represents the formula in A1-style notation, in the user's language and number-formatting locale. For example, the English '=SUM(A1, 1.5)' formula would become '=SUMME(A1; 1,5)' in German. +// GetFormulasLocal gets the formulasLocal property value. The formula in A1-style notation, in the user's language and number-formatting locale. For example, the English '=SUM(A1, 1.5)' formula would become '=SUMME(A1; 1,5)' in German. // returns a UntypedNodeable when successful func (m *WorkbookRangeView) GetFormulasLocal()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { val, err := m.GetBackingStore().Get("formulasLocal") @@ -211,7 +211,7 @@ func (m *WorkbookRangeView) GetFormulasR1C1()(i878a80d2330e89d26896388a3f487eef2 } return nil } -// GetIndex gets the index property value. Index of the range. +// GetIndex gets the index property value. The index of the range. // returns a *int32 when successful func (m *WorkbookRangeView) GetIndex()(*int32) { val, err := m.GetBackingStore().Get("index") @@ -223,7 +223,7 @@ func (m *WorkbookRangeView) GetIndex()(*int32) { } return nil } -// GetNumberFormat gets the numberFormat property value. Represents Excel's number format code for the given cell. Read-only. +// GetNumberFormat gets the numberFormat property value. Excel's number format code for the given cell. Read-only. // returns a UntypedNodeable when successful func (m *WorkbookRangeView) GetNumberFormat()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { val, err := m.GetBackingStore().Get("numberFormat") @@ -235,7 +235,7 @@ func (m *WorkbookRangeView) GetNumberFormat()(i878a80d2330e89d26896388a3f487eef2 } return nil } -// GetRowCount gets the rowCount property value. Returns the number of visible rows. Read-only. +// GetRowCount gets the rowCount property value. The number of visible rows. Read-only. // returns a *int32 when successful func (m *WorkbookRangeView) GetRowCount()(*int32) { val, err := m.GetBackingStore().Get("rowCount") @@ -247,7 +247,7 @@ func (m *WorkbookRangeView) GetRowCount()(*int32) { } return nil } -// GetRows gets the rows property value. Represents a collection of range views associated with the range. Read-only. Read-only. +// GetRows gets the rows property value. The collection of range views associated with the range. Read-only. Read-only. // returns a []WorkbookRangeViewable when successful func (m *WorkbookRangeView) GetRows()([]WorkbookRangeViewable) { val, err := m.GetBackingStore().Get("rows") @@ -259,7 +259,7 @@ func (m *WorkbookRangeView) GetRows()([]WorkbookRangeViewable) { } return nil } -// GetText gets the text property value. Text values of the specified range. The Text value won't depend on the cell width. The # sign substitution that happens in Excel UI won't affect the text value returned by the API. Read-only. +// GetText gets the text property value. The text values of the specified range. The Text value won't depend on the cell width. The # sign substitution that happens in Excel UI won't affect the text value returned by the API. Read-only. // returns a UntypedNodeable when successful func (m *WorkbookRangeView) GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { val, err := m.GetBackingStore().Get("text") @@ -271,7 +271,7 @@ func (m *WorkbookRangeView) GetText()(i878a80d2330e89d26896388a3f487eef27b0a0e6c } return nil } -// GetValues gets the values property value. Represents the raw values of the specified range view. The data returned could be of type string, number, or a boolean. Cell that contains an error returns the error string. +// GetValues gets the values property value. The raw values of the specified range view. The data returned could be of type string, number, or a Boolean. Cell that contains an error returns the error string. // returns a UntypedNodeable when successful func (m *WorkbookRangeView) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { val, err := m.GetBackingStore().Get("values") @@ -283,7 +283,7 @@ func (m *WorkbookRangeView) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e } return nil } -// GetValueTypes gets the valueTypes property value. Represents the type of data of each cell. Read-only. Possible values are: Unknown, Empty, String, Integer, Double, Boolean, Error. +// GetValueTypes gets the valueTypes property value. The type of data of each cell. Read-only. Possible values are: Unknown, Empty, String, Integer, Double, Boolean, Error. // returns a UntypedNodeable when successful func (m *WorkbookRangeView) GetValueTypes()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { val, err := m.GetBackingStore().Get("valueTypes") @@ -388,21 +388,21 @@ func (m *WorkbookRangeView) SetCellAddresses(value i878a80d2330e89d26896388a3f48 panic(err) } } -// SetColumnCount sets the columnCount property value. Returns the number of visible columns. Read-only. +// SetColumnCount sets the columnCount property value. The number of visible columns. Read-only. func (m *WorkbookRangeView) SetColumnCount(value *int32)() { err := m.GetBackingStore().Set("columnCount", value) if err != nil { panic(err) } } -// SetFormulas sets the formulas property value. Represents the formula in A1-style notation. +// SetFormulas sets the formulas property value. The formula in A1-style notation. func (m *WorkbookRangeView) SetFormulas(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { err := m.GetBackingStore().Set("formulas", value) if err != nil { panic(err) } } -// SetFormulasLocal sets the formulasLocal property value. Represents the formula in A1-style notation, in the user's language and number-formatting locale. For example, the English '=SUM(A1, 1.5)' formula would become '=SUMME(A1; 1,5)' in German. +// SetFormulasLocal sets the formulasLocal property value. The formula in A1-style notation, in the user's language and number-formatting locale. For example, the English '=SUM(A1, 1.5)' formula would become '=SUMME(A1; 1,5)' in German. func (m *WorkbookRangeView) SetFormulasLocal(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { err := m.GetBackingStore().Set("formulasLocal", value) if err != nil { @@ -416,49 +416,49 @@ func (m *WorkbookRangeView) SetFormulasR1C1(value i878a80d2330e89d26896388a3f487 panic(err) } } -// SetIndex sets the index property value. Index of the range. +// SetIndex sets the index property value. The index of the range. func (m *WorkbookRangeView) SetIndex(value *int32)() { err := m.GetBackingStore().Set("index", value) if err != nil { panic(err) } } -// SetNumberFormat sets the numberFormat property value. Represents Excel's number format code for the given cell. Read-only. +// SetNumberFormat sets the numberFormat property value. Excel's number format code for the given cell. Read-only. func (m *WorkbookRangeView) SetNumberFormat(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { err := m.GetBackingStore().Set("numberFormat", value) if err != nil { panic(err) } } -// SetRowCount sets the rowCount property value. Returns the number of visible rows. Read-only. +// SetRowCount sets the rowCount property value. The number of visible rows. Read-only. func (m *WorkbookRangeView) SetRowCount(value *int32)() { err := m.GetBackingStore().Set("rowCount", value) if err != nil { panic(err) } } -// SetRows sets the rows property value. Represents a collection of range views associated with the range. Read-only. Read-only. +// SetRows sets the rows property value. The collection of range views associated with the range. Read-only. Read-only. func (m *WorkbookRangeView) SetRows(value []WorkbookRangeViewable)() { err := m.GetBackingStore().Set("rows", value) if err != nil { panic(err) } } -// SetText sets the text property value. Text values of the specified range. The Text value won't depend on the cell width. The # sign substitution that happens in Excel UI won't affect the text value returned by the API. Read-only. +// SetText sets the text property value. The text values of the specified range. The Text value won't depend on the cell width. The # sign substitution that happens in Excel UI won't affect the text value returned by the API. Read-only. func (m *WorkbookRangeView) SetText(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { err := m.GetBackingStore().Set("text", value) if err != nil { panic(err) } } -// SetValues sets the values property value. Represents the raw values of the specified range view. The data returned could be of type string, number, or a boolean. Cell that contains an error returns the error string. +// SetValues sets the values property value. The raw values of the specified range view. The data returned could be of type string, number, or a Boolean. Cell that contains an error returns the error string. func (m *WorkbookRangeView) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { err := m.GetBackingStore().Set("values", value) if err != nil { panic(err) } } -// SetValueTypes sets the valueTypes property value. Represents the type of data of each cell. Read-only. Possible values are: Unknown, Empty, String, Integer, Double, Boolean, Error. +// SetValueTypes sets the valueTypes property value. The type of data of each cell. Read-only. Possible values are: Unknown, Empty, String, Integer, Double, Boolean, Error. func (m *WorkbookRangeView) SetValueTypes(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { err := m.GetBackingStore().Set("valueTypes", value) if err != nil { diff --git a/models/workbook_table.go b/models/workbook_table.go index fb611d986f6..8128feac1a4 100644 --- a/models/workbook_table.go +++ b/models/workbook_table.go @@ -19,7 +19,7 @@ func NewWorkbookTable()(*WorkbookTable) { func CreateWorkbookTableFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewWorkbookTable(), nil } -// GetColumns gets the columns property value. Represents a collection of all the columns in the table. Read-only. +// GetColumns gets the columns property value. The list of all the columns in the table. Read-only. // returns a []WorkbookTableColumnable when successful func (m *WorkbookTable) GetColumns()([]WorkbookTableColumnable) { val, err := m.GetBackingStore().Get("columns") @@ -213,7 +213,7 @@ func (m *WorkbookTable) GetHighlightLastColumn()(*bool) { } return nil } -// GetLegacyId gets the legacyId property value. Legacy Id used in older Excel clients. The value of the identifier remains the same even when the table is renamed. This property should be interpreted as an opaque string value and shouldn't be parsed to any other type. Read-only. +// GetLegacyId gets the legacyId property value. A legacy identifier used in older Excel clients. The value of the identifier remains the same even when the table is renamed. This property should be interpreted as an opaque string value and shouldn't be parsed to any other type. Read-only. // returns a *string when successful func (m *WorkbookTable) GetLegacyId()(*string) { val, err := m.GetBackingStore().Get("legacyId") @@ -225,7 +225,7 @@ func (m *WorkbookTable) GetLegacyId()(*string) { } return nil } -// GetName gets the name property value. Name of the table. +// GetName gets the name property value. The name of the table. // returns a *string when successful func (m *WorkbookTable) GetName()(*string) { val, err := m.GetBackingStore().Get("name") @@ -237,7 +237,7 @@ func (m *WorkbookTable) GetName()(*string) { } return nil } -// GetRows gets the rows property value. Represents a collection of all the rows in the table. Read-only. +// GetRows gets the rows property value. The list of all the rows in the table. Read-only. // returns a []WorkbookTableRowable when successful func (m *WorkbookTable) GetRows()([]WorkbookTableRowable) { val, err := m.GetBackingStore().Get("rows") @@ -309,7 +309,7 @@ func (m *WorkbookTable) GetShowTotals()(*bool) { } return nil } -// GetSort gets the sort property value. Represents the sorting for the table. Read-only. +// GetSort gets the sort property value. The sorting for the table. Read-only. // returns a WorkbookTableSortable when successful func (m *WorkbookTable) GetSort()(WorkbookTableSortable) { val, err := m.GetBackingStore().Get("sort") @@ -321,7 +321,7 @@ func (m *WorkbookTable) GetSort()(WorkbookTableSortable) { } return nil } -// GetStyle gets the style property value. Constant value that represents the Table style. Possible values are: TableStyleLight1 through TableStyleLight21, TableStyleMedium1 through TableStyleMedium28, TableStyleStyleDark1 through TableStyleStyleDark11. A custom user-defined style present in the workbook can also be specified. +// GetStyle gets the style property value. A constant value that represents the Table style. Possible values are: TableStyleLight1 through TableStyleLight21, TableStyleMedium1 through TableStyleMedium28, TableStyleStyleDark1 through TableStyleStyleDark11. A custom user-defined style present in the workbook can also be specified. // returns a *string when successful func (m *WorkbookTable) GetStyle()(*string) { val, err := m.GetBackingStore().Get("style") @@ -449,7 +449,7 @@ func (m *WorkbookTable) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0 } return nil } -// SetColumns sets the columns property value. Represents a collection of all the columns in the table. Read-only. +// SetColumns sets the columns property value. The list of all the columns in the table. Read-only. func (m *WorkbookTable) SetColumns(value []WorkbookTableColumnable)() { err := m.GetBackingStore().Set("columns", value) if err != nil { @@ -470,21 +470,21 @@ func (m *WorkbookTable) SetHighlightLastColumn(value *bool)() { panic(err) } } -// SetLegacyId sets the legacyId property value. Legacy Id used in older Excel clients. The value of the identifier remains the same even when the table is renamed. This property should be interpreted as an opaque string value and shouldn't be parsed to any other type. Read-only. +// SetLegacyId sets the legacyId property value. A legacy identifier used in older Excel clients. The value of the identifier remains the same even when the table is renamed. This property should be interpreted as an opaque string value and shouldn't be parsed to any other type. Read-only. func (m *WorkbookTable) SetLegacyId(value *string)() { err := m.GetBackingStore().Set("legacyId", value) if err != nil { panic(err) } } -// SetName sets the name property value. Name of the table. +// SetName sets the name property value. The name of the table. func (m *WorkbookTable) SetName(value *string)() { err := m.GetBackingStore().Set("name", value) if err != nil { panic(err) } } -// SetRows sets the rows property value. Represents a collection of all the rows in the table. Read-only. +// SetRows sets the rows property value. The list of all the rows in the table. Read-only. func (m *WorkbookTable) SetRows(value []WorkbookTableRowable)() { err := m.GetBackingStore().Set("rows", value) if err != nil { @@ -526,14 +526,14 @@ func (m *WorkbookTable) SetShowTotals(value *bool)() { panic(err) } } -// SetSort sets the sort property value. Represents the sorting for the table. Read-only. +// SetSort sets the sort property value. The sorting for the table. Read-only. func (m *WorkbookTable) SetSort(value WorkbookTableSortable)() { err := m.GetBackingStore().Set("sort", value) if err != nil { panic(err) } } -// SetStyle sets the style property value. Constant value that represents the Table style. Possible values are: TableStyleLight1 through TableStyleLight21, TableStyleMedium1 through TableStyleMedium28, TableStyleStyleDark1 through TableStyleStyleDark11. A custom user-defined style present in the workbook can also be specified. +// SetStyle sets the style property value. A constant value that represents the Table style. Possible values are: TableStyleLight1 through TableStyleLight21, TableStyleMedium1 through TableStyleMedium28, TableStyleStyleDark1 through TableStyleStyleDark11. A custom user-defined style present in the workbook can also be specified. func (m *WorkbookTable) SetStyle(value *string)() { err := m.GetBackingStore().Set("style", value) if err != nil { diff --git a/models/workbook_table_column.go b/models/workbook_table_column.go index 6e6f99b4720..ed70ed12dab 100644 --- a/models/workbook_table_column.go +++ b/models/workbook_table_column.go @@ -65,7 +65,7 @@ func (m *WorkbookTableColumn) GetFieldDeserializers()(map[string]func(i878a80d23 } return res } -// GetFilter gets the filter property value. Retrieve the filter applied to the column. Read-only. +// GetFilter gets the filter property value. The filter applied to the column. Read-only. // returns a WorkbookFilterable when successful func (m *WorkbookTableColumn) GetFilter()(WorkbookFilterable) { val, err := m.GetBackingStore().Get("filter") @@ -77,7 +77,7 @@ func (m *WorkbookTableColumn) GetFilter()(WorkbookFilterable) { } return nil } -// GetIndex gets the index property value. Returns the index number of the column within the columns collection of the table. Zero-indexed. Read-only. +// GetIndex gets the index property value. The index of the column within the columns collection of the table. Zero-indexed. Read-only. // returns a *int32 when successful func (m *WorkbookTableColumn) GetIndex()(*int32) { val, err := m.GetBackingStore().Get("index") @@ -89,7 +89,7 @@ func (m *WorkbookTableColumn) GetIndex()(*int32) { } return nil } -// GetName gets the name property value. Returns the name of the table column. +// GetName gets the name property value. The name of the table column. // returns a *string when successful func (m *WorkbookTableColumn) GetName()(*string) { val, err := m.GetBackingStore().Get("name") @@ -101,7 +101,7 @@ func (m *WorkbookTableColumn) GetName()(*string) { } return nil } -// GetValues gets the values property value. Represents the raw values of the specified range. The data returned could be of type string, number, or a boolean. Cell that contains an error returns the error string. +// GetValues gets the values property value. Represents the raw values of the specified range. The data returned could be of type string, number, or a Boolean. Cell that contain an error will return the error string. // returns a UntypedNodeable when successful func (m *WorkbookTableColumn) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { val, err := m.GetBackingStore().Get("values") @@ -145,28 +145,28 @@ func (m *WorkbookTableColumn) Serialize(writer i878a80d2330e89d26896388a3f487eef } return nil } -// SetFilter sets the filter property value. Retrieve the filter applied to the column. Read-only. +// SetFilter sets the filter property value. The filter applied to the column. Read-only. func (m *WorkbookTableColumn) SetFilter(value WorkbookFilterable)() { err := m.GetBackingStore().Set("filter", value) if err != nil { panic(err) } } -// SetIndex sets the index property value. Returns the index number of the column within the columns collection of the table. Zero-indexed. Read-only. +// SetIndex sets the index property value. The index of the column within the columns collection of the table. Zero-indexed. Read-only. func (m *WorkbookTableColumn) SetIndex(value *int32)() { err := m.GetBackingStore().Set("index", value) if err != nil { panic(err) } } -// SetName sets the name property value. Returns the name of the table column. +// SetName sets the name property value. The name of the table column. func (m *WorkbookTableColumn) SetName(value *string)() { err := m.GetBackingStore().Set("name", value) if err != nil { panic(err) } } -// SetValues sets the values property value. Represents the raw values of the specified range. The data returned could be of type string, number, or a boolean. Cell that contains an error returns the error string. +// SetValues sets the values property value. Represents the raw values of the specified range. The data returned could be of type string, number, or a Boolean. Cell that contain an error will return the error string. func (m *WorkbookTableColumn) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { err := m.GetBackingStore().Set("values", value) if err != nil { diff --git a/models/workbook_table_row.go b/models/workbook_table_row.go index 28a339c89a6..cd1835032cc 100644 --- a/models/workbook_table_row.go +++ b/models/workbook_table_row.go @@ -45,7 +45,7 @@ func (m *WorkbookTableRow) GetFieldDeserializers()(map[string]func(i878a80d2330e } return res } -// GetIndex gets the index property value. Returns the index number of the row within the rows collection of the table. Zero-indexed. Read-only. +// GetIndex gets the index property value. The index of the row within the rows collection of the table. Zero-based. Read-only. // returns a *int32 when successful func (m *WorkbookTableRow) GetIndex()(*int32) { val, err := m.GetBackingStore().Get("index") @@ -57,7 +57,7 @@ func (m *WorkbookTableRow) GetIndex()(*int32) { } return nil } -// GetValues gets the values property value. Represents the raw values of the specified range. The data returned could be of type string, number, or a boolean. Cell that contain an error will return the error string. +// GetValues gets the values property value. The raw values of the specified range. The data returned could be of type string, number, or a Boolean. Any cell that contain an error will return the error string. // returns a UntypedNodeable when successful func (m *WorkbookTableRow) GetValues()(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable) { val, err := m.GetBackingStore().Get("values") @@ -89,14 +89,14 @@ func (m *WorkbookTableRow) Serialize(writer i878a80d2330e89d26896388a3f487eef27b } return nil } -// SetIndex sets the index property value. Returns the index number of the row within the rows collection of the table. Zero-indexed. Read-only. +// SetIndex sets the index property value. The index of the row within the rows collection of the table. Zero-based. Read-only. func (m *WorkbookTableRow) SetIndex(value *int32)() { err := m.GetBackingStore().Set("index", value) if err != nil { panic(err) } } -// SetValues sets the values property value. Represents the raw values of the specified range. The data returned could be of type string, number, or a boolean. Cell that contain an error will return the error string. +// SetValues sets the values property value. The raw values of the specified range. The data returned could be of type string, number, or a Boolean. Any cell that contain an error will return the error string. func (m *WorkbookTableRow) SetValues(value i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.UntypedNodeable)() { err := m.GetBackingStore().Set("values", value) if err != nil { diff --git a/models/workbook_table_sort.go b/models/workbook_table_sort.go index 1a71cfb2321..8a5e112e03e 100644 --- a/models/workbook_table_sort.go +++ b/models/workbook_table_sort.go @@ -61,7 +61,7 @@ func (m *WorkbookTableSort) GetFieldDeserializers()(map[string]func(i878a80d2330 } return res } -// GetFields gets the fields property value. The fields property +// GetFields gets the fields property value. The list of the current conditions last used to sort the table. Read-only. // returns a []WorkbookSortFieldable when successful func (m *WorkbookTableSort) GetFields()([]WorkbookSortFieldable) { val, err := m.GetBackingStore().Get("fields") @@ -73,7 +73,7 @@ func (m *WorkbookTableSort) GetFields()([]WorkbookSortFieldable) { } return nil } -// GetMatchCase gets the matchCase property value. Represents whether the casing impacted the last sort of the table. Read-only. +// GetMatchCase gets the matchCase property value. Indicates whether the casing impacted the last sort of the table. Read-only. // returns a *bool when successful func (m *WorkbookTableSort) GetMatchCase()(*bool) { val, err := m.GetBackingStore().Get("matchCase") @@ -85,7 +85,7 @@ func (m *WorkbookTableSort) GetMatchCase()(*bool) { } return nil } -// GetMethod gets the method property value. Represents Chinese character ordering method last used to sort the table. Possible values are: PinYin, StrokeCount. Read-only. +// GetMethod gets the method property value. The Chinese character ordering method last used to sort the table. The possible values are: PinYin, StrokeCount. Read-only. // returns a *string when successful func (m *WorkbookTableSort) GetMethod()(*string) { val, err := m.GetBackingStore().Get("method") @@ -129,21 +129,21 @@ func (m *WorkbookTableSort) Serialize(writer i878a80d2330e89d26896388a3f487eef27 } return nil } -// SetFields sets the fields property value. The fields property +// SetFields sets the fields property value. The list of the current conditions last used to sort the table. Read-only. func (m *WorkbookTableSort) SetFields(value []WorkbookSortFieldable)() { err := m.GetBackingStore().Set("fields", value) if err != nil { panic(err) } } -// SetMatchCase sets the matchCase property value. Represents whether the casing impacted the last sort of the table. Read-only. +// SetMatchCase sets the matchCase property value. Indicates whether the casing impacted the last sort of the table. Read-only. func (m *WorkbookTableSort) SetMatchCase(value *bool)() { err := m.GetBackingStore().Set("matchCase", value) if err != nil { panic(err) } } -// SetMethod sets the method property value. Represents Chinese character ordering method last used to sort the table. Possible values are: PinYin, StrokeCount. Read-only. +// SetMethod sets the method property value. The Chinese character ordering method last used to sort the table. The possible values are: PinYin, StrokeCount. Read-only. func (m *WorkbookTableSort) SetMethod(value *string)() { err := m.GetBackingStore().Set("method", value) if err != nil { diff --git a/models/workbook_worksheet.go b/models/workbook_worksheet.go index 557ffe525e8..e9ec13e3d5f 100644 --- a/models/workbook_worksheet.go +++ b/models/workbook_worksheet.go @@ -19,7 +19,7 @@ func NewWorkbookWorksheet()(*WorkbookWorksheet) { func CreateWorkbookWorksheetFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewWorkbookWorksheet(), nil } -// GetCharts gets the charts property value. Returns collection of charts that are part of the worksheet. Read-only. +// GetCharts gets the charts property value. The list of charts that are part of the worksheet. Read-only. // returns a []WorkbookChartable when successful func (m *WorkbookWorksheet) GetCharts()([]WorkbookChartable) { val, err := m.GetBackingStore().Get("charts") @@ -169,7 +169,7 @@ func (m *WorkbookWorksheet) GetName()(*string) { } return nil } -// GetNames gets the names property value. Returns collection of names that are associated with the worksheet. Read-only. +// GetNames gets the names property value. The list of names that are associated with the worksheet. Read-only. // returns a []WorkbookNamedItemable when successful func (m *WorkbookWorksheet) GetNames()([]WorkbookNamedItemable) { val, err := m.GetBackingStore().Get("names") @@ -181,7 +181,7 @@ func (m *WorkbookWorksheet) GetNames()([]WorkbookNamedItemable) { } return nil } -// GetPivotTables gets the pivotTables property value. Collection of PivotTables that are part of the worksheet. +// GetPivotTables gets the pivotTables property value. The list of piot tables that are part of the worksheet. // returns a []WorkbookPivotTableable when successful func (m *WorkbookWorksheet) GetPivotTables()([]WorkbookPivotTableable) { val, err := m.GetBackingStore().Get("pivotTables") @@ -205,7 +205,7 @@ func (m *WorkbookWorksheet) GetPosition()(*int32) { } return nil } -// GetProtection gets the protection property value. Returns sheet protection object for a worksheet. Read-only. +// GetProtection gets the protection property value. The sheet protection object for a worksheet. Read-only. // returns a WorkbookWorksheetProtectionable when successful func (m *WorkbookWorksheet) GetProtection()(WorkbookWorksheetProtectionable) { val, err := m.GetBackingStore().Get("protection") @@ -217,7 +217,7 @@ func (m *WorkbookWorksheet) GetProtection()(WorkbookWorksheetProtectionable) { } return nil } -// GetTables gets the tables property value. Collection of tables that are part of the worksheet. Read-only. +// GetTables gets the tables property value. The list of tables that are part of the worksheet. Read-only. // returns a []WorkbookTableable when successful func (m *WorkbookWorksheet) GetTables()([]WorkbookTableable) { val, err := m.GetBackingStore().Get("tables") @@ -345,7 +345,7 @@ func (m *WorkbookWorksheet) Serialize(writer i878a80d2330e89d26896388a3f487eef27 } return nil } -// SetCharts sets the charts property value. Returns collection of charts that are part of the worksheet. Read-only. +// SetCharts sets the charts property value. The list of charts that are part of the worksheet. Read-only. func (m *WorkbookWorksheet) SetCharts(value []WorkbookChartable)() { err := m.GetBackingStore().Set("charts", value) if err != nil { @@ -359,14 +359,14 @@ func (m *WorkbookWorksheet) SetName(value *string)() { panic(err) } } -// SetNames sets the names property value. Returns collection of names that are associated with the worksheet. Read-only. +// SetNames sets the names property value. The list of names that are associated with the worksheet. Read-only. func (m *WorkbookWorksheet) SetNames(value []WorkbookNamedItemable)() { err := m.GetBackingStore().Set("names", value) if err != nil { panic(err) } } -// SetPivotTables sets the pivotTables property value. Collection of PivotTables that are part of the worksheet. +// SetPivotTables sets the pivotTables property value. The list of piot tables that are part of the worksheet. func (m *WorkbookWorksheet) SetPivotTables(value []WorkbookPivotTableable)() { err := m.GetBackingStore().Set("pivotTables", value) if err != nil { @@ -380,14 +380,14 @@ func (m *WorkbookWorksheet) SetPosition(value *int32)() { panic(err) } } -// SetProtection sets the protection property value. Returns sheet protection object for a worksheet. Read-only. +// SetProtection sets the protection property value. The sheet protection object for a worksheet. Read-only. func (m *WorkbookWorksheet) SetProtection(value WorkbookWorksheetProtectionable)() { err := m.GetBackingStore().Set("protection", value) if err != nil { panic(err) } } -// SetTables sets the tables property value. Collection of tables that are part of the worksheet. Read-only. +// SetTables sets the tables property value. The list of tables that are part of the worksheet. Read-only. func (m *WorkbookWorksheet) SetTables(value []WorkbookTableable)() { err := m.GetBackingStore().Set("tables", value) if err != nil { diff --git a/models/workbook_worksheet_protection.go b/models/workbook_worksheet_protection.go index a5045f0d7ad..09e53d5c408 100644 --- a/models/workbook_worksheet_protection.go +++ b/models/workbook_worksheet_protection.go @@ -45,7 +45,7 @@ func (m *WorkbookWorksheetProtection) GetFieldDeserializers()(map[string]func(i8 } return res } -// GetOptions gets the options property value. Sheet protection options. Read-only. +// GetOptions gets the options property value. Worksheet protection options. Read-only. // returns a WorkbookWorksheetProtectionOptionsable when successful func (m *WorkbookWorksheetProtection) GetOptions()(WorkbookWorksheetProtectionOptionsable) { val, err := m.GetBackingStore().Get("options") @@ -57,7 +57,7 @@ func (m *WorkbookWorksheetProtection) GetOptions()(WorkbookWorksheetProtectionOp } return nil } -// GetProtected gets the protected property value. Indicates if the worksheet is protected. Read-only. +// GetProtected gets the protected property value. Indicates whether the worksheet is protected. Read-only. // returns a *bool when successful func (m *WorkbookWorksheetProtection) GetProtected()(*bool) { val, err := m.GetBackingStore().Get("protected") @@ -89,14 +89,14 @@ func (m *WorkbookWorksheetProtection) Serialize(writer i878a80d2330e89d26896388a } return nil } -// SetOptions sets the options property value. Sheet protection options. Read-only. +// SetOptions sets the options property value. Worksheet protection options. Read-only. func (m *WorkbookWorksheetProtection) SetOptions(value WorkbookWorksheetProtectionOptionsable)() { err := m.GetBackingStore().Set("options", value) if err != nil { panic(err) } } -// SetProtected sets the protected property value. Indicates if the worksheet is protected. Read-only. +// SetProtected sets the protected property value. Indicates whether the worksheet is protected. Read-only. func (m *WorkbookWorksheetProtection) SetProtected(value *bool)() { err := m.GetBackingStore().Set("protected", value) if err != nil { diff --git a/models/workplace_sensor_device_telemetry.go b/models/workplace_sensor_device_telemetry.go index 429ffcc0675..acde14af40a 100644 --- a/models/workplace_sensor_device_telemetry.go +++ b/models/workplace_sensor_device_telemetry.go @@ -65,6 +65,18 @@ func (m *WorkplaceSensorDeviceTelemetry) GetDeviceId()(*string) { } return nil } +// GetEventValue gets the eventValue property value. The extra values associated with badge signals. +// returns a WorkplaceSensorEventValueable when successful +func (m *WorkplaceSensorDeviceTelemetry) GetEventValue()(WorkplaceSensorEventValueable) { + val, err := m.GetBackingStore().Get("eventValue") + if err != nil { + panic(err) + } + if val != nil { + return val.(WorkplaceSensorEventValueable) + } + return nil +} // GetFieldDeserializers the deserialization information for the current model // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *WorkplaceSensorDeviceTelemetry) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { @@ -89,6 +101,16 @@ func (m *WorkplaceSensorDeviceTelemetry) GetFieldDeserializers()(map[string]func } return nil } + res["eventValue"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateWorkplaceSensorEventValueFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetEventValue(val.(WorkplaceSensorEventValueable)) + } + return nil + } res["intValue"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetInt32Value() if err != nil { @@ -99,6 +121,16 @@ func (m *WorkplaceSensorDeviceTelemetry) GetFieldDeserializers()(map[string]func } return nil } + res["locationHint"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetStringValue() + if err != nil { + return err + } + if val != nil { + m.SetLocationHint(val) + } + return nil + } res["@odata.type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { @@ -153,6 +185,18 @@ func (m *WorkplaceSensorDeviceTelemetry) GetIntValue()(*int32) { } return nil } +// GetLocationHint gets the locationHint property value. The additional information to indicate the location of the device. +// returns a *string when successful +func (m *WorkplaceSensorDeviceTelemetry) GetLocationHint()(*string) { + val, err := m.GetBackingStore().Get("locationHint") + 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 *WorkplaceSensorDeviceTelemetry) GetOdataType()(*string) { @@ -215,12 +259,24 @@ func (m *WorkplaceSensorDeviceTelemetry) Serialize(writer i878a80d2330e89d268963 return err } } + { + err := writer.WriteObjectValue("eventValue", m.GetEventValue()) + if err != nil { + return err + } + } { err := writer.WriteInt32Value("intValue", m.GetIntValue()) if err != nil { return err } } + { + err := writer.WriteStringValue("locationHint", m.GetLocationHint()) + if err != nil { + return err + } + } { err := writer.WriteStringValue("@odata.type", m.GetOdataType()) if err != nil { @@ -279,6 +335,13 @@ func (m *WorkplaceSensorDeviceTelemetry) SetDeviceId(value *string)() { panic(err) } } +// SetEventValue sets the eventValue property value. The extra values associated with badge signals. +func (m *WorkplaceSensorDeviceTelemetry) SetEventValue(value WorkplaceSensorEventValueable)() { + err := m.GetBackingStore().Set("eventValue", value) + if err != nil { + panic(err) + } +} // SetIntValue sets the intValue property value. The value of the sensor as an integer. Use it for sensors that report numerical values, such as people count. func (m *WorkplaceSensorDeviceTelemetry) SetIntValue(value *int32)() { err := m.GetBackingStore().Set("intValue", value) @@ -286,6 +349,13 @@ func (m *WorkplaceSensorDeviceTelemetry) SetIntValue(value *int32)() { panic(err) } } +// SetLocationHint sets the locationHint property value. The additional information to indicate the location of the device. +func (m *WorkplaceSensorDeviceTelemetry) SetLocationHint(value *string)() { + err := m.GetBackingStore().Set("locationHint", value) + if err != nil { + panic(err) + } +} // SetOdataType sets the @odata.type property value. The OdataType property func (m *WorkplaceSensorDeviceTelemetry) SetOdataType(value *string)() { err := m.GetBackingStore().Set("odataType", value) @@ -321,7 +391,9 @@ type WorkplaceSensorDeviceTelemetryable interface { GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetBoolValue()(*bool) GetDeviceId()(*string) + GetEventValue()(WorkplaceSensorEventValueable) GetIntValue()(*int32) + GetLocationHint()(*string) GetOdataType()(*string) GetSensorId()(*string) GetSensorType()(*WorkplaceSensorType) @@ -329,7 +401,9 @@ type WorkplaceSensorDeviceTelemetryable interface { SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetBoolValue(value *bool)() SetDeviceId(value *string)() + SetEventValue(value WorkplaceSensorEventValueable)() SetIntValue(value *int32)() + SetLocationHint(value *string)() SetOdataType(value *string)() SetSensorId(value *string)() SetSensorType(value *WorkplaceSensorType)() diff --git a/models/workplace_sensor_event_type.go b/models/workplace_sensor_event_type.go new file mode 100644 index 00000000000..d3076652023 --- /dev/null +++ b/models/workplace_sensor_event_type.go @@ -0,0 +1,36 @@ +package models +type WorkplaceSensorEventType int + +const ( + BADGEIN_WORKPLACESENSOREVENTTYPE WorkplaceSensorEventType = iota + BADGEOUT_WORKPLACESENSOREVENTTYPE + UNKNOWNFUTUREVALUE_WORKPLACESENSOREVENTTYPE +) + +func (i WorkplaceSensorEventType) String() string { + return []string{"badgeIn", "badgeOut", "unknownFutureValue"}[i] +} +func ParseWorkplaceSensorEventType(v string) (any, error) { + result := BADGEIN_WORKPLACESENSOREVENTTYPE + switch v { + case "badgeIn": + result = BADGEIN_WORKPLACESENSOREVENTTYPE + case "badgeOut": + result = BADGEOUT_WORKPLACESENSOREVENTTYPE + case "unknownFutureValue": + result = UNKNOWNFUTUREVALUE_WORKPLACESENSOREVENTTYPE + default: + return nil, nil + } + return &result, nil +} +func SerializeWorkplaceSensorEventType(values []WorkplaceSensorEventType) []string { + result := make([]string, len(values)) + for i, v := range values { + result[i] = v.String() + } + return result +} +func (i WorkplaceSensorEventType) isMultiValue() bool { + return false +} diff --git a/models/workplace_sensor_event_value.go b/models/workplace_sensor_event_value.go new file mode 100644 index 00000000000..87f8b06a559 --- /dev/null +++ b/models/workplace_sensor_event_value.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 WorkplaceSensorEventValue struct { + // Stores model information. + backingStore ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore +} +// NewWorkplaceSensorEventValue instantiates a new WorkplaceSensorEventValue and sets the default values. +func NewWorkplaceSensorEventValue()(*WorkplaceSensorEventValue) { + m := &WorkplaceSensorEventValue{ + } + m.backingStore = ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStoreFactoryInstance(); + m.SetAdditionalData(make(map[string]any)) + return m +} +// CreateWorkplaceSensorEventValueFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateWorkplaceSensorEventValueFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + return NewWorkplaceSensorEventValue(), nil +} +// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +// returns a map[string]any when successful +func (m *WorkplaceSensorEventValue) GetAdditionalData()(map[string]any) { + val , err := m.backingStore.Get("additionalData") + if err != nil { + panic(err) + } + if val == nil { + var value = make(map[string]any); + m.SetAdditionalData(value); + } + return val.(map[string]any) +} +// GetBackingStore gets the BackingStore property value. Stores model information. +// returns a BackingStore when successful +func (m *WorkplaceSensorEventValue) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { + return m.backingStore +} +// GetEventType gets the eventType property value. The type of possible sensor event value. The possible values are: badgeIn, badgeOut, unknownFutureValue. +// returns a *WorkplaceSensorEventType when successful +func (m *WorkplaceSensorEventValue) GetEventType()(*WorkplaceSensorEventType) { + val, err := m.GetBackingStore().Get("eventType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*WorkplaceSensorEventType) + } + return nil +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *WorkplaceSensorEventValue) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["eventType"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetEnumValue(ParseWorkplaceSensorEventType) + if err != nil { + return err + } + if val != nil { + m.SetEventType(val.(*WorkplaceSensorEventType)) + } + 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["user"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(CreateEmailIdentityFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetUser(val.(EmailIdentityable)) + } + return nil + } + return res +} +// GetOdataType gets the @odata.type property value. The OdataType property +// returns a *string when successful +func (m *WorkplaceSensorEventValue) GetOdataType()(*string) { + val, err := m.GetBackingStore().Get("odataType") + if err != nil { + panic(err) + } + if val != nil { + return val.(*string) + } + return nil +} +// GetUser gets the user property value. The unique identifier of a user. It could be an email or a Microsoft Entra ID. +// returns a EmailIdentityable when successful +func (m *WorkplaceSensorEventValue) GetUser()(EmailIdentityable) { + val, err := m.GetBackingStore().Get("user") + if err != nil { + panic(err) + } + if val != nil { + return val.(EmailIdentityable) + } + return nil +} +// Serialize serializes information the current object +func (m *WorkplaceSensorEventValue) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetEventType() != nil { + cast := (*m.GetEventType()).String() + err := writer.WriteStringValue("eventType", &cast) + if err != nil { + return err + } + } + { + err := writer.WriteStringValue("@odata.type", m.GetOdataType()) + if err != nil { + return err + } + } + { + err := writer.WriteObjectValue("user", m.GetUser()) + if err != nil { + return err + } + } + { + err := writer.WriteAdditionalData(m.GetAdditionalData()) + if err != nil { + return err + } + } + return nil +} +// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. +func (m *WorkplaceSensorEventValue) SetAdditionalData(value map[string]any)() { + err := m.GetBackingStore().Set("additionalData", value) + if err != nil { + panic(err) + } +} +// SetBackingStore sets the BackingStore property value. Stores model information. +func (m *WorkplaceSensorEventValue) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { + m.backingStore = value +} +// SetEventType sets the eventType property value. The type of possible sensor event value. The possible values are: badgeIn, badgeOut, unknownFutureValue. +func (m *WorkplaceSensorEventValue) SetEventType(value *WorkplaceSensorEventType)() { + err := m.GetBackingStore().Set("eventType", value) + if err != nil { + panic(err) + } +} +// SetOdataType sets the @odata.type property value. The OdataType property +func (m *WorkplaceSensorEventValue) SetOdataType(value *string)() { + err := m.GetBackingStore().Set("odataType", value) + if err != nil { + panic(err) + } +} +// SetUser sets the user property value. The unique identifier of a user. It could be an email or a Microsoft Entra ID. +func (m *WorkplaceSensorEventValue) SetUser(value EmailIdentityable)() { + err := m.GetBackingStore().Set("user", value) + if err != nil { + panic(err) + } +} +type WorkplaceSensorEventValueable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder + ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) + GetEventType()(*WorkplaceSensorEventType) + GetOdataType()(*string) + GetUser()(EmailIdentityable) + SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() + SetEventType(value *WorkplaceSensorEventType)() + SetOdataType(value *string)() + SetUser(value EmailIdentityable)() +} diff --git a/models/workplace_sensor_type.go b/models/workplace_sensor_type.go index c1e6bfe9d84..a5bfbe8860a 100644 --- a/models/workplace_sensor_type.go +++ b/models/workplace_sensor_type.go @@ -10,12 +10,14 @@ const ( INFERREDOCCUPANCY_WORKPLACESENSORTYPE // The heartbeat sensor type. HEARTBEAT_WORKPLACESENSORTYPE + // The badge swipe sensor type. + BADGE_WORKPLACESENSORTYPE // The unknown feature value. UNKNOWNFUTUREVALUE_WORKPLACESENSORTYPE ) func (i WorkplaceSensorType) String() string { - return []string{"occupancy", "peopleCount", "inferredOccupancy", "heartbeat", "unknownFutureValue"}[i] + return []string{"occupancy", "peopleCount", "inferredOccupancy", "heartbeat", "badge", "unknownFutureValue"}[i] } func ParseWorkplaceSensorType(v string) (any, error) { result := OCCUPANCY_WORKPLACESENSORTYPE @@ -28,6 +30,8 @@ func ParseWorkplaceSensorType(v string) (any, error) { result = INFERREDOCCUPANCY_WORKPLACESENSORTYPE case "heartbeat": result = HEARTBEAT_WORKPLACESENSORTYPE + case "badge": + result = BADGE_WORKPLACESENSORTYPE case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_WORKPLACESENSORTYPE default: diff --git a/networkaccess/logs_remote_networks_request_builder.go b/networkaccess/logs_remote_networks_request_builder.go index fdb91aae08f..75890b70204 100644 --- a/networkaccess/logs_remote_networks_request_builder.go +++ b/networkaccess/logs_remote_networks_request_builder.go @@ -11,7 +11,7 @@ import ( type LogsRemoteNetworksRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// LogsRemoteNetworksRequestBuilderGetQueryParameters retrieve a list of remote network health status microsoft.graph.networkaccess.remoteNetworkHealthStatusEvent events, providing insights into the health and status of remote networks. +// LogsRemoteNetworksRequestBuilderGetQueryParameters a collection of remote network health events. type LogsRemoteNetworksRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,12 +76,9 @@ func NewLogsRemoteNetworksRequestBuilder(rawUrl string, requestAdapter i2ae4187f func (m *LogsRemoteNetworksRequestBuilder) Count()(*LogsRemoteNetworksCountRequestBuilder) { return NewLogsRemoteNetworksCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get retrieve a list of remote network health status microsoft.graph.networkaccess.remoteNetworkHealthStatusEvent events, providing insights into the health and status of remote networks. +// Get a collection of remote network health events. // returns a RemoteNetworkHealthEventCollectionResponseable 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/networkaccess-remotenetworkhealthstatusevent-list?view=graph-rest-beta func (m *LogsRemoteNetworksRequestBuilder) Get(ctx context.Context, requestConfiguration *LogsRemoteNetworksRequestBuilderGetRequestConfiguration)(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.RemoteNetworkHealthEventCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -119,7 +116,7 @@ func (m *LogsRemoteNetworksRequestBuilder) Post(ctx context.Context, body i43e72 } return res.(i43e723cc778f0f3f3a05d36b9df74faa56771e9360d8ed793c50bdaacec8d5d2.RemoteNetworkHealthEventable), nil } -// ToGetRequestInformation retrieve a list of remote network health status microsoft.graph.networkaccess.remoteNetworkHealthStatusEvent events, providing insights into the health and status of remote networks. +// ToGetRequestInformation a collection of remote network health events. // returns a *RequestInformation when successful func (m *LogsRemoteNetworksRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *LogsRemoteNetworksRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/policies/federated_token_validation_policy_request_builder.go b/policies/federated_token_validation_policy_request_builder.go index e95a204f3fa..7444668997a 100644 --- a/policies/federated_token_validation_policy_request_builder.go +++ b/policies/federated_token_validation_policy_request_builder.go @@ -18,7 +18,7 @@ type FederatedTokenValidationPolicyRequestBuilderDeleteRequestConfiguration stru // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// FederatedTokenValidationPolicyRequestBuilderGetQueryParameters read the properties and relationships of a federatedTokenValidationPolicy object. +// FederatedTokenValidationPolicyRequestBuilderGetQueryParameters get a list of the federatedTokenValidationPolicy objects and their properties. type FederatedTokenValidationPolicyRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -70,12 +70,12 @@ func (m *FederatedTokenValidationPolicyRequestBuilder) Delete(ctx context.Contex } return nil } -// Get read the properties and relationships of a federatedTokenValidationPolicy object. +// Get get a list of the federatedTokenValidationPolicy objects and their properties. // returns a FederatedTokenValidationPolicyable 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/federatedtokenvalidationpolicy-get?view=graph-rest-beta +// [Find more info here]: https://learn.microsoft.com/graph/api/policyroot-list-federatedtokenvalidationpolicy?view=graph-rest-beta func (m *FederatedTokenValidationPolicyRequestBuilder) Get(ctx context.Context, requestConfiguration *FederatedTokenValidationPolicyRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.FederatedTokenValidationPolicyable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -127,7 +127,7 @@ func (m *FederatedTokenValidationPolicyRequestBuilder) ToDeleteRequestInformatio requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation read the properties and relationships of a federatedTokenValidationPolicy object. +// ToGetRequestInformation get a list of the federatedTokenValidationPolicy objects and their properties. // returns a *RequestInformation when successful func (m *FederatedTokenValidationPolicyRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FederatedTokenValidationPolicyRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/print/printer_shares_item_allowed_users_count_request_builder.go b/print/printer_shares_item_allowed_users_count_request_builder.go index 2d89f708109..f10114d3f89 100644 --- a/print/printer_shares_item_allowed_users_count_request_builder.go +++ b/print/printer_shares_item_allowed_users_count_request_builder.go @@ -40,7 +40,7 @@ func NewPrinterSharesItemAllowedUsersCountRequestBuilder(rawUrl string, requestA return NewPrinterSharesItemAllowedUsersCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource -// Deprecated: The printerShares navigation property is deprecated and will stop returning data on July 31, 2023. Please use the shares navigation property instead of this. as of 2023-06/Tasks_And_Plans +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *PrinterSharesItemAllowedUsersCountRequestBuilder) Get(ctx context.Context, requestConfiguration *PrinterSharesItemAllowedUsersCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -61,7 +61,7 @@ func (m *PrinterSharesItemAllowedUsersCountRequestBuilder) Get(ctx context.Conte return res.(*int32), nil } // ToGetRequestInformation get the number of the resource -// Deprecated: The printerShares navigation property is deprecated and will stop returning data on July 31, 2023. Please use the shares navigation property instead of this. as of 2023-06/Tasks_And_Plans +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *PrinterSharesItemAllowedUsersCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *PrinterSharesItemAllowedUsersCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -76,7 +76,7 @@ func (m *PrinterSharesItemAllowedUsersCountRequestBuilder) ToGetRequestInformati return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The printerShares navigation property is deprecated and will stop returning data on July 31, 2023. Please use the shares navigation property instead of this. as of 2023-06/Tasks_And_Plans +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *PrinterSharesItemAllowedUsersCountRequestBuilder when successful func (m *PrinterSharesItemAllowedUsersCountRequestBuilder) WithUrl(rawUrl string)(*PrinterSharesItemAllowedUsersCountRequestBuilder) { return NewPrinterSharesItemAllowedUsersCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/print/printer_shares_item_allowed_users_item_mailbox_settings_request_builder.go b/print/printer_shares_item_allowed_users_item_mailbox_settings_request_builder.go index 2cba62f23f2..398d9ccee1c 100644 --- a/print/printer_shares_item_allowed_users_item_mailbox_settings_request_builder.go +++ b/print/printer_shares_item_allowed_users_item_mailbox_settings_request_builder.go @@ -48,7 +48,7 @@ func NewPrinterSharesItemAllowedUsersItemMailboxSettingsRequestBuilder(rawUrl st return NewPrinterSharesItemAllowedUsersItemMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. -// Deprecated: The printerShares navigation property is deprecated and will stop returning data on July 31, 2023. Please use the shares navigation property instead of this. as of 2023-06/Tasks_And_Plans +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *PrinterSharesItemAllowedUsersItemMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *PrinterSharesItemAllowedUsersItemMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -69,7 +69,7 @@ func (m *PrinterSharesItemAllowedUsersItemMailboxSettingsRequestBuilder) Get(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. -// Deprecated: The printerShares navigation property is deprecated and will stop returning data on July 31, 2023. Please use the shares navigation property instead of this. as of 2023-06/Tasks_And_Plans +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *PrinterSharesItemAllowedUsersItemMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *PrinterSharesItemAllowedUsersItemMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -90,7 +90,7 @@ func (m *PrinterSharesItemAllowedUsersItemMailboxSettingsRequestBuilder) Patch(c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. -// Deprecated: The printerShares navigation property is deprecated and will stop returning data on July 31, 2023. Please use the shares navigation property instead of this. as of 2023-06/Tasks_And_Plans +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *PrinterSharesItemAllowedUsersItemMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *PrinterSharesItemAllowedUsersItemMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -105,7 +105,7 @@ func (m *PrinterSharesItemAllowedUsersItemMailboxSettingsRequestBuilder) ToGetRe return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. -// Deprecated: The printerShares navigation property is deprecated and will stop returning data on July 31, 2023. Please use the shares navigation property instead of this. as of 2023-06/Tasks_And_Plans +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *PrinterSharesItemAllowedUsersItemMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *PrinterSharesItemAllowedUsersItemMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -121,7 +121,7 @@ func (m *PrinterSharesItemAllowedUsersItemMailboxSettingsRequestBuilder) ToPatch return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The printerShares navigation property is deprecated and will stop returning data on July 31, 2023. Please use the shares navigation property instead of this. as of 2023-06/Tasks_And_Plans +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *PrinterSharesItemAllowedUsersItemMailboxSettingsRequestBuilder when successful func (m *PrinterSharesItemAllowedUsersItemMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*PrinterSharesItemAllowedUsersItemMailboxSettingsRequestBuilder) { return NewPrinterSharesItemAllowedUsersItemMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/print/printer_shares_item_allowed_users_item_ref_request_builder.go b/print/printer_shares_item_allowed_users_item_ref_request_builder.go index 798ff5b8409..2ab55bedb05 100644 --- a/print/printer_shares_item_allowed_users_item_ref_request_builder.go +++ b/print/printer_shares_item_allowed_users_item_ref_request_builder.go @@ -31,7 +31,7 @@ func NewPrinterSharesItemAllowedUsersItemRefRequestBuilder(rawUrl string, reques return NewPrinterSharesItemAllowedUsersItemRefRequestBuilderInternal(urlParams, requestAdapter) } // Delete revoke the specified user's access to submit print jobs to the associated printerShare. -// Deprecated: The printerShares navigation property is deprecated and will stop returning data on July 31, 2023. Please use the shares navigation property instead of this. as of 2023-06/Tasks_And_Plans +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -51,7 +51,7 @@ func (m *PrinterSharesItemAllowedUsersItemRefRequestBuilder) Delete(ctx context. return nil } // ToDeleteRequestInformation revoke the specified user's access to submit print jobs to the associated printerShare. -// Deprecated: The printerShares navigation property is deprecated and will stop returning data on July 31, 2023. Please use the shares navigation property instead of this. as of 2023-06/Tasks_And_Plans +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *PrinterSharesItemAllowedUsersItemRefRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *PrinterSharesItemAllowedUsersItemRefRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -63,7 +63,7 @@ func (m *PrinterSharesItemAllowedUsersItemRefRequestBuilder) ToDeleteRequestInfo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The printerShares navigation property is deprecated and will stop returning data on July 31, 2023. Please use the shares navigation property instead of this. as of 2023-06/Tasks_And_Plans +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *PrinterSharesItemAllowedUsersItemRefRequestBuilder when successful func (m *PrinterSharesItemAllowedUsersItemRefRequestBuilder) WithUrl(rawUrl string)(*PrinterSharesItemAllowedUsersItemRefRequestBuilder) { return NewPrinterSharesItemAllowedUsersItemRefRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/print/printer_shares_item_allowed_users_item_service_provisioning_errors_count_request_builder.go b/print/printer_shares_item_allowed_users_item_service_provisioning_errors_count_request_builder.go index dee357e85f2..7aae8e8552e 100644 --- a/print/printer_shares_item_allowed_users_item_service_provisioning_errors_count_request_builder.go +++ b/print/printer_shares_item_allowed_users_item_service_provisioning_errors_count_request_builder.go @@ -40,7 +40,7 @@ func NewPrinterSharesItemAllowedUsersItemServiceProvisioningErrorsCountRequestBu return NewPrinterSharesItemAllowedUsersItemServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource -// Deprecated: The printerShares navigation property is deprecated and will stop returning data on July 31, 2023. Please use the shares navigation property instead of this. as of 2023-06/Tasks_And_Plans +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *PrinterSharesItemAllowedUsersItemServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *PrinterSharesItemAllowedUsersItemServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -61,7 +61,7 @@ func (m *PrinterSharesItemAllowedUsersItemServiceProvisioningErrorsCountRequestB return res.(*int32), nil } // ToGetRequestInformation get the number of the resource -// Deprecated: The printerShares navigation property is deprecated and will stop returning data on July 31, 2023. Please use the shares navigation property instead of this. as of 2023-06/Tasks_And_Plans +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *PrinterSharesItemAllowedUsersItemServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *PrinterSharesItemAllowedUsersItemServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -76,7 +76,7 @@ func (m *PrinterSharesItemAllowedUsersItemServiceProvisioningErrorsCountRequestB return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The printerShares navigation property is deprecated and will stop returning data on July 31, 2023. Please use the shares navigation property instead of this. as of 2023-06/Tasks_And_Plans +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *PrinterSharesItemAllowedUsersItemServiceProvisioningErrorsCountRequestBuilder when successful func (m *PrinterSharesItemAllowedUsersItemServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*PrinterSharesItemAllowedUsersItemServiceProvisioningErrorsCountRequestBuilder) { return NewPrinterSharesItemAllowedUsersItemServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/print/printer_shares_item_allowed_users_item_service_provisioning_errors_request_builder.go b/print/printer_shares_item_allowed_users_item_service_provisioning_errors_request_builder.go index b0353ae260b..35a87d731ab 100644 --- a/print/printer_shares_item_allowed_users_item_service_provisioning_errors_request_builder.go +++ b/print/printer_shares_item_allowed_users_item_service_provisioning_errors_request_builder.go @@ -58,7 +58,7 @@ func (m *PrinterSharesItemAllowedUsersItemServiceProvisioningErrorsRequestBuilde return NewPrinterSharesItemAllowedUsersItemServiceProvisioningErrorsCountRequestBuilderInternal(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. -// Deprecated: The printerShares navigation property is deprecated and will stop returning data on July 31, 2023. Please use the shares navigation property instead of this. as of 2023-06/Tasks_And_Plans +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *PrinterSharesItemAllowedUsersItemServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *PrinterSharesItemAllowedUsersItemServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -79,7 +79,7 @@ func (m *PrinterSharesItemAllowedUsersItemServiceProvisioningErrorsRequestBuilde return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. -// Deprecated: The printerShares navigation property is deprecated and will stop returning data on July 31, 2023. Please use the shares navigation property instead of this. as of 2023-06/Tasks_And_Plans +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *PrinterSharesItemAllowedUsersItemServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *PrinterSharesItemAllowedUsersItemServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -94,7 +94,7 @@ func (m *PrinterSharesItemAllowedUsersItemServiceProvisioningErrorsRequestBuilde return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The printerShares navigation property is deprecated and will stop returning data on July 31, 2023. Please use the shares navigation property instead of this. as of 2023-06/Tasks_And_Plans +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *PrinterSharesItemAllowedUsersItemServiceProvisioningErrorsRequestBuilder when successful func (m *PrinterSharesItemAllowedUsersItemServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*PrinterSharesItemAllowedUsersItemServiceProvisioningErrorsRequestBuilder) { return NewPrinterSharesItemAllowedUsersItemServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/print/printer_shares_item_allowed_users_ref_request_builder.go b/print/printer_shares_item_allowed_users_ref_request_builder.go index 9548732abc1..0e111cd0489 100644 --- a/print/printer_shares_item_allowed_users_ref_request_builder.go +++ b/print/printer_shares_item_allowed_users_ref_request_builder.go @@ -70,7 +70,7 @@ func NewPrinterSharesItemAllowedUsersRefRequestBuilder(rawUrl string, requestAda return NewPrinterSharesItemAllowedUsersRefRequestBuilderInternal(urlParams, requestAdapter) } // Delete revoke the specified user's access to submit print jobs to the associated printerShare. -// Deprecated: The printerShares navigation property is deprecated and will stop returning data on July 31, 2023. Please use the shares navigation property instead of this. as of 2023-06/Tasks_And_Plans +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -90,7 +90,7 @@ func (m *PrinterSharesItemAllowedUsersRefRequestBuilder) Delete(ctx context.Cont return nil } // Get the users who have access to print using the printer. -// Deprecated: The printerShares navigation property is deprecated and will stop returning data on July 31, 2023. Please use the shares navigation property instead of this. as of 2023-06/Tasks_And_Plans +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a StringCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *PrinterSharesItemAllowedUsersRefRequestBuilder) Get(ctx context.Context, requestConfiguration *PrinterSharesItemAllowedUsersRefRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.StringCollectionResponseable, error) { @@ -111,7 +111,7 @@ func (m *PrinterSharesItemAllowedUsersRefRequestBuilder) Get(ctx context.Context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.StringCollectionResponseable), nil } // Post create new navigation property ref to allowedUsers for print -// Deprecated: The printerShares navigation property is deprecated and will stop returning data on July 31, 2023. Please use the shares navigation property instead of this. as of 2023-06/Tasks_And_Plans +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *PrinterSharesItemAllowedUsersRefRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *PrinterSharesItemAllowedUsersRefRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); @@ -128,7 +128,7 @@ func (m *PrinterSharesItemAllowedUsersRefRequestBuilder) Post(ctx context.Contex return nil } // ToDeleteRequestInformation revoke the specified user's access to submit print jobs to the associated printerShare. -// Deprecated: The printerShares navigation property is deprecated and will stop returning data on July 31, 2023. Please use the shares navigation property instead of this. as of 2023-06/Tasks_And_Plans +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *PrinterSharesItemAllowedUsersRefRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *PrinterSharesItemAllowedUsersRefRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/print/printerShares/{printerShare%2Did}/allowedUsers/$ref?@id={%40id}", m.BaseRequestBuilder.PathParameters) @@ -143,7 +143,7 @@ func (m *PrinterSharesItemAllowedUsersRefRequestBuilder) ToDeleteRequestInformat return requestInfo, nil } // ToGetRequestInformation the users who have access to print using the printer. -// Deprecated: The printerShares navigation property is deprecated and will stop returning data on July 31, 2023. Please use the shares navigation property instead of this. as of 2023-06/Tasks_And_Plans +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *PrinterSharesItemAllowedUsersRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *PrinterSharesItemAllowedUsersRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/print/printerShares/{printerShare%2Did}/allowedUsers/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) @@ -158,7 +158,7 @@ func (m *PrinterSharesItemAllowedUsersRefRequestBuilder) ToGetRequestInformation return requestInfo, nil } // ToPostRequestInformation create new navigation property ref to allowedUsers for print -// Deprecated: The printerShares navigation property is deprecated and will stop returning data on July 31, 2023. Please use the shares navigation property instead of this. as of 2023-06/Tasks_And_Plans +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *PrinterSharesItemAllowedUsersRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *PrinterSharesItemAllowedUsersRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/print/printerShares/{printerShare%2Did}/allowedUsers/$ref", m.BaseRequestBuilder.PathParameters) @@ -174,7 +174,7 @@ func (m *PrinterSharesItemAllowedUsersRefRequestBuilder) ToPostRequestInformatio return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The printerShares navigation property is deprecated and will stop returning data on July 31, 2023. Please use the shares navigation property instead of this. as of 2023-06/Tasks_And_Plans +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *PrinterSharesItemAllowedUsersRefRequestBuilder when successful func (m *PrinterSharesItemAllowedUsersRefRequestBuilder) WithUrl(rawUrl string)(*PrinterSharesItemAllowedUsersRefRequestBuilder) { return NewPrinterSharesItemAllowedUsersRefRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/print/printer_shares_item_allowed_users_request_builder.go b/print/printer_shares_item_allowed_users_request_builder.go index 149a16b4401..25906be4d5c 100644 --- a/print/printer_shares_item_allowed_users_request_builder.go +++ b/print/printer_shares_item_allowed_users_request_builder.go @@ -70,7 +70,7 @@ func (m *PrinterSharesItemAllowedUsersRequestBuilder) Count()(*PrinterSharesItem return NewPrinterSharesItemAllowedUsersCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the users who have access to print using the printer. -// Deprecated: The printerShares navigation property is deprecated and will stop returning data on July 31, 2023. Please use the shares navigation property instead of this. as of 2023-06/Tasks_And_Plans +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *PrinterSharesItemAllowedUsersRequestBuilder) Get(ctx context.Context, requestConfiguration *PrinterSharesItemAllowedUsersRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable, error) { @@ -96,7 +96,7 @@ func (m *PrinterSharesItemAllowedUsersRequestBuilder) Ref()(*PrinterSharesItemAl return NewPrinterSharesItemAllowedUsersRefRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation the users who have access to print using the printer. -// Deprecated: The printerShares navigation property is deprecated and will stop returning data on July 31, 2023. Please use the shares navigation property instead of this. as of 2023-06/Tasks_And_Plans +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *PrinterSharesItemAllowedUsersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *PrinterSharesItemAllowedUsersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -111,7 +111,7 @@ func (m *PrinterSharesItemAllowedUsersRequestBuilder) ToGetRequestInformation(ct return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The printerShares navigation property is deprecated and will stop returning data on July 31, 2023. Please use the shares navigation property instead of this. as of 2023-06/Tasks_And_Plans +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *PrinterSharesItemAllowedUsersRequestBuilder when successful func (m *PrinterSharesItemAllowedUsersRequestBuilder) WithUrl(rawUrl string)(*PrinterSharesItemAllowedUsersRequestBuilder) { return NewPrinterSharesItemAllowedUsersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/print/shares_item_allowed_users_count_request_builder.go b/print/shares_item_allowed_users_count_request_builder.go index 151589cd0ba..31c67f3c355 100644 --- a/print/shares_item_allowed_users_count_request_builder.go +++ b/print/shares_item_allowed_users_count_request_builder.go @@ -40,6 +40,7 @@ func NewSharesItemAllowedUsersCountRequestBuilder(rawUrl string, requestAdapter return NewSharesItemAllowedUsersCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *SharesItemAllowedUsersCountRequestBuilder) Get(ctx context.Context, requestConfiguration *SharesItemAllowedUsersCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *SharesItemAllowedUsersCountRequestBuilder) Get(ctx context.Context, req return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *SharesItemAllowedUsersCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SharesItemAllowedUsersCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *SharesItemAllowedUsersCountRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *SharesItemAllowedUsersCountRequestBuilder when successful func (m *SharesItemAllowedUsersCountRequestBuilder) WithUrl(rawUrl string)(*SharesItemAllowedUsersCountRequestBuilder) { return NewSharesItemAllowedUsersCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/print/shares_item_allowed_users_item_mailbox_settings_request_builder.go b/print/shares_item_allowed_users_item_mailbox_settings_request_builder.go index cbfe5aeb9bc..80ae888ab1d 100644 --- a/print/shares_item_allowed_users_item_mailbox_settings_request_builder.go +++ b/print/shares_item_allowed_users_item_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewSharesItemAllowedUsersItemMailboxSettingsRequestBuilder(rawUrl string, r return NewSharesItemAllowedUsersItemMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *SharesItemAllowedUsersItemMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *SharesItemAllowedUsersItemMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *SharesItemAllowedUsersItemMailboxSettingsRequestBuilder) Get(ctx contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *SharesItemAllowedUsersItemMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *SharesItemAllowedUsersItemMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *SharesItemAllowedUsersItemMailboxSettingsRequestBuilder) Patch(ctx cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *SharesItemAllowedUsersItemMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SharesItemAllowedUsersItemMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *SharesItemAllowedUsersItemMailboxSettingsRequestBuilder) ToGetRequestIn return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *SharesItemAllowedUsersItemMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *SharesItemAllowedUsersItemMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *SharesItemAllowedUsersItemMailboxSettingsRequestBuilder) ToPatchRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *SharesItemAllowedUsersItemMailboxSettingsRequestBuilder when successful func (m *SharesItemAllowedUsersItemMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*SharesItemAllowedUsersItemMailboxSettingsRequestBuilder) { return NewSharesItemAllowedUsersItemMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/print/shares_item_allowed_users_item_ref_request_builder.go b/print/shares_item_allowed_users_item_ref_request_builder.go index 8efdba2e0bf..9f0c0962b96 100644 --- a/print/shares_item_allowed_users_item_ref_request_builder.go +++ b/print/shares_item_allowed_users_item_ref_request_builder.go @@ -31,6 +31,7 @@ func NewSharesItemAllowedUsersItemRefRequestBuilder(rawUrl string, requestAdapte return NewSharesItemAllowedUsersItemRefRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete ref of navigation property allowedUsers for print +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *SharesItemAllowedUsersItemRefRequestBuilder) Delete(ctx context.Context, requestConfiguration *SharesItemAllowedUsersItemRefRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -47,6 +48,7 @@ func (m *SharesItemAllowedUsersItemRefRequestBuilder) Delete(ctx context.Context return nil } // ToDeleteRequestInformation delete ref of navigation property allowedUsers for print +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *SharesItemAllowedUsersItemRefRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *SharesItemAllowedUsersItemRefRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -58,6 +60,7 @@ func (m *SharesItemAllowedUsersItemRefRequestBuilder) ToDeleteRequestInformation return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *SharesItemAllowedUsersItemRefRequestBuilder when successful func (m *SharesItemAllowedUsersItemRefRequestBuilder) WithUrl(rawUrl string)(*SharesItemAllowedUsersItemRefRequestBuilder) { return NewSharesItemAllowedUsersItemRefRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/print/shares_item_allowed_users_item_service_provisioning_errors_count_request_builder.go b/print/shares_item_allowed_users_item_service_provisioning_errors_count_request_builder.go index 2db2170c9b9..b42346352ca 100644 --- a/print/shares_item_allowed_users_item_service_provisioning_errors_count_request_builder.go +++ b/print/shares_item_allowed_users_item_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewSharesItemAllowedUsersItemServiceProvisioningErrorsCountRequestBuilder(r return NewSharesItemAllowedUsersItemServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *SharesItemAllowedUsersItemServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *SharesItemAllowedUsersItemServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *SharesItemAllowedUsersItemServiceProvisioningErrorsCountRequestBuilder) return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *SharesItemAllowedUsersItemServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SharesItemAllowedUsersItemServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *SharesItemAllowedUsersItemServiceProvisioningErrorsCountRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *SharesItemAllowedUsersItemServiceProvisioningErrorsCountRequestBuilder when successful func (m *SharesItemAllowedUsersItemServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*SharesItemAllowedUsersItemServiceProvisioningErrorsCountRequestBuilder) { return NewSharesItemAllowedUsersItemServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/print/shares_item_allowed_users_item_service_provisioning_errors_request_builder.go b/print/shares_item_allowed_users_item_service_provisioning_errors_request_builder.go index d2947514068..b9ec9e4e0fb 100644 --- a/print/shares_item_allowed_users_item_service_provisioning_errors_request_builder.go +++ b/print/shares_item_allowed_users_item_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *SharesItemAllowedUsersItemServiceProvisioningErrorsRequestBuilder) Coun return NewSharesItemAllowedUsersItemServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *SharesItemAllowedUsersItemServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *SharesItemAllowedUsersItemServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *SharesItemAllowedUsersItemServiceProvisioningErrorsRequestBuilder) Get( return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *SharesItemAllowedUsersItemServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SharesItemAllowedUsersItemServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *SharesItemAllowedUsersItemServiceProvisioningErrorsRequestBuilder) ToGe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *SharesItemAllowedUsersItemServiceProvisioningErrorsRequestBuilder when successful func (m *SharesItemAllowedUsersItemServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*SharesItemAllowedUsersItemServiceProvisioningErrorsRequestBuilder) { return NewSharesItemAllowedUsersItemServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/print/shares_item_allowed_users_ref_request_builder.go b/print/shares_item_allowed_users_ref_request_builder.go index 58e988088ed..db99193e980 100644 --- a/print/shares_item_allowed_users_ref_request_builder.go +++ b/print/shares_item_allowed_users_ref_request_builder.go @@ -70,6 +70,7 @@ func NewSharesItemAllowedUsersRefRequestBuilder(rawUrl string, requestAdapter i2 return NewSharesItemAllowedUsersRefRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete ref of navigation property allowedUsers for print +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *SharesItemAllowedUsersRefRequestBuilder) Delete(ctx context.Context, requestConfiguration *SharesItemAllowedUsersRefRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -86,6 +87,7 @@ func (m *SharesItemAllowedUsersRefRequestBuilder) Delete(ctx context.Context, re return nil } // Get retrieve a list of users who have been granted access to submit print jobs to the associated printerShare. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a StringCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -109,6 +111,7 @@ func (m *SharesItemAllowedUsersRefRequestBuilder) Get(ctx context.Context, reque return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.StringCollectionResponseable), nil } // Post grant the specified user access to submit print jobs to the associated printerShare. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -128,6 +131,7 @@ func (m *SharesItemAllowedUsersRefRequestBuilder) Post(ctx context.Context, body return nil } // ToDeleteRequestInformation delete ref of navigation property allowedUsers for print +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *SharesItemAllowedUsersRefRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *SharesItemAllowedUsersRefRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/print/shares/{printerShare%2Did}/allowedUsers/$ref?@id={%40id}", m.BaseRequestBuilder.PathParameters) @@ -142,6 +146,7 @@ func (m *SharesItemAllowedUsersRefRequestBuilder) ToDeleteRequestInformation(ctx return requestInfo, nil } // ToGetRequestInformation retrieve a list of users who have been granted access to submit print jobs to the associated printerShare. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *SharesItemAllowedUsersRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SharesItemAllowedUsersRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/print/shares/{printerShare%2Did}/allowedUsers/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) @@ -156,6 +161,7 @@ func (m *SharesItemAllowedUsersRefRequestBuilder) ToGetRequestInformation(ctx co return requestInfo, nil } // ToPostRequestInformation grant the specified user access to submit print jobs to the associated printerShare. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *SharesItemAllowedUsersRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *SharesItemAllowedUsersRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/print/shares/{printerShare%2Did}/allowedUsers/$ref", m.BaseRequestBuilder.PathParameters) @@ -171,6 +177,7 @@ func (m *SharesItemAllowedUsersRefRequestBuilder) ToPostRequestInformation(ctx c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *SharesItemAllowedUsersRefRequestBuilder when successful func (m *SharesItemAllowedUsersRefRequestBuilder) WithUrl(rawUrl string)(*SharesItemAllowedUsersRefRequestBuilder) { return NewSharesItemAllowedUsersRefRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/print/shares_item_allowed_users_request_builder.go b/print/shares_item_allowed_users_request_builder.go index 14d604b6265..7cd8a47f9e0 100644 --- a/print/shares_item_allowed_users_request_builder.go +++ b/print/shares_item_allowed_users_request_builder.go @@ -70,6 +70,7 @@ func (m *SharesItemAllowedUsersRequestBuilder) Count()(*SharesItemAllowedUsersCo return NewSharesItemAllowedUsersCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get retrieve a list of users who have been granted access to submit print jobs to the associated printerShare. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -98,6 +99,7 @@ func (m *SharesItemAllowedUsersRequestBuilder) Ref()(*SharesItemAllowedUsersRefR return NewSharesItemAllowedUsersRefRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation retrieve a list of users who have been granted access to submit print jobs to the associated printerShare. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *SharesItemAllowedUsersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SharesItemAllowedUsersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -112,6 +114,7 @@ func (m *SharesItemAllowedUsersRequestBuilder) ToGetRequestInformation(ctx conte return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *SharesItemAllowedUsersRequestBuilder when successful func (m *SharesItemAllowedUsersRequestBuilder) WithUrl(rawUrl string)(*SharesItemAllowedUsersRequestBuilder) { return NewSharesItemAllowedUsersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/privacy/subject_rights_requests_item_approvers_count_request_builder.go b/privacy/subject_rights_requests_item_approvers_count_request_builder.go index b12f0b09b37..ae10dfead10 100644 --- a/privacy/subject_rights_requests_item_approvers_count_request_builder.go +++ b/privacy/subject_rights_requests_item_approvers_count_request_builder.go @@ -40,7 +40,7 @@ func NewSubjectRightsRequestsItemApproversCountRequestBuilder(rawUrl string, req return NewSubjectRightsRequestsItemApproversCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource -// Deprecated: The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *SubjectRightsRequestsItemApproversCountRequestBuilder) Get(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemApproversCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -61,7 +61,7 @@ func (m *SubjectRightsRequestsItemApproversCountRequestBuilder) Get(ctx context. return res.(*int32), nil } // ToGetRequestInformation get the number of the resource -// Deprecated: The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *SubjectRightsRequestsItemApproversCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemApproversCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -76,7 +76,7 @@ func (m *SubjectRightsRequestsItemApproversCountRequestBuilder) ToGetRequestInfo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *SubjectRightsRequestsItemApproversCountRequestBuilder when successful func (m *SubjectRightsRequestsItemApproversCountRequestBuilder) WithUrl(rawUrl string)(*SubjectRightsRequestsItemApproversCountRequestBuilder) { return NewSubjectRightsRequestsItemApproversCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/privacy/subject_rights_requests_item_approvers_item_mailbox_settings_request_builder.go b/privacy/subject_rights_requests_item_approvers_item_mailbox_settings_request_builder.go index 59e3541205e..ad8955a5496 100644 --- a/privacy/subject_rights_requests_item_approvers_item_mailbox_settings_request_builder.go +++ b/privacy/subject_rights_requests_item_approvers_item_mailbox_settings_request_builder.go @@ -48,7 +48,7 @@ func NewSubjectRightsRequestsItemApproversItemMailboxSettingsRequestBuilder(rawU return NewSubjectRightsRequestsItemApproversItemMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. -// Deprecated: The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *SubjectRightsRequestsItemApproversItemMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemApproversItemMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -69,7 +69,7 @@ func (m *SubjectRightsRequestsItemApproversItemMailboxSettingsRequestBuilder) Ge return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. -// Deprecated: The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *SubjectRightsRequestsItemApproversItemMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *SubjectRightsRequestsItemApproversItemMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -90,7 +90,7 @@ func (m *SubjectRightsRequestsItemApproversItemMailboxSettingsRequestBuilder) Pa return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. -// Deprecated: The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *SubjectRightsRequestsItemApproversItemMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemApproversItemMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -105,7 +105,7 @@ func (m *SubjectRightsRequestsItemApproversItemMailboxSettingsRequestBuilder) To return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. -// Deprecated: The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *SubjectRightsRequestsItemApproversItemMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *SubjectRightsRequestsItemApproversItemMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -121,7 +121,7 @@ func (m *SubjectRightsRequestsItemApproversItemMailboxSettingsRequestBuilder) To return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *SubjectRightsRequestsItemApproversItemMailboxSettingsRequestBuilder when successful func (m *SubjectRightsRequestsItemApproversItemMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*SubjectRightsRequestsItemApproversItemMailboxSettingsRequestBuilder) { return NewSubjectRightsRequestsItemApproversItemMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/privacy/subject_rights_requests_item_approvers_item_service_provisioning_errors_count_request_builder.go b/privacy/subject_rights_requests_item_approvers_item_service_provisioning_errors_count_request_builder.go index 98592de332e..e6e7e410f72 100644 --- a/privacy/subject_rights_requests_item_approvers_item_service_provisioning_errors_count_request_builder.go +++ b/privacy/subject_rights_requests_item_approvers_item_service_provisioning_errors_count_request_builder.go @@ -40,7 +40,7 @@ func NewSubjectRightsRequestsItemApproversItemServiceProvisioningErrorsCountRequ return NewSubjectRightsRequestsItemApproversItemServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource -// Deprecated: The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *SubjectRightsRequestsItemApproversItemServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemApproversItemServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -61,7 +61,7 @@ func (m *SubjectRightsRequestsItemApproversItemServiceProvisioningErrorsCountReq return res.(*int32), nil } // ToGetRequestInformation get the number of the resource -// Deprecated: The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *SubjectRightsRequestsItemApproversItemServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemApproversItemServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -76,7 +76,7 @@ func (m *SubjectRightsRequestsItemApproversItemServiceProvisioningErrorsCountReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *SubjectRightsRequestsItemApproversItemServiceProvisioningErrorsCountRequestBuilder when successful func (m *SubjectRightsRequestsItemApproversItemServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*SubjectRightsRequestsItemApproversItemServiceProvisioningErrorsCountRequestBuilder) { return NewSubjectRightsRequestsItemApproversItemServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/privacy/subject_rights_requests_item_approvers_item_service_provisioning_errors_request_builder.go b/privacy/subject_rights_requests_item_approvers_item_service_provisioning_errors_request_builder.go index a5806322015..9bda948092a 100644 --- a/privacy/subject_rights_requests_item_approvers_item_service_provisioning_errors_request_builder.go +++ b/privacy/subject_rights_requests_item_approvers_item_service_provisioning_errors_request_builder.go @@ -58,7 +58,7 @@ func (m *SubjectRightsRequestsItemApproversItemServiceProvisioningErrorsRequestB return NewSubjectRightsRequestsItemApproversItemServiceProvisioningErrorsCountRequestBuilderInternal(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. -// Deprecated: The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *SubjectRightsRequestsItemApproversItemServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemApproversItemServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -79,7 +79,7 @@ func (m *SubjectRightsRequestsItemApproversItemServiceProvisioningErrorsRequestB return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. -// Deprecated: The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *SubjectRightsRequestsItemApproversItemServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemApproversItemServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -94,7 +94,7 @@ func (m *SubjectRightsRequestsItemApproversItemServiceProvisioningErrorsRequestB return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *SubjectRightsRequestsItemApproversItemServiceProvisioningErrorsRequestBuilder when successful func (m *SubjectRightsRequestsItemApproversItemServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*SubjectRightsRequestsItemApproversItemServiceProvisioningErrorsRequestBuilder) { return NewSubjectRightsRequestsItemApproversItemServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/privacy/subject_rights_requests_item_approvers_request_builder.go b/privacy/subject_rights_requests_item_approvers_request_builder.go index 0473e66dca8..f63a88c3760 100644 --- a/privacy/subject_rights_requests_item_approvers_request_builder.go +++ b/privacy/subject_rights_requests_item_approvers_request_builder.go @@ -40,7 +40,7 @@ type SubjectRightsRequestsItemApproversRequestBuilderGetRequestConfiguration str QueryParameters *SubjectRightsRequestsItemApproversRequestBuilderGetQueryParameters } // ByUserId provides operations to manage the approvers property of the microsoft.graph.subjectRightsRequest entity. -// Deprecated: The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *SubjectRightsRequestsItemApproversUserItemRequestBuilder when successful func (m *SubjectRightsRequestsItemApproversRequestBuilder) ByUserId(userId string)(*SubjectRightsRequestsItemApproversUserItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -71,7 +71,7 @@ func (m *SubjectRightsRequestsItemApproversRequestBuilder) Count()(*SubjectRight return NewSubjectRightsRequestsItemApproversCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get approvers from privacy -// Deprecated: The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *SubjectRightsRequestsItemApproversRequestBuilder) Get(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemApproversRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable, error) { @@ -92,7 +92,7 @@ func (m *SubjectRightsRequestsItemApproversRequestBuilder) Get(ctx context.Conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable), nil } // ToGetRequestInformation get approvers from privacy -// Deprecated: The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *SubjectRightsRequestsItemApproversRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemApproversRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -107,7 +107,7 @@ func (m *SubjectRightsRequestsItemApproversRequestBuilder) ToGetRequestInformati return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *SubjectRightsRequestsItemApproversRequestBuilder when successful func (m *SubjectRightsRequestsItemApproversRequestBuilder) WithUrl(rawUrl string)(*SubjectRightsRequestsItemApproversRequestBuilder) { return NewSubjectRightsRequestsItemApproversRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/privacy/subject_rights_requests_item_approvers_user_item_request_builder.go b/privacy/subject_rights_requests_item_approvers_user_item_request_builder.go index eeabec170ac..4810da7c28b 100644 --- a/privacy/subject_rights_requests_item_approvers_user_item_request_builder.go +++ b/privacy/subject_rights_requests_item_approvers_user_item_request_builder.go @@ -41,7 +41,7 @@ func NewSubjectRightsRequestsItemApproversUserItemRequestBuilder(rawUrl string, return NewSubjectRightsRequestsItemApproversUserItemRequestBuilderInternal(urlParams, requestAdapter) } // Get get approvers from privacy -// Deprecated: The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *SubjectRightsRequestsItemApproversUserItemRequestBuilder) Get(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemApproversUserItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -72,7 +72,7 @@ func (m *SubjectRightsRequestsItemApproversUserItemRequestBuilder) ServiceProvis return NewSubjectRightsRequestsItemApproversItemServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get approvers from privacy -// Deprecated: The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *SubjectRightsRequestsItemApproversUserItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemApproversUserItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -87,7 +87,7 @@ func (m *SubjectRightsRequestsItemApproversUserItemRequestBuilder) ToGetRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *SubjectRightsRequestsItemApproversUserItemRequestBuilder when successful func (m *SubjectRightsRequestsItemApproversUserItemRequestBuilder) WithUrl(rawUrl string)(*SubjectRightsRequestsItemApproversUserItemRequestBuilder) { return NewSubjectRightsRequestsItemApproversUserItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/privacy/subject_rights_requests_item_collaborators_count_request_builder.go b/privacy/subject_rights_requests_item_collaborators_count_request_builder.go index 082f3e85b95..0e465f1f0eb 100644 --- a/privacy/subject_rights_requests_item_collaborators_count_request_builder.go +++ b/privacy/subject_rights_requests_item_collaborators_count_request_builder.go @@ -40,7 +40,7 @@ func NewSubjectRightsRequestsItemCollaboratorsCountRequestBuilder(rawUrl string, return NewSubjectRightsRequestsItemCollaboratorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource -// Deprecated: The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *SubjectRightsRequestsItemCollaboratorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemCollaboratorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -61,7 +61,7 @@ func (m *SubjectRightsRequestsItemCollaboratorsCountRequestBuilder) Get(ctx cont return res.(*int32), nil } // ToGetRequestInformation get the number of the resource -// Deprecated: The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *SubjectRightsRequestsItemCollaboratorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemCollaboratorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -76,7 +76,7 @@ func (m *SubjectRightsRequestsItemCollaboratorsCountRequestBuilder) ToGetRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *SubjectRightsRequestsItemCollaboratorsCountRequestBuilder when successful func (m *SubjectRightsRequestsItemCollaboratorsCountRequestBuilder) WithUrl(rawUrl string)(*SubjectRightsRequestsItemCollaboratorsCountRequestBuilder) { return NewSubjectRightsRequestsItemCollaboratorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/privacy/subject_rights_requests_item_collaborators_item_mailbox_settings_request_builder.go b/privacy/subject_rights_requests_item_collaborators_item_mailbox_settings_request_builder.go index 7edd528c37b..430d9360819 100644 --- a/privacy/subject_rights_requests_item_collaborators_item_mailbox_settings_request_builder.go +++ b/privacy/subject_rights_requests_item_collaborators_item_mailbox_settings_request_builder.go @@ -48,7 +48,7 @@ func NewSubjectRightsRequestsItemCollaboratorsItemMailboxSettingsRequestBuilder( return NewSubjectRightsRequestsItemCollaboratorsItemMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. -// Deprecated: The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *SubjectRightsRequestsItemCollaboratorsItemMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemCollaboratorsItemMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -69,7 +69,7 @@ func (m *SubjectRightsRequestsItemCollaboratorsItemMailboxSettingsRequestBuilder return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. -// Deprecated: The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *SubjectRightsRequestsItemCollaboratorsItemMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *SubjectRightsRequestsItemCollaboratorsItemMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -90,7 +90,7 @@ func (m *SubjectRightsRequestsItemCollaboratorsItemMailboxSettingsRequestBuilder return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. -// Deprecated: The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *SubjectRightsRequestsItemCollaboratorsItemMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemCollaboratorsItemMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -105,7 +105,7 @@ func (m *SubjectRightsRequestsItemCollaboratorsItemMailboxSettingsRequestBuilder return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. -// Deprecated: The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *SubjectRightsRequestsItemCollaboratorsItemMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *SubjectRightsRequestsItemCollaboratorsItemMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -121,7 +121,7 @@ func (m *SubjectRightsRequestsItemCollaboratorsItemMailboxSettingsRequestBuilder return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *SubjectRightsRequestsItemCollaboratorsItemMailboxSettingsRequestBuilder when successful func (m *SubjectRightsRequestsItemCollaboratorsItemMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*SubjectRightsRequestsItemCollaboratorsItemMailboxSettingsRequestBuilder) { return NewSubjectRightsRequestsItemCollaboratorsItemMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/privacy/subject_rights_requests_item_collaborators_item_service_provisioning_errors_count_request_builder.go b/privacy/subject_rights_requests_item_collaborators_item_service_provisioning_errors_count_request_builder.go index c8961101301..0c502ac1b8b 100644 --- a/privacy/subject_rights_requests_item_collaborators_item_service_provisioning_errors_count_request_builder.go +++ b/privacy/subject_rights_requests_item_collaborators_item_service_provisioning_errors_count_request_builder.go @@ -40,7 +40,7 @@ func NewSubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsCount return NewSubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource -// Deprecated: The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *SubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -61,7 +61,7 @@ func (m *SubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsCoun return res.(*int32), nil } // ToGetRequestInformation get the number of the resource -// Deprecated: The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *SubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -76,7 +76,7 @@ func (m *SubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsCoun return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *SubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsCountRequestBuilder when successful func (m *SubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*SubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsCountRequestBuilder) { return NewSubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/privacy/subject_rights_requests_item_collaborators_item_service_provisioning_errors_request_builder.go b/privacy/subject_rights_requests_item_collaborators_item_service_provisioning_errors_request_builder.go index c120c7f9f24..de22cc17eee 100644 --- a/privacy/subject_rights_requests_item_collaborators_item_service_provisioning_errors_request_builder.go +++ b/privacy/subject_rights_requests_item_collaborators_item_service_provisioning_errors_request_builder.go @@ -58,7 +58,7 @@ func (m *SubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsRequ return NewSubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsCountRequestBuilderInternal(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. -// Deprecated: The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *SubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -79,7 +79,7 @@ func (m *SubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsRequ return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. -// Deprecated: The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *SubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -94,7 +94,7 @@ func (m *SubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *SubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsRequestBuilder when successful func (m *SubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*SubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsRequestBuilder) { return NewSubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/privacy/subject_rights_requests_item_collaborators_request_builder.go b/privacy/subject_rights_requests_item_collaborators_request_builder.go index e4e416d19d4..1e1dcddf519 100644 --- a/privacy/subject_rights_requests_item_collaborators_request_builder.go +++ b/privacy/subject_rights_requests_item_collaborators_request_builder.go @@ -40,7 +40,7 @@ type SubjectRightsRequestsItemCollaboratorsRequestBuilderGetRequestConfiguration QueryParameters *SubjectRightsRequestsItemCollaboratorsRequestBuilderGetQueryParameters } // ByUserId provides operations to manage the collaborators property of the microsoft.graph.subjectRightsRequest entity. -// Deprecated: The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *SubjectRightsRequestsItemCollaboratorsUserItemRequestBuilder when successful func (m *SubjectRightsRequestsItemCollaboratorsRequestBuilder) ByUserId(userId string)(*SubjectRightsRequestsItemCollaboratorsUserItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -71,7 +71,7 @@ func (m *SubjectRightsRequestsItemCollaboratorsRequestBuilder) Count()(*SubjectR return NewSubjectRightsRequestsItemCollaboratorsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get collaborators from privacy -// Deprecated: The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *SubjectRightsRequestsItemCollaboratorsRequestBuilder) Get(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemCollaboratorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable, error) { @@ -92,7 +92,7 @@ func (m *SubjectRightsRequestsItemCollaboratorsRequestBuilder) Get(ctx context.C return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable), nil } // ToGetRequestInformation get collaborators from privacy -// Deprecated: The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *SubjectRightsRequestsItemCollaboratorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemCollaboratorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -107,7 +107,7 @@ func (m *SubjectRightsRequestsItemCollaboratorsRequestBuilder) ToGetRequestInfor return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *SubjectRightsRequestsItemCollaboratorsRequestBuilder when successful func (m *SubjectRightsRequestsItemCollaboratorsRequestBuilder) WithUrl(rawUrl string)(*SubjectRightsRequestsItemCollaboratorsRequestBuilder) { return NewSubjectRightsRequestsItemCollaboratorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/privacy/subject_rights_requests_item_collaborators_user_item_request_builder.go b/privacy/subject_rights_requests_item_collaborators_user_item_request_builder.go index 653eee230e2..c33eb9aad93 100644 --- a/privacy/subject_rights_requests_item_collaborators_user_item_request_builder.go +++ b/privacy/subject_rights_requests_item_collaborators_user_item_request_builder.go @@ -41,7 +41,7 @@ func NewSubjectRightsRequestsItemCollaboratorsUserItemRequestBuilder(rawUrl stri return NewSubjectRightsRequestsItemCollaboratorsUserItemRequestBuilderInternal(urlParams, requestAdapter) } // Get get collaborators from privacy -// Deprecated: The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *SubjectRightsRequestsItemCollaboratorsUserItemRequestBuilder) Get(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemCollaboratorsUserItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -72,7 +72,7 @@ func (m *SubjectRightsRequestsItemCollaboratorsUserItemRequestBuilder) ServicePr return NewSubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get collaborators from privacy -// Deprecated: The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *SubjectRightsRequestsItemCollaboratorsUserItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemCollaboratorsUserItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -87,7 +87,7 @@ func (m *SubjectRightsRequestsItemCollaboratorsUserItemRequestBuilder) ToGetRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The subject rights request API under Privacy is deprecated and will stop working on March 22, 2025. Please use the new API under Security. as of 2022-02/PrivacyDeprecate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *SubjectRightsRequestsItemCollaboratorsUserItemRequestBuilder when successful func (m *SubjectRightsRequestsItemCollaboratorsUserItemRequestBuilder) WithUrl(rawUrl string)(*SubjectRightsRequestsItemCollaboratorsUserItemRequestBuilder) { return NewSubjectRightsRequestsItemCollaboratorsUserItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/security/subject_rights_requests_item_approvers_count_request_builder.go b/security/subject_rights_requests_item_approvers_count_request_builder.go index c3bc705005b..3cc9908b965 100644 --- a/security/subject_rights_requests_item_approvers_count_request_builder.go +++ b/security/subject_rights_requests_item_approvers_count_request_builder.go @@ -40,6 +40,7 @@ func NewSubjectRightsRequestsItemApproversCountRequestBuilder(rawUrl string, req return NewSubjectRightsRequestsItemApproversCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *SubjectRightsRequestsItemApproversCountRequestBuilder) Get(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemApproversCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *SubjectRightsRequestsItemApproversCountRequestBuilder) Get(ctx context. return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *SubjectRightsRequestsItemApproversCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemApproversCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *SubjectRightsRequestsItemApproversCountRequestBuilder) ToGetRequestInfo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *SubjectRightsRequestsItemApproversCountRequestBuilder when successful func (m *SubjectRightsRequestsItemApproversCountRequestBuilder) WithUrl(rawUrl string)(*SubjectRightsRequestsItemApproversCountRequestBuilder) { return NewSubjectRightsRequestsItemApproversCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/security/subject_rights_requests_item_approvers_item_mailbox_settings_request_builder.go b/security/subject_rights_requests_item_approvers_item_mailbox_settings_request_builder.go index d482c0815ca..1865749fe9c 100644 --- a/security/subject_rights_requests_item_approvers_item_mailbox_settings_request_builder.go +++ b/security/subject_rights_requests_item_approvers_item_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewSubjectRightsRequestsItemApproversItemMailboxSettingsRequestBuilder(rawU return NewSubjectRightsRequestsItemApproversItemMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *SubjectRightsRequestsItemApproversItemMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemApproversItemMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *SubjectRightsRequestsItemApproversItemMailboxSettingsRequestBuilder) Ge return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *SubjectRightsRequestsItemApproversItemMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *SubjectRightsRequestsItemApproversItemMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *SubjectRightsRequestsItemApproversItemMailboxSettingsRequestBuilder) Pa return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *SubjectRightsRequestsItemApproversItemMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemApproversItemMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *SubjectRightsRequestsItemApproversItemMailboxSettingsRequestBuilder) To return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *SubjectRightsRequestsItemApproversItemMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *SubjectRightsRequestsItemApproversItemMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *SubjectRightsRequestsItemApproversItemMailboxSettingsRequestBuilder) To return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *SubjectRightsRequestsItemApproversItemMailboxSettingsRequestBuilder when successful func (m *SubjectRightsRequestsItemApproversItemMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*SubjectRightsRequestsItemApproversItemMailboxSettingsRequestBuilder) { return NewSubjectRightsRequestsItemApproversItemMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/security/subject_rights_requests_item_approvers_item_service_provisioning_errors_count_request_builder.go b/security/subject_rights_requests_item_approvers_item_service_provisioning_errors_count_request_builder.go index 6fd41ac53da..9a00a1b40b6 100644 --- a/security/subject_rights_requests_item_approvers_item_service_provisioning_errors_count_request_builder.go +++ b/security/subject_rights_requests_item_approvers_item_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewSubjectRightsRequestsItemApproversItemServiceProvisioningErrorsCountRequ return NewSubjectRightsRequestsItemApproversItemServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *SubjectRightsRequestsItemApproversItemServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemApproversItemServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *SubjectRightsRequestsItemApproversItemServiceProvisioningErrorsCountReq return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *SubjectRightsRequestsItemApproversItemServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemApproversItemServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *SubjectRightsRequestsItemApproversItemServiceProvisioningErrorsCountReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *SubjectRightsRequestsItemApproversItemServiceProvisioningErrorsCountRequestBuilder when successful func (m *SubjectRightsRequestsItemApproversItemServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*SubjectRightsRequestsItemApproversItemServiceProvisioningErrorsCountRequestBuilder) { return NewSubjectRightsRequestsItemApproversItemServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/security/subject_rights_requests_item_approvers_item_service_provisioning_errors_request_builder.go b/security/subject_rights_requests_item_approvers_item_service_provisioning_errors_request_builder.go index 7c28a8021e5..923bcc787ed 100644 --- a/security/subject_rights_requests_item_approvers_item_service_provisioning_errors_request_builder.go +++ b/security/subject_rights_requests_item_approvers_item_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *SubjectRightsRequestsItemApproversItemServiceProvisioningErrorsRequestB return NewSubjectRightsRequestsItemApproversItemServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *SubjectRightsRequestsItemApproversItemServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemApproversItemServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *SubjectRightsRequestsItemApproversItemServiceProvisioningErrorsRequestB return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *SubjectRightsRequestsItemApproversItemServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemApproversItemServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *SubjectRightsRequestsItemApproversItemServiceProvisioningErrorsRequestB return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *SubjectRightsRequestsItemApproversItemServiceProvisioningErrorsRequestBuilder when successful func (m *SubjectRightsRequestsItemApproversItemServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*SubjectRightsRequestsItemApproversItemServiceProvisioningErrorsRequestBuilder) { return NewSubjectRightsRequestsItemApproversItemServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/security/subject_rights_requests_item_approvers_request_builder.go b/security/subject_rights_requests_item_approvers_request_builder.go index cf24d7e822c..0cc5ec9e8f9 100644 --- a/security/subject_rights_requests_item_approvers_request_builder.go +++ b/security/subject_rights_requests_item_approvers_request_builder.go @@ -40,6 +40,7 @@ type SubjectRightsRequestsItemApproversRequestBuilderGetRequestConfiguration str QueryParameters *SubjectRightsRequestsItemApproversRequestBuilderGetQueryParameters } // ByUserId provides operations to manage the approvers property of the microsoft.graph.subjectRightsRequest entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *SubjectRightsRequestsItemApproversUserItemRequestBuilder when successful func (m *SubjectRightsRequestsItemApproversRequestBuilder) ByUserId(userId string)(*SubjectRightsRequestsItemApproversUserItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -70,6 +71,7 @@ func (m *SubjectRightsRequestsItemApproversRequestBuilder) Count()(*SubjectRight return NewSubjectRightsRequestsItemApproversCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get approvers from security +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *SubjectRightsRequestsItemApproversRequestBuilder) Get(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemApproversRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable, error) { @@ -90,6 +92,7 @@ func (m *SubjectRightsRequestsItemApproversRequestBuilder) Get(ctx context.Conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable), nil } // ToGetRequestInformation get approvers from security +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *SubjectRightsRequestsItemApproversRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemApproversRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -104,6 +107,7 @@ func (m *SubjectRightsRequestsItemApproversRequestBuilder) ToGetRequestInformati return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *SubjectRightsRequestsItemApproversRequestBuilder when successful func (m *SubjectRightsRequestsItemApproversRequestBuilder) WithUrl(rawUrl string)(*SubjectRightsRequestsItemApproversRequestBuilder) { return NewSubjectRightsRequestsItemApproversRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/security/subject_rights_requests_item_approvers_user_item_request_builder.go b/security/subject_rights_requests_item_approvers_user_item_request_builder.go index 46582a9d2b6..5e64b1ab2cc 100644 --- a/security/subject_rights_requests_item_approvers_user_item_request_builder.go +++ b/security/subject_rights_requests_item_approvers_user_item_request_builder.go @@ -41,6 +41,7 @@ func NewSubjectRightsRequestsItemApproversUserItemRequestBuilder(rawUrl string, return NewSubjectRightsRequestsItemApproversUserItemRequestBuilderInternal(urlParams, requestAdapter) } // Get get approvers from security +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *SubjectRightsRequestsItemApproversUserItemRequestBuilder) Get(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemApproversUserItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *SubjectRightsRequestsItemApproversUserItemRequestBuilder) ServiceProvis return NewSubjectRightsRequestsItemApproversItemServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get approvers from security +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *SubjectRightsRequestsItemApproversUserItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemApproversUserItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *SubjectRightsRequestsItemApproversUserItemRequestBuilder) ToGetRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *SubjectRightsRequestsItemApproversUserItemRequestBuilder when successful func (m *SubjectRightsRequestsItemApproversUserItemRequestBuilder) WithUrl(rawUrl string)(*SubjectRightsRequestsItemApproversUserItemRequestBuilder) { return NewSubjectRightsRequestsItemApproversUserItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/security/subject_rights_requests_item_collaborators_count_request_builder.go b/security/subject_rights_requests_item_collaborators_count_request_builder.go index 988a13e87e5..2e69d5e7693 100644 --- a/security/subject_rights_requests_item_collaborators_count_request_builder.go +++ b/security/subject_rights_requests_item_collaborators_count_request_builder.go @@ -40,6 +40,7 @@ func NewSubjectRightsRequestsItemCollaboratorsCountRequestBuilder(rawUrl string, return NewSubjectRightsRequestsItemCollaboratorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *SubjectRightsRequestsItemCollaboratorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemCollaboratorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *SubjectRightsRequestsItemCollaboratorsCountRequestBuilder) Get(ctx cont return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *SubjectRightsRequestsItemCollaboratorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemCollaboratorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *SubjectRightsRequestsItemCollaboratorsCountRequestBuilder) ToGetRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *SubjectRightsRequestsItemCollaboratorsCountRequestBuilder when successful func (m *SubjectRightsRequestsItemCollaboratorsCountRequestBuilder) WithUrl(rawUrl string)(*SubjectRightsRequestsItemCollaboratorsCountRequestBuilder) { return NewSubjectRightsRequestsItemCollaboratorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/security/subject_rights_requests_item_collaborators_item_mailbox_settings_request_builder.go b/security/subject_rights_requests_item_collaborators_item_mailbox_settings_request_builder.go index d00cd2bf602..f059f076b0d 100644 --- a/security/subject_rights_requests_item_collaborators_item_mailbox_settings_request_builder.go +++ b/security/subject_rights_requests_item_collaborators_item_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewSubjectRightsRequestsItemCollaboratorsItemMailboxSettingsRequestBuilder( return NewSubjectRightsRequestsItemCollaboratorsItemMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *SubjectRightsRequestsItemCollaboratorsItemMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemCollaboratorsItemMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *SubjectRightsRequestsItemCollaboratorsItemMailboxSettingsRequestBuilder return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *SubjectRightsRequestsItemCollaboratorsItemMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *SubjectRightsRequestsItemCollaboratorsItemMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *SubjectRightsRequestsItemCollaboratorsItemMailboxSettingsRequestBuilder return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *SubjectRightsRequestsItemCollaboratorsItemMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemCollaboratorsItemMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *SubjectRightsRequestsItemCollaboratorsItemMailboxSettingsRequestBuilder return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *SubjectRightsRequestsItemCollaboratorsItemMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *SubjectRightsRequestsItemCollaboratorsItemMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *SubjectRightsRequestsItemCollaboratorsItemMailboxSettingsRequestBuilder return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *SubjectRightsRequestsItemCollaboratorsItemMailboxSettingsRequestBuilder when successful func (m *SubjectRightsRequestsItemCollaboratorsItemMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*SubjectRightsRequestsItemCollaboratorsItemMailboxSettingsRequestBuilder) { return NewSubjectRightsRequestsItemCollaboratorsItemMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/security/subject_rights_requests_item_collaborators_item_service_provisioning_errors_count_request_builder.go b/security/subject_rights_requests_item_collaborators_item_service_provisioning_errors_count_request_builder.go index 16f069a892c..f21f8092ffc 100644 --- a/security/subject_rights_requests_item_collaborators_item_service_provisioning_errors_count_request_builder.go +++ b/security/subject_rights_requests_item_collaborators_item_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewSubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsCount return NewSubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *SubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *SubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsCoun return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *SubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *SubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsCoun return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *SubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsCountRequestBuilder when successful func (m *SubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*SubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsCountRequestBuilder) { return NewSubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/security/subject_rights_requests_item_collaborators_item_service_provisioning_errors_request_builder.go b/security/subject_rights_requests_item_collaborators_item_service_provisioning_errors_request_builder.go index c8603134320..4114445e3c2 100644 --- a/security/subject_rights_requests_item_collaborators_item_service_provisioning_errors_request_builder.go +++ b/security/subject_rights_requests_item_collaborators_item_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *SubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsRequ return NewSubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *SubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *SubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsRequ return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *SubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *SubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *SubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsRequestBuilder when successful func (m *SubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*SubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsRequestBuilder) { return NewSubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/security/subject_rights_requests_item_collaborators_request_builder.go b/security/subject_rights_requests_item_collaborators_request_builder.go index 855aa8c19bd..ab756a5e4db 100644 --- a/security/subject_rights_requests_item_collaborators_request_builder.go +++ b/security/subject_rights_requests_item_collaborators_request_builder.go @@ -40,6 +40,7 @@ type SubjectRightsRequestsItemCollaboratorsRequestBuilderGetRequestConfiguration QueryParameters *SubjectRightsRequestsItemCollaboratorsRequestBuilderGetQueryParameters } // ByUserId provides operations to manage the collaborators property of the microsoft.graph.subjectRightsRequest entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *SubjectRightsRequestsItemCollaboratorsUserItemRequestBuilder when successful func (m *SubjectRightsRequestsItemCollaboratorsRequestBuilder) ByUserId(userId string)(*SubjectRightsRequestsItemCollaboratorsUserItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -70,6 +71,7 @@ func (m *SubjectRightsRequestsItemCollaboratorsRequestBuilder) Count()(*SubjectR return NewSubjectRightsRequestsItemCollaboratorsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get collaborators from security +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *SubjectRightsRequestsItemCollaboratorsRequestBuilder) Get(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemCollaboratorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable, error) { @@ -90,6 +92,7 @@ func (m *SubjectRightsRequestsItemCollaboratorsRequestBuilder) Get(ctx context.C return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable), nil } // ToGetRequestInformation get collaborators from security +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *SubjectRightsRequestsItemCollaboratorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemCollaboratorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -104,6 +107,7 @@ func (m *SubjectRightsRequestsItemCollaboratorsRequestBuilder) ToGetRequestInfor return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *SubjectRightsRequestsItemCollaboratorsRequestBuilder when successful func (m *SubjectRightsRequestsItemCollaboratorsRequestBuilder) WithUrl(rawUrl string)(*SubjectRightsRequestsItemCollaboratorsRequestBuilder) { return NewSubjectRightsRequestsItemCollaboratorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/security/subject_rights_requests_item_collaborators_user_item_request_builder.go b/security/subject_rights_requests_item_collaborators_user_item_request_builder.go index 49d68b2f6f8..1df515dbae0 100644 --- a/security/subject_rights_requests_item_collaborators_user_item_request_builder.go +++ b/security/subject_rights_requests_item_collaborators_user_item_request_builder.go @@ -41,6 +41,7 @@ func NewSubjectRightsRequestsItemCollaboratorsUserItemRequestBuilder(rawUrl stri return NewSubjectRightsRequestsItemCollaboratorsUserItemRequestBuilderInternal(urlParams, requestAdapter) } // Get get collaborators from security +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *SubjectRightsRequestsItemCollaboratorsUserItemRequestBuilder) Get(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemCollaboratorsUserItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *SubjectRightsRequestsItemCollaboratorsUserItemRequestBuilder) ServicePr return NewSubjectRightsRequestsItemCollaboratorsItemServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get collaborators from security +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *SubjectRightsRequestsItemCollaboratorsUserItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *SubjectRightsRequestsItemCollaboratorsUserItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *SubjectRightsRequestsItemCollaboratorsUserItemRequestBuilder) ToGetRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *SubjectRightsRequestsItemCollaboratorsUserItemRequestBuilder when successful func (m *SubjectRightsRequestsItemCollaboratorsUserItemRequestBuilder) WithUrl(rawUrl string)(*SubjectRightsRequestsItemCollaboratorsUserItemRequestBuilder) { return NewSubjectRightsRequestsItemCollaboratorsUserItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/serviceprincipals/item_owners_graph_user_count_request_builder.go b/serviceprincipals/item_owners_graph_user_count_request_builder.go index bcc1a07ec0b..6bcc9dbd206 100644 --- a/serviceprincipals/item_owners_graph_user_count_request_builder.go +++ b/serviceprincipals/item_owners_graph_user_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemOwnersGraphUserCountRequestBuilder(rawUrl string, requestAdapter i2a return NewItemOwnersGraphUserCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOwnersGraphUserCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOwnersGraphUserCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemOwnersGraphUserCountRequestBuilder) Get(ctx context.Context, reques return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOwnersGraphUserCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnersGraphUserCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemOwnersGraphUserCountRequestBuilder) ToGetRequestInformation(ctx con return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOwnersGraphUserCountRequestBuilder when successful func (m *ItemOwnersGraphUserCountRequestBuilder) WithUrl(rawUrl string)(*ItemOwnersGraphUserCountRequestBuilder) { return NewItemOwnersGraphUserCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/serviceprincipals/item_owners_graph_user_request_builder.go b/serviceprincipals/item_owners_graph_user_request_builder.go index 6380b39146b..7571e288018 100644 --- a/serviceprincipals/item_owners_graph_user_request_builder.go +++ b/serviceprincipals/item_owners_graph_user_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemOwnersGraphUserRequestBuilder) Count()(*ItemOwnersGraphUserCountReq return NewItemOwnersGraphUserCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOwnersGraphUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOwnersGraphUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemOwnersGraphUserRequestBuilder) Get(ctx context.Context, requestConf return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable), nil } // ToGetRequestInformation get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOwnersGraphUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnersGraphUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemOwnersGraphUserRequestBuilder) ToGetRequestInformation(ctx context. return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOwnersGraphUserRequestBuilder when successful func (m *ItemOwnersGraphUserRequestBuilder) WithUrl(rawUrl string)(*ItemOwnersGraphUserRequestBuilder) { return NewItemOwnersGraphUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/serviceprincipals/item_owners_item_graph_user_request_builder.go b/serviceprincipals/item_owners_item_graph_user_request_builder.go index f60f4a5b7b5..205df7280b8 100644 --- a/serviceprincipals/item_owners_item_graph_user_request_builder.go +++ b/serviceprincipals/item_owners_item_graph_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemOwnersItemGraphUserRequestBuilder(rawUrl string, requestAdapter i2ae return NewItemOwnersItemGraphUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get the item of type microsoft.graph.directoryObject as microsoft.graph.user +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOwnersItemGraphUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOwnersItemGraphUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -61,6 +62,7 @@ func (m *ItemOwnersItemGraphUserRequestBuilder) Get(ctx context.Context, request return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable), nil } // ToGetRequestInformation get the item of type microsoft.graph.directoryObject as microsoft.graph.user +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOwnersItemGraphUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnersItemGraphUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemOwnersItemGraphUserRequestBuilder) ToGetRequestInformation(ctx cont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOwnersItemGraphUserRequestBuilder when successful func (m *ItemOwnersItemGraphUserRequestBuilder) WithUrl(rawUrl string)(*ItemOwnersItemGraphUserRequestBuilder) { return NewItemOwnersItemGraphUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/serviceprincipals/item_owners_ref_request_builder.go b/serviceprincipals/item_owners_ref_request_builder.go index 31ee12459d6..c04c5a910c6 100644 --- a/serviceprincipals/item_owners_ref_request_builder.go +++ b/serviceprincipals/item_owners_ref_request_builder.go @@ -25,7 +25,7 @@ type ItemOwnersRefRequestBuilderDeleteRequestConfiguration struct { // Request query parameters QueryParameters *ItemOwnersRefRequestBuilderDeleteQueryParameters } -// ItemOwnersRefRequestBuilderGetQueryParameters retrieve a list of owners of the servicePrincipal. +// ItemOwnersRefRequestBuilderGetQueryParameters directory objects that are owners of this servicePrincipal. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). type ItemOwnersRefRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -88,12 +88,9 @@ func (m *ItemOwnersRefRequestBuilder) Delete(ctx context.Context, requestConfigu } return nil } -// Get retrieve a list of owners of the servicePrincipal. +// Get directory objects that are owners of this servicePrincipal. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). // returns a StringCollectionResponseable 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/serviceprincipal-list-owners?view=graph-rest-beta func (m *ItemOwnersRefRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOwnersRefRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.StringCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -144,7 +141,7 @@ func (m *ItemOwnersRefRequestBuilder) ToDeleteRequestInformation(ctx context.Con requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation retrieve a list of owners of the servicePrincipal. +// ToGetRequestInformation directory objects that are owners of this servicePrincipal. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). // returns a *RequestInformation when successful func (m *ItemOwnersRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnersRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/owners/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) diff --git a/serviceprincipals/item_owners_request_builder.go b/serviceprincipals/item_owners_request_builder.go index b5340d23bda..508301996d9 100644 --- a/serviceprincipals/item_owners_request_builder.go +++ b/serviceprincipals/item_owners_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemOwnersRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemOwnersRequestBuilderGetQueryParameters retrieve a list of owners of the servicePrincipal. +// ItemOwnersRequestBuilderGetQueryParameters directory objects that are owners of this servicePrincipal. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). type ItemOwnersRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -69,12 +69,9 @@ func NewItemOwnersRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263 func (m *ItemOwnersRequestBuilder) Count()(*ItemOwnersCountRequestBuilder) { return NewItemOwnersCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get retrieve a list of owners of the servicePrincipal. +// Get directory objects that are owners of this servicePrincipal. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). // returns a DirectoryObjectCollectionResponseable 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/serviceprincipal-list-owners?view=graph-rest-beta func (m *ItemOwnersRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOwnersRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryObjectCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -112,7 +109,7 @@ func (m *ItemOwnersRequestBuilder) GraphUser()(*ItemOwnersGraphUserRequestBuilde func (m *ItemOwnersRequestBuilder) Ref()(*ItemOwnersRefRequestBuilder) { return NewItemOwnersRefRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation retrieve a list of owners of the servicePrincipal. +// ToGetRequestInformation directory objects that are owners of this servicePrincipal. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). // returns a *RequestInformation when successful func (m *ItemOwnersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/shares/item_created_by_user_mailbox_settings_request_builder.go b/shares/item_created_by_user_mailbox_settings_request_builder.go index 971a096c803..44386086be4 100644 --- a/shares/item_created_by_user_mailbox_settings_request_builder.go +++ b/shares/item_created_by_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewItemCreatedByUserMailboxSettingsRequestBuilder(rawUrl string, requestAda return NewItemCreatedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCreatedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *ItemCreatedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCreatedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *ItemCreatedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCreatedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *ItemCreatedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCreatedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemCreatedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformati return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCreatedByUserMailboxSettingsRequestBuilder when successful func (m *ItemCreatedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemCreatedByUserMailboxSettingsRequestBuilder) { return NewItemCreatedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/shares/item_created_by_user_request_builder.go b/shares/item_created_by_user_request_builder.go index 8383a853874..73e3191859a 100644 --- a/shares/item_created_by_user_request_builder.go +++ b/shares/item_created_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemCreatedByUserRequestBuilder(rawUrl string, requestAdapter i2ae4187f7 return NewItemCreatedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get createdByUser from shares +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCreatedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCreatedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *ItemCreatedByUserRequestBuilder) ServiceProvisioningErrors()(*ItemCreat return NewItemCreatedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get createdByUser from shares +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCreatedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCreatedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemCreatedByUserRequestBuilder) ToGetRequestInformation(ctx context.Co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCreatedByUserRequestBuilder when successful func (m *ItemCreatedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemCreatedByUserRequestBuilder) { return NewItemCreatedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/shares/item_created_by_user_service_provisioning_errors_count_request_builder.go b/shares/item_created_by_user_service_provisioning_errors_count_request_builder.go index 4a0fce2347e..1f1cde2aa2b 100644 --- a/shares/item_created_by_user_service_provisioning_errors_count_request_builder.go +++ b/shares/item_created_by_user_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl str return NewItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *ItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/shares/item_created_by_user_service_provisioning_errors_request_builder.go b/shares/item_created_by_user_service_provisioning_errors_request_builder.go index 18b4800d95f..e379e1b1d74 100644 --- a/shares/item_created_by_user_service_provisioning_errors_request_builder.go +++ b/shares/item_created_by_user_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemCreatedByUserServiceProvisioningErrorsRequestBuilder) Count()(*Item return NewItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCreatedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemCreatedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCreatedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemCreatedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCreatedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *ItemCreatedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*ItemCreatedByUserServiceProvisioningErrorsRequestBuilder) { return NewItemCreatedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/shares/item_last_modified_by_user_mailbox_settings_request_builder.go b/shares/item_last_modified_by_user_mailbox_settings_request_builder.go index 5b673d2691d..27d117583cb 100644 --- a/shares/item_last_modified_by_user_mailbox_settings_request_builder.go +++ b/shares/item_last_modified_by_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewItemLastModifiedByUserMailboxSettingsRequestBuilder(rawUrl string, reque return NewItemLastModifiedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemLastModifiedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *ItemLastModifiedByUserMailboxSettingsRequestBuilder) Get(ctx context.Co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemLastModifiedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *ItemLastModifiedByUserMailboxSettingsRequestBuilder) Patch(ctx context. return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemLastModifiedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *ItemLastModifiedByUserMailboxSettingsRequestBuilder) ToGetRequestInform return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemLastModifiedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemLastModifiedByUserMailboxSettingsRequestBuilder) ToPatchRequestInfo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemLastModifiedByUserMailboxSettingsRequestBuilder when successful func (m *ItemLastModifiedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemLastModifiedByUserMailboxSettingsRequestBuilder) { return NewItemLastModifiedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/shares/item_last_modified_by_user_request_builder.go b/shares/item_last_modified_by_user_request_builder.go index 3b1c442ea82..2da9c123070 100644 --- a/shares/item_last_modified_by_user_request_builder.go +++ b/shares/item_last_modified_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemLastModifiedByUserRequestBuilder(rawUrl string, requestAdapter i2ae4 return NewItemLastModifiedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get lastModifiedByUser from shares +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemLastModifiedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemLastModifiedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *ItemLastModifiedByUserRequestBuilder) ServiceProvisioningErrors()(*Item return NewItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get lastModifiedByUser from shares +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemLastModifiedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemLastModifiedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemLastModifiedByUserRequestBuilder) ToGetRequestInformation(ctx conte return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemLastModifiedByUserRequestBuilder when successful func (m *ItemLastModifiedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemLastModifiedByUserRequestBuilder) { return NewItemLastModifiedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/shares/item_last_modified_by_user_service_provisioning_errors_count_request_builder.go b/shares/item_last_modified_by_user_service_provisioning_errors_count_request_builder.go index 5a79cfdfb4b..48696e23993 100644 --- a/shares/item_last_modified_by_user_service_provisioning_errors_count_request_builder.go +++ b/shares/item_last_modified_by_user_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder(rawUr return NewItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) Get return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) ToG return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *ItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/shares/item_last_modified_by_user_service_provisioning_errors_request_builder.go b/shares/item_last_modified_by_user_service_provisioning_errors_request_builder.go index 19672fdf2b7..e722bf739dd 100644 --- a/shares/item_last_modified_by_user_service_provisioning_errors_request_builder.go +++ b/shares/item_last_modified_by_user_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) Count()( return NewItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) ToGetReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *ItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*ItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) { return NewItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/shares/item_list_created_by_user_mailbox_settings_request_builder.go b/shares/item_list_created_by_user_mailbox_settings_request_builder.go index 0dddbe77b29..f6180fb9a4c 100644 --- a/shares/item_list_created_by_user_mailbox_settings_request_builder.go +++ b/shares/item_list_created_by_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewItemListCreatedByUserMailboxSettingsRequestBuilder(rawUrl string, reques return NewItemListCreatedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListCreatedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *ItemListCreatedByUserMailboxSettingsRequestBuilder) Get(ctx context.Con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListCreatedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemListCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *ItemListCreatedByUserMailboxSettingsRequestBuilder) Patch(ctx context.C return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListCreatedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *ItemListCreatedByUserMailboxSettingsRequestBuilder) ToGetRequestInforma return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListCreatedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemListCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemListCreatedByUserMailboxSettingsRequestBuilder) ToPatchRequestInfor return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListCreatedByUserMailboxSettingsRequestBuilder when successful func (m *ItemListCreatedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemListCreatedByUserMailboxSettingsRequestBuilder) { return NewItemListCreatedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/shares/item_list_created_by_user_request_builder.go b/shares/item_list_created_by_user_request_builder.go index b255f922343..2868c2371b5 100644 --- a/shares/item_list_created_by_user_request_builder.go +++ b/shares/item_list_created_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemListCreatedByUserRequestBuilder(rawUrl string, requestAdapter i2ae41 return NewItemListCreatedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get createdByUser from shares +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListCreatedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListCreatedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *ItemListCreatedByUserRequestBuilder) ServiceProvisioningErrors()(*ItemL return NewItemListCreatedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get createdByUser from shares +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListCreatedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListCreatedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemListCreatedByUserRequestBuilder) ToGetRequestInformation(ctx contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListCreatedByUserRequestBuilder when successful func (m *ItemListCreatedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemListCreatedByUserRequestBuilder) { return NewItemListCreatedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/shares/item_list_created_by_user_service_provisioning_errors_count_request_builder.go b/shares/item_list_created_by_user_service_provisioning_errors_count_request_builder.go index bc4a77b74f9..06153547d5f 100644 --- a/shares/item_list_created_by_user_service_provisioning_errors_count_request_builder.go +++ b/shares/item_list_created_by_user_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemListCreatedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl return NewItemListCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListCreatedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemListCreatedByUserServiceProvisioningErrorsCountRequestBuilder) Get( return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListCreatedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemListCreatedByUserServiceProvisioningErrorsCountRequestBuilder) ToGe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListCreatedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *ItemListCreatedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemListCreatedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewItemListCreatedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/shares/item_list_created_by_user_service_provisioning_errors_request_builder.go b/shares/item_list_created_by_user_service_provisioning_errors_request_builder.go index 45130f8d727..b6cc29d3413 100644 --- a/shares/item_list_created_by_user_service_provisioning_errors_request_builder.go +++ b/shares/item_list_created_by_user_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemListCreatedByUserServiceProvisioningErrorsRequestBuilder) Count()(* return NewItemListCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListCreatedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemListCreatedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListCreatedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemListCreatedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListCreatedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *ItemListCreatedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*ItemListCreatedByUserServiceProvisioningErrorsRequestBuilder) { return NewItemListCreatedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/shares/item_list_items_item_created_by_user_mailbox_settings_request_builder.go b/shares/item_list_items_item_created_by_user_mailbox_settings_request_builder.go index e28a5cfc023..c2b79665d9a 100644 --- a/shares/item_list_items_item_created_by_user_mailbox_settings_request_builder.go +++ b/shares/item_list_items_item_created_by_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewItemListItemsItemCreatedByUserMailboxSettingsRequestBuilder(rawUrl strin return NewItemListItemsItemCreatedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListItemsItemCreatedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListItemsItemCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *ItemListItemsItemCreatedByUserMailboxSettingsRequestBuilder) Get(ctx co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListItemsItemCreatedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemListItemsItemCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *ItemListItemsItemCreatedByUserMailboxSettingsRequestBuilder) Patch(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListItemsItemCreatedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListItemsItemCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *ItemListItemsItemCreatedByUserMailboxSettingsRequestBuilder) ToGetReque return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListItemsItemCreatedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemListItemsItemCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemListItemsItemCreatedByUserMailboxSettingsRequestBuilder) ToPatchReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListItemsItemCreatedByUserMailboxSettingsRequestBuilder when successful func (m *ItemListItemsItemCreatedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemListItemsItemCreatedByUserMailboxSettingsRequestBuilder) { return NewItemListItemsItemCreatedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/shares/item_list_items_item_created_by_user_request_builder.go b/shares/item_list_items_item_created_by_user_request_builder.go index 907913efd3a..04b193cb014 100644 --- a/shares/item_list_items_item_created_by_user_request_builder.go +++ b/shares/item_list_items_item_created_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemListItemsItemCreatedByUserRequestBuilder(rawUrl string, requestAdapt return NewItemListItemsItemCreatedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get createdByUser from shares +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListItemsItemCreatedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListItemsItemCreatedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *ItemListItemsItemCreatedByUserRequestBuilder) ServiceProvisioningErrors return NewItemListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get createdByUser from shares +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListItemsItemCreatedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListItemsItemCreatedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemListItemsItemCreatedByUserRequestBuilder) ToGetRequestInformation(c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListItemsItemCreatedByUserRequestBuilder when successful func (m *ItemListItemsItemCreatedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemListItemsItemCreatedByUserRequestBuilder) { return NewItemListItemsItemCreatedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/shares/item_list_items_item_created_by_user_service_provisioning_errors_count_request_builder.go b/shares/item_list_items_item_created_by_user_service_provisioning_errors_count_request_builder.go index b0f43600662..29e4bcba985 100644 --- a/shares/item_list_items_item_created_by_user_service_provisioning_errors_count_request_builder.go +++ b/shares/item_list_items_item_created_by_user_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuild return NewItemListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuil return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuil return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *ItemListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewItemListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/shares/item_list_items_item_created_by_user_service_provisioning_errors_request_builder.go b/shares/item_list_items_item_created_by_user_service_provisioning_errors_request_builder.go index bb5cb669cae..df93537f574 100644 --- a/shares/item_list_items_item_created_by_user_service_provisioning_errors_request_builder.go +++ b/shares/item_list_items_item_created_by_user_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) return NewItemListItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *ItemListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*ItemListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) { return NewItemListItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/shares/item_list_items_item_last_modified_by_user_mailbox_settings_request_builder.go b/shares/item_list_items_item_last_modified_by_user_mailbox_settings_request_builder.go index 66cec46ba13..fc2f1cfd2a3 100644 --- a/shares/item_list_items_item_last_modified_by_user_mailbox_settings_request_builder.go +++ b/shares/item_list_items_item_last_modified_by_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewItemListItemsItemLastModifiedByUserMailboxSettingsRequestBuilder(rawUrl return NewItemListItemsItemLastModifiedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListItemsItemLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *ItemListItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) Get(c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemListItemsItemLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *ItemListItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) Patch return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListItemsItemLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *ItemListItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) ToGet return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemListItemsItemLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemListItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) ToPat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListItemsItemLastModifiedByUserMailboxSettingsRequestBuilder when successful func (m *ItemListItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemListItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) { return NewItemListItemsItemLastModifiedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/shares/item_list_items_item_last_modified_by_user_request_builder.go b/shares/item_list_items_item_last_modified_by_user_request_builder.go index ccc3e55e960..86d37cd9d84 100644 --- a/shares/item_list_items_item_last_modified_by_user_request_builder.go +++ b/shares/item_list_items_item_last_modified_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemListItemsItemLastModifiedByUserRequestBuilder(rawUrl string, request return NewItemListItemsItemLastModifiedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get lastModifiedByUser from shares +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListItemsItemLastModifiedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListItemsItemLastModifiedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *ItemListItemsItemLastModifiedByUserRequestBuilder) ServiceProvisioningE return NewItemListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get lastModifiedByUser from shares +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListItemsItemLastModifiedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListItemsItemLastModifiedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemListItemsItemLastModifiedByUserRequestBuilder) ToGetRequestInformat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListItemsItemLastModifiedByUserRequestBuilder when successful func (m *ItemListItemsItemLastModifiedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemListItemsItemLastModifiedByUserRequestBuilder) { return NewItemListItemsItemLastModifiedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/shares/item_list_items_item_last_modified_by_user_service_provisioning_errors_count_request_builder.go b/shares/item_list_items_item_last_modified_by_user_service_provisioning_errors_count_request_builder.go index 7deca14e79c..3affd2847bf 100644 --- a/shares/item_list_items_item_last_modified_by_user_service_provisioning_errors_count_request_builder.go +++ b/shares/item_list_items_item_last_modified_by_user_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequest return NewItemListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemListItemsItemLastModifiedByUserServiceProvisioningErrorsCountReques return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemListItemsItemLastModifiedByUserServiceProvisioningErrorsCountReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *ItemListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewItemListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/shares/item_list_items_item_last_modified_by_user_service_provisioning_errors_request_builder.go b/shares/item_list_items_item_last_modified_by_user_service_provisioning_errors_request_builder.go index 843329ddd13..63eecf7e184 100644 --- a/shares/item_list_items_item_last_modified_by_user_service_provisioning_errors_request_builder.go +++ b/shares/item_list_items_item_last_modified_by_user_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuil return NewItemListItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuil return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuil return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *ItemListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*ItemListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) { return NewItemListItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/shares/item_list_last_modified_by_user_mailbox_settings_request_builder.go b/shares/item_list_last_modified_by_user_mailbox_settings_request_builder.go index 65886faeffc..dd6d5835f8e 100644 --- a/shares/item_list_last_modified_by_user_mailbox_settings_request_builder.go +++ b/shares/item_list_last_modified_by_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewItemListLastModifiedByUserMailboxSettingsRequestBuilder(rawUrl string, r return NewItemListLastModifiedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListLastModifiedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *ItemListLastModifiedByUserMailboxSettingsRequestBuilder) Get(ctx contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListLastModifiedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemListLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *ItemListLastModifiedByUserMailboxSettingsRequestBuilder) Patch(ctx cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListLastModifiedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *ItemListLastModifiedByUserMailboxSettingsRequestBuilder) ToGetRequestIn return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListLastModifiedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemListLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemListLastModifiedByUserMailboxSettingsRequestBuilder) ToPatchRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListLastModifiedByUserMailboxSettingsRequestBuilder when successful func (m *ItemListLastModifiedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemListLastModifiedByUserMailboxSettingsRequestBuilder) { return NewItemListLastModifiedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/shares/item_list_last_modified_by_user_request_builder.go b/shares/item_list_last_modified_by_user_request_builder.go index 3f1167bbde9..0d856146090 100644 --- a/shares/item_list_last_modified_by_user_request_builder.go +++ b/shares/item_list_last_modified_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemListLastModifiedByUserRequestBuilder(rawUrl string, requestAdapter i return NewItemListLastModifiedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get lastModifiedByUser from shares +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListLastModifiedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListLastModifiedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *ItemListLastModifiedByUserRequestBuilder) ServiceProvisioningErrors()(* return NewItemListLastModifiedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get lastModifiedByUser from shares +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListLastModifiedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListLastModifiedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemListLastModifiedByUserRequestBuilder) ToGetRequestInformation(ctx c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListLastModifiedByUserRequestBuilder when successful func (m *ItemListLastModifiedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemListLastModifiedByUserRequestBuilder) { return NewItemListLastModifiedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/shares/item_list_last_modified_by_user_service_provisioning_errors_count_request_builder.go b/shares/item_list_last_modified_by_user_service_provisioning_errors_count_request_builder.go index e4dd9cf2aa9..bc07205ebf2 100644 --- a/shares/item_list_last_modified_by_user_service_provisioning_errors_count_request_builder.go +++ b/shares/item_list_last_modified_by_user_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder(r return NewItemListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *ItemListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewItemListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/shares/item_list_last_modified_by_user_service_provisioning_errors_request_builder.go b/shares/item_list_last_modified_by_user_service_provisioning_errors_request_builder.go index 3fe32456820..971426acc78 100644 --- a/shares/item_list_last_modified_by_user_service_provisioning_errors_request_builder.go +++ b/shares/item_list_last_modified_by_user_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemListLastModifiedByUserServiceProvisioningErrorsRequestBuilder) Coun return NewItemListLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListLastModifiedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemListLastModifiedByUserServiceProvisioningErrorsRequestBuilder) Get( return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListLastModifiedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemListLastModifiedByUserServiceProvisioningErrorsRequestBuilder) ToGe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListLastModifiedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *ItemListLastModifiedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*ItemListLastModifiedByUserServiceProvisioningErrorsRequestBuilder) { return NewItemListLastModifiedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/faaaade1bfae6606e6aba9d5637e26393ea2d35647b7dbe612a107acde37951d.go b/sites/faaaade1bfae6606e6aba9d5637e26393ea2d35647b7dbe612a107acde37951d.go index 5dc9ebde943..79ea21a1369 100644 --- a/sites/faaaade1bfae6606e6aba9d5637e26393ea2d35647b7dbe612a107acde37951d.go +++ b/sites/faaaade1bfae6606e6aba9d5637e26393ea2d35647b7dbe612a107acde37951d.go @@ -40,6 +40,7 @@ func NewItemPagesItemGraphSitePageLastModifiedByUserServiceProvisioningErrorsCou return NewItemPagesItemGraphSitePageLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPagesItemGraphSitePageLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPagesItemGraphSitePageLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemPagesItemGraphSitePageLastModifiedByUserServiceProvisioningErrorsCo return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPagesItemGraphSitePageLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPagesItemGraphSitePageLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemPagesItemGraphSitePageLastModifiedByUserServiceProvisioningErrorsCo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPagesItemGraphSitePageLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *ItemPagesItemGraphSitePageLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemPagesItemGraphSitePageLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewItemPagesItemGraphSitePageLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_created_by_user_mailbox_settings_request_builder.go b/sites/item_created_by_user_mailbox_settings_request_builder.go index f4817c55e73..4b266942f9f 100644 --- a/sites/item_created_by_user_mailbox_settings_request_builder.go +++ b/sites/item_created_by_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewItemCreatedByUserMailboxSettingsRequestBuilder(rawUrl string, requestAda return NewItemCreatedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCreatedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *ItemCreatedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCreatedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *ItemCreatedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCreatedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *ItemCreatedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCreatedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemCreatedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformati return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCreatedByUserMailboxSettingsRequestBuilder when successful func (m *ItemCreatedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemCreatedByUserMailboxSettingsRequestBuilder) { return NewItemCreatedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_created_by_user_request_builder.go b/sites/item_created_by_user_request_builder.go index 933ac6fad56..a8bbc9f6425 100644 --- a/sites/item_created_by_user_request_builder.go +++ b/sites/item_created_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemCreatedByUserRequestBuilder(rawUrl string, requestAdapter i2ae4187f7 return NewItemCreatedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get createdByUser from sites +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCreatedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCreatedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *ItemCreatedByUserRequestBuilder) ServiceProvisioningErrors()(*ItemCreat return NewItemCreatedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get createdByUser from sites +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCreatedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCreatedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemCreatedByUserRequestBuilder) ToGetRequestInformation(ctx context.Co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCreatedByUserRequestBuilder when successful func (m *ItemCreatedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemCreatedByUserRequestBuilder) { return NewItemCreatedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_created_by_user_service_provisioning_errors_count_request_builder.go b/sites/item_created_by_user_service_provisioning_errors_count_request_builder.go index 5a6ff06661a..4c75ee1c61e 100644 --- a/sites/item_created_by_user_service_provisioning_errors_count_request_builder.go +++ b/sites/item_created_by_user_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl str return NewItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *ItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_created_by_user_service_provisioning_errors_request_builder.go b/sites/item_created_by_user_service_provisioning_errors_request_builder.go index 7e91fdc13b5..ce7636784c3 100644 --- a/sites/item_created_by_user_service_provisioning_errors_request_builder.go +++ b/sites/item_created_by_user_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemCreatedByUserServiceProvisioningErrorsRequestBuilder) Count()(*Item return NewItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCreatedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemCreatedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCreatedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemCreatedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCreatedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *ItemCreatedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*ItemCreatedByUserServiceProvisioningErrorsRequestBuilder) { return NewItemCreatedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_get_by_path_with_path_created_by_user_request_builder.go b/sites/item_get_by_path_with_path_created_by_user_request_builder.go index e074bd4e334..bfa6f30bad6 100644 --- a/sites/item_get_by_path_with_path_created_by_user_request_builder.go +++ b/sites/item_get_by_path_with_path_created_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemGetByPathWithPathCreatedByUserRequestBuilder(rawUrl string, requestA return NewItemGetByPathWithPathCreatedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get createdByUser from sites +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemGetByPathWithPathCreatedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemGetByPathWithPathCreatedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -61,6 +62,7 @@ func (m *ItemGetByPathWithPathCreatedByUserRequestBuilder) Get(ctx context.Conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable), nil } // ToGetRequestInformation get createdByUser from sites +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemGetByPathWithPathCreatedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemGetByPathWithPathCreatedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemGetByPathWithPathCreatedByUserRequestBuilder) ToGetRequestInformati return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemGetByPathWithPathCreatedByUserRequestBuilder when successful func (m *ItemGetByPathWithPathCreatedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemGetByPathWithPathCreatedByUserRequestBuilder) { return NewItemGetByPathWithPathCreatedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_get_by_path_with_path_last_modified_by_user_request_builder.go b/sites/item_get_by_path_with_path_last_modified_by_user_request_builder.go index 9004e3ef7ab..eede4f7f4c9 100644 --- a/sites/item_get_by_path_with_path_last_modified_by_user_request_builder.go +++ b/sites/item_get_by_path_with_path_last_modified_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemGetByPathWithPathLastModifiedByUserRequestBuilder(rawUrl string, req return NewItemGetByPathWithPathLastModifiedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get lastModifiedByUser from sites +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemGetByPathWithPathLastModifiedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemGetByPathWithPathLastModifiedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -61,6 +62,7 @@ func (m *ItemGetByPathWithPathLastModifiedByUserRequestBuilder) Get(ctx context. return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable), nil } // ToGetRequestInformation get lastModifiedByUser from sites +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemGetByPathWithPathLastModifiedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemGetByPathWithPathLastModifiedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemGetByPathWithPathLastModifiedByUserRequestBuilder) ToGetRequestInfo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemGetByPathWithPathLastModifiedByUserRequestBuilder when successful func (m *ItemGetByPathWithPathLastModifiedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemGetByPathWithPathLastModifiedByUserRequestBuilder) { return NewItemGetByPathWithPathLastModifiedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_last_modified_by_user_mailbox_settings_request_builder.go b/sites/item_last_modified_by_user_mailbox_settings_request_builder.go index 0d4c206d7c0..ea46f2408ff 100644 --- a/sites/item_last_modified_by_user_mailbox_settings_request_builder.go +++ b/sites/item_last_modified_by_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewItemLastModifiedByUserMailboxSettingsRequestBuilder(rawUrl string, reque return NewItemLastModifiedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemLastModifiedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *ItemLastModifiedByUserMailboxSettingsRequestBuilder) Get(ctx context.Co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemLastModifiedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *ItemLastModifiedByUserMailboxSettingsRequestBuilder) Patch(ctx context. return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemLastModifiedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *ItemLastModifiedByUserMailboxSettingsRequestBuilder) ToGetRequestInform return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemLastModifiedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemLastModifiedByUserMailboxSettingsRequestBuilder) ToPatchRequestInfo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemLastModifiedByUserMailboxSettingsRequestBuilder when successful func (m *ItemLastModifiedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemLastModifiedByUserMailboxSettingsRequestBuilder) { return NewItemLastModifiedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_last_modified_by_user_request_builder.go b/sites/item_last_modified_by_user_request_builder.go index 1d476d9818a..407937238a6 100644 --- a/sites/item_last_modified_by_user_request_builder.go +++ b/sites/item_last_modified_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemLastModifiedByUserRequestBuilder(rawUrl string, requestAdapter i2ae4 return NewItemLastModifiedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get lastModifiedByUser from sites +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemLastModifiedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemLastModifiedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *ItemLastModifiedByUserRequestBuilder) ServiceProvisioningErrors()(*Item return NewItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get lastModifiedByUser from sites +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemLastModifiedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemLastModifiedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemLastModifiedByUserRequestBuilder) ToGetRequestInformation(ctx conte return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemLastModifiedByUserRequestBuilder when successful func (m *ItemLastModifiedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemLastModifiedByUserRequestBuilder) { return NewItemLastModifiedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_last_modified_by_user_service_provisioning_errors_count_request_builder.go b/sites/item_last_modified_by_user_service_provisioning_errors_count_request_builder.go index 139d1248f84..cfe96dd7b8c 100644 --- a/sites/item_last_modified_by_user_service_provisioning_errors_count_request_builder.go +++ b/sites/item_last_modified_by_user_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder(rawUr return NewItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) Get return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) ToG return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *ItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_last_modified_by_user_service_provisioning_errors_request_builder.go b/sites/item_last_modified_by_user_service_provisioning_errors_request_builder.go index 44955b7d7b4..dad9f1c1aec 100644 --- a/sites/item_last_modified_by_user_service_provisioning_errors_request_builder.go +++ b/sites/item_last_modified_by_user_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) Count()( return NewItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) ToGetReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *ItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*ItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) { return NewItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_lists_item_created_by_user_mailbox_settings_request_builder.go b/sites/item_lists_item_created_by_user_mailbox_settings_request_builder.go index 62215d38a76..e203ea78f37 100644 --- a/sites/item_lists_item_created_by_user_mailbox_settings_request_builder.go +++ b/sites/item_lists_item_created_by_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewItemListsItemCreatedByUserMailboxSettingsRequestBuilder(rawUrl string, r return NewItemListsItemCreatedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListsItemCreatedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListsItemCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *ItemListsItemCreatedByUserMailboxSettingsRequestBuilder) Get(ctx contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListsItemCreatedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemListsItemCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *ItemListsItemCreatedByUserMailboxSettingsRequestBuilder) Patch(ctx cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListsItemCreatedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListsItemCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *ItemListsItemCreatedByUserMailboxSettingsRequestBuilder) ToGetRequestIn return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListsItemCreatedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemListsItemCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemListsItemCreatedByUserMailboxSettingsRequestBuilder) ToPatchRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListsItemCreatedByUserMailboxSettingsRequestBuilder when successful func (m *ItemListsItemCreatedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemListsItemCreatedByUserMailboxSettingsRequestBuilder) { return NewItemListsItemCreatedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_lists_item_created_by_user_request_builder.go b/sites/item_lists_item_created_by_user_request_builder.go index e620ad4094e..86cbaee0d5f 100644 --- a/sites/item_lists_item_created_by_user_request_builder.go +++ b/sites/item_lists_item_created_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemListsItemCreatedByUserRequestBuilder(rawUrl string, requestAdapter i return NewItemListsItemCreatedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get createdByUser from sites +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListsItemCreatedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListsItemCreatedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *ItemListsItemCreatedByUserRequestBuilder) ServiceProvisioningErrors()(* return NewItemListsItemCreatedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get createdByUser from sites +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListsItemCreatedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListsItemCreatedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemListsItemCreatedByUserRequestBuilder) ToGetRequestInformation(ctx c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListsItemCreatedByUserRequestBuilder when successful func (m *ItemListsItemCreatedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemListsItemCreatedByUserRequestBuilder) { return NewItemListsItemCreatedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_lists_item_created_by_user_service_provisioning_errors_count_request_builder.go b/sites/item_lists_item_created_by_user_service_provisioning_errors_count_request_builder.go index 236d1dea4a4..9b4aa3297f5 100644 --- a/sites/item_lists_item_created_by_user_service_provisioning_errors_count_request_builder.go +++ b/sites/item_lists_item_created_by_user_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemListsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder(r return NewItemListsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemListsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemListsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *ItemListsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemListsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewItemListsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_lists_item_created_by_user_service_provisioning_errors_request_builder.go b/sites/item_lists_item_created_by_user_service_provisioning_errors_request_builder.go index bad0a4e1ba0..aba18919e6e 100644 --- a/sites/item_lists_item_created_by_user_service_provisioning_errors_request_builder.go +++ b/sites/item_lists_item_created_by_user_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemListsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) Coun return NewItemListsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListsItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemListsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) Get( return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListsItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemListsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) ToGe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListsItemCreatedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *ItemListsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*ItemListsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) { return NewItemListsItemCreatedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_lists_item_items_item_created_by_user_mailbox_settings_request_builder.go b/sites/item_lists_item_items_item_created_by_user_mailbox_settings_request_builder.go index 56d6b982862..92305247bd9 100644 --- a/sites/item_lists_item_items_item_created_by_user_mailbox_settings_request_builder.go +++ b/sites/item_lists_item_items_item_created_by_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewItemListsItemItemsItemCreatedByUserMailboxSettingsRequestBuilder(rawUrl return NewItemListsItemItemsItemCreatedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListsItemItemsItemCreatedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListsItemItemsItemCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *ItemListsItemItemsItemCreatedByUserMailboxSettingsRequestBuilder) Get(c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListsItemItemsItemCreatedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemListsItemItemsItemCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *ItemListsItemItemsItemCreatedByUserMailboxSettingsRequestBuilder) Patch return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListsItemItemsItemCreatedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListsItemItemsItemCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *ItemListsItemItemsItemCreatedByUserMailboxSettingsRequestBuilder) ToGet return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListsItemItemsItemCreatedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemListsItemItemsItemCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemListsItemItemsItemCreatedByUserMailboxSettingsRequestBuilder) ToPat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListsItemItemsItemCreatedByUserMailboxSettingsRequestBuilder when successful func (m *ItemListsItemItemsItemCreatedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemListsItemItemsItemCreatedByUserMailboxSettingsRequestBuilder) { return NewItemListsItemItemsItemCreatedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_lists_item_items_item_created_by_user_request_builder.go b/sites/item_lists_item_items_item_created_by_user_request_builder.go index c1f967214c1..5b38100b4a1 100644 --- a/sites/item_lists_item_items_item_created_by_user_request_builder.go +++ b/sites/item_lists_item_items_item_created_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemListsItemItemsItemCreatedByUserRequestBuilder(rawUrl string, request return NewItemListsItemItemsItemCreatedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get createdByUser from sites +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListsItemItemsItemCreatedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListsItemItemsItemCreatedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *ItemListsItemItemsItemCreatedByUserRequestBuilder) ServiceProvisioningE return NewItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get createdByUser from sites +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListsItemItemsItemCreatedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListsItemItemsItemCreatedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemListsItemItemsItemCreatedByUserRequestBuilder) ToGetRequestInformat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListsItemItemsItemCreatedByUserRequestBuilder when successful func (m *ItemListsItemItemsItemCreatedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemListsItemItemsItemCreatedByUserRequestBuilder) { return NewItemListsItemItemsItemCreatedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_lists_item_items_item_created_by_user_service_provisioning_errors_count_request_builder.go b/sites/item_lists_item_items_item_created_by_user_service_provisioning_errors_count_request_builder.go index 135e53f0534..ba27044e39b 100644 --- a/sites/item_lists_item_items_item_created_by_user_service_provisioning_errors_count_request_builder.go +++ b/sites/item_lists_item_items_item_created_by_user_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsCountRequest return NewItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsCountReques return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsCountReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *ItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_lists_item_items_item_created_by_user_service_provisioning_errors_request_builder.go b/sites/item_lists_item_items_item_created_by_user_service_provisioning_errors_request_builder.go index 070d372bf2f..136c2718edf 100644 --- a/sites/item_lists_item_items_item_created_by_user_service_provisioning_errors_request_builder.go +++ b/sites/item_lists_item_items_item_created_by_user_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsRequestBuil return NewItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsRequestBuil return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsRequestBuil return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *ItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*ItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) { return NewItemListsItemItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_lists_item_items_item_last_modified_by_user_mailbox_settings_request_builder.go b/sites/item_lists_item_items_item_last_modified_by_user_mailbox_settings_request_builder.go index a4ca79a954a..93a3930e60d 100644 --- a/sites/item_lists_item_items_item_last_modified_by_user_mailbox_settings_request_builder.go +++ b/sites/item_lists_item_items_item_last_modified_by_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewItemListsItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilder(ra return NewItemListsItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListsItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListsItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *ItemListsItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListsItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemListsItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *ItemListsItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListsItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListsItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *ItemListsItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListsItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemListsItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemListsItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListsItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilder when successful func (m *ItemListsItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemListsItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) { return NewItemListsItemItemsItemLastModifiedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_lists_item_items_item_last_modified_by_user_request_builder.go b/sites/item_lists_item_items_item_last_modified_by_user_request_builder.go index 7a94e013852..587f88ba458 100644 --- a/sites/item_lists_item_items_item_last_modified_by_user_request_builder.go +++ b/sites/item_lists_item_items_item_last_modified_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemListsItemItemsItemLastModifiedByUserRequestBuilder(rawUrl string, re return NewItemListsItemItemsItemLastModifiedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get lastModifiedByUser from sites +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListsItemItemsItemLastModifiedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListsItemItemsItemLastModifiedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *ItemListsItemItemsItemLastModifiedByUserRequestBuilder) ServiceProvisio return NewItemListsItemItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get lastModifiedByUser from sites +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListsItemItemsItemLastModifiedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListsItemItemsItemLastModifiedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemListsItemItemsItemLastModifiedByUserRequestBuilder) ToGetRequestInf return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListsItemItemsItemLastModifiedByUserRequestBuilder when successful func (m *ItemListsItemItemsItemLastModifiedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemListsItemItemsItemLastModifiedByUserRequestBuilder) { return NewItemListsItemItemsItemLastModifiedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_lists_item_items_item_last_modified_by_user_service_provisioning_errors_count_request_builder.go b/sites/item_lists_item_items_item_last_modified_by_user_service_provisioning_errors_count_request_builder.go index daff941eda1..da449f5ef08 100644 --- a/sites/item_lists_item_items_item_last_modified_by_user_service_provisioning_errors_count_request_builder.go +++ b/sites/item_lists_item_items_item_last_modified_by_user_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemListsItemItemsItemLastModifiedByUserServiceProvisioningErrorsCountRe return NewItemListsItemItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListsItemItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListsItemItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemListsItemItemsItemLastModifiedByUserServiceProvisioningErrorsCountR return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListsItemItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListsItemItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemListsItemItemsItemLastModifiedByUserServiceProvisioningErrorsCountR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListsItemItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *ItemListsItemItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemListsItemItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewItemListsItemItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_lists_item_items_item_last_modified_by_user_service_provisioning_errors_request_builder.go b/sites/item_lists_item_items_item_last_modified_by_user_service_provisioning_errors_request_builder.go index d1fba40181b..26eb4fade1a 100644 --- a/sites/item_lists_item_items_item_last_modified_by_user_service_provisioning_errors_request_builder.go +++ b/sites/item_lists_item_items_item_last_modified_by_user_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemListsItemItemsItemLastModifiedByUserServiceProvisioningErrorsReques return NewItemListsItemItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListsItemItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListsItemItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemListsItemItemsItemLastModifiedByUserServiceProvisioningErrorsReques return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListsItemItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListsItemItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemListsItemItemsItemLastModifiedByUserServiceProvisioningErrorsReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListsItemItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *ItemListsItemItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*ItemListsItemItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) { return NewItemListsItemItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_lists_item_last_modified_by_user_mailbox_settings_request_builder.go b/sites/item_lists_item_last_modified_by_user_mailbox_settings_request_builder.go index 08087aaf49b..18778d28afa 100644 --- a/sites/item_lists_item_last_modified_by_user_mailbox_settings_request_builder.go +++ b/sites/item_lists_item_last_modified_by_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewItemListsItemLastModifiedByUserMailboxSettingsRequestBuilder(rawUrl stri return NewItemListsItemLastModifiedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListsItemLastModifiedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListsItemLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *ItemListsItemLastModifiedByUserMailboxSettingsRequestBuilder) Get(ctx c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListsItemLastModifiedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemListsItemLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *ItemListsItemLastModifiedByUserMailboxSettingsRequestBuilder) Patch(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListsItemLastModifiedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListsItemLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *ItemListsItemLastModifiedByUserMailboxSettingsRequestBuilder) ToGetRequ return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListsItemLastModifiedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemListsItemLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemListsItemLastModifiedByUserMailboxSettingsRequestBuilder) ToPatchRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListsItemLastModifiedByUserMailboxSettingsRequestBuilder when successful func (m *ItemListsItemLastModifiedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemListsItemLastModifiedByUserMailboxSettingsRequestBuilder) { return NewItemListsItemLastModifiedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_lists_item_last_modified_by_user_request_builder.go b/sites/item_lists_item_last_modified_by_user_request_builder.go index 32e0cf29d9f..2f5ab81ba04 100644 --- a/sites/item_lists_item_last_modified_by_user_request_builder.go +++ b/sites/item_lists_item_last_modified_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemListsItemLastModifiedByUserRequestBuilder(rawUrl string, requestAdap return NewItemListsItemLastModifiedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get lastModifiedByUser from sites +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListsItemLastModifiedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListsItemLastModifiedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *ItemListsItemLastModifiedByUserRequestBuilder) ServiceProvisioningError return NewItemListsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get lastModifiedByUser from sites +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListsItemLastModifiedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListsItemLastModifiedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemListsItemLastModifiedByUserRequestBuilder) ToGetRequestInformation( return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListsItemLastModifiedByUserRequestBuilder when successful func (m *ItemListsItemLastModifiedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemListsItemLastModifiedByUserRequestBuilder) { return NewItemListsItemLastModifiedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_lists_item_last_modified_by_user_service_provisioning_errors_count_request_builder.go b/sites/item_lists_item_last_modified_by_user_service_provisioning_errors_count_request_builder.go index 00f1e1d7fbd..09d2a700f25 100644 --- a/sites/item_lists_item_last_modified_by_user_service_provisioning_errors_count_request_builder.go +++ b/sites/item_lists_item_last_modified_by_user_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemListsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuil return NewItemListsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemListsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBui return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemListsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBui return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *ItemListsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemListsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewItemListsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_lists_item_last_modified_by_user_service_provisioning_errors_request_builder.go b/sites/item_lists_item_last_modified_by_user_service_provisioning_errors_request_builder.go index 6b593c0c521..731ff354678 100644 --- a/sites/item_lists_item_last_modified_by_user_service_provisioning_errors_request_builder.go +++ b/sites/item_lists_item_last_modified_by_user_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemListsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) return NewItemListsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemListsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemListsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemListsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemListsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemListsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemListsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *ItemListsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*ItemListsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) { return NewItemListsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_lists_list_item_request_builder.go b/sites/item_lists_list_item_request_builder.go index 690a1392f07..59779d63cf6 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 return the metadata for a list. +// ItemListsListItemRequestBuilderGetQueryParameters get the list of richLongRunningOperations associated with a list. type ItemListsListItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -95,12 +95,12 @@ func (m *ItemListsListItemRequestBuilder) Delete(ctx context.Context, requestCon func (m *ItemListsListItemRequestBuilder) Drive()(*ItemListsItemDriveRequestBuilder) { return NewItemListsItemDriveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get return the metadata for a list. +// Get get the list of richLongRunningOperations 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-beta +// [Find more info here]: https://learn.microsoft.com/graph/api/list-list-operations?view=graph-rest-beta func (m *ItemListsListItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemListsListItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Listable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -174,7 +174,7 @@ func (m *ItemListsListItemRequestBuilder) ToDeleteRequestInformation(ctx context requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation return the metadata for a list. +// ToGetRequestInformation get the list of richLongRunningOperations 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/item_pages_item_created_by_user_mailbox_settings_request_builder.go b/sites/item_pages_item_created_by_user_mailbox_settings_request_builder.go index 3226f0749b3..90e9fdabf92 100644 --- a/sites/item_pages_item_created_by_user_mailbox_settings_request_builder.go +++ b/sites/item_pages_item_created_by_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewItemPagesItemCreatedByUserMailboxSettingsRequestBuilder(rawUrl string, r return NewItemPagesItemCreatedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPagesItemCreatedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPagesItemCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *ItemPagesItemCreatedByUserMailboxSettingsRequestBuilder) Get(ctx contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPagesItemCreatedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemPagesItemCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *ItemPagesItemCreatedByUserMailboxSettingsRequestBuilder) Patch(ctx cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPagesItemCreatedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPagesItemCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *ItemPagesItemCreatedByUserMailboxSettingsRequestBuilder) ToGetRequestIn return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPagesItemCreatedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemPagesItemCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemPagesItemCreatedByUserMailboxSettingsRequestBuilder) ToPatchRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPagesItemCreatedByUserMailboxSettingsRequestBuilder when successful func (m *ItemPagesItemCreatedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemPagesItemCreatedByUserMailboxSettingsRequestBuilder) { return NewItemPagesItemCreatedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_pages_item_created_by_user_request_builder.go b/sites/item_pages_item_created_by_user_request_builder.go index e03cfe4a442..844da6d4c50 100644 --- a/sites/item_pages_item_created_by_user_request_builder.go +++ b/sites/item_pages_item_created_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemPagesItemCreatedByUserRequestBuilder(rawUrl string, requestAdapter i return NewItemPagesItemCreatedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get createdByUser from sites +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPagesItemCreatedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPagesItemCreatedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *ItemPagesItemCreatedByUserRequestBuilder) ServiceProvisioningErrors()(* return NewItemPagesItemCreatedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get createdByUser from sites +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPagesItemCreatedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPagesItemCreatedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemPagesItemCreatedByUserRequestBuilder) ToGetRequestInformation(ctx c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPagesItemCreatedByUserRequestBuilder when successful func (m *ItemPagesItemCreatedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemPagesItemCreatedByUserRequestBuilder) { return NewItemPagesItemCreatedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_pages_item_created_by_user_service_provisioning_errors_count_request_builder.go b/sites/item_pages_item_created_by_user_service_provisioning_errors_count_request_builder.go index e58752eaa07..ce811cf869b 100644 --- a/sites/item_pages_item_created_by_user_service_provisioning_errors_count_request_builder.go +++ b/sites/item_pages_item_created_by_user_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemPagesItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder(r return NewItemPagesItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPagesItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPagesItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemPagesItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPagesItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPagesItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemPagesItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPagesItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *ItemPagesItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemPagesItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewItemPagesItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_pages_item_created_by_user_service_provisioning_errors_request_builder.go b/sites/item_pages_item_created_by_user_service_provisioning_errors_request_builder.go index 2d848f088be..60f64224bc4 100644 --- a/sites/item_pages_item_created_by_user_service_provisioning_errors_request_builder.go +++ b/sites/item_pages_item_created_by_user_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemPagesItemCreatedByUserServiceProvisioningErrorsRequestBuilder) Coun return NewItemPagesItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPagesItemCreatedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPagesItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemPagesItemCreatedByUserServiceProvisioningErrorsRequestBuilder) Get( return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPagesItemCreatedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPagesItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemPagesItemCreatedByUserServiceProvisioningErrorsRequestBuilder) ToGe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPagesItemCreatedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *ItemPagesItemCreatedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*ItemPagesItemCreatedByUserServiceProvisioningErrorsRequestBuilder) { return NewItemPagesItemCreatedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_pages_item_graph_site_page_created_by_user_mailbox_settings_request_builder.go b/sites/item_pages_item_graph_site_page_created_by_user_mailbox_settings_request_builder.go index 1e6242a8740..07b292156d9 100644 --- a/sites/item_pages_item_graph_site_page_created_by_user_mailbox_settings_request_builder.go +++ b/sites/item_pages_item_graph_site_page_created_by_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewItemPagesItemGraphSitePageCreatedByUserMailboxSettingsRequestBuilder(raw return NewItemPagesItemGraphSitePageCreatedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPagesItemGraphSitePageCreatedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPagesItemGraphSitePageCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *ItemPagesItemGraphSitePageCreatedByUserMailboxSettingsRequestBuilder) G return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPagesItemGraphSitePageCreatedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemPagesItemGraphSitePageCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *ItemPagesItemGraphSitePageCreatedByUserMailboxSettingsRequestBuilder) P return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPagesItemGraphSitePageCreatedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPagesItemGraphSitePageCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *ItemPagesItemGraphSitePageCreatedByUserMailboxSettingsRequestBuilder) T return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPagesItemGraphSitePageCreatedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemPagesItemGraphSitePageCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemPagesItemGraphSitePageCreatedByUserMailboxSettingsRequestBuilder) T return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPagesItemGraphSitePageCreatedByUserMailboxSettingsRequestBuilder when successful func (m *ItemPagesItemGraphSitePageCreatedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemPagesItemGraphSitePageCreatedByUserMailboxSettingsRequestBuilder) { return NewItemPagesItemGraphSitePageCreatedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_pages_item_graph_site_page_created_by_user_request_builder.go b/sites/item_pages_item_graph_site_page_created_by_user_request_builder.go index 755f75cad9e..3663ec6e915 100644 --- a/sites/item_pages_item_graph_site_page_created_by_user_request_builder.go +++ b/sites/item_pages_item_graph_site_page_created_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemPagesItemGraphSitePageCreatedByUserRequestBuilder(rawUrl string, req return NewItemPagesItemGraphSitePageCreatedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get createdByUser from sites +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPagesItemGraphSitePageCreatedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPagesItemGraphSitePageCreatedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *ItemPagesItemGraphSitePageCreatedByUserRequestBuilder) ServiceProvision return NewItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get createdByUser from sites +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPagesItemGraphSitePageCreatedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPagesItemGraphSitePageCreatedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemPagesItemGraphSitePageCreatedByUserRequestBuilder) ToGetRequestInfo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPagesItemGraphSitePageCreatedByUserRequestBuilder when successful func (m *ItemPagesItemGraphSitePageCreatedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemPagesItemGraphSitePageCreatedByUserRequestBuilder) { return NewItemPagesItemGraphSitePageCreatedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_pages_item_graph_site_page_created_by_user_service_provisioning_errors_count_request_builder.go b/sites/item_pages_item_graph_site_page_created_by_user_service_provisioning_errors_count_request_builder.go index 31bf4e997a5..9d6592bd781 100644 --- a/sites/item_pages_item_graph_site_page_created_by_user_service_provisioning_errors_count_request_builder.go +++ b/sites/item_pages_item_graph_site_page_created_by_user_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErrorsCountReq return NewItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErrorsCountRe return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErrorsCountRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *ItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_pages_item_graph_site_page_created_by_user_service_provisioning_errors_request_builder.go b/sites/item_pages_item_graph_site_page_created_by_user_service_provisioning_errors_request_builder.go index 830f044295e..5d3003891ee 100644 --- a/sites/item_pages_item_graph_site_page_created_by_user_service_provisioning_errors_request_builder.go +++ b/sites/item_pages_item_graph_site_page_created_by_user_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErrorsRequest return NewItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErrorsRequest return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErrorsRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *ItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*ItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErrorsRequestBuilder) { return NewItemPagesItemGraphSitePageCreatedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_pages_item_graph_site_page_last_modified_by_user_mailbox_settings_request_builder.go b/sites/item_pages_item_graph_site_page_last_modified_by_user_mailbox_settings_request_builder.go index 7a512116db8..6ba8bae1198 100644 --- a/sites/item_pages_item_graph_site_page_last_modified_by_user_mailbox_settings_request_builder.go +++ b/sites/item_pages_item_graph_site_page_last_modified_by_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewItemPagesItemGraphSitePageLastModifiedByUserMailboxSettingsRequestBuilde return NewItemPagesItemGraphSitePageLastModifiedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPagesItemGraphSitePageLastModifiedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPagesItemGraphSitePageLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *ItemPagesItemGraphSitePageLastModifiedByUserMailboxSettingsRequestBuild return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPagesItemGraphSitePageLastModifiedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemPagesItemGraphSitePageLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *ItemPagesItemGraphSitePageLastModifiedByUserMailboxSettingsRequestBuild return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPagesItemGraphSitePageLastModifiedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPagesItemGraphSitePageLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *ItemPagesItemGraphSitePageLastModifiedByUserMailboxSettingsRequestBuild return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPagesItemGraphSitePageLastModifiedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemPagesItemGraphSitePageLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemPagesItemGraphSitePageLastModifiedByUserMailboxSettingsRequestBuild return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPagesItemGraphSitePageLastModifiedByUserMailboxSettingsRequestBuilder when successful func (m *ItemPagesItemGraphSitePageLastModifiedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemPagesItemGraphSitePageLastModifiedByUserMailboxSettingsRequestBuilder) { return NewItemPagesItemGraphSitePageLastModifiedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_pages_item_graph_site_page_last_modified_by_user_request_builder.go b/sites/item_pages_item_graph_site_page_last_modified_by_user_request_builder.go index 86bc8274887..9ed6fad4893 100644 --- a/sites/item_pages_item_graph_site_page_last_modified_by_user_request_builder.go +++ b/sites/item_pages_item_graph_site_page_last_modified_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemPagesItemGraphSitePageLastModifiedByUserRequestBuilder(rawUrl string return NewItemPagesItemGraphSitePageLastModifiedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get lastModifiedByUser from sites +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPagesItemGraphSitePageLastModifiedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPagesItemGraphSitePageLastModifiedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *ItemPagesItemGraphSitePageLastModifiedByUserRequestBuilder) ServiceProv return NewItemPagesItemGraphSitePageLastModifiedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get lastModifiedByUser from sites +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPagesItemGraphSitePageLastModifiedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPagesItemGraphSitePageLastModifiedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemPagesItemGraphSitePageLastModifiedByUserRequestBuilder) ToGetReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPagesItemGraphSitePageLastModifiedByUserRequestBuilder when successful func (m *ItemPagesItemGraphSitePageLastModifiedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemPagesItemGraphSitePageLastModifiedByUserRequestBuilder) { return NewItemPagesItemGraphSitePageLastModifiedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_pages_item_graph_site_page_last_modified_by_user_service_provisioning_errors_request_builder.go b/sites/item_pages_item_graph_site_page_last_modified_by_user_service_provisioning_errors_request_builder.go index 4aa764cd7dd..411a6380272 100644 --- a/sites/item_pages_item_graph_site_page_last_modified_by_user_service_provisioning_errors_request_builder.go +++ b/sites/item_pages_item_graph_site_page_last_modified_by_user_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemPagesItemGraphSitePageLastModifiedByUserServiceProvisioningErrorsRe return NewItemPagesItemGraphSitePageLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPagesItemGraphSitePageLastModifiedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPagesItemGraphSitePageLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemPagesItemGraphSitePageLastModifiedByUserServiceProvisioningErrorsRe return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPagesItemGraphSitePageLastModifiedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPagesItemGraphSitePageLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemPagesItemGraphSitePageLastModifiedByUserServiceProvisioningErrorsRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPagesItemGraphSitePageLastModifiedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *ItemPagesItemGraphSitePageLastModifiedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*ItemPagesItemGraphSitePageLastModifiedByUserServiceProvisioningErrorsRequestBuilder) { return NewItemPagesItemGraphSitePageLastModifiedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_pages_item_last_modified_by_user_mailbox_settings_request_builder.go b/sites/item_pages_item_last_modified_by_user_mailbox_settings_request_builder.go index ddae1cff893..3ffe860cd8b 100644 --- a/sites/item_pages_item_last_modified_by_user_mailbox_settings_request_builder.go +++ b/sites/item_pages_item_last_modified_by_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewItemPagesItemLastModifiedByUserMailboxSettingsRequestBuilder(rawUrl stri return NewItemPagesItemLastModifiedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPagesItemLastModifiedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPagesItemLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *ItemPagesItemLastModifiedByUserMailboxSettingsRequestBuilder) Get(ctx c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPagesItemLastModifiedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemPagesItemLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *ItemPagesItemLastModifiedByUserMailboxSettingsRequestBuilder) Patch(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPagesItemLastModifiedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPagesItemLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *ItemPagesItemLastModifiedByUserMailboxSettingsRequestBuilder) ToGetRequ return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPagesItemLastModifiedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemPagesItemLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemPagesItemLastModifiedByUserMailboxSettingsRequestBuilder) ToPatchRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPagesItemLastModifiedByUserMailboxSettingsRequestBuilder when successful func (m *ItemPagesItemLastModifiedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemPagesItemLastModifiedByUserMailboxSettingsRequestBuilder) { return NewItemPagesItemLastModifiedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_pages_item_last_modified_by_user_request_builder.go b/sites/item_pages_item_last_modified_by_user_request_builder.go index 0b048d59644..0d73bb10496 100644 --- a/sites/item_pages_item_last_modified_by_user_request_builder.go +++ b/sites/item_pages_item_last_modified_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemPagesItemLastModifiedByUserRequestBuilder(rawUrl string, requestAdap return NewItemPagesItemLastModifiedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get lastModifiedByUser from sites +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPagesItemLastModifiedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPagesItemLastModifiedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *ItemPagesItemLastModifiedByUserRequestBuilder) ServiceProvisioningError return NewItemPagesItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get lastModifiedByUser from sites +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPagesItemLastModifiedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPagesItemLastModifiedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemPagesItemLastModifiedByUserRequestBuilder) ToGetRequestInformation( return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPagesItemLastModifiedByUserRequestBuilder when successful func (m *ItemPagesItemLastModifiedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemPagesItemLastModifiedByUserRequestBuilder) { return NewItemPagesItemLastModifiedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_pages_item_last_modified_by_user_service_provisioning_errors_count_request_builder.go b/sites/item_pages_item_last_modified_by_user_service_provisioning_errors_count_request_builder.go index c515157020f..1a1a5a85a9d 100644 --- a/sites/item_pages_item_last_modified_by_user_service_provisioning_errors_count_request_builder.go +++ b/sites/item_pages_item_last_modified_by_user_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemPagesItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuil return NewItemPagesItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPagesItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPagesItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemPagesItemLastModifiedByUserServiceProvisioningErrorsCountRequestBui return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPagesItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPagesItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemPagesItemLastModifiedByUserServiceProvisioningErrorsCountRequestBui return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPagesItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *ItemPagesItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemPagesItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewItemPagesItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_pages_item_last_modified_by_user_service_provisioning_errors_request_builder.go b/sites/item_pages_item_last_modified_by_user_service_provisioning_errors_request_builder.go index 80fde371f6f..dde08a70c60 100644 --- a/sites/item_pages_item_last_modified_by_user_service_provisioning_errors_request_builder.go +++ b/sites/item_pages_item_last_modified_by_user_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemPagesItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) return NewItemPagesItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPagesItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPagesItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemPagesItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPagesItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPagesItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemPagesItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPagesItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *ItemPagesItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*ItemPagesItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) { return NewItemPagesItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_recycle_bin_created_by_user_mailbox_settings_request_builder.go b/sites/item_recycle_bin_created_by_user_mailbox_settings_request_builder.go index 9e75b37b7f9..2bd8e4ad982 100644 --- a/sites/item_recycle_bin_created_by_user_mailbox_settings_request_builder.go +++ b/sites/item_recycle_bin_created_by_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewItemRecycleBinCreatedByUserMailboxSettingsRequestBuilder(rawUrl string, return NewItemRecycleBinCreatedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemRecycleBinCreatedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemRecycleBinCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *ItemRecycleBinCreatedByUserMailboxSettingsRequestBuilder) Get(ctx conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemRecycleBinCreatedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemRecycleBinCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *ItemRecycleBinCreatedByUserMailboxSettingsRequestBuilder) Patch(ctx con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemRecycleBinCreatedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemRecycleBinCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *ItemRecycleBinCreatedByUserMailboxSettingsRequestBuilder) ToGetRequestI return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemRecycleBinCreatedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemRecycleBinCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemRecycleBinCreatedByUserMailboxSettingsRequestBuilder) ToPatchReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemRecycleBinCreatedByUserMailboxSettingsRequestBuilder when successful func (m *ItemRecycleBinCreatedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemRecycleBinCreatedByUserMailboxSettingsRequestBuilder) { return NewItemRecycleBinCreatedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_recycle_bin_created_by_user_request_builder.go b/sites/item_recycle_bin_created_by_user_request_builder.go index a46f29dbfe7..4a3d45fba62 100644 --- a/sites/item_recycle_bin_created_by_user_request_builder.go +++ b/sites/item_recycle_bin_created_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemRecycleBinCreatedByUserRequestBuilder(rawUrl string, requestAdapter return NewItemRecycleBinCreatedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get createdByUser from sites +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemRecycleBinCreatedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemRecycleBinCreatedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *ItemRecycleBinCreatedByUserRequestBuilder) ServiceProvisioningErrors()( return NewItemRecycleBinCreatedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get createdByUser from sites +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemRecycleBinCreatedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemRecycleBinCreatedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemRecycleBinCreatedByUserRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemRecycleBinCreatedByUserRequestBuilder when successful func (m *ItemRecycleBinCreatedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemRecycleBinCreatedByUserRequestBuilder) { return NewItemRecycleBinCreatedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_recycle_bin_created_by_user_service_provisioning_errors_count_request_builder.go b/sites/item_recycle_bin_created_by_user_service_provisioning_errors_count_request_builder.go index 1d97963e251..69e6c5069ed 100644 --- a/sites/item_recycle_bin_created_by_user_service_provisioning_errors_count_request_builder.go +++ b/sites/item_recycle_bin_created_by_user_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemRecycleBinCreatedByUserServiceProvisioningErrorsCountRequestBuilder( return NewItemRecycleBinCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemRecycleBinCreatedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemRecycleBinCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemRecycleBinCreatedByUserServiceProvisioningErrorsCountRequestBuilder return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemRecycleBinCreatedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemRecycleBinCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemRecycleBinCreatedByUserServiceProvisioningErrorsCountRequestBuilder return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemRecycleBinCreatedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *ItemRecycleBinCreatedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemRecycleBinCreatedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewItemRecycleBinCreatedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_recycle_bin_created_by_user_service_provisioning_errors_request_builder.go b/sites/item_recycle_bin_created_by_user_service_provisioning_errors_request_builder.go index fbd9ad16981..bfbeb29ecde 100644 --- a/sites/item_recycle_bin_created_by_user_service_provisioning_errors_request_builder.go +++ b/sites/item_recycle_bin_created_by_user_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemRecycleBinCreatedByUserServiceProvisioningErrorsRequestBuilder) Cou return NewItemRecycleBinCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemRecycleBinCreatedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemRecycleBinCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemRecycleBinCreatedByUserServiceProvisioningErrorsRequestBuilder) Get return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemRecycleBinCreatedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemRecycleBinCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemRecycleBinCreatedByUserServiceProvisioningErrorsRequestBuilder) ToG return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemRecycleBinCreatedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *ItemRecycleBinCreatedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*ItemRecycleBinCreatedByUserServiceProvisioningErrorsRequestBuilder) { return NewItemRecycleBinCreatedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_recycle_bin_items_item_created_by_user_mailbox_settings_request_builder.go b/sites/item_recycle_bin_items_item_created_by_user_mailbox_settings_request_builder.go index 6ba64d048fb..e76da1c8b7e 100644 --- a/sites/item_recycle_bin_items_item_created_by_user_mailbox_settings_request_builder.go +++ b/sites/item_recycle_bin_items_item_created_by_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilder(rawUrl return NewItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *ItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilder) Get( return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *ItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilder) Patc return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *ItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilder) ToGe return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilder) ToPa return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilder when successful func (m *ItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilder) { return NewItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_recycle_bin_items_item_created_by_user_request_builder.go b/sites/item_recycle_bin_items_item_created_by_user_request_builder.go index 239b62452b5..09af4d47f57 100644 --- a/sites/item_recycle_bin_items_item_created_by_user_request_builder.go +++ b/sites/item_recycle_bin_items_item_created_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemRecycleBinItemsItemCreatedByUserRequestBuilder(rawUrl string, reques return NewItemRecycleBinItemsItemCreatedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get createdByUser from sites +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemRecycleBinItemsItemCreatedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemRecycleBinItemsItemCreatedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *ItemRecycleBinItemsItemCreatedByUserRequestBuilder) ServiceProvisioning return NewItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get createdByUser from sites +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemRecycleBinItemsItemCreatedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemRecycleBinItemsItemCreatedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemRecycleBinItemsItemCreatedByUserRequestBuilder) ToGetRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemRecycleBinItemsItemCreatedByUserRequestBuilder when successful func (m *ItemRecycleBinItemsItemCreatedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemRecycleBinItemsItemCreatedByUserRequestBuilder) { return NewItemRecycleBinItemsItemCreatedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_recycle_bin_items_item_created_by_user_service_provisioning_errors_count_request_builder.go b/sites/item_recycle_bin_items_item_created_by_user_service_provisioning_errors_count_request_builder.go index 50a8b58ae0c..fbe3ac2911f 100644 --- a/sites/item_recycle_bin_items_item_created_by_user_service_provisioning_errors_count_request_builder.go +++ b/sites/item_recycle_bin_items_item_created_by_user_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsCountReques return NewItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsCountReque return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsCountReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *ItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_recycle_bin_items_item_created_by_user_service_provisioning_errors_request_builder.go b/sites/item_recycle_bin_items_item_created_by_user_service_provisioning_errors_request_builder.go index 4ba89f625d9..bc56eecfcf6 100644 --- a/sites/item_recycle_bin_items_item_created_by_user_service_provisioning_errors_request_builder.go +++ b/sites/item_recycle_bin_items_item_created_by_user_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsRequestBui return NewItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsRequestBui return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsRequestBui return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *ItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*ItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) { return NewItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_recycle_bin_items_item_last_modified_by_user_mailbox_settings_request_builder.go b/sites/item_recycle_bin_items_item_last_modified_by_user_mailbox_settings_request_builder.go index 6065717d502..346d81b561b 100644 --- a/sites/item_recycle_bin_items_item_last_modified_by_user_mailbox_settings_request_builder.go +++ b/sites/item_recycle_bin_items_item_last_modified_by_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilder(r return NewItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *ItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *ItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *ItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilder when successful func (m *ItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) { return NewItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_recycle_bin_items_item_last_modified_by_user_request_builder.go b/sites/item_recycle_bin_items_item_last_modified_by_user_request_builder.go index 719e38633dc..75d1a7e9c02 100644 --- a/sites/item_recycle_bin_items_item_last_modified_by_user_request_builder.go +++ b/sites/item_recycle_bin_items_item_last_modified_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemRecycleBinItemsItemLastModifiedByUserRequestBuilder(rawUrl string, r return NewItemRecycleBinItemsItemLastModifiedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get lastModifiedByUser from sites +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemRecycleBinItemsItemLastModifiedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemRecycleBinItemsItemLastModifiedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *ItemRecycleBinItemsItemLastModifiedByUserRequestBuilder) ServiceProvisi return NewItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get lastModifiedByUser from sites +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemRecycleBinItemsItemLastModifiedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemRecycleBinItemsItemLastModifiedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemRecycleBinItemsItemLastModifiedByUserRequestBuilder) ToGetRequestIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemRecycleBinItemsItemLastModifiedByUserRequestBuilder when successful func (m *ItemRecycleBinItemsItemLastModifiedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemRecycleBinItemsItemLastModifiedByUserRequestBuilder) { return NewItemRecycleBinItemsItemLastModifiedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_recycle_bin_items_item_last_modified_by_user_service_provisioning_errors_count_request_builder.go b/sites/item_recycle_bin_items_item_last_modified_by_user_service_provisioning_errors_count_request_builder.go index e0025d9955d..40c54bf4831 100644 --- a/sites/item_recycle_bin_items_item_last_modified_by_user_service_provisioning_errors_count_request_builder.go +++ b/sites/item_recycle_bin_items_item_last_modified_by_user_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsCountR return NewItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsCount return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsCount return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *ItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_recycle_bin_items_item_last_modified_by_user_service_provisioning_errors_request_builder.go b/sites/item_recycle_bin_items_item_last_modified_by_user_service_provisioning_errors_request_builder.go index 9b721fdc401..2b259d4349c 100644 --- a/sites/item_recycle_bin_items_item_last_modified_by_user_service_provisioning_errors_request_builder.go +++ b/sites/item_recycle_bin_items_item_last_modified_by_user_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsReque return NewItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsReque return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *ItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*ItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) { return NewItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_recycle_bin_last_modified_by_user_mailbox_settings_request_builder.go b/sites/item_recycle_bin_last_modified_by_user_mailbox_settings_request_builder.go index 7f3587cb9c0..d888a5f9f65 100644 --- a/sites/item_recycle_bin_last_modified_by_user_mailbox_settings_request_builder.go +++ b/sites/item_recycle_bin_last_modified_by_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilder(rawUrl str return NewItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *ItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilder) Get(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *ItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilder) Patch(ct return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *ItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilder) ToGetReq return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilder) ToPatchR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilder when successful func (m *ItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilder) { return NewItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_recycle_bin_last_modified_by_user_request_builder.go b/sites/item_recycle_bin_last_modified_by_user_request_builder.go index fd0999562fa..afa32f361f5 100644 --- a/sites/item_recycle_bin_last_modified_by_user_request_builder.go +++ b/sites/item_recycle_bin_last_modified_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemRecycleBinLastModifiedByUserRequestBuilder(rawUrl string, requestAda return NewItemRecycleBinLastModifiedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get lastModifiedByUser from sites +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemRecycleBinLastModifiedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemRecycleBinLastModifiedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *ItemRecycleBinLastModifiedByUserRequestBuilder) ServiceProvisioningErro return NewItemRecycleBinLastModifiedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get lastModifiedByUser from sites +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemRecycleBinLastModifiedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemRecycleBinLastModifiedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemRecycleBinLastModifiedByUserRequestBuilder) ToGetRequestInformation return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemRecycleBinLastModifiedByUserRequestBuilder when successful func (m *ItemRecycleBinLastModifiedByUserRequestBuilder) WithUrl(rawUrl string)(*ItemRecycleBinLastModifiedByUserRequestBuilder) { return NewItemRecycleBinLastModifiedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_recycle_bin_last_modified_by_user_service_provisioning_errors_count_request_builder.go b/sites/item_recycle_bin_last_modified_by_user_service_provisioning_errors_count_request_builder.go index 3e669d7bf97..99278de78f0 100644 --- a/sites/item_recycle_bin_last_modified_by_user_service_provisioning_errors_count_request_builder.go +++ b/sites/item_recycle_bin_last_modified_by_user_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemRecycleBinLastModifiedByUserServiceProvisioningErrorsCountRequestBui return NewItemRecycleBinLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemRecycleBinLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemRecycleBinLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemRecycleBinLastModifiedByUserServiceProvisioningErrorsCountRequestBu return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemRecycleBinLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemRecycleBinLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemRecycleBinLastModifiedByUserServiceProvisioningErrorsCountRequestBu return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemRecycleBinLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *ItemRecycleBinLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemRecycleBinLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewItemRecycleBinLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/sites/item_recycle_bin_last_modified_by_user_service_provisioning_errors_request_builder.go b/sites/item_recycle_bin_last_modified_by_user_service_provisioning_errors_request_builder.go index d61a1e203d1..40e4848cbb8 100644 --- a/sites/item_recycle_bin_last_modified_by_user_service_provisioning_errors_request_builder.go +++ b/sites/item_recycle_bin_last_modified_by_user_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemRecycleBinLastModifiedByUserServiceProvisioningErrorsRequestBuilder return NewItemRecycleBinLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemRecycleBinLastModifiedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemRecycleBinLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemRecycleBinLastModifiedByUserServiceProvisioningErrorsRequestBuilder return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemRecycleBinLastModifiedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemRecycleBinLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemRecycleBinLastModifiedByUserServiceProvisioningErrorsRequestBuilder return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemRecycleBinLastModifiedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *ItemRecycleBinLastModifiedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*ItemRecycleBinLastModifiedByUserServiceProvisioningErrorsRequestBuilder) { return NewItemRecycleBinLastModifiedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/solutions/235e1751dae4b9160e62aecc823f4715075d5d8e1922169d463ed7f0e69e3dd8.go b/solutions/235e1751dae4b9160e62aecc823f4715075d5d8e1922169d463ed7f0e69e3dd8.go new file mode 100644 index 00000000000..860a548ac74 --- /dev/null +++ b/solutions/235e1751dae4b9160e62aecc823f4715075d5d8e1922169d463ed7f0e69e3dd8.go @@ -0,0 +1,80 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsCountRequestBuilder provides operations to count the resources in the collection. +type BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsCountRequestBuilderGetQueryParameters get the number of the resource +type BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsCountRequestBuilderGetQueryParameters +} +// NewBackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsCountRequestBuilderInternal instantiates a new BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsCountRequestBuilder and sets the default values. +func NewBackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsCountRequestBuilder) { + m := &BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/backupRestore/exchangeRestoreSessions/{exchangeRestoreSession%2Did}/granularMailboxRestoreArtifacts/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewBackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsCountRequestBuilder instantiates a new BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsCountRequestBuilder and sets the default values. +func NewBackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewBackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsCountRequestBuilderInternal(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 *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.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 *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + 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 *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsCountRequestBuilder when successful +func (m *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsCountRequestBuilder) WithUrl(rawUrl string)(*BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsCountRequestBuilder) { + return NewBackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/5e4bc6a32d49751da6eff060ecfb3280fcc6fd63d99d3d743c68d9b1305835bd.go b/solutions/5e4bc6a32d49751da6eff060ecfb3280fcc6fd63d99d3d743c68d9b1305835bd.go new file mode 100644 index 00000000000..42c4dfa9f73 --- /dev/null +++ b/solutions/5e4bc6a32d49751da6eff060ecfb3280fcc6fd63d99d3d743c68d9b1305835bd.go @@ -0,0 +1,81 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsItemRestorePointRequestBuilder provides operations to manage the restorePoint property of the microsoft.graph.restoreArtifactBase entity. +type BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsItemRestorePointRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsItemRestorePointRequestBuilderGetQueryParameters represents the date and time when an artifact is protected by a protectionPolicy and can be restored. +type BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsItemRestorePointRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsItemRestorePointRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsItemRestorePointRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsItemRestorePointRequestBuilderGetQueryParameters +} +// NewBackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsItemRestorePointRequestBuilderInternal instantiates a new BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsItemRestorePointRequestBuilder and sets the default values. +func NewBackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsItemRestorePointRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsItemRestorePointRequestBuilder) { + m := &BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsItemRestorePointRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/backupRestore/exchangeRestoreSessions/{exchangeRestoreSession%2Did}/granularMailboxRestoreArtifacts/{granularMailboxRestoreArtifact%2Did}/restorePoint{?%24expand,%24select}", pathParameters), + } + return m +} +// NewBackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsItemRestorePointRequestBuilder instantiates a new BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsItemRestorePointRequestBuilder and sets the default values. +func NewBackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsItemRestorePointRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsItemRestorePointRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewBackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsItemRestorePointRequestBuilderInternal(urlParams, requestAdapter) +} +// Get represents the date and time when an artifact is protected by a protectionPolicy and can be restored. +// returns a RestorePointable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsItemRestorePointRequestBuilder) Get(ctx context.Context, requestConfiguration *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsItemRestorePointRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RestorePointable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateRestorePointFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RestorePointable), nil +} +// ToGetRequestInformation represents the date and time when an artifact is protected by a protectionPolicy and can be restored. +// returns a *RequestInformation when successful +func (m *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsItemRestorePointRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsItemRestorePointRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsItemRestorePointRequestBuilder when successful +func (m *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsItemRestorePointRequestBuilder) WithUrl(rawUrl string)(*BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsItemRestorePointRequestBuilder) { + return NewBackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsItemRestorePointRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/83493a65fb21b4bd9af9abcb09ed209b9b2bb56c6c804df8335b763bb03ef8ee.go b/solutions/83493a65fb21b4bd9af9abcb09ed209b9b2bb56c6c804df8335b763bb03ef8ee.go index 724b30c06b1..d6b5e0f6936 100644 --- a/solutions/83493a65fb21b4bd9af9abcb09ed209b9b2bb56c6c804df8335b763bb03ef8ee.go +++ b/solutions/83493a65fb21b4bd9af9abcb09ed209b9b2bb56c6c804df8335b763bb03ef8ee.go @@ -18,7 +18,7 @@ type BusinessScenariosItemPlannerPlanConfigurationLocalizationsPlannerPlanConfig // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// BusinessScenariosItemPlannerPlanConfigurationLocalizationsPlannerPlanConfigurationLocalizationItemRequestBuilderGetQueryParameters read the properties and relationships of a plannerPlanConfigurationLocalization object. +// BusinessScenariosItemPlannerPlanConfigurationLocalizationsPlannerPlanConfigurationLocalizationItemRequestBuilderGetQueryParameters localized names for the plan configuration. type BusinessScenariosItemPlannerPlanConfigurationLocalizationsPlannerPlanConfigurationLocalizationItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -54,11 +54,8 @@ func NewBusinessScenariosItemPlannerPlanConfigurationLocalizationsPlannerPlanCon urlParams["request-raw-url"] = rawUrl return NewBusinessScenariosItemPlannerPlanConfigurationLocalizationsPlannerPlanConfigurationLocalizationItemRequestBuilderInternal(urlParams, requestAdapter) } -// Delete delete a plannerPlanConfigurationLocalization object. +// Delete delete navigation property localizations for solutions // 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/plannerplanconfiguration-delete-localizations?view=graph-rest-beta func (m *BusinessScenariosItemPlannerPlanConfigurationLocalizationsPlannerPlanConfigurationLocalizationItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *BusinessScenariosItemPlannerPlanConfigurationLocalizationsPlannerPlanConfigurationLocalizationItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); if err != nil { @@ -73,12 +70,9 @@ func (m *BusinessScenariosItemPlannerPlanConfigurationLocalizationsPlannerPlanCo } return nil } -// Get read the properties and relationships of a plannerPlanConfigurationLocalization object. +// Get localized names for the plan configuration. // returns a PlannerPlanConfigurationLocalizationable 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/plannerplanconfigurationlocalization-get?view=graph-rest-beta func (m *BusinessScenariosItemPlannerPlanConfigurationLocalizationsPlannerPlanConfigurationLocalizationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *BusinessScenariosItemPlannerPlanConfigurationLocalizationsPlannerPlanConfigurationLocalizationItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerPlanConfigurationLocalizationable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -96,12 +90,9 @@ func (m *BusinessScenariosItemPlannerPlanConfigurationLocalizationsPlannerPlanCo } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerPlanConfigurationLocalizationable), nil } -// Patch update the properties of a plannerPlanConfigurationLocalization object. +// Patch update the navigation property localizations in solutions // returns a PlannerPlanConfigurationLocalizationable 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/plannerplanconfigurationlocalization-update?view=graph-rest-beta func (m *BusinessScenariosItemPlannerPlanConfigurationLocalizationsPlannerPlanConfigurationLocalizationItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerPlanConfigurationLocalizationable, requestConfiguration *BusinessScenariosItemPlannerPlanConfigurationLocalizationsPlannerPlanConfigurationLocalizationItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerPlanConfigurationLocalizationable, error) { requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -119,7 +110,7 @@ func (m *BusinessScenariosItemPlannerPlanConfigurationLocalizationsPlannerPlanCo } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerPlanConfigurationLocalizationable), nil } -// ToDeleteRequestInformation delete a plannerPlanConfigurationLocalization object. +// ToDeleteRequestInformation delete navigation property localizations for solutions // returns a *RequestInformation when successful func (m *BusinessScenariosItemPlannerPlanConfigurationLocalizationsPlannerPlanConfigurationLocalizationItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *BusinessScenariosItemPlannerPlanConfigurationLocalizationsPlannerPlanConfigurationLocalizationItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -130,7 +121,7 @@ func (m *BusinessScenariosItemPlannerPlanConfigurationLocalizationsPlannerPlanCo requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation read the properties and relationships of a plannerPlanConfigurationLocalization object. +// ToGetRequestInformation localized names for the plan configuration. // returns a *RequestInformation when successful func (m *BusinessScenariosItemPlannerPlanConfigurationLocalizationsPlannerPlanConfigurationLocalizationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *BusinessScenariosItemPlannerPlanConfigurationLocalizationsPlannerPlanConfigurationLocalizationItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -144,7 +135,7 @@ func (m *BusinessScenariosItemPlannerPlanConfigurationLocalizationsPlannerPlanCo requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of a plannerPlanConfigurationLocalization object. +// ToPatchRequestInformation update the navigation property localizations in solutions // returns a *RequestInformation when successful func (m *BusinessScenariosItemPlannerPlanConfigurationLocalizationsPlannerPlanConfigurationLocalizationItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerPlanConfigurationLocalizationable, requestConfiguration *BusinessScenariosItemPlannerPlanConfigurationLocalizationsPlannerPlanConfigurationLocalizationItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/solutions/approval_approval_items_approval_item_item_request_builder.go b/solutions/approval_approval_items_approval_item_item_request_builder.go new file mode 100644 index 00000000000..336b0e03f46 --- /dev/null +++ b/solutions/approval_approval_items_approval_item_item_request_builder.go @@ -0,0 +1,175 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ApprovalApprovalItemsApprovalItemItemRequestBuilder provides operations to manage the approvalItems property of the microsoft.graph.approvalSolution entity. +type ApprovalApprovalItemsApprovalItemItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ApprovalApprovalItemsApprovalItemItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ApprovalApprovalItemsApprovalItemItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ApprovalApprovalItemsApprovalItemItemRequestBuilderGetQueryParameters read the properties and relationships of an approvalItem object. +type ApprovalApprovalItemsApprovalItemItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ApprovalApprovalItemsApprovalItemItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ApprovalApprovalItemsApprovalItemItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ApprovalApprovalItemsApprovalItemItemRequestBuilderGetQueryParameters +} +// ApprovalApprovalItemsApprovalItemItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ApprovalApprovalItemsApprovalItemItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// Cancel provides operations to call the cancel method. +// returns a *ApprovalApprovalItemsItemCancelRequestBuilder when successful +func (m *ApprovalApprovalItemsApprovalItemItemRequestBuilder) Cancel()(*ApprovalApprovalItemsItemCancelRequestBuilder) { + return NewApprovalApprovalItemsItemCancelRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// NewApprovalApprovalItemsApprovalItemItemRequestBuilderInternal instantiates a new ApprovalApprovalItemsApprovalItemItemRequestBuilder and sets the default values. +func NewApprovalApprovalItemsApprovalItemItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ApprovalApprovalItemsApprovalItemItemRequestBuilder) { + m := &ApprovalApprovalItemsApprovalItemItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/approval/approvalItems/{approvalItem%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewApprovalApprovalItemsApprovalItemItemRequestBuilder instantiates a new ApprovalApprovalItemsApprovalItemItemRequestBuilder and sets the default values. +func NewApprovalApprovalItemsApprovalItemItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ApprovalApprovalItemsApprovalItemItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewApprovalApprovalItemsApprovalItemItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property approvalItems for solutions +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ApprovalApprovalItemsApprovalItemItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ApprovalApprovalItemsApprovalItemItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get read the properties and relationships of an approvalItem object. +// returns a ApprovalItemable 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/approvalitem-get?view=graph-rest-beta +func (m *ApprovalApprovalItemsApprovalItemItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ApprovalApprovalItemsApprovalItemItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalItemable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateApprovalItemFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalItemable), nil +} +// Patch update the navigation property approvalItems in solutions +// returns a ApprovalItemable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ApprovalApprovalItemsApprovalItemItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalItemable, requestConfiguration *ApprovalApprovalItemsApprovalItemItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalItemable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateApprovalItemFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalItemable), nil +} +// Requests provides operations to manage the requests property of the microsoft.graph.approvalItem entity. +// returns a *ApprovalApprovalItemsItemRequestsRequestBuilder when successful +func (m *ApprovalApprovalItemsApprovalItemItemRequestBuilder) Requests()(*ApprovalApprovalItemsItemRequestsRequestBuilder) { + return NewApprovalApprovalItemsItemRequestsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Responses provides operations to manage the responses property of the microsoft.graph.approvalItem entity. +// returns a *ApprovalApprovalItemsItemResponsesRequestBuilder when successful +func (m *ApprovalApprovalItemsApprovalItemItemRequestBuilder) Responses()(*ApprovalApprovalItemsItemResponsesRequestBuilder) { + return NewApprovalApprovalItemsItemResponsesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToDeleteRequestInformation delete navigation property approvalItems for solutions +// returns a *RequestInformation when successful +func (m *ApprovalApprovalItemsApprovalItemItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ApprovalApprovalItemsApprovalItemItemRequestBuilderDeleteRequestConfiguration)(*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 read the properties and relationships of an approvalItem object. +// returns a *RequestInformation when successful +func (m *ApprovalApprovalItemsApprovalItemItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ApprovalApprovalItemsApprovalItemItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 approvalItems in solutions +// returns a *RequestInformation when successful +func (m *ApprovalApprovalItemsApprovalItemItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalItemable, requestConfiguration *ApprovalApprovalItemsApprovalItemItemRequestBuilderPatchRequestConfiguration)(*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 *ApprovalApprovalItemsApprovalItemItemRequestBuilder when successful +func (m *ApprovalApprovalItemsApprovalItemItemRequestBuilder) WithUrl(rawUrl string)(*ApprovalApprovalItemsApprovalItemItemRequestBuilder) { + return NewApprovalApprovalItemsApprovalItemItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/approval_approval_items_count_request_builder.go b/solutions/approval_approval_items_count_request_builder.go new file mode 100644 index 00000000000..841cfee1c92 --- /dev/null +++ b/solutions/approval_approval_items_count_request_builder.go @@ -0,0 +1,80 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ApprovalApprovalItemsCountRequestBuilder provides operations to count the resources in the collection. +type ApprovalApprovalItemsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ApprovalApprovalItemsCountRequestBuilderGetQueryParameters get the number of the resource +type ApprovalApprovalItemsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// ApprovalApprovalItemsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ApprovalApprovalItemsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ApprovalApprovalItemsCountRequestBuilderGetQueryParameters +} +// NewApprovalApprovalItemsCountRequestBuilderInternal instantiates a new ApprovalApprovalItemsCountRequestBuilder and sets the default values. +func NewApprovalApprovalItemsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ApprovalApprovalItemsCountRequestBuilder) { + m := &ApprovalApprovalItemsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/approval/approvalItems/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewApprovalApprovalItemsCountRequestBuilder instantiates a new ApprovalApprovalItemsCountRequestBuilder and sets the default values. +func NewApprovalApprovalItemsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ApprovalApprovalItemsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewApprovalApprovalItemsCountRequestBuilderInternal(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 *ApprovalApprovalItemsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ApprovalApprovalItemsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.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 *ApprovalApprovalItemsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ApprovalApprovalItemsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + 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 *ApprovalApprovalItemsCountRequestBuilder when successful +func (m *ApprovalApprovalItemsCountRequestBuilder) WithUrl(rawUrl string)(*ApprovalApprovalItemsCountRequestBuilder) { + return NewApprovalApprovalItemsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/approval_approval_items_item_cancel_request_builder.go b/solutions/approval_approval_items_item_cancel_request_builder.go new file mode 100644 index 00000000000..87e25e5ef56 --- /dev/null +++ b/solutions/approval_approval_items_item_cancel_request_builder.go @@ -0,0 +1,67 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ApprovalApprovalItemsItemCancelRequestBuilder provides operations to call the cancel method. +type ApprovalApprovalItemsItemCancelRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ApprovalApprovalItemsItemCancelRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ApprovalApprovalItemsItemCancelRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewApprovalApprovalItemsItemCancelRequestBuilderInternal instantiates a new ApprovalApprovalItemsItemCancelRequestBuilder and sets the default values. +func NewApprovalApprovalItemsItemCancelRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ApprovalApprovalItemsItemCancelRequestBuilder) { + m := &ApprovalApprovalItemsItemCancelRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/approval/approvalItems/{approvalItem%2Did}/cancel", pathParameters), + } + return m +} +// NewApprovalApprovalItemsItemCancelRequestBuilder instantiates a new ApprovalApprovalItemsItemCancelRequestBuilder and sets the default values. +func NewApprovalApprovalItemsItemCancelRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ApprovalApprovalItemsItemCancelRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewApprovalApprovalItemsItemCancelRequestBuilderInternal(urlParams, requestAdapter) +} +// Post cancel the approval item. The owner of the approval can trigger this endpoint. +// 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/approvalitem-cancel?view=graph-rest-beta +func (m *ApprovalApprovalItemsItemCancelRequestBuilder) Post(ctx context.Context, requestConfiguration *ApprovalApprovalItemsItemCancelRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation cancel the approval item. The owner of the approval can trigger this endpoint. +// returns a *RequestInformation when successful +func (m *ApprovalApprovalItemsItemCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ApprovalApprovalItemsItemCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ApprovalApprovalItemsItemCancelRequestBuilder when successful +func (m *ApprovalApprovalItemsItemCancelRequestBuilder) WithUrl(rawUrl string)(*ApprovalApprovalItemsItemCancelRequestBuilder) { + return NewApprovalApprovalItemsItemCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/approval_approval_items_item_requests_approval_item_request_item_request_builder.go b/solutions/approval_approval_items_item_requests_approval_item_request_item_request_builder.go new file mode 100644 index 00000000000..a257a67c1b5 --- /dev/null +++ b/solutions/approval_approval_items_item_requests_approval_item_request_item_request_builder.go @@ -0,0 +1,160 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ApprovalApprovalItemsItemRequestsApprovalItemRequestItemRequestBuilder provides operations to manage the requests property of the microsoft.graph.approvalItem entity. +type ApprovalApprovalItemsItemRequestsApprovalItemRequestItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ApprovalApprovalItemsItemRequestsApprovalItemRequestItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ApprovalApprovalItemsItemRequestsApprovalItemRequestItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ApprovalApprovalItemsItemRequestsApprovalItemRequestItemRequestBuilderGetQueryParameters read the properties and relationships of an approvalItemRequest object. +type ApprovalApprovalItemsItemRequestsApprovalItemRequestItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ApprovalApprovalItemsItemRequestsApprovalItemRequestItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ApprovalApprovalItemsItemRequestsApprovalItemRequestItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ApprovalApprovalItemsItemRequestsApprovalItemRequestItemRequestBuilderGetQueryParameters +} +// ApprovalApprovalItemsItemRequestsApprovalItemRequestItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ApprovalApprovalItemsItemRequestsApprovalItemRequestItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewApprovalApprovalItemsItemRequestsApprovalItemRequestItemRequestBuilderInternal instantiates a new ApprovalApprovalItemsItemRequestsApprovalItemRequestItemRequestBuilder and sets the default values. +func NewApprovalApprovalItemsItemRequestsApprovalItemRequestItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ApprovalApprovalItemsItemRequestsApprovalItemRequestItemRequestBuilder) { + m := &ApprovalApprovalItemsItemRequestsApprovalItemRequestItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/approval/approvalItems/{approvalItem%2Did}/requests/{approvalItemRequest%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewApprovalApprovalItemsItemRequestsApprovalItemRequestItemRequestBuilder instantiates a new ApprovalApprovalItemsItemRequestsApprovalItemRequestItemRequestBuilder and sets the default values. +func NewApprovalApprovalItemsItemRequestsApprovalItemRequestItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ApprovalApprovalItemsItemRequestsApprovalItemRequestItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewApprovalApprovalItemsItemRequestsApprovalItemRequestItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property requests for solutions +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ApprovalApprovalItemsItemRequestsApprovalItemRequestItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ApprovalApprovalItemsItemRequestsApprovalItemRequestItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get read the properties and relationships of an approvalItemRequest object. +// returns a ApprovalItemRequestable 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/approvalitemrequest-get?view=graph-rest-beta +func (m *ApprovalApprovalItemsItemRequestsApprovalItemRequestItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ApprovalApprovalItemsItemRequestsApprovalItemRequestItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalItemRequestable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateApprovalItemRequestFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalItemRequestable), nil +} +// Patch update the navigation property requests in solutions +// returns a ApprovalItemRequestable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ApprovalApprovalItemsItemRequestsApprovalItemRequestItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalItemRequestable, requestConfiguration *ApprovalApprovalItemsItemRequestsApprovalItemRequestItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalItemRequestable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateApprovalItemRequestFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalItemRequestable), nil +} +// ToDeleteRequestInformation delete navigation property requests for solutions +// returns a *RequestInformation when successful +func (m *ApprovalApprovalItemsItemRequestsApprovalItemRequestItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ApprovalApprovalItemsItemRequestsApprovalItemRequestItemRequestBuilderDeleteRequestConfiguration)(*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 read the properties and relationships of an approvalItemRequest object. +// returns a *RequestInformation when successful +func (m *ApprovalApprovalItemsItemRequestsApprovalItemRequestItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ApprovalApprovalItemsItemRequestsApprovalItemRequestItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 requests in solutions +// returns a *RequestInformation when successful +func (m *ApprovalApprovalItemsItemRequestsApprovalItemRequestItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalItemRequestable, requestConfiguration *ApprovalApprovalItemsItemRequestsApprovalItemRequestItemRequestBuilderPatchRequestConfiguration)(*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 *ApprovalApprovalItemsItemRequestsApprovalItemRequestItemRequestBuilder when successful +func (m *ApprovalApprovalItemsItemRequestsApprovalItemRequestItemRequestBuilder) WithUrl(rawUrl string)(*ApprovalApprovalItemsItemRequestsApprovalItemRequestItemRequestBuilder) { + return NewApprovalApprovalItemsItemRequestsApprovalItemRequestItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/approval_approval_items_item_requests_count_request_builder.go b/solutions/approval_approval_items_item_requests_count_request_builder.go new file mode 100644 index 00000000000..8c6a92f01f7 --- /dev/null +++ b/solutions/approval_approval_items_item_requests_count_request_builder.go @@ -0,0 +1,80 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ApprovalApprovalItemsItemRequestsCountRequestBuilder provides operations to count the resources in the collection. +type ApprovalApprovalItemsItemRequestsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ApprovalApprovalItemsItemRequestsCountRequestBuilderGetQueryParameters get the number of the resource +type ApprovalApprovalItemsItemRequestsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// ApprovalApprovalItemsItemRequestsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ApprovalApprovalItemsItemRequestsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ApprovalApprovalItemsItemRequestsCountRequestBuilderGetQueryParameters +} +// NewApprovalApprovalItemsItemRequestsCountRequestBuilderInternal instantiates a new ApprovalApprovalItemsItemRequestsCountRequestBuilder and sets the default values. +func NewApprovalApprovalItemsItemRequestsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ApprovalApprovalItemsItemRequestsCountRequestBuilder) { + m := &ApprovalApprovalItemsItemRequestsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/approval/approvalItems/{approvalItem%2Did}/requests/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewApprovalApprovalItemsItemRequestsCountRequestBuilder instantiates a new ApprovalApprovalItemsItemRequestsCountRequestBuilder and sets the default values. +func NewApprovalApprovalItemsItemRequestsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ApprovalApprovalItemsItemRequestsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewApprovalApprovalItemsItemRequestsCountRequestBuilderInternal(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 *ApprovalApprovalItemsItemRequestsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ApprovalApprovalItemsItemRequestsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.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 *ApprovalApprovalItemsItemRequestsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ApprovalApprovalItemsItemRequestsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + 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 *ApprovalApprovalItemsItemRequestsCountRequestBuilder when successful +func (m *ApprovalApprovalItemsItemRequestsCountRequestBuilder) WithUrl(rawUrl string)(*ApprovalApprovalItemsItemRequestsCountRequestBuilder) { + return NewApprovalApprovalItemsItemRequestsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/approval_approval_items_item_requests_request_builder.go b/solutions/approval_approval_items_item_requests_request_builder.go new file mode 100644 index 00000000000..522d9eec6ef --- /dev/null +++ b/solutions/approval_approval_items_item_requests_request_builder.go @@ -0,0 +1,155 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ApprovalApprovalItemsItemRequestsRequestBuilder provides operations to manage the requests property of the microsoft.graph.approvalItem entity. +type ApprovalApprovalItemsItemRequestsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ApprovalApprovalItemsItemRequestsRequestBuilderGetQueryParameters get a list of approvalItemRequest objects. +type ApprovalApprovalItemsItemRequestsRequestBuilderGetQueryParameters 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"` +} +// ApprovalApprovalItemsItemRequestsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ApprovalApprovalItemsItemRequestsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ApprovalApprovalItemsItemRequestsRequestBuilderGetQueryParameters +} +// ApprovalApprovalItemsItemRequestsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ApprovalApprovalItemsItemRequestsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByApprovalItemRequestId provides operations to manage the requests property of the microsoft.graph.approvalItem entity. +// returns a *ApprovalApprovalItemsItemRequestsApprovalItemRequestItemRequestBuilder when successful +func (m *ApprovalApprovalItemsItemRequestsRequestBuilder) ByApprovalItemRequestId(approvalItemRequestId string)(*ApprovalApprovalItemsItemRequestsApprovalItemRequestItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if approvalItemRequestId != "" { + urlTplParams["approvalItemRequest%2Did"] = approvalItemRequestId + } + return NewApprovalApprovalItemsItemRequestsApprovalItemRequestItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewApprovalApprovalItemsItemRequestsRequestBuilderInternal instantiates a new ApprovalApprovalItemsItemRequestsRequestBuilder and sets the default values. +func NewApprovalApprovalItemsItemRequestsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ApprovalApprovalItemsItemRequestsRequestBuilder) { + m := &ApprovalApprovalItemsItemRequestsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/approval/approvalItems/{approvalItem%2Did}/requests{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewApprovalApprovalItemsItemRequestsRequestBuilder instantiates a new ApprovalApprovalItemsItemRequestsRequestBuilder and sets the default values. +func NewApprovalApprovalItemsItemRequestsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ApprovalApprovalItemsItemRequestsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewApprovalApprovalItemsItemRequestsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *ApprovalApprovalItemsItemRequestsCountRequestBuilder when successful +func (m *ApprovalApprovalItemsItemRequestsRequestBuilder) Count()(*ApprovalApprovalItemsItemRequestsCountRequestBuilder) { + return NewApprovalApprovalItemsItemRequestsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get a list of approvalItemRequest objects. +// returns a ApprovalItemRequestCollectionResponseable 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/approvalitem-list-requests?view=graph-rest-beta +func (m *ApprovalApprovalItemsItemRequestsRequestBuilder) Get(ctx context.Context, requestConfiguration *ApprovalApprovalItemsItemRequestsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalItemRequestCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateApprovalItemRequestCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalItemRequestCollectionResponseable), nil +} +// Post create new navigation property to requests for solutions +// returns a ApprovalItemRequestable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ApprovalApprovalItemsItemRequestsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalItemRequestable, requestConfiguration *ApprovalApprovalItemsItemRequestsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalItemRequestable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateApprovalItemRequestFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalItemRequestable), nil +} +// ToGetRequestInformation get a list of approvalItemRequest objects. +// returns a *RequestInformation when successful +func (m *ApprovalApprovalItemsItemRequestsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ApprovalApprovalItemsItemRequestsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 requests for solutions +// returns a *RequestInformation when successful +func (m *ApprovalApprovalItemsItemRequestsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalItemRequestable, requestConfiguration *ApprovalApprovalItemsItemRequestsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ApprovalApprovalItemsItemRequestsRequestBuilder when successful +func (m *ApprovalApprovalItemsItemRequestsRequestBuilder) WithUrl(rawUrl string)(*ApprovalApprovalItemsItemRequestsRequestBuilder) { + return NewApprovalApprovalItemsItemRequestsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/approval_approval_items_item_responses_approval_item_response_item_request_builder.go b/solutions/approval_approval_items_item_responses_approval_item_response_item_request_builder.go new file mode 100644 index 00000000000..d05679a3eb7 --- /dev/null +++ b/solutions/approval_approval_items_item_responses_approval_item_response_item_request_builder.go @@ -0,0 +1,160 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ApprovalApprovalItemsItemResponsesApprovalItemResponseItemRequestBuilder provides operations to manage the responses property of the microsoft.graph.approvalItem entity. +type ApprovalApprovalItemsItemResponsesApprovalItemResponseItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ApprovalApprovalItemsItemResponsesApprovalItemResponseItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ApprovalApprovalItemsItemResponsesApprovalItemResponseItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ApprovalApprovalItemsItemResponsesApprovalItemResponseItemRequestBuilderGetQueryParameters read the properties and relationships of an approvalItemResponse object. +type ApprovalApprovalItemsItemResponsesApprovalItemResponseItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ApprovalApprovalItemsItemResponsesApprovalItemResponseItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ApprovalApprovalItemsItemResponsesApprovalItemResponseItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ApprovalApprovalItemsItemResponsesApprovalItemResponseItemRequestBuilderGetQueryParameters +} +// ApprovalApprovalItemsItemResponsesApprovalItemResponseItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ApprovalApprovalItemsItemResponsesApprovalItemResponseItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewApprovalApprovalItemsItemResponsesApprovalItemResponseItemRequestBuilderInternal instantiates a new ApprovalApprovalItemsItemResponsesApprovalItemResponseItemRequestBuilder and sets the default values. +func NewApprovalApprovalItemsItemResponsesApprovalItemResponseItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ApprovalApprovalItemsItemResponsesApprovalItemResponseItemRequestBuilder) { + m := &ApprovalApprovalItemsItemResponsesApprovalItemResponseItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/approval/approvalItems/{approvalItem%2Did}/responses/{approvalItemResponse%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewApprovalApprovalItemsItemResponsesApprovalItemResponseItemRequestBuilder instantiates a new ApprovalApprovalItemsItemResponsesApprovalItemResponseItemRequestBuilder and sets the default values. +func NewApprovalApprovalItemsItemResponsesApprovalItemResponseItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ApprovalApprovalItemsItemResponsesApprovalItemResponseItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewApprovalApprovalItemsItemResponsesApprovalItemResponseItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property responses for solutions +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ApprovalApprovalItemsItemResponsesApprovalItemResponseItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ApprovalApprovalItemsItemResponsesApprovalItemResponseItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get read the properties and relationships of an approvalItemResponse object. +// returns a ApprovalItemResponseable 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/approvalitemresponse-get?view=graph-rest-beta +func (m *ApprovalApprovalItemsItemResponsesApprovalItemResponseItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ApprovalApprovalItemsItemResponsesApprovalItemResponseItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalItemResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateApprovalItemResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalItemResponseable), nil +} +// Patch update the navigation property responses in solutions +// returns a ApprovalItemResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ApprovalApprovalItemsItemResponsesApprovalItemResponseItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalItemResponseable, requestConfiguration *ApprovalApprovalItemsItemResponsesApprovalItemResponseItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalItemResponseable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateApprovalItemResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalItemResponseable), nil +} +// ToDeleteRequestInformation delete navigation property responses for solutions +// returns a *RequestInformation when successful +func (m *ApprovalApprovalItemsItemResponsesApprovalItemResponseItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ApprovalApprovalItemsItemResponsesApprovalItemResponseItemRequestBuilderDeleteRequestConfiguration)(*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 read the properties and relationships of an approvalItemResponse object. +// returns a *RequestInformation when successful +func (m *ApprovalApprovalItemsItemResponsesApprovalItemResponseItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ApprovalApprovalItemsItemResponsesApprovalItemResponseItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 responses in solutions +// returns a *RequestInformation when successful +func (m *ApprovalApprovalItemsItemResponsesApprovalItemResponseItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalItemResponseable, requestConfiguration *ApprovalApprovalItemsItemResponsesApprovalItemResponseItemRequestBuilderPatchRequestConfiguration)(*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 *ApprovalApprovalItemsItemResponsesApprovalItemResponseItemRequestBuilder when successful +func (m *ApprovalApprovalItemsItemResponsesApprovalItemResponseItemRequestBuilder) WithUrl(rawUrl string)(*ApprovalApprovalItemsItemResponsesApprovalItemResponseItemRequestBuilder) { + return NewApprovalApprovalItemsItemResponsesApprovalItemResponseItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/approval_approval_items_item_responses_count_request_builder.go b/solutions/approval_approval_items_item_responses_count_request_builder.go new file mode 100644 index 00000000000..35883a2329c --- /dev/null +++ b/solutions/approval_approval_items_item_responses_count_request_builder.go @@ -0,0 +1,80 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ApprovalApprovalItemsItemResponsesCountRequestBuilder provides operations to count the resources in the collection. +type ApprovalApprovalItemsItemResponsesCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ApprovalApprovalItemsItemResponsesCountRequestBuilderGetQueryParameters get the number of the resource +type ApprovalApprovalItemsItemResponsesCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// ApprovalApprovalItemsItemResponsesCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ApprovalApprovalItemsItemResponsesCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ApprovalApprovalItemsItemResponsesCountRequestBuilderGetQueryParameters +} +// NewApprovalApprovalItemsItemResponsesCountRequestBuilderInternal instantiates a new ApprovalApprovalItemsItemResponsesCountRequestBuilder and sets the default values. +func NewApprovalApprovalItemsItemResponsesCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ApprovalApprovalItemsItemResponsesCountRequestBuilder) { + m := &ApprovalApprovalItemsItemResponsesCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/approval/approvalItems/{approvalItem%2Did}/responses/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewApprovalApprovalItemsItemResponsesCountRequestBuilder instantiates a new ApprovalApprovalItemsItemResponsesCountRequestBuilder and sets the default values. +func NewApprovalApprovalItemsItemResponsesCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ApprovalApprovalItemsItemResponsesCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewApprovalApprovalItemsItemResponsesCountRequestBuilderInternal(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 *ApprovalApprovalItemsItemResponsesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ApprovalApprovalItemsItemResponsesCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.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 *ApprovalApprovalItemsItemResponsesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ApprovalApprovalItemsItemResponsesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + 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 *ApprovalApprovalItemsItemResponsesCountRequestBuilder when successful +func (m *ApprovalApprovalItemsItemResponsesCountRequestBuilder) WithUrl(rawUrl string)(*ApprovalApprovalItemsItemResponsesCountRequestBuilder) { + return NewApprovalApprovalItemsItemResponsesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/approval_approval_items_item_responses_request_builder.go b/solutions/approval_approval_items_item_responses_request_builder.go new file mode 100644 index 00000000000..4883a2e1a27 --- /dev/null +++ b/solutions/approval_approval_items_item_responses_request_builder.go @@ -0,0 +1,158 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ApprovalApprovalItemsItemResponsesRequestBuilder provides operations to manage the responses property of the microsoft.graph.approvalItem entity. +type ApprovalApprovalItemsItemResponsesRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ApprovalApprovalItemsItemResponsesRequestBuilderGetQueryParameters get a list of approvalItemResponse objects. +type ApprovalApprovalItemsItemResponsesRequestBuilderGetQueryParameters 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"` +} +// ApprovalApprovalItemsItemResponsesRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ApprovalApprovalItemsItemResponsesRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ApprovalApprovalItemsItemResponsesRequestBuilderGetQueryParameters +} +// ApprovalApprovalItemsItemResponsesRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ApprovalApprovalItemsItemResponsesRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByApprovalItemResponseId provides operations to manage the responses property of the microsoft.graph.approvalItem entity. +// returns a *ApprovalApprovalItemsItemResponsesApprovalItemResponseItemRequestBuilder when successful +func (m *ApprovalApprovalItemsItemResponsesRequestBuilder) ByApprovalItemResponseId(approvalItemResponseId string)(*ApprovalApprovalItemsItemResponsesApprovalItemResponseItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if approvalItemResponseId != "" { + urlTplParams["approvalItemResponse%2Did"] = approvalItemResponseId + } + return NewApprovalApprovalItemsItemResponsesApprovalItemResponseItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewApprovalApprovalItemsItemResponsesRequestBuilderInternal instantiates a new ApprovalApprovalItemsItemResponsesRequestBuilder and sets the default values. +func NewApprovalApprovalItemsItemResponsesRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ApprovalApprovalItemsItemResponsesRequestBuilder) { + m := &ApprovalApprovalItemsItemResponsesRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/approval/approvalItems/{approvalItem%2Did}/responses{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewApprovalApprovalItemsItemResponsesRequestBuilder instantiates a new ApprovalApprovalItemsItemResponsesRequestBuilder and sets the default values. +func NewApprovalApprovalItemsItemResponsesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ApprovalApprovalItemsItemResponsesRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewApprovalApprovalItemsItemResponsesRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *ApprovalApprovalItemsItemResponsesCountRequestBuilder when successful +func (m *ApprovalApprovalItemsItemResponsesRequestBuilder) Count()(*ApprovalApprovalItemsItemResponsesCountRequestBuilder) { + return NewApprovalApprovalItemsItemResponsesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get a list of approvalItemResponse objects. +// returns a ApprovalItemResponseCollectionResponseable 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/approvalitem-list-responses?view=graph-rest-beta +func (m *ApprovalApprovalItemsItemResponsesRequestBuilder) Get(ctx context.Context, requestConfiguration *ApprovalApprovalItemsItemResponsesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalItemResponseCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateApprovalItemResponseCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalItemResponseCollectionResponseable), nil +} +// Post create a new approvalItemResponse object. +// returns a ApprovalItemResponseable 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/approvalitem-post-responses?view=graph-rest-beta +func (m *ApprovalApprovalItemsItemResponsesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalItemResponseable, requestConfiguration *ApprovalApprovalItemsItemResponsesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalItemResponseable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateApprovalItemResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalItemResponseable), nil +} +// ToGetRequestInformation get a list of approvalItemResponse objects. +// returns a *RequestInformation when successful +func (m *ApprovalApprovalItemsItemResponsesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ApprovalApprovalItemsItemResponsesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 a new approvalItemResponse object. +// returns a *RequestInformation when successful +func (m *ApprovalApprovalItemsItemResponsesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalItemResponseable, requestConfiguration *ApprovalApprovalItemsItemResponsesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ApprovalApprovalItemsItemResponsesRequestBuilder when successful +func (m *ApprovalApprovalItemsItemResponsesRequestBuilder) WithUrl(rawUrl string)(*ApprovalApprovalItemsItemResponsesRequestBuilder) { + return NewApprovalApprovalItemsItemResponsesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/approval_approval_items_request_builder.go b/solutions/approval_approval_items_request_builder.go new file mode 100644 index 00000000000..c0ec06d5ed1 --- /dev/null +++ b/solutions/approval_approval_items_request_builder.go @@ -0,0 +1,158 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ApprovalApprovalItemsRequestBuilder provides operations to manage the approvalItems property of the microsoft.graph.approvalSolution entity. +type ApprovalApprovalItemsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ApprovalApprovalItemsRequestBuilderGetQueryParameters get a list of the approvalItem objects and their properties. +type ApprovalApprovalItemsRequestBuilderGetQueryParameters 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"` +} +// ApprovalApprovalItemsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ApprovalApprovalItemsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ApprovalApprovalItemsRequestBuilderGetQueryParameters +} +// ApprovalApprovalItemsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ApprovalApprovalItemsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByApprovalItemId provides operations to manage the approvalItems property of the microsoft.graph.approvalSolution entity. +// returns a *ApprovalApprovalItemsApprovalItemItemRequestBuilder when successful +func (m *ApprovalApprovalItemsRequestBuilder) ByApprovalItemId(approvalItemId string)(*ApprovalApprovalItemsApprovalItemItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if approvalItemId != "" { + urlTplParams["approvalItem%2Did"] = approvalItemId + } + return NewApprovalApprovalItemsApprovalItemItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewApprovalApprovalItemsRequestBuilderInternal instantiates a new ApprovalApprovalItemsRequestBuilder and sets the default values. +func NewApprovalApprovalItemsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ApprovalApprovalItemsRequestBuilder) { + m := &ApprovalApprovalItemsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/approval/approvalItems{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewApprovalApprovalItemsRequestBuilder instantiates a new ApprovalApprovalItemsRequestBuilder and sets the default values. +func NewApprovalApprovalItemsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ApprovalApprovalItemsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewApprovalApprovalItemsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *ApprovalApprovalItemsCountRequestBuilder when successful +func (m *ApprovalApprovalItemsRequestBuilder) Count()(*ApprovalApprovalItemsCountRequestBuilder) { + return NewApprovalApprovalItemsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get a list of the approvalItem objects and their properties. +// returns a ApprovalItemCollectionResponseable 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/approvalsolution-list-approvalitems?view=graph-rest-beta +func (m *ApprovalApprovalItemsRequestBuilder) Get(ctx context.Context, requestConfiguration *ApprovalApprovalItemsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalItemCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateApprovalItemCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalItemCollectionResponseable), nil +} +// Post create a new approvalItem object. +// returns a ApprovalItemable 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/approvalsolution-post-approvalitems?view=graph-rest-beta +func (m *ApprovalApprovalItemsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalItemable, requestConfiguration *ApprovalApprovalItemsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalItemable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateApprovalItemFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalItemable), nil +} +// ToGetRequestInformation get a list of the approvalItem objects and their properties. +// returns a *RequestInformation when successful +func (m *ApprovalApprovalItemsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ApprovalApprovalItemsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 a new approvalItem object. +// returns a *RequestInformation when successful +func (m *ApprovalApprovalItemsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalItemable, requestConfiguration *ApprovalApprovalItemsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ApprovalApprovalItemsRequestBuilder when successful +func (m *ApprovalApprovalItemsRequestBuilder) WithUrl(rawUrl string)(*ApprovalApprovalItemsRequestBuilder) { + return NewApprovalApprovalItemsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/approval_operations_approval_operation_item_request_builder.go b/solutions/approval_operations_approval_operation_item_request_builder.go new file mode 100644 index 00000000000..9e2bb82305e --- /dev/null +++ b/solutions/approval_operations_approval_operation_item_request_builder.go @@ -0,0 +1,160 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ApprovalOperationsApprovalOperationItemRequestBuilder provides operations to manage the operations property of the microsoft.graph.approvalSolution entity. +type ApprovalOperationsApprovalOperationItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ApprovalOperationsApprovalOperationItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ApprovalOperationsApprovalOperationItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ApprovalOperationsApprovalOperationItemRequestBuilderGetQueryParameters read the properties and relationships of an approvalOperation object. +type ApprovalOperationsApprovalOperationItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ApprovalOperationsApprovalOperationItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ApprovalOperationsApprovalOperationItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ApprovalOperationsApprovalOperationItemRequestBuilderGetQueryParameters +} +// ApprovalOperationsApprovalOperationItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ApprovalOperationsApprovalOperationItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewApprovalOperationsApprovalOperationItemRequestBuilderInternal instantiates a new ApprovalOperationsApprovalOperationItemRequestBuilder and sets the default values. +func NewApprovalOperationsApprovalOperationItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ApprovalOperationsApprovalOperationItemRequestBuilder) { + m := &ApprovalOperationsApprovalOperationItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/approval/operations/{approvalOperation%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewApprovalOperationsApprovalOperationItemRequestBuilder instantiates a new ApprovalOperationsApprovalOperationItemRequestBuilder and sets the default values. +func NewApprovalOperationsApprovalOperationItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ApprovalOperationsApprovalOperationItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewApprovalOperationsApprovalOperationItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property operations for solutions +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ApprovalOperationsApprovalOperationItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ApprovalOperationsApprovalOperationItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get read the properties and relationships of an approvalOperation object. +// returns a ApprovalOperationable 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/approvaloperation-get?view=graph-rest-beta +func (m *ApprovalOperationsApprovalOperationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ApprovalOperationsApprovalOperationItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalOperationable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateApprovalOperationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalOperationable), nil +} +// Patch update the navigation property operations in solutions +// returns a ApprovalOperationable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ApprovalOperationsApprovalOperationItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalOperationable, requestConfiguration *ApprovalOperationsApprovalOperationItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalOperationable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateApprovalOperationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalOperationable), nil +} +// ToDeleteRequestInformation delete navigation property operations for solutions +// returns a *RequestInformation when successful +func (m *ApprovalOperationsApprovalOperationItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ApprovalOperationsApprovalOperationItemRequestBuilderDeleteRequestConfiguration)(*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 read the properties and relationships of an approvalOperation object. +// returns a *RequestInformation when successful +func (m *ApprovalOperationsApprovalOperationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ApprovalOperationsApprovalOperationItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 solutions +// returns a *RequestInformation when successful +func (m *ApprovalOperationsApprovalOperationItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalOperationable, requestConfiguration *ApprovalOperationsApprovalOperationItemRequestBuilderPatchRequestConfiguration)(*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 *ApprovalOperationsApprovalOperationItemRequestBuilder when successful +func (m *ApprovalOperationsApprovalOperationItemRequestBuilder) WithUrl(rawUrl string)(*ApprovalOperationsApprovalOperationItemRequestBuilder) { + return NewApprovalOperationsApprovalOperationItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/approval_operations_count_request_builder.go b/solutions/approval_operations_count_request_builder.go new file mode 100644 index 00000000000..c27f5613ecb --- /dev/null +++ b/solutions/approval_operations_count_request_builder.go @@ -0,0 +1,80 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ApprovalOperationsCountRequestBuilder provides operations to count the resources in the collection. +type ApprovalOperationsCountRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ApprovalOperationsCountRequestBuilderGetQueryParameters get the number of the resource +type ApprovalOperationsCountRequestBuilderGetQueryParameters struct { + // Filter items by property values + Filter *string `uriparametername:"%24filter"` + // Search items by search phrases + Search *string `uriparametername:"%24search"` +} +// ApprovalOperationsCountRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ApprovalOperationsCountRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ApprovalOperationsCountRequestBuilderGetQueryParameters +} +// NewApprovalOperationsCountRequestBuilderInternal instantiates a new ApprovalOperationsCountRequestBuilder and sets the default values. +func NewApprovalOperationsCountRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ApprovalOperationsCountRequestBuilder) { + m := &ApprovalOperationsCountRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/approval/operations/$count{?%24filter,%24search}", pathParameters), + } + return m +} +// NewApprovalOperationsCountRequestBuilder instantiates a new ApprovalOperationsCountRequestBuilder and sets the default values. +func NewApprovalOperationsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ApprovalOperationsCountRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewApprovalOperationsCountRequestBuilderInternal(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 *ApprovalOperationsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ApprovalOperationsCountRequestBuilderGetRequestConfiguration)(*int32, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.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 *ApprovalOperationsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ApprovalOperationsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + 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 *ApprovalOperationsCountRequestBuilder when successful +func (m *ApprovalOperationsCountRequestBuilder) WithUrl(rawUrl string)(*ApprovalOperationsCountRequestBuilder) { + return NewApprovalOperationsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/approval_operations_request_builder.go b/solutions/approval_operations_request_builder.go new file mode 100644 index 00000000000..6c21caa5221 --- /dev/null +++ b/solutions/approval_operations_request_builder.go @@ -0,0 +1,152 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ApprovalOperationsRequestBuilder provides operations to manage the operations property of the microsoft.graph.approvalSolution entity. +type ApprovalOperationsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ApprovalOperationsRequestBuilderGetQueryParameters read the properties and relationships of an approvalOperation object. +type ApprovalOperationsRequestBuilderGetQueryParameters 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"` +} +// ApprovalOperationsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ApprovalOperationsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ApprovalOperationsRequestBuilderGetQueryParameters +} +// ApprovalOperationsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ApprovalOperationsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByApprovalOperationId provides operations to manage the operations property of the microsoft.graph.approvalSolution entity. +// returns a *ApprovalOperationsApprovalOperationItemRequestBuilder when successful +func (m *ApprovalOperationsRequestBuilder) ByApprovalOperationId(approvalOperationId string)(*ApprovalOperationsApprovalOperationItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if approvalOperationId != "" { + urlTplParams["approvalOperation%2Did"] = approvalOperationId + } + return NewApprovalOperationsApprovalOperationItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewApprovalOperationsRequestBuilderInternal instantiates a new ApprovalOperationsRequestBuilder and sets the default values. +func NewApprovalOperationsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ApprovalOperationsRequestBuilder) { + m := &ApprovalOperationsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/approval/operations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewApprovalOperationsRequestBuilder instantiates a new ApprovalOperationsRequestBuilder and sets the default values. +func NewApprovalOperationsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ApprovalOperationsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewApprovalOperationsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *ApprovalOperationsCountRequestBuilder when successful +func (m *ApprovalOperationsRequestBuilder) Count()(*ApprovalOperationsCountRequestBuilder) { + return NewApprovalOperationsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get read the properties and relationships of an approvalOperation object. +// returns a ApprovalOperationCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ApprovalOperationsRequestBuilder) Get(ctx context.Context, requestConfiguration *ApprovalOperationsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalOperationCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateApprovalOperationCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalOperationCollectionResponseable), nil +} +// Post create new navigation property to operations for solutions +// returns a ApprovalOperationable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ApprovalOperationsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalOperationable, requestConfiguration *ApprovalOperationsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalOperationable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateApprovalOperationFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalOperationable), nil +} +// ToGetRequestInformation read the properties and relationships of an approvalOperation object. +// returns a *RequestInformation when successful +func (m *ApprovalOperationsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ApprovalOperationsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 solutions +// returns a *RequestInformation when successful +func (m *ApprovalOperationsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalOperationable, requestConfiguration *ApprovalOperationsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *ApprovalOperationsRequestBuilder when successful +func (m *ApprovalOperationsRequestBuilder) WithUrl(rawUrl string)(*ApprovalOperationsRequestBuilder) { + return NewApprovalOperationsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/approval_provision_request_builder.go b/solutions/approval_provision_request_builder.go new file mode 100644 index 00000000000..a18e792d55d --- /dev/null +++ b/solutions/approval_provision_request_builder.go @@ -0,0 +1,67 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ApprovalProvisionRequestBuilder provides operations to call the provision method. +type ApprovalProvisionRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ApprovalProvisionRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ApprovalProvisionRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewApprovalProvisionRequestBuilderInternal instantiates a new ApprovalProvisionRequestBuilder and sets the default values. +func NewApprovalProvisionRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ApprovalProvisionRequestBuilder) { + m := &ApprovalProvisionRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/approval/provision", pathParameters), + } + return m +} +// NewApprovalProvisionRequestBuilder instantiates a new ApprovalProvisionRequestBuilder and sets the default values. +func NewApprovalProvisionRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ApprovalProvisionRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewApprovalProvisionRequestBuilderInternal(urlParams, requestAdapter) +} +// Post provision an approvalSolution on behalf of a tenant. +// 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/approvalsolution-provision?view=graph-rest-beta +func (m *ApprovalProvisionRequestBuilder) Post(ctx context.Context, requestConfiguration *ApprovalProvisionRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation provision an approvalSolution on behalf of a tenant. +// returns a *RequestInformation when successful +func (m *ApprovalProvisionRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ApprovalProvisionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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 *ApprovalProvisionRequestBuilder when successful +func (m *ApprovalProvisionRequestBuilder) WithUrl(rawUrl string)(*ApprovalProvisionRequestBuilder) { + return NewApprovalProvisionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/approval_request_builder.go b/solutions/approval_request_builder.go new file mode 100644 index 00000000000..14c6e76b613 --- /dev/null +++ b/solutions/approval_request_builder.go @@ -0,0 +1,175 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ApprovalRequestBuilder provides operations to manage the approval property of the microsoft.graph.solutionsRoot entity. +type ApprovalRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ApprovalRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ApprovalRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ApprovalRequestBuilderGetQueryParameters read the properties of an approvalSolution object to determine the provisioning state for a tenant. +type ApprovalRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// ApprovalRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ApprovalRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *ApprovalRequestBuilderGetQueryParameters +} +// ApprovalRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ApprovalRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ApprovalItems provides operations to manage the approvalItems property of the microsoft.graph.approvalSolution entity. +// returns a *ApprovalApprovalItemsRequestBuilder when successful +func (m *ApprovalRequestBuilder) ApprovalItems()(*ApprovalApprovalItemsRequestBuilder) { + return NewApprovalApprovalItemsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// NewApprovalRequestBuilderInternal instantiates a new ApprovalRequestBuilder and sets the default values. +func NewApprovalRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ApprovalRequestBuilder) { + m := &ApprovalRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/approval{?%24expand,%24select}", pathParameters), + } + return m +} +// NewApprovalRequestBuilder instantiates a new ApprovalRequestBuilder and sets the default values. +func NewApprovalRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ApprovalRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewApprovalRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property approval for solutions +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ApprovalRequestBuilder) Delete(ctx context.Context, requestConfiguration *ApprovalRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get read the properties of an approvalSolution object to determine the provisioning state for a tenant. +// returns a ApprovalSolutionable 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/approvalsolution-get?view=graph-rest-beta +func (m *ApprovalRequestBuilder) Get(ctx context.Context, requestConfiguration *ApprovalRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalSolutionable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateApprovalSolutionFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalSolutionable), nil +} +// Operations provides operations to manage the operations property of the microsoft.graph.approvalSolution entity. +// returns a *ApprovalOperationsRequestBuilder when successful +func (m *ApprovalRequestBuilder) Operations()(*ApprovalOperationsRequestBuilder) { + return NewApprovalOperationsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Patch update the navigation property approval in solutions +// returns a ApprovalSolutionable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ApprovalRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalSolutionable, requestConfiguration *ApprovalRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalSolutionable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateApprovalSolutionFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalSolutionable), nil +} +// Provision provides operations to call the provision method. +// returns a *ApprovalProvisionRequestBuilder when successful +func (m *ApprovalRequestBuilder) Provision()(*ApprovalProvisionRequestBuilder) { + return NewApprovalProvisionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToDeleteRequestInformation delete navigation property approval for solutions +// returns a *RequestInformation when successful +func (m *ApprovalRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ApprovalRequestBuilderDeleteRequestConfiguration)(*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 read the properties of an approvalSolution object to determine the provisioning state for a tenant. +// returns a *RequestInformation when successful +func (m *ApprovalRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ApprovalRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 approval in solutions +// returns a *RequestInformation when successful +func (m *ApprovalRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalSolutionable, requestConfiguration *ApprovalRequestBuilderPatchRequestConfiguration)(*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 *ApprovalRequestBuilder when successful +func (m *ApprovalRequestBuilder) WithUrl(rawUrl string)(*ApprovalRequestBuilder) { + return NewApprovalRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/backup_restore_exchange_restore_sessions_exchange_restore_session_item_request_builder.go b/solutions/backup_restore_exchange_restore_sessions_exchange_restore_session_item_request_builder.go index 4c3a8c60bb2..10256a04897 100644 --- a/solutions/backup_restore_exchange_restore_sessions_exchange_restore_session_item_request_builder.go +++ b/solutions/backup_restore_exchange_restore_sessions_exchange_restore_session_item_request_builder.go @@ -90,6 +90,11 @@ func (m *BackupRestoreExchangeRestoreSessionsExchangeRestoreSessionItemRequestBu } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExchangeRestoreSessionable), nil } +// GranularMailboxRestoreArtifacts provides operations to manage the granularMailboxRestoreArtifacts property of the microsoft.graph.exchangeRestoreSession entity. +// returns a *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsRequestBuilder when successful +func (m *BackupRestoreExchangeRestoreSessionsExchangeRestoreSessionItemRequestBuilder) GranularMailboxRestoreArtifacts()(*BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsRequestBuilder) { + return NewBackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // MailboxRestoreArtifacts provides operations to manage the mailboxRestoreArtifacts property of the microsoft.graph.exchangeRestoreSession entity. // returns a *BackupRestoreExchangeRestoreSessionsItemMailboxRestoreArtifactsRequestBuilder when successful func (m *BackupRestoreExchangeRestoreSessionsExchangeRestoreSessionItemRequestBuilder) MailboxRestoreArtifacts()(*BackupRestoreExchangeRestoreSessionsItemMailboxRestoreArtifactsRequestBuilder) { diff --git a/solutions/backup_restore_exchange_restore_sessions_item_granular_mailbox_restore_artifacts_request_builder.go b/solutions/backup_restore_exchange_restore_sessions_item_granular_mailbox_restore_artifacts_request_builder.go new file mode 100644 index 00000000000..d1f0bc466a7 --- /dev/null +++ b/solutions/backup_restore_exchange_restore_sessions_item_granular_mailbox_restore_artifacts_request_builder.go @@ -0,0 +1,152 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsRequestBuilder provides operations to manage the granularMailboxRestoreArtifacts property of the microsoft.graph.exchangeRestoreSession entity. +type BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsRequestBuilderGetQueryParameters get granularMailboxRestoreArtifacts from solutions +type BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsRequestBuilderGetQueryParameters 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"` +} +// BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsRequestBuilderGetQueryParameters +} +// BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// ByGranularMailboxRestoreArtifactId provides operations to manage the granularMailboxRestoreArtifacts property of the microsoft.graph.exchangeRestoreSession entity. +// returns a *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsGranularMailboxRestoreArtifactItemRequestBuilder when successful +func (m *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsRequestBuilder) ByGranularMailboxRestoreArtifactId(granularMailboxRestoreArtifactId string)(*BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsGranularMailboxRestoreArtifactItemRequestBuilder) { + urlTplParams := make(map[string]string) + for idx, item := range m.BaseRequestBuilder.PathParameters { + urlTplParams[idx] = item + } + if granularMailboxRestoreArtifactId != "" { + urlTplParams["granularMailboxRestoreArtifact%2Did"] = granularMailboxRestoreArtifactId + } + return NewBackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsGranularMailboxRestoreArtifactItemRequestBuilderInternal(urlTplParams, m.BaseRequestBuilder.RequestAdapter) +} +// NewBackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsRequestBuilderInternal instantiates a new BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsRequestBuilder and sets the default values. +func NewBackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsRequestBuilder) { + m := &BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/backupRestore/exchangeRestoreSessions/{exchangeRestoreSession%2Did}/granularMailboxRestoreArtifacts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters), + } + return m +} +// NewBackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsRequestBuilder instantiates a new BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsRequestBuilder and sets the default values. +func NewBackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewBackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsRequestBuilderInternal(urlParams, requestAdapter) +} +// Count provides operations to count the resources in the collection. +// returns a *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsCountRequestBuilder when successful +func (m *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsRequestBuilder) Count()(*BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsCountRequestBuilder) { + return NewBackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// Get get granularMailboxRestoreArtifacts from solutions +// returns a GranularMailboxRestoreArtifactCollectionResponseable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsRequestBuilder) Get(ctx context.Context, requestConfiguration *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GranularMailboxRestoreArtifactCollectionResponseable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateGranularMailboxRestoreArtifactCollectionResponseFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GranularMailboxRestoreArtifactCollectionResponseable), nil +} +// Post create new navigation property to granularMailboxRestoreArtifacts for solutions +// returns a GranularMailboxRestoreArtifactable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GranularMailboxRestoreArtifactable, requestConfiguration *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GranularMailboxRestoreArtifactable, error) { + requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateGranularMailboxRestoreArtifactFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GranularMailboxRestoreArtifactable), nil +} +// ToGetRequestInformation get granularMailboxRestoreArtifacts from solutions +// returns a *RequestInformation when successful +func (m *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 granularMailboxRestoreArtifacts for solutions +// returns a *RequestInformation when successful +func (m *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GranularMailboxRestoreArtifactable, requestConfiguration *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + requestInfo.Headers.AddAll(requestConfiguration.Headers) + requestInfo.AddRequestOptions(requestConfiguration.Options) + } + requestInfo.Headers.TryAdd("Accept", "application/json") + err := requestInfo.SetContentFromParsable(ctx, m.BaseRequestBuilder.RequestAdapter, "application/json", body) + if err != nil { + return nil, err + } + return requestInfo, nil +} +// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// returns a *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsRequestBuilder when successful +func (m *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsRequestBuilder) WithUrl(rawUrl string)(*BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsRequestBuilder) { + return NewBackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/backup_restore_restore_points_search_post_request_body.go b/solutions/backup_restore_restore_points_search_post_request_body.go index 42ffa3cbb7d..08794057344 100644 --- a/solutions/backup_restore_restore_points_search_post_request_body.go +++ b/solutions/backup_restore_restore_points_search_post_request_body.go @@ -36,6 +36,18 @@ func (m *BackupRestoreRestorePointsSearchPostRequestBody) GetAdditionalData()(ma } return val.(map[string]any) } +// GetArtifactQuery gets the artifactQuery property value. The artifactQuery property +// returns a ArtifactQueryable when successful +func (m *BackupRestoreRestorePointsSearchPostRequestBody) GetArtifactQuery()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ArtifactQueryable) { + val, err := m.GetBackingStore().Get("artifactQuery") + if err != nil { + panic(err) + } + if val != nil { + return val.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ArtifactQueryable) + } + return nil +} // GetBackingStore gets the BackingStore property value. Stores model information. // returns a BackingStore when successful func (m *BackupRestoreRestorePointsSearchPostRequestBody) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) { @@ -45,6 +57,16 @@ func (m *BackupRestoreRestorePointsSearchPostRequestBody) GetBackingStore()(ie86 // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *BackupRestoreRestorePointsSearchPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) + res["artifactQuery"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetObjectValue(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateArtifactQueryFromDiscriminatorValue) + if err != nil { + return err + } + if val != nil { + m.SetArtifactQuery(val.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ArtifactQueryable)) + } + return nil + } res["protectionTimePeriod"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetObjectValue(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateTimePeriodFromDiscriminatorValue) if err != nil { @@ -143,6 +165,12 @@ func (m *BackupRestoreRestorePointsSearchPostRequestBody) GetTags()(*ie233ee762e } // Serialize serializes information the current object func (m *BackupRestoreRestorePointsSearchPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + { + err := writer.WriteObjectValue("artifactQuery", m.GetArtifactQuery()) + if err != nil { + return err + } + } { err := writer.WriteObjectValue("protectionTimePeriod", m.GetProtectionTimePeriod()) if err != nil { @@ -184,6 +212,13 @@ func (m *BackupRestoreRestorePointsSearchPostRequestBody) SetAdditionalData(valu panic(err) } } +// SetArtifactQuery sets the artifactQuery property value. The artifactQuery property +func (m *BackupRestoreRestorePointsSearchPostRequestBody) SetArtifactQuery(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ArtifactQueryable)() { + err := m.GetBackingStore().Set("artifactQuery", value) + if err != nil { + panic(err) + } +} // SetBackingStore sets the BackingStore property value. Stores model information. func (m *BackupRestoreRestorePointsSearchPostRequestBody) SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() { m.backingStore = value @@ -220,11 +255,13 @@ type BackupRestoreRestorePointsSearchPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetArtifactQuery()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ArtifactQueryable) GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore) GetProtectionTimePeriod()(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TimePeriodable) GetProtectionUnitIds()([]string) GetRestorePointPreference()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RestorePointPreference) GetTags()(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RestorePointTags) + SetArtifactQuery(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ArtifactQueryable)() SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)() SetProtectionTimePeriod(value ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TimePeriodable)() SetProtectionUnitIds(value []string)() diff --git a/solutions/backup_restore_share_point_protection_policies_share_point_protection_policy_item_request_builder.go b/solutions/backup_restore_share_point_protection_policies_share_point_protection_policy_item_request_builder.go index 9255760be6f..43061c21908 100644 --- a/solutions/backup_restore_share_point_protection_policies_share_point_protection_policy_item_request_builder.go +++ b/solutions/backup_restore_share_point_protection_policies_share_point_protection_policy_item_request_builder.go @@ -90,7 +90,7 @@ func (m *BackupRestoreSharePointProtectionPoliciesSharePointProtectionPolicyItem } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SharePointProtectionPolicyable), nil } -// Patch update a SharePoint protection policy. This method adds a sharepointprotectionunit to or removes it from the protection policy. +// Patch update a SharePoint protection policy. This method adds a siteprotectionunit to or removes it from the protection policy. // returns a SharePointProtectionPolicyable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -148,7 +148,7 @@ func (m *BackupRestoreSharePointProtectionPoliciesSharePointProtectionPolicyItem requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update a SharePoint protection policy. This method adds a sharepointprotectionunit to or removes it from the protection policy. +// ToPatchRequestInformation update a SharePoint protection policy. This method adds a siteprotectionunit to or removes it from the protection policy. // returns a *RequestInformation when successful func (m *BackupRestoreSharePointProtectionPoliciesSharePointProtectionPolicyItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SharePointProtectionPolicyable, requestConfiguration *BackupRestoreSharePointProtectionPoliciesSharePointProtectionPolicyItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/solutions/business_scenarios_item_planner_plan_configuration_localizations_request_builder.go b/solutions/business_scenarios_item_planner_plan_configuration_localizations_request_builder.go index d6b764793aa..6654b71ce24 100644 --- a/solutions/business_scenarios_item_planner_plan_configuration_localizations_request_builder.go +++ b/solutions/business_scenarios_item_planner_plan_configuration_localizations_request_builder.go @@ -99,12 +99,9 @@ func (m *BusinessScenariosItemPlannerPlanConfigurationLocalizationsRequestBuilde } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerPlanConfigurationLocalizationCollectionResponseable), nil } -// Post create a new plannerPlanConfigurationLocalization object. +// Post create new navigation property to localizations for solutions // returns a PlannerPlanConfigurationLocalizationable 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/plannerplanconfiguration-post-localizations?view=graph-rest-beta func (m *BusinessScenariosItemPlannerPlanConfigurationLocalizationsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerPlanConfigurationLocalizationable, requestConfiguration *BusinessScenariosItemPlannerPlanConfigurationLocalizationsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerPlanConfigurationLocalizationable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -136,7 +133,7 @@ func (m *BusinessScenariosItemPlannerPlanConfigurationLocalizationsRequestBuilde requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation create a new plannerPlanConfigurationLocalization object. +// ToPostRequestInformation create new navigation property to localizations for solutions // returns a *RequestInformation when successful func (m *BusinessScenariosItemPlannerPlanConfigurationLocalizationsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerPlanConfigurationLocalizationable, requestConfiguration *BusinessScenariosItemPlannerPlanConfigurationLocalizationsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/solutions/business_scenarios_item_planner_plan_configuration_request_builder.go b/solutions/business_scenarios_item_planner_plan_configuration_request_builder.go index 9568c07d004..c6f49be5065 100644 --- a/solutions/business_scenarios_item_planner_plan_configuration_request_builder.go +++ b/solutions/business_scenarios_item_planner_plan_configuration_request_builder.go @@ -98,7 +98,7 @@ func (m *BusinessScenariosItemPlannerPlanConfigurationRequestBuilder) Get(ctx co func (m *BusinessScenariosItemPlannerPlanConfigurationRequestBuilder) Localizations()(*BusinessScenariosItemPlannerPlanConfigurationLocalizationsRequestBuilder) { return NewBusinessScenariosItemPlannerPlanConfigurationLocalizationsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Patch update the properties of a plannerPlanConfiguration object for a businessScenario. +// Patch update the properties of a plannerPlanConfiguration object and its plannerPlanConfigurationLocalization collection for a businessScenario. // returns a PlannerPlanConfigurationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -146,7 +146,7 @@ func (m *BusinessScenariosItemPlannerPlanConfigurationRequestBuilder) ToGetReque requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPatchRequestInformation update the properties of a plannerPlanConfiguration object for a businessScenario. +// ToPatchRequestInformation update the properties of a plannerPlanConfiguration object and its plannerPlanConfigurationLocalization collection for a businessScenario. // returns a *RequestInformation when successful func (m *BusinessScenariosItemPlannerPlanConfigurationRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerPlanConfigurationable, requestConfiguration *BusinessScenariosItemPlannerPlanConfigurationRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/solutions/dc95216a3751a9d77e6076570bd0e3a23af8ecebcf1d5e2ed17ab4e57b41e8c4.go b/solutions/dc95216a3751a9d77e6076570bd0e3a23af8ecebcf1d5e2ed17ab4e57b41e8c4.go new file mode 100644 index 00000000000..f19287adea4 --- /dev/null +++ b/solutions/dc95216a3751a9d77e6076570bd0e3a23af8ecebcf1d5e2ed17ab4e57b41e8c4.go @@ -0,0 +1,162 @@ +package solutions + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be "github.com/microsoftgraph/msgraph-beta-sdk-go/models" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsGranularMailboxRestoreArtifactItemRequestBuilder provides operations to manage the granularMailboxRestoreArtifacts property of the microsoft.graph.exchangeRestoreSession entity. +type BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsGranularMailboxRestoreArtifactItemRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsGranularMailboxRestoreArtifactItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsGranularMailboxRestoreArtifactItemRequestBuilderDeleteRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsGranularMailboxRestoreArtifactItemRequestBuilderGetQueryParameters get granularMailboxRestoreArtifacts from solutions +type BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsGranularMailboxRestoreArtifactItemRequestBuilderGetQueryParameters struct { + // Expand related entities + Expand []string `uriparametername:"%24expand"` + // Select properties to be returned + Select []string `uriparametername:"%24select"` +} +// BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsGranularMailboxRestoreArtifactItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsGranularMailboxRestoreArtifactItemRequestBuilderGetRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption + // Request query parameters + QueryParameters *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsGranularMailboxRestoreArtifactItemRequestBuilderGetQueryParameters +} +// BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsGranularMailboxRestoreArtifactItemRequestBuilderPatchRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsGranularMailboxRestoreArtifactItemRequestBuilderPatchRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewBackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsGranularMailboxRestoreArtifactItemRequestBuilderInternal instantiates a new BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsGranularMailboxRestoreArtifactItemRequestBuilder and sets the default values. +func NewBackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsGranularMailboxRestoreArtifactItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsGranularMailboxRestoreArtifactItemRequestBuilder) { + m := &BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsGranularMailboxRestoreArtifactItemRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/solutions/backupRestore/exchangeRestoreSessions/{exchangeRestoreSession%2Did}/granularMailboxRestoreArtifacts/{granularMailboxRestoreArtifact%2Did}{?%24expand,%24select}", pathParameters), + } + return m +} +// NewBackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsGranularMailboxRestoreArtifactItemRequestBuilder instantiates a new BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsGranularMailboxRestoreArtifactItemRequestBuilder and sets the default values. +func NewBackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsGranularMailboxRestoreArtifactItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsGranularMailboxRestoreArtifactItemRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewBackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsGranularMailboxRestoreArtifactItemRequestBuilderInternal(urlParams, requestAdapter) +} +// Delete delete navigation property granularMailboxRestoreArtifacts for solutions +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsGranularMailboxRestoreArtifactItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsGranularMailboxRestoreArtifactItemRequestBuilderDeleteRequestConfiguration)(error) { + requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// Get get granularMailboxRestoreArtifacts from solutions +// returns a GranularMailboxRestoreArtifactable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsGranularMailboxRestoreArtifactItemRequestBuilder) Get(ctx context.Context, requestConfiguration *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsGranularMailboxRestoreArtifactItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GranularMailboxRestoreArtifactable, error) { + requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateGranularMailboxRestoreArtifactFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GranularMailboxRestoreArtifactable), nil +} +// Patch update the navigation property granularMailboxRestoreArtifacts in solutions +// returns a GranularMailboxRestoreArtifactable when successful +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsGranularMailboxRestoreArtifactItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GranularMailboxRestoreArtifactable, requestConfiguration *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsGranularMailboxRestoreArtifactItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GranularMailboxRestoreArtifactable, error) { + requestInfo, err := m.ToPatchRequestInformation(ctx, body, requestConfiguration); + if err != nil { + return nil, err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CreateGranularMailboxRestoreArtifactFromDiscriminatorValue, errorMapping) + if err != nil { + return nil, err + } + if res == nil { + return nil, nil + } + return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GranularMailboxRestoreArtifactable), nil +} +// RestorePoint provides operations to manage the restorePoint property of the microsoft.graph.restoreArtifactBase entity. +// returns a *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsItemRestorePointRequestBuilder when successful +func (m *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsGranularMailboxRestoreArtifactItemRequestBuilder) RestorePoint()(*BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsItemRestorePointRequestBuilder) { + return NewBackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsItemRestorePointRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} +// ToDeleteRequestInformation delete navigation property granularMailboxRestoreArtifacts for solutions +// returns a *RequestInformation when successful +func (m *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsGranularMailboxRestoreArtifactItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsGranularMailboxRestoreArtifactItemRequestBuilderDeleteRequestConfiguration)(*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 granularMailboxRestoreArtifacts from solutions +// returns a *RequestInformation when successful +func (m *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsGranularMailboxRestoreArtifactItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsGranularMailboxRestoreArtifactItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) + if requestConfiguration != nil { + if requestConfiguration.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 granularMailboxRestoreArtifacts in solutions +// returns a *RequestInformation when successful +func (m *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsGranularMailboxRestoreArtifactItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GranularMailboxRestoreArtifactable, requestConfiguration *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsGranularMailboxRestoreArtifactItemRequestBuilderPatchRequestConfiguration)(*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 *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsGranularMailboxRestoreArtifactItemRequestBuilder when successful +func (m *BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsGranularMailboxRestoreArtifactItemRequestBuilder) WithUrl(rawUrl string)(*BackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsGranularMailboxRestoreArtifactItemRequestBuilder) { + return NewBackupRestoreExchangeRestoreSessionsItemGranularMailboxRestoreArtifactsGranularMailboxRestoreArtifactItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/solutions/solutions_request_builder.go b/solutions/solutions_request_builder.go index 1ab3c9af81b..bcd0161af4a 100644 --- a/solutions/solutions_request_builder.go +++ b/solutions/solutions_request_builder.go @@ -34,6 +34,11 @@ type SolutionsRequestBuilderPatchRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// Approval provides operations to manage the approval property of the microsoft.graph.solutionsRoot entity. +// returns a *ApprovalRequestBuilder when successful +func (m *SolutionsRequestBuilder) Approval()(*ApprovalRequestBuilder) { + return NewApprovalRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // BackupRestore provides operations to manage the backupRestore property of the microsoft.graph.solutionsRoot entity. // returns a *BackupRestoreRequestBuilder when successful func (m *SolutionsRequestBuilder) BackupRestore()(*BackupRestoreRequestBuilder) { diff --git a/storage/13cfb2710093c6734a6f56b8a5d34f9841993aea3dc427a4b819e51b8ab15901.go b/storage/13cfb2710093c6734a6f56b8a5d34f9841993aea3dc427a4b819e51b8ab15901.go index 18434ddc2c3..463e27ec221 100644 --- a/storage/13cfb2710093c6734a6f56b8a5d34f9841993aea3dc427a4b819e51b8ab15901.go +++ b/storage/13cfb2710093c6734a6f56b8a5d34f9841993aea3dc427a4b819e51b8ab15901.go @@ -40,6 +40,7 @@ func NewFileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserServiceP return NewFileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *FileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *FileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserService return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *FileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *FileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserService return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *FileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *FileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewFileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/storage/321df77069779d12394de1e35a2894ab445807679e4512f7dc77943c86045a21.go b/storage/321df77069779d12394de1e35a2894ab445807679e4512f7dc77943c86045a21.go index ac7f8dd9d1d..ead241ac921 100644 --- a/storage/321df77069779d12394de1e35a2894ab445807679e4512f7dc77943c86045a21.go +++ b/storage/321df77069779d12394de1e35a2894ab445807679e4512f7dc77943c86045a21.go @@ -48,6 +48,7 @@ func NewFileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserMai return NewFileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *FileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *FileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserMa return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *FileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *FileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *FileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserMa return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *FileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *FileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserMa return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *FileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *FileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *FileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserMa return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *FileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilder when successful func (m *FileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*FileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) { return NewFileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/storage/33009eb32bae51cab5dc04e27102e617d512e292163bc775464cca3fdf3f73aa.go b/storage/33009eb32bae51cab5dc04e27102e617d512e292163bc775464cca3fdf3f73aa.go index 1f883d1620a..a39517387b3 100644 --- a/storage/33009eb32bae51cab5dc04e27102e617d512e292163bc775464cca3fdf3f73aa.go +++ b/storage/33009eb32bae51cab5dc04e27102e617d512e292163bc775464cca3fdf3f73aa.go @@ -48,6 +48,7 @@ func NewFileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserMailboxS return NewFileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *FileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *FileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserMailbox return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *FileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *FileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *FileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserMailbox return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *FileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *FileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserMailbox return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *FileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *FileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *FileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserMailbox return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *FileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilder when successful func (m *FileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*FileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilder) { return NewFileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/storage/3b4c350f4620b680a87707fa0174262394ae12e75682771f0d177c96529f6df1.go b/storage/3b4c350f4620b680a87707fa0174262394ae12e75682771f0d177c96529f6df1.go index 4ac3727d44a..be5b977c52d 100644 --- a/storage/3b4c350f4620b680a87707fa0174262394ae12e75682771f0d177c96529f6df1.go +++ b/storage/3b4c350f4620b680a87707fa0174262394ae12e75682771f0d177c96529f6df1.go @@ -58,6 +58,7 @@ func (m *FileStorageDeletedContainersItemRecycleBinCreatedByUserServiceProvision return NewFileStorageDeletedContainersItemRecycleBinCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *FileStorageDeletedContainersItemRecycleBinCreatedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageDeletedContainersItemRecycleBinCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *FileStorageDeletedContainersItemRecycleBinCreatedByUserServiceProvision return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *FileStorageDeletedContainersItemRecycleBinCreatedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageDeletedContainersItemRecycleBinCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *FileStorageDeletedContainersItemRecycleBinCreatedByUserServiceProvision return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *FileStorageDeletedContainersItemRecycleBinCreatedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *FileStorageDeletedContainersItemRecycleBinCreatedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*FileStorageDeletedContainersItemRecycleBinCreatedByUserServiceProvisioningErrorsRequestBuilder) { return NewFileStorageDeletedContainersItemRecycleBinCreatedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/storage/6bad9f7bcb365ae6deff894f98ccefe9b2269e9971ff3c80536a7d3b4ff6a1e6.go b/storage/6bad9f7bcb365ae6deff894f98ccefe9b2269e9971ff3c80536a7d3b4ff6a1e6.go index 42418c0d4e7..a03c9984b56 100644 --- a/storage/6bad9f7bcb365ae6deff894f98ccefe9b2269e9971ff3c80536a7d3b4ff6a1e6.go +++ b/storage/6bad9f7bcb365ae6deff894f98ccefe9b2269e9971ff3c80536a7d3b4ff6a1e6.go @@ -58,6 +58,7 @@ func (m *FileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserService return NewFileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *FileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *FileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserService return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *FileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *FileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserService return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *FileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *FileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*FileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) { return NewFileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/storage/6c24af00daec6916c1a54fa227eb19d1b3fbdc3522d44f5c1852eb8b93b646cb.go b/storage/6c24af00daec6916c1a54fa227eb19d1b3fbdc3522d44f5c1852eb8b93b646cb.go index 1477efd9194..ba0e8b225fc 100644 --- a/storage/6c24af00daec6916c1a54fa227eb19d1b3fbdc3522d44f5c1852eb8b93b646cb.go +++ b/storage/6c24af00daec6916c1a54fa227eb19d1b3fbdc3522d44f5c1852eb8b93b646cb.go @@ -48,6 +48,7 @@ func NewFileStorageDeletedContainersItemRecycleBinLastModifiedByUserMailboxSetti return NewFileStorageDeletedContainersItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *FileStorageDeletedContainersItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageDeletedContainersItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *FileStorageDeletedContainersItemRecycleBinLastModifiedByUserMailboxSett return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *FileStorageDeletedContainersItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *FileStorageDeletedContainersItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *FileStorageDeletedContainersItemRecycleBinLastModifiedByUserMailboxSett return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *FileStorageDeletedContainersItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageDeletedContainersItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *FileStorageDeletedContainersItemRecycleBinLastModifiedByUserMailboxSett return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *FileStorageDeletedContainersItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *FileStorageDeletedContainersItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *FileStorageDeletedContainersItemRecycleBinLastModifiedByUserMailboxSett return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *FileStorageDeletedContainersItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilder when successful func (m *FileStorageDeletedContainersItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*FileStorageDeletedContainersItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilder) { return NewFileStorageDeletedContainersItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/storage/72820e6b00e24b4e100ea882f8ae396f360ccc0e6fec36ed03cf82492117af05.go b/storage/72820e6b00e24b4e100ea882f8ae396f360ccc0e6fec36ed03cf82492117af05.go index c0e2d4049f9..7c1e455bd9b 100644 --- a/storage/72820e6b00e24b4e100ea882f8ae396f360ccc0e6fec36ed03cf82492117af05.go +++ b/storage/72820e6b00e24b4e100ea882f8ae396f360ccc0e6fec36ed03cf82492117af05.go @@ -58,6 +58,7 @@ func (m *FileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserSe return NewFileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *FileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *FileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserSe return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *FileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *FileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserSe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *FileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *FileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*FileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) { return NewFileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/storage/72de5c1f1ea259ec3af7bf2ef9f91a5f3366ecba2390617d1da078fa4489e77a.go b/storage/72de5c1f1ea259ec3af7bf2ef9f91a5f3366ecba2390617d1da078fa4489e77a.go index 3e1a6d88f46..a35dbe62d18 100644 --- a/storage/72de5c1f1ea259ec3af7bf2ef9f91a5f3366ecba2390617d1da078fa4489e77a.go +++ b/storage/72de5c1f1ea259ec3af7bf2ef9f91a5f3366ecba2390617d1da078fa4489e77a.go @@ -58,6 +58,7 @@ func (m *FileStorageContainersItemRecycleBinItemsItemCreatedByUserServiceProvisi return NewFileStorageContainersItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *FileStorageContainersItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *FileStorageContainersItemRecycleBinItemsItemCreatedByUserServiceProvisi return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *FileStorageContainersItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *FileStorageContainersItemRecycleBinItemsItemCreatedByUserServiceProvisi return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *FileStorageContainersItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *FileStorageContainersItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder) { return NewFileStorageContainersItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/storage/7907d5cb29fddfa7da4378c69c5861aa495991af3e0f1d3efab33510cb14bdac.go b/storage/7907d5cb29fddfa7da4378c69c5861aa495991af3e0f1d3efab33510cb14bdac.go index 90c102b8851..ba3f1f5abf0 100644 --- a/storage/7907d5cb29fddfa7da4378c69c5861aa495991af3e0f1d3efab33510cb14bdac.go +++ b/storage/7907d5cb29fddfa7da4378c69c5861aa495991af3e0f1d3efab33510cb14bdac.go @@ -40,6 +40,7 @@ func NewFileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserSer return NewFileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *FileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *FileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserSe return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *FileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *FileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserSe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *FileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *FileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewFileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/storage/82741c03342545c1b2bb1a6a565cdc44f23a5b5d3dd9d8dba768bba57027f3d3.go b/storage/82741c03342545c1b2bb1a6a565cdc44f23a5b5d3dd9d8dba768bba57027f3d3.go index c007909d1e9..c1ac60a288d 100644 --- a/storage/82741c03342545c1b2bb1a6a565cdc44f23a5b5d3dd9d8dba768bba57027f3d3.go +++ b/storage/82741c03342545c1b2bb1a6a565cdc44f23a5b5d3dd9d8dba768bba57027f3d3.go @@ -40,6 +40,7 @@ func NewFileStorageDeletedContainersItemRecycleBinLastModifiedByUserServiceProvi return NewFileStorageDeletedContainersItemRecycleBinLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *FileStorageDeletedContainersItemRecycleBinLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageDeletedContainersItemRecycleBinLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *FileStorageDeletedContainersItemRecycleBinLastModifiedByUserServiceProv return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *FileStorageDeletedContainersItemRecycleBinLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageDeletedContainersItemRecycleBinLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *FileStorageDeletedContainersItemRecycleBinLastModifiedByUserServiceProv return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *FileStorageDeletedContainersItemRecycleBinLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *FileStorageDeletedContainersItemRecycleBinLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageDeletedContainersItemRecycleBinLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewFileStorageDeletedContainersItemRecycleBinLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/storage/8fb5265049b92bad47cba66b5074fd9fdbbb3767a4eb8dc18ba4dfa3edd0fe23.go b/storage/8fb5265049b92bad47cba66b5074fd9fdbbb3767a4eb8dc18ba4dfa3edd0fe23.go index 22db17c03fd..b8954eec596 100644 --- a/storage/8fb5265049b92bad47cba66b5074fd9fdbbb3767a4eb8dc18ba4dfa3edd0fe23.go +++ b/storage/8fb5265049b92bad47cba66b5074fd9fdbbb3767a4eb8dc18ba4dfa3edd0fe23.go @@ -58,6 +58,7 @@ func (m *FileStorageContainersItemRecycleBinLastModifiedByUserServiceProvisionin return NewFileStorageContainersItemRecycleBinLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *FileStorageContainersItemRecycleBinLastModifiedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemRecycleBinLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *FileStorageContainersItemRecycleBinLastModifiedByUserServiceProvisionin return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *FileStorageContainersItemRecycleBinLastModifiedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemRecycleBinLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *FileStorageContainersItemRecycleBinLastModifiedByUserServiceProvisionin return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *FileStorageContainersItemRecycleBinLastModifiedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *FileStorageContainersItemRecycleBinLastModifiedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemRecycleBinLastModifiedByUserServiceProvisioningErrorsRequestBuilder) { return NewFileStorageContainersItemRecycleBinLastModifiedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/storage/98e9c3aa708923c750708ca5b4c5cd1351aeba656a4719cf394d9f247ef9aa3a.go b/storage/98e9c3aa708923c750708ca5b4c5cd1351aeba656a4719cf394d9f247ef9aa3a.go index c7fe7ec1587..9e99b274640 100644 --- a/storage/98e9c3aa708923c750708ca5b4c5cd1351aeba656a4719cf394d9f247ef9aa3a.go +++ b/storage/98e9c3aa708923c750708ca5b4c5cd1351aeba656a4719cf394d9f247ef9aa3a.go @@ -58,6 +58,7 @@ func (m *FileStorageContainersItemRecycleBinItemsItemLastModifiedByUserServicePr return NewFileStorageContainersItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *FileStorageContainersItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *FileStorageContainersItemRecycleBinItemsItemLastModifiedByUserServicePr return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *FileStorageContainersItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *FileStorageContainersItemRecycleBinItemsItemLastModifiedByUserServicePr return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *FileStorageContainersItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *FileStorageContainersItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder) { return NewFileStorageContainersItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/storage/9a47689ead65e184f96702fac0f6d7c868ed7d919458de86a1840444350aa3aa.go b/storage/9a47689ead65e184f96702fac0f6d7c868ed7d919458de86a1840444350aa3aa.go index 9ed16589fd0..50b31af5f6e 100644 --- a/storage/9a47689ead65e184f96702fac0f6d7c868ed7d919458de86a1840444350aa3aa.go +++ b/storage/9a47689ead65e184f96702fac0f6d7c868ed7d919458de86a1840444350aa3aa.go @@ -58,6 +58,7 @@ func (m *FileStorageDeletedContainersItemRecycleBinLastModifiedByUserServiceProv return NewFileStorageDeletedContainersItemRecycleBinLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *FileStorageDeletedContainersItemRecycleBinLastModifiedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageDeletedContainersItemRecycleBinLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *FileStorageDeletedContainersItemRecycleBinLastModifiedByUserServiceProv return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *FileStorageDeletedContainersItemRecycleBinLastModifiedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageDeletedContainersItemRecycleBinLastModifiedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *FileStorageDeletedContainersItemRecycleBinLastModifiedByUserServiceProv return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *FileStorageDeletedContainersItemRecycleBinLastModifiedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *FileStorageDeletedContainersItemRecycleBinLastModifiedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*FileStorageDeletedContainersItemRecycleBinLastModifiedByUserServiceProvisioningErrorsRequestBuilder) { return NewFileStorageDeletedContainersItemRecycleBinLastModifiedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/storage/ad664162e0c7f19ef0a58d4da77a9f8c69f44e82a88170ede32318f411c4fc27.go b/storage/ad664162e0c7f19ef0a58d4da77a9f8c69f44e82a88170ede32318f411c4fc27.go index 89dd5458e3e..ddc712bb20c 100644 --- a/storage/ad664162e0c7f19ef0a58d4da77a9f8c69f44e82a88170ede32318f411c4fc27.go +++ b/storage/ad664162e0c7f19ef0a58d4da77a9f8c69f44e82a88170ede32318f411c4fc27.go @@ -40,6 +40,7 @@ func NewFileStorageContainersItemRecycleBinItemsItemCreatedByUserServiceProvisio return NewFileStorageContainersItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *FileStorageContainersItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *FileStorageContainersItemRecycleBinItemsItemCreatedByUserServiceProvisi return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *FileStorageContainersItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *FileStorageContainersItemRecycleBinItemsItemCreatedByUserServiceProvisi return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *FileStorageContainersItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *FileStorageContainersItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewFileStorageContainersItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/storage/bd74307894b707955902b67424104179439b80a811481609c2cbfa02ee7d62c7.go b/storage/bd74307894b707955902b67424104179439b80a811481609c2cbfa02ee7d62c7.go index 2e7af177d21..8c9f3a6f560 100644 --- a/storage/bd74307894b707955902b67424104179439b80a811481609c2cbfa02ee7d62c7.go +++ b/storage/bd74307894b707955902b67424104179439b80a811481609c2cbfa02ee7d62c7.go @@ -40,6 +40,7 @@ func NewFileStorageDeletedContainersItemRecycleBinCreatedByUserServiceProvisioni return NewFileStorageDeletedContainersItemRecycleBinCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *FileStorageDeletedContainersItemRecycleBinCreatedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageDeletedContainersItemRecycleBinCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *FileStorageDeletedContainersItemRecycleBinCreatedByUserServiceProvision return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *FileStorageDeletedContainersItemRecycleBinCreatedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageDeletedContainersItemRecycleBinCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *FileStorageDeletedContainersItemRecycleBinCreatedByUserServiceProvision return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *FileStorageDeletedContainersItemRecycleBinCreatedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *FileStorageDeletedContainersItemRecycleBinCreatedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageDeletedContainersItemRecycleBinCreatedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewFileStorageDeletedContainersItemRecycleBinCreatedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/storage/de916a07201fbc6b665a1cf14bd53da79c02032d72823be744965c772ecf7fa2.go b/storage/de916a07201fbc6b665a1cf14bd53da79c02032d72823be744965c772ecf7fa2.go index 43229b3f7c4..17983fa56e8 100644 --- a/storage/de916a07201fbc6b665a1cf14bd53da79c02032d72823be744965c772ecf7fa2.go +++ b/storage/de916a07201fbc6b665a1cf14bd53da79c02032d72823be744965c772ecf7fa2.go @@ -40,6 +40,7 @@ func NewFileStorageContainersItemRecycleBinCreatedByUserServiceProvisioningError return NewFileStorageContainersItemRecycleBinCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *FileStorageContainersItemRecycleBinCreatedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemRecycleBinCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *FileStorageContainersItemRecycleBinCreatedByUserServiceProvisioningErro return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *FileStorageContainersItemRecycleBinCreatedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemRecycleBinCreatedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *FileStorageContainersItemRecycleBinCreatedByUserServiceProvisioningErro return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *FileStorageContainersItemRecycleBinCreatedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *FileStorageContainersItemRecycleBinCreatedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemRecycleBinCreatedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewFileStorageContainersItemRecycleBinCreatedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/storage/de99fe6c14bee17949428383ff2c01148be96e7703ae5beb0264bd368830d826.go b/storage/de99fe6c14bee17949428383ff2c01148be96e7703ae5beb0264bd368830d826.go index dda51fc192e..08356aece84 100644 --- a/storage/de99fe6c14bee17949428383ff2c01148be96e7703ae5beb0264bd368830d826.go +++ b/storage/de99fe6c14bee17949428383ff2c01148be96e7703ae5beb0264bd368830d826.go @@ -48,6 +48,7 @@ func NewFileStorageContainersItemRecycleBinItemsItemLastModifiedByUserMailboxSet return NewFileStorageContainersItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *FileStorageContainersItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *FileStorageContainersItemRecycleBinItemsItemLastModifiedByUserMailboxSe return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *FileStorageContainersItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *FileStorageContainersItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *FileStorageContainersItemRecycleBinItemsItemLastModifiedByUserMailboxSe return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *FileStorageContainersItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *FileStorageContainersItemRecycleBinItemsItemLastModifiedByUserMailboxSe return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *FileStorageContainersItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *FileStorageContainersItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *FileStorageContainersItemRecycleBinItemsItemLastModifiedByUserMailboxSe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *FileStorageContainersItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilder when successful func (m *FileStorageContainersItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilder) { return NewFileStorageContainersItemRecycleBinItemsItemLastModifiedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/storage/ea5e1583ee996ef530b8fde6a462bf72c21eb6d3546ba671c2dc5a9cfcd33489.go b/storage/ea5e1583ee996ef530b8fde6a462bf72c21eb6d3546ba671c2dc5a9cfcd33489.go index 35bfce35e4e..3c69307a27b 100644 --- a/storage/ea5e1583ee996ef530b8fde6a462bf72c21eb6d3546ba671c2dc5a9cfcd33489.go +++ b/storage/ea5e1583ee996ef530b8fde6a462bf72c21eb6d3546ba671c2dc5a9cfcd33489.go @@ -40,6 +40,7 @@ func NewFileStorageContainersItemRecycleBinLastModifiedByUserServiceProvisioning return NewFileStorageContainersItemRecycleBinLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *FileStorageContainersItemRecycleBinLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemRecycleBinLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *FileStorageContainersItemRecycleBinLastModifiedByUserServiceProvisionin return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *FileStorageContainersItemRecycleBinLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemRecycleBinLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *FileStorageContainersItemRecycleBinLastModifiedByUserServiceProvisionin return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *FileStorageContainersItemRecycleBinLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *FileStorageContainersItemRecycleBinLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemRecycleBinLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewFileStorageContainersItemRecycleBinLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/storage/eb6a2629fb259269741766d8da22175ec1272374c2758e834531c1d9110b5a5a.go b/storage/eb6a2629fb259269741766d8da22175ec1272374c2758e834531c1d9110b5a5a.go index 344f0eb011f..7fbbaae75c4 100644 --- a/storage/eb6a2629fb259269741766d8da22175ec1272374c2758e834531c1d9110b5a5a.go +++ b/storage/eb6a2629fb259269741766d8da22175ec1272374c2758e834531c1d9110b5a5a.go @@ -40,6 +40,7 @@ func NewFileStorageContainersItemRecycleBinItemsItemLastModifiedByUserServicePro return NewFileStorageContainersItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *FileStorageContainersItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *FileStorageContainersItemRecycleBinItemsItemLastModifiedByUserServicePr return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *FileStorageContainersItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *FileStorageContainersItemRecycleBinItemsItemLastModifiedByUserServicePr return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *FileStorageContainersItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder when successful func (m *FileStorageContainersItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder) { return NewFileStorageContainersItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/storage/file_storage_containers_item_recycle_bin_created_by_user_mailbox_settings_request_builder.go b/storage/file_storage_containers_item_recycle_bin_created_by_user_mailbox_settings_request_builder.go index 0f82d2c1645..1d2eafd1edd 100644 --- a/storage/file_storage_containers_item_recycle_bin_created_by_user_mailbox_settings_request_builder.go +++ b/storage/file_storage_containers_item_recycle_bin_created_by_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewFileStorageContainersItemRecycleBinCreatedByUserMailboxSettingsRequestBu return NewFileStorageContainersItemRecycleBinCreatedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *FileStorageContainersItemRecycleBinCreatedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemRecycleBinCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *FileStorageContainersItemRecycleBinCreatedByUserMailboxSettingsRequestB return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *FileStorageContainersItemRecycleBinCreatedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *FileStorageContainersItemRecycleBinCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *FileStorageContainersItemRecycleBinCreatedByUserMailboxSettingsRequestB return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *FileStorageContainersItemRecycleBinCreatedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemRecycleBinCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *FileStorageContainersItemRecycleBinCreatedByUserMailboxSettingsRequestB return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *FileStorageContainersItemRecycleBinCreatedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *FileStorageContainersItemRecycleBinCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *FileStorageContainersItemRecycleBinCreatedByUserMailboxSettingsRequestB return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *FileStorageContainersItemRecycleBinCreatedByUserMailboxSettingsRequestBuilder when successful func (m *FileStorageContainersItemRecycleBinCreatedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemRecycleBinCreatedByUserMailboxSettingsRequestBuilder) { return NewFileStorageContainersItemRecycleBinCreatedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/storage/file_storage_containers_item_recycle_bin_created_by_user_request_builder.go b/storage/file_storage_containers_item_recycle_bin_created_by_user_request_builder.go index a7c0ba5504d..f33c630ac6b 100644 --- a/storage/file_storage_containers_item_recycle_bin_created_by_user_request_builder.go +++ b/storage/file_storage_containers_item_recycle_bin_created_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewFileStorageContainersItemRecycleBinCreatedByUserRequestBuilder(rawUrl st return NewFileStorageContainersItemRecycleBinCreatedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get createdByUser from storage +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *FileStorageContainersItemRecycleBinCreatedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemRecycleBinCreatedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *FileStorageContainersItemRecycleBinCreatedByUserRequestBuilder) Service return NewFileStorageContainersItemRecycleBinCreatedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get createdByUser from storage +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *FileStorageContainersItemRecycleBinCreatedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemRecycleBinCreatedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *FileStorageContainersItemRecycleBinCreatedByUserRequestBuilder) ToGetRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *FileStorageContainersItemRecycleBinCreatedByUserRequestBuilder when successful func (m *FileStorageContainersItemRecycleBinCreatedByUserRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemRecycleBinCreatedByUserRequestBuilder) { return NewFileStorageContainersItemRecycleBinCreatedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/storage/file_storage_containers_item_recycle_bin_created_by_user_service_provisioning_errors_request_builder.go b/storage/file_storage_containers_item_recycle_bin_created_by_user_service_provisioning_errors_request_builder.go index e292ad9a820..71d1f1db1a3 100644 --- a/storage/file_storage_containers_item_recycle_bin_created_by_user_service_provisioning_errors_request_builder.go +++ b/storage/file_storage_containers_item_recycle_bin_created_by_user_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *FileStorageContainersItemRecycleBinCreatedByUserServiceProvisioningErro return NewFileStorageContainersItemRecycleBinCreatedByUserServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *FileStorageContainersItemRecycleBinCreatedByUserServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemRecycleBinCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *FileStorageContainersItemRecycleBinCreatedByUserServiceProvisioningErro return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *FileStorageContainersItemRecycleBinCreatedByUserServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemRecycleBinCreatedByUserServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *FileStorageContainersItemRecycleBinCreatedByUserServiceProvisioningErro return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *FileStorageContainersItemRecycleBinCreatedByUserServiceProvisioningErrorsRequestBuilder when successful func (m *FileStorageContainersItemRecycleBinCreatedByUserServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemRecycleBinCreatedByUserServiceProvisioningErrorsRequestBuilder) { return NewFileStorageContainersItemRecycleBinCreatedByUserServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/storage/file_storage_containers_item_recycle_bin_items_item_created_by_user_mailbox_settings_request_builder.go b/storage/file_storage_containers_item_recycle_bin_items_item_created_by_user_mailbox_settings_request_builder.go index fd8f18417b0..4a352da63e3 100644 --- a/storage/file_storage_containers_item_recycle_bin_items_item_created_by_user_mailbox_settings_request_builder.go +++ b/storage/file_storage_containers_item_recycle_bin_items_item_created_by_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewFileStorageContainersItemRecycleBinItemsItemCreatedByUserMailboxSettings return NewFileStorageContainersItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *FileStorageContainersItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *FileStorageContainersItemRecycleBinItemsItemCreatedByUserMailboxSetting return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *FileStorageContainersItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *FileStorageContainersItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *FileStorageContainersItemRecycleBinItemsItemCreatedByUserMailboxSetting return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *FileStorageContainersItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *FileStorageContainersItemRecycleBinItemsItemCreatedByUserMailboxSetting return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *FileStorageContainersItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *FileStorageContainersItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *FileStorageContainersItemRecycleBinItemsItemCreatedByUserMailboxSetting return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *FileStorageContainersItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilder when successful func (m *FileStorageContainersItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilder) { return NewFileStorageContainersItemRecycleBinItemsItemCreatedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/storage/file_storage_containers_item_recycle_bin_items_item_created_by_user_request_builder.go b/storage/file_storage_containers_item_recycle_bin_items_item_created_by_user_request_builder.go index b7fdf5736b8..90cc7bc076e 100644 --- a/storage/file_storage_containers_item_recycle_bin_items_item_created_by_user_request_builder.go +++ b/storage/file_storage_containers_item_recycle_bin_items_item_created_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewFileStorageContainersItemRecycleBinItemsItemCreatedByUserRequestBuilder( return NewFileStorageContainersItemRecycleBinItemsItemCreatedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get createdByUser from storage +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *FileStorageContainersItemRecycleBinItemsItemCreatedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemRecycleBinItemsItemCreatedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *FileStorageContainersItemRecycleBinItemsItemCreatedByUserRequestBuilder return NewFileStorageContainersItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get createdByUser from storage +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *FileStorageContainersItemRecycleBinItemsItemCreatedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemRecycleBinItemsItemCreatedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *FileStorageContainersItemRecycleBinItemsItemCreatedByUserRequestBuilder return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *FileStorageContainersItemRecycleBinItemsItemCreatedByUserRequestBuilder when successful func (m *FileStorageContainersItemRecycleBinItemsItemCreatedByUserRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemRecycleBinItemsItemCreatedByUserRequestBuilder) { return NewFileStorageContainersItemRecycleBinItemsItemCreatedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/storage/file_storage_containers_item_recycle_bin_items_item_last_modified_by_user_request_builder.go b/storage/file_storage_containers_item_recycle_bin_items_item_last_modified_by_user_request_builder.go index 7ea653c16c2..ddc6fc69440 100644 --- a/storage/file_storage_containers_item_recycle_bin_items_item_last_modified_by_user_request_builder.go +++ b/storage/file_storage_containers_item_recycle_bin_items_item_last_modified_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewFileStorageContainersItemRecycleBinItemsItemLastModifiedByUserRequestBui return NewFileStorageContainersItemRecycleBinItemsItemLastModifiedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get lastModifiedByUser from storage +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *FileStorageContainersItemRecycleBinItemsItemLastModifiedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemRecycleBinItemsItemLastModifiedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *FileStorageContainersItemRecycleBinItemsItemLastModifiedByUserRequestBu return NewFileStorageContainersItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get lastModifiedByUser from storage +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *FileStorageContainersItemRecycleBinItemsItemLastModifiedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemRecycleBinItemsItemLastModifiedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *FileStorageContainersItemRecycleBinItemsItemLastModifiedByUserRequestBu return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *FileStorageContainersItemRecycleBinItemsItemLastModifiedByUserRequestBuilder when successful func (m *FileStorageContainersItemRecycleBinItemsItemLastModifiedByUserRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemRecycleBinItemsItemLastModifiedByUserRequestBuilder) { return NewFileStorageContainersItemRecycleBinItemsItemLastModifiedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/storage/file_storage_containers_item_recycle_bin_last_modified_by_user_mailbox_settings_request_builder.go b/storage/file_storage_containers_item_recycle_bin_last_modified_by_user_mailbox_settings_request_builder.go index a7eaf9bd856..90b7cad8f88 100644 --- a/storage/file_storage_containers_item_recycle_bin_last_modified_by_user_mailbox_settings_request_builder.go +++ b/storage/file_storage_containers_item_recycle_bin_last_modified_by_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewFileStorageContainersItemRecycleBinLastModifiedByUserMailboxSettingsRequ return NewFileStorageContainersItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *FileStorageContainersItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *FileStorageContainersItemRecycleBinLastModifiedByUserMailboxSettingsReq return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *FileStorageContainersItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *FileStorageContainersItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *FileStorageContainersItemRecycleBinLastModifiedByUserMailboxSettingsReq return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *FileStorageContainersItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *FileStorageContainersItemRecycleBinLastModifiedByUserMailboxSettingsReq return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *FileStorageContainersItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *FileStorageContainersItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *FileStorageContainersItemRecycleBinLastModifiedByUserMailboxSettingsReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *FileStorageContainersItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilder when successful func (m *FileStorageContainersItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilder) { return NewFileStorageContainersItemRecycleBinLastModifiedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/storage/file_storage_containers_item_recycle_bin_last_modified_by_user_request_builder.go b/storage/file_storage_containers_item_recycle_bin_last_modified_by_user_request_builder.go index 82d777f73b2..0f75cd0e054 100644 --- a/storage/file_storage_containers_item_recycle_bin_last_modified_by_user_request_builder.go +++ b/storage/file_storage_containers_item_recycle_bin_last_modified_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewFileStorageContainersItemRecycleBinLastModifiedByUserRequestBuilder(rawU return NewFileStorageContainersItemRecycleBinLastModifiedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get lastModifiedByUser from storage +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *FileStorageContainersItemRecycleBinLastModifiedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageContainersItemRecycleBinLastModifiedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *FileStorageContainersItemRecycleBinLastModifiedByUserRequestBuilder) Se return NewFileStorageContainersItemRecycleBinLastModifiedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get lastModifiedByUser from storage +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *FileStorageContainersItemRecycleBinLastModifiedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageContainersItemRecycleBinLastModifiedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *FileStorageContainersItemRecycleBinLastModifiedByUserRequestBuilder) To return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *FileStorageContainersItemRecycleBinLastModifiedByUserRequestBuilder when successful func (m *FileStorageContainersItemRecycleBinLastModifiedByUserRequestBuilder) WithUrl(rawUrl string)(*FileStorageContainersItemRecycleBinLastModifiedByUserRequestBuilder) { return NewFileStorageContainersItemRecycleBinLastModifiedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/storage/file_storage_deleted_containers_item_recycle_bin_created_by_user_mailbox_settings_request_builder.go b/storage/file_storage_deleted_containers_item_recycle_bin_created_by_user_mailbox_settings_request_builder.go index a9455ac333b..46602177d39 100644 --- a/storage/file_storage_deleted_containers_item_recycle_bin_created_by_user_mailbox_settings_request_builder.go +++ b/storage/file_storage_deleted_containers_item_recycle_bin_created_by_user_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewFileStorageDeletedContainersItemRecycleBinCreatedByUserMailboxSettingsRe return NewFileStorageDeletedContainersItemRecycleBinCreatedByUserMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *FileStorageDeletedContainersItemRecycleBinCreatedByUserMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageDeletedContainersItemRecycleBinCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *FileStorageDeletedContainersItemRecycleBinCreatedByUserMailboxSettingsR return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *FileStorageDeletedContainersItemRecycleBinCreatedByUserMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *FileStorageDeletedContainersItemRecycleBinCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *FileStorageDeletedContainersItemRecycleBinCreatedByUserMailboxSettingsR return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *FileStorageDeletedContainersItemRecycleBinCreatedByUserMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageDeletedContainersItemRecycleBinCreatedByUserMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *FileStorageDeletedContainersItemRecycleBinCreatedByUserMailboxSettingsR return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *FileStorageDeletedContainersItemRecycleBinCreatedByUserMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *FileStorageDeletedContainersItemRecycleBinCreatedByUserMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *FileStorageDeletedContainersItemRecycleBinCreatedByUserMailboxSettingsR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *FileStorageDeletedContainersItemRecycleBinCreatedByUserMailboxSettingsRequestBuilder when successful func (m *FileStorageDeletedContainersItemRecycleBinCreatedByUserMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*FileStorageDeletedContainersItemRecycleBinCreatedByUserMailboxSettingsRequestBuilder) { return NewFileStorageDeletedContainersItemRecycleBinCreatedByUserMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/storage/file_storage_deleted_containers_item_recycle_bin_created_by_user_request_builder.go b/storage/file_storage_deleted_containers_item_recycle_bin_created_by_user_request_builder.go index cdbf790fa9f..99b922201ea 100644 --- a/storage/file_storage_deleted_containers_item_recycle_bin_created_by_user_request_builder.go +++ b/storage/file_storage_deleted_containers_item_recycle_bin_created_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewFileStorageDeletedContainersItemRecycleBinCreatedByUserRequestBuilder(ra return NewFileStorageDeletedContainersItemRecycleBinCreatedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get createdByUser from storage +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *FileStorageDeletedContainersItemRecycleBinCreatedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageDeletedContainersItemRecycleBinCreatedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *FileStorageDeletedContainersItemRecycleBinCreatedByUserRequestBuilder) return NewFileStorageDeletedContainersItemRecycleBinCreatedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get createdByUser from storage +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *FileStorageDeletedContainersItemRecycleBinCreatedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageDeletedContainersItemRecycleBinCreatedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *FileStorageDeletedContainersItemRecycleBinCreatedByUserRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *FileStorageDeletedContainersItemRecycleBinCreatedByUserRequestBuilder when successful func (m *FileStorageDeletedContainersItemRecycleBinCreatedByUserRequestBuilder) WithUrl(rawUrl string)(*FileStorageDeletedContainersItemRecycleBinCreatedByUserRequestBuilder) { return NewFileStorageDeletedContainersItemRecycleBinCreatedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/storage/file_storage_deleted_containers_item_recycle_bin_items_item_created_by_user_request_builder.go b/storage/file_storage_deleted_containers_item_recycle_bin_items_item_created_by_user_request_builder.go index c0dd734e88b..f6a13d3dc75 100644 --- a/storage/file_storage_deleted_containers_item_recycle_bin_items_item_created_by_user_request_builder.go +++ b/storage/file_storage_deleted_containers_item_recycle_bin_items_item_created_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewFileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserRequestB return NewFileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get createdByUser from storage +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *FileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *FileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserRequest return NewFileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get createdByUser from storage +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *FileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *FileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *FileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserRequestBuilder when successful func (m *FileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserRequestBuilder) WithUrl(rawUrl string)(*FileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserRequestBuilder) { return NewFileStorageDeletedContainersItemRecycleBinItemsItemCreatedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/storage/file_storage_deleted_containers_item_recycle_bin_items_item_last_modified_by_user_request_builder.go b/storage/file_storage_deleted_containers_item_recycle_bin_items_item_last_modified_by_user_request_builder.go index 85055f020fe..ee2c72ac00b 100644 --- a/storage/file_storage_deleted_containers_item_recycle_bin_items_item_last_modified_by_user_request_builder.go +++ b/storage/file_storage_deleted_containers_item_recycle_bin_items_item_last_modified_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewFileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserReq return NewFileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get lastModifiedByUser from storage +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *FileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *FileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserRe return NewFileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get lastModifiedByUser from storage +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *FileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *FileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *FileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserRequestBuilder when successful func (m *FileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserRequestBuilder) WithUrl(rawUrl string)(*FileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserRequestBuilder) { return NewFileStorageDeletedContainersItemRecycleBinItemsItemLastModifiedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/storage/file_storage_deleted_containers_item_recycle_bin_last_modified_by_user_request_builder.go b/storage/file_storage_deleted_containers_item_recycle_bin_last_modified_by_user_request_builder.go index 284cf1eabcb..c08a913ed5c 100644 --- a/storage/file_storage_deleted_containers_item_recycle_bin_last_modified_by_user_request_builder.go +++ b/storage/file_storage_deleted_containers_item_recycle_bin_last_modified_by_user_request_builder.go @@ -41,6 +41,7 @@ func NewFileStorageDeletedContainersItemRecycleBinLastModifiedByUserRequestBuild return NewFileStorageDeletedContainersItemRecycleBinLastModifiedByUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get lastModifiedByUser from storage +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *FileStorageDeletedContainersItemRecycleBinLastModifiedByUserRequestBuilder) Get(ctx context.Context, requestConfiguration *FileStorageDeletedContainersItemRecycleBinLastModifiedByUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *FileStorageDeletedContainersItemRecycleBinLastModifiedByUserRequestBuil return NewFileStorageDeletedContainersItemRecycleBinLastModifiedByUserServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get lastModifiedByUser from storage +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *FileStorageDeletedContainersItemRecycleBinLastModifiedByUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FileStorageDeletedContainersItemRecycleBinLastModifiedByUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *FileStorageDeletedContainersItemRecycleBinLastModifiedByUserRequestBuil return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *FileStorageDeletedContainersItemRecycleBinLastModifiedByUserRequestBuilder when successful func (m *FileStorageDeletedContainersItemRecycleBinLastModifiedByUserRequestBuilder) WithUrl(rawUrl string)(*FileStorageDeletedContainersItemRecycleBinLastModifiedByUserRequestBuilder) { return NewFileStorageDeletedContainersItemRecycleBinLastModifiedByUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/teams/item_channels_item_messages_request_builder.go b/teams/item_channels_item_messages_request_builder.go index cac9b31c00e..9f3082012e7 100644 --- a/teams/item_channels_item_messages_request_builder.go +++ b/teams/item_channels_item_messages_request_builder.go @@ -104,12 +104,12 @@ func (m *ItemChannelsItemMessagesRequestBuilder) Get(ctx context.Context, reques } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageCollectionResponseable), nil } -// Post send a new chatMessage in the specified channel. +// Post send a new chatMessage in the specified channel or a chat. // returns a ChatMessageable 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/channel-post-messages?view=graph-rest-beta +// [Find more info here]: https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-beta func (m *ItemChannelsItemMessagesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *ItemChannelsItemMessagesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); if err != nil { @@ -141,7 +141,7 @@ func (m *ItemChannelsItemMessagesRequestBuilder) ToGetRequestInformation(ctx con requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation send a new chatMessage in the specified channel. +// ToPostRequestInformation send a new chatMessage in the specified channel or a chat. // returns a *RequestInformation when successful func (m *ItemChannelsItemMessagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *ItemChannelsItemMessagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/teams/item_owners_count_request_builder.go b/teams/item_owners_count_request_builder.go index 2ce9dca3141..553b2046e73 100644 --- a/teams/item_owners_count_request_builder.go +++ b/teams/item_owners_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemOwnersCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7da return NewItemOwnersCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOwnersCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOwnersCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemOwnersCountRequestBuilder) Get(ctx context.Context, requestConfigur return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOwnersCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnersCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemOwnersCountRequestBuilder) ToGetRequestInformation(ctx context.Cont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOwnersCountRequestBuilder when successful func (m *ItemOwnersCountRequestBuilder) WithUrl(rawUrl string)(*ItemOwnersCountRequestBuilder) { return NewItemOwnersCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/teams/item_owners_item_mailbox_settings_request_builder.go b/teams/item_owners_item_mailbox_settings_request_builder.go index 43a5c02c204..f9d30279b16 100644 --- a/teams/item_owners_item_mailbox_settings_request_builder.go +++ b/teams/item_owners_item_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewItemOwnersItemMailboxSettingsRequestBuilder(rawUrl string, requestAdapte return NewItemOwnersItemMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOwnersItemMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOwnersItemMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *ItemOwnersItemMailboxSettingsRequestBuilder) Get(ctx context.Context, r return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOwnersItemMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemOwnersItemMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *ItemOwnersItemMailboxSettingsRequestBuilder) Patch(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOwnersItemMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnersItemMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *ItemOwnersItemMailboxSettingsRequestBuilder) ToGetRequestInformation(ct return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOwnersItemMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemOwnersItemMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemOwnersItemMailboxSettingsRequestBuilder) ToPatchRequestInformation( return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOwnersItemMailboxSettingsRequestBuilder when successful func (m *ItemOwnersItemMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemOwnersItemMailboxSettingsRequestBuilder) { return NewItemOwnersItemMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/teams/item_owners_item_service_provisioning_errors_count_request_builder.go b/teams/item_owners_item_service_provisioning_errors_count_request_builder.go index 1923af1d4d3..3f903e307d0 100644 --- a/teams/item_owners_item_service_provisioning_errors_count_request_builder.go +++ b/teams/item_owners_item_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemOwnersItemServiceProvisioningErrorsCountRequestBuilder(rawUrl string return NewItemOwnersItemServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOwnersItemServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOwnersItemServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemOwnersItemServiceProvisioningErrorsCountRequestBuilder) Get(ctx con return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOwnersItemServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnersItemServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemOwnersItemServiceProvisioningErrorsCountRequestBuilder) ToGetReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOwnersItemServiceProvisioningErrorsCountRequestBuilder when successful func (m *ItemOwnersItemServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemOwnersItemServiceProvisioningErrorsCountRequestBuilder) { return NewItemOwnersItemServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/teams/item_owners_item_service_provisioning_errors_request_builder.go b/teams/item_owners_item_service_provisioning_errors_request_builder.go index 41353f3ebd7..8c7a2fe2421 100644 --- a/teams/item_owners_item_service_provisioning_errors_request_builder.go +++ b/teams/item_owners_item_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemOwnersItemServiceProvisioningErrorsRequestBuilder) Count()(*ItemOwn return NewItemOwnersItemServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOwnersItemServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOwnersItemServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemOwnersItemServiceProvisioningErrorsRequestBuilder) Get(ctx context. return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOwnersItemServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnersItemServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemOwnersItemServiceProvisioningErrorsRequestBuilder) ToGetRequestInfo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOwnersItemServiceProvisioningErrorsRequestBuilder when successful func (m *ItemOwnersItemServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*ItemOwnersItemServiceProvisioningErrorsRequestBuilder) { return NewItemOwnersItemServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/teams/item_owners_request_builder.go b/teams/item_owners_request_builder.go index 2c70ad40c96..9a580c3ea18 100644 --- a/teams/item_owners_request_builder.go +++ b/teams/item_owners_request_builder.go @@ -40,6 +40,7 @@ type ItemOwnersRequestBuilderGetRequestConfiguration struct { QueryParameters *ItemOwnersRequestBuilderGetQueryParameters } // ByUserId provides operations to manage the owners property of the microsoft.graph.team entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOwnersUserItemRequestBuilder when successful func (m *ItemOwnersRequestBuilder) ByUserId(userId string)(*ItemOwnersUserItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -70,6 +71,7 @@ func (m *ItemOwnersRequestBuilder) Count()(*ItemOwnersCountRequestBuilder) { return NewItemOwnersCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the list of this team's owners. Currently, when creating a team using application permissions, exactly one owner must be specified. When using user-delegated permissions, no owner can be specified (the current user is the owner). The owner must be specified as an object ID (GUID), not a UPN. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOwnersRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOwnersRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable, error) { @@ -90,6 +92,7 @@ func (m *ItemOwnersRequestBuilder) Get(ctx context.Context, requestConfiguration return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable), nil } // ToGetRequestInformation the list of this team's owners. Currently, when creating a team using application permissions, exactly one owner must be specified. When using user-delegated permissions, no owner can be specified (the current user is the owner). The owner must be specified as an object ID (GUID), not a UPN. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOwnersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -104,6 +107,7 @@ func (m *ItemOwnersRequestBuilder) ToGetRequestInformation(ctx context.Context, return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOwnersRequestBuilder when successful func (m *ItemOwnersRequestBuilder) WithUrl(rawUrl string)(*ItemOwnersRequestBuilder) { return NewItemOwnersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/teams/item_owners_user_item_request_builder.go b/teams/item_owners_user_item_request_builder.go index 08df03df741..722c34e9143 100644 --- a/teams/item_owners_user_item_request_builder.go +++ b/teams/item_owners_user_item_request_builder.go @@ -41,6 +41,7 @@ func NewItemOwnersUserItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f return NewItemOwnersUserItemRequestBuilderInternal(urlParams, requestAdapter) } // Get the list of this team's owners. Currently, when creating a team using application permissions, exactly one owner must be specified. When using user-delegated permissions, no owner can be specified (the current user is the owner). The owner must be specified as an object ID (GUID), not a UPN. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOwnersUserItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOwnersUserItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *ItemOwnersUserItemRequestBuilder) ServiceProvisioningErrors()(*ItemOwne return NewItemOwnersItemServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation the list of this team's owners. Currently, when creating a team using application permissions, exactly one owner must be specified. When using user-delegated permissions, no owner can be specified (the current user is the owner). The owner must be specified as an object ID (GUID), not a UPN. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOwnersUserItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnersUserItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemOwnersUserItemRequestBuilder) ToGetRequestInformation(ctx context.C return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOwnersUserItemRequestBuilder when successful func (m *ItemOwnersUserItemRequestBuilder) WithUrl(rawUrl string)(*ItemOwnersUserItemRequestBuilder) { return NewItemOwnersUserItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/teamtemplatedefinition/item_team_definition_owners_count_request_builder.go b/teamtemplatedefinition/item_team_definition_owners_count_request_builder.go index d99bccb07dc..8fc49d9f8b2 100644 --- a/teamtemplatedefinition/item_team_definition_owners_count_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_owners_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemTeamDefinitionOwnersCountRequestBuilder(rawUrl string, requestAdapte return NewItemTeamDefinitionOwnersCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTeamDefinitionOwnersCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamDefinitionOwnersCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemTeamDefinitionOwnersCountRequestBuilder) Get(ctx context.Context, r return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTeamDefinitionOwnersCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamDefinitionOwnersCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemTeamDefinitionOwnersCountRequestBuilder) ToGetRequestInformation(ct return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTeamDefinitionOwnersCountRequestBuilder when successful func (m *ItemTeamDefinitionOwnersCountRequestBuilder) WithUrl(rawUrl string)(*ItemTeamDefinitionOwnersCountRequestBuilder) { return NewItemTeamDefinitionOwnersCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/teamtemplatedefinition/item_team_definition_owners_item_mailbox_settings_request_builder.go b/teamtemplatedefinition/item_team_definition_owners_item_mailbox_settings_request_builder.go index 7601efd8ffc..3761063b7d5 100644 --- a/teamtemplatedefinition/item_team_definition_owners_item_mailbox_settings_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_owners_item_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewItemTeamDefinitionOwnersItemMailboxSettingsRequestBuilder(rawUrl string, return NewItemTeamDefinitionOwnersItemMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTeamDefinitionOwnersItemMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamDefinitionOwnersItemMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *ItemTeamDefinitionOwnersItemMailboxSettingsRequestBuilder) Get(ctx cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTeamDefinitionOwnersItemMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemTeamDefinitionOwnersItemMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *ItemTeamDefinitionOwnersItemMailboxSettingsRequestBuilder) Patch(ctx co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTeamDefinitionOwnersItemMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamDefinitionOwnersItemMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *ItemTeamDefinitionOwnersItemMailboxSettingsRequestBuilder) ToGetRequest return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTeamDefinitionOwnersItemMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemTeamDefinitionOwnersItemMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemTeamDefinitionOwnersItemMailboxSettingsRequestBuilder) ToPatchReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTeamDefinitionOwnersItemMailboxSettingsRequestBuilder when successful func (m *ItemTeamDefinitionOwnersItemMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemTeamDefinitionOwnersItemMailboxSettingsRequestBuilder) { return NewItemTeamDefinitionOwnersItemMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/teamtemplatedefinition/item_team_definition_owners_item_service_provisioning_errors_count_request_builder.go b/teamtemplatedefinition/item_team_definition_owners_item_service_provisioning_errors_count_request_builder.go index a1c1c7c16c7..2e60e071596 100644 --- a/teamtemplatedefinition/item_team_definition_owners_item_service_provisioning_errors_count_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_owners_item_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemTeamDefinitionOwnersItemServiceProvisioningErrorsCountRequestBuilder return NewItemTeamDefinitionOwnersItemServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTeamDefinitionOwnersItemServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamDefinitionOwnersItemServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemTeamDefinitionOwnersItemServiceProvisioningErrorsCountRequestBuilde return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTeamDefinitionOwnersItemServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamDefinitionOwnersItemServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemTeamDefinitionOwnersItemServiceProvisioningErrorsCountRequestBuilde return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTeamDefinitionOwnersItemServiceProvisioningErrorsCountRequestBuilder when successful func (m *ItemTeamDefinitionOwnersItemServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemTeamDefinitionOwnersItemServiceProvisioningErrorsCountRequestBuilder) { return NewItemTeamDefinitionOwnersItemServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/teamtemplatedefinition/item_team_definition_owners_item_service_provisioning_errors_request_builder.go b/teamtemplatedefinition/item_team_definition_owners_item_service_provisioning_errors_request_builder.go index 78d0bad4af0..ff58474a22f 100644 --- a/teamtemplatedefinition/item_team_definition_owners_item_service_provisioning_errors_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_owners_item_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemTeamDefinitionOwnersItemServiceProvisioningErrorsRequestBuilder) Co return NewItemTeamDefinitionOwnersItemServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTeamDefinitionOwnersItemServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamDefinitionOwnersItemServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemTeamDefinitionOwnersItemServiceProvisioningErrorsRequestBuilder) Ge return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTeamDefinitionOwnersItemServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamDefinitionOwnersItemServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemTeamDefinitionOwnersItemServiceProvisioningErrorsRequestBuilder) To return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTeamDefinitionOwnersItemServiceProvisioningErrorsRequestBuilder when successful func (m *ItemTeamDefinitionOwnersItemServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*ItemTeamDefinitionOwnersItemServiceProvisioningErrorsRequestBuilder) { return NewItemTeamDefinitionOwnersItemServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/teamtemplatedefinition/item_team_definition_owners_request_builder.go b/teamtemplatedefinition/item_team_definition_owners_request_builder.go index a9746daf3de..55d8e2528ab 100644 --- a/teamtemplatedefinition/item_team_definition_owners_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_owners_request_builder.go @@ -40,6 +40,7 @@ type ItemTeamDefinitionOwnersRequestBuilderGetRequestConfiguration struct { QueryParameters *ItemTeamDefinitionOwnersRequestBuilderGetQueryParameters } // ByUserId provides operations to manage the owners property of the microsoft.graph.team entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTeamDefinitionOwnersUserItemRequestBuilder when successful func (m *ItemTeamDefinitionOwnersRequestBuilder) ByUserId(userId string)(*ItemTeamDefinitionOwnersUserItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -70,6 +71,7 @@ func (m *ItemTeamDefinitionOwnersRequestBuilder) Count()(*ItemTeamDefinitionOwne return NewItemTeamDefinitionOwnersCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the list of this team's owners. Currently, when creating a team using application permissions, exactly one owner must be specified. When using user-delegated permissions, no owner can be specified (the current user is the owner). The owner must be specified as an object ID (GUID), not a UPN. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTeamDefinitionOwnersRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamDefinitionOwnersRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable, error) { @@ -90,6 +92,7 @@ func (m *ItemTeamDefinitionOwnersRequestBuilder) Get(ctx context.Context, reques return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable), nil } // ToGetRequestInformation the list of this team's owners. Currently, when creating a team using application permissions, exactly one owner must be specified. When using user-delegated permissions, no owner can be specified (the current user is the owner). The owner must be specified as an object ID (GUID), not a UPN. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTeamDefinitionOwnersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamDefinitionOwnersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -104,6 +107,7 @@ func (m *ItemTeamDefinitionOwnersRequestBuilder) ToGetRequestInformation(ctx con return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTeamDefinitionOwnersRequestBuilder when successful func (m *ItemTeamDefinitionOwnersRequestBuilder) WithUrl(rawUrl string)(*ItemTeamDefinitionOwnersRequestBuilder) { return NewItemTeamDefinitionOwnersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/teamtemplatedefinition/item_team_definition_owners_user_item_request_builder.go b/teamtemplatedefinition/item_team_definition_owners_user_item_request_builder.go index 09028eb4037..6d154ed5e58 100644 --- a/teamtemplatedefinition/item_team_definition_owners_user_item_request_builder.go +++ b/teamtemplatedefinition/item_team_definition_owners_user_item_request_builder.go @@ -41,6 +41,7 @@ func NewItemTeamDefinitionOwnersUserItemRequestBuilder(rawUrl string, requestAda return NewItemTeamDefinitionOwnersUserItemRequestBuilderInternal(urlParams, requestAdapter) } // Get the list of this team's owners. Currently, when creating a team using application permissions, exactly one owner must be specified. When using user-delegated permissions, no owner can be specified (the current user is the owner). The owner must be specified as an object ID (GUID), not a UPN. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTeamDefinitionOwnersUserItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamDefinitionOwnersUserItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *ItemTeamDefinitionOwnersUserItemRequestBuilder) ServiceProvisioningErro return NewItemTeamDefinitionOwnersItemServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation the list of this team's owners. Currently, when creating a team using application permissions, exactly one owner must be specified. When using user-delegated permissions, no owner can be specified (the current user is the owner). The owner must be specified as an object ID (GUID), not a UPN. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTeamDefinitionOwnersUserItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamDefinitionOwnersUserItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemTeamDefinitionOwnersUserItemRequestBuilder) ToGetRequestInformation return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTeamDefinitionOwnersUserItemRequestBuilder when successful func (m *ItemTeamDefinitionOwnersUserItemRequestBuilder) WithUrl(rawUrl string)(*ItemTeamDefinitionOwnersUserItemRequestBuilder) { return NewItemTeamDefinitionOwnersUserItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/teamwork/0d4565c66e3ee941cf5f911ad8506d0c5e054ee04085016a264db9d241722750.go b/teamwork/0d4565c66e3ee941cf5f911ad8506d0c5e054ee04085016a264db9d241722750.go index 5a69b122f3d..fe5673bdac1 100644 --- a/teamwork/0d4565c66e3ee941cf5f911ad8506d0c5e054ee04085016a264db9d241722750.go +++ b/teamwork/0d4565c66e3ee941cf5f911ad8506d0c5e054ee04085016a264db9d241722750.go @@ -58,6 +58,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersItemServiceProvisio return NewTeamTemplatesItemDefinitionsItemTeamDefinitionOwnersItemServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersItemServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersItemServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersItemServiceProvisio return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersItemServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersItemServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersItemServiceProvisio return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersItemServiceProvisioningErrorsRequestBuilder when successful func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersItemServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersItemServiceProvisioningErrorsRequestBuilder) { return NewTeamTemplatesItemDefinitionsItemTeamDefinitionOwnersItemServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/teamwork/43d515a7129f1fc08dfad4582560c2dbd6ead139e63404b1a4332e37e67d4ba1.go b/teamwork/43d515a7129f1fc08dfad4582560c2dbd6ead139e63404b1a4332e37e67d4ba1.go index aafb4cdaac0..282d822ebda 100644 --- a/teamwork/43d515a7129f1fc08dfad4582560c2dbd6ead139e63404b1a4332e37e67d4ba1.go +++ b/teamwork/43d515a7129f1fc08dfad4582560c2dbd6ead139e63404b1a4332e37e67d4ba1.go @@ -40,6 +40,7 @@ func NewTeamTemplatesItemDefinitionsItemTeamDefinitionOwnersItemServiceProvision return NewTeamTemplatesItemDefinitionsItemTeamDefinitionOwnersItemServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersItemServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersItemServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersItemServiceProvisio return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersItemServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersItemServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersItemServiceProvisio return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersItemServiceProvisioningErrorsCountRequestBuilder when successful func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersItemServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersItemServiceProvisioningErrorsCountRequestBuilder) { return NewTeamTemplatesItemDefinitionsItemTeamDefinitionOwnersItemServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/teamwork/team_templates_item_definitions_item_team_definition_owners_count_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_owners_count_request_builder.go index 47180bb9f39..5c0d3d1357f 100644 --- a/teamwork/team_templates_item_definitions_item_team_definition_owners_count_request_builder.go +++ b/teamwork/team_templates_item_definitions_item_team_definition_owners_count_request_builder.go @@ -40,6 +40,7 @@ func NewTeamTemplatesItemDefinitionsItemTeamDefinitionOwnersCountRequestBuilder( return NewTeamTemplatesItemDefinitionsItemTeamDefinitionOwnersCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersCountRequestBuilder) Get(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersCountRequestBuilder return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersCountRequestBuilder return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersCountRequestBuilder when successful func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersCountRequestBuilder) WithUrl(rawUrl string)(*TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersCountRequestBuilder) { return NewTeamTemplatesItemDefinitionsItemTeamDefinitionOwnersCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/teamwork/team_templates_item_definitions_item_team_definition_owners_item_mailbox_settings_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_owners_item_mailbox_settings_request_builder.go index 73075953532..9cb1038e6f7 100644 --- a/teamwork/team_templates_item_definitions_item_team_definition_owners_item_mailbox_settings_request_builder.go +++ b/teamwork/team_templates_item_definitions_item_team_definition_owners_item_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewTeamTemplatesItemDefinitionsItemTeamDefinitionOwnersItemMailboxSettingsR return NewTeamTemplatesItemDefinitionsItemTeamDefinitionOwnersItemMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersItemMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersItemMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersItemMailboxSettings return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersItemMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersItemMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersItemMailboxSettings return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersItemMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersItemMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersItemMailboxSettings return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersItemMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersItemMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersItemMailboxSettings return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersItemMailboxSettingsRequestBuilder when successful func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersItemMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersItemMailboxSettingsRequestBuilder) { return NewTeamTemplatesItemDefinitionsItemTeamDefinitionOwnersItemMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/teamwork/team_templates_item_definitions_item_team_definition_owners_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_owners_request_builder.go index deda4656e39..5d3e640de5b 100644 --- a/teamwork/team_templates_item_definitions_item_team_definition_owners_request_builder.go +++ b/teamwork/team_templates_item_definitions_item_team_definition_owners_request_builder.go @@ -40,6 +40,7 @@ type TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersRequestBuilderGetReques QueryParameters *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersRequestBuilderGetQueryParameters } // ByUserId provides operations to manage the owners property of the microsoft.graph.team entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersUserItemRequestBuilder when successful func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersRequestBuilder) ByUserId(userId string)(*TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersUserItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -70,6 +71,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersRequestBuilder) Cou return NewTeamTemplatesItemDefinitionsItemTeamDefinitionOwnersCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the list of this team's owners. Currently, when creating a team using application permissions, exactly one owner must be specified. When using user-delegated permissions, no owner can be specified (the current user is the owner). The owner must be specified as an object ID (GUID), not a UPN. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersRequestBuilder) Get(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable, error) { @@ -90,6 +92,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersRequestBuilder) Get return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable), nil } // ToGetRequestInformation the list of this team's owners. Currently, when creating a team using application permissions, exactly one owner must be specified. When using user-delegated permissions, no owner can be specified (the current user is the owner). The owner must be specified as an object ID (GUID), not a UPN. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -104,6 +107,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersRequestBuilder) ToG return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersRequestBuilder when successful func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersRequestBuilder) WithUrl(rawUrl string)(*TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersRequestBuilder) { return NewTeamTemplatesItemDefinitionsItemTeamDefinitionOwnersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/teamwork/team_templates_item_definitions_item_team_definition_owners_user_item_request_builder.go b/teamwork/team_templates_item_definitions_item_team_definition_owners_user_item_request_builder.go index f7a9cbf0962..89136a18ab7 100644 --- a/teamwork/team_templates_item_definitions_item_team_definition_owners_user_item_request_builder.go +++ b/teamwork/team_templates_item_definitions_item_team_definition_owners_user_item_request_builder.go @@ -41,6 +41,7 @@ func NewTeamTemplatesItemDefinitionsItemTeamDefinitionOwnersUserItemRequestBuild return NewTeamTemplatesItemDefinitionsItemTeamDefinitionOwnersUserItemRequestBuilderInternal(urlParams, requestAdapter) } // Get the list of this team's owners. Currently, when creating a team using application permissions, exactly one owner must be specified. When using user-delegated permissions, no owner can be specified (the current user is the owner). The owner must be specified as an object ID (GUID), not a UPN. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersUserItemRequestBuilder) Get(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersUserItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -71,6 +72,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersUserItemRequestBuil return NewTeamTemplatesItemDefinitionsItemTeamDefinitionOwnersItemServiceProvisioningErrorsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation the list of this team's owners. Currently, when creating a team using application permissions, exactly one owner must be specified. When using user-delegated permissions, no owner can be specified (the current user is the owner). The owner must be specified as an object ID (GUID), not a UPN. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersUserItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersUserItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersUserItemRequestBuil return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersUserItemRequestBuilder when successful func (m *TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersUserItemRequestBuilder) WithUrl(rawUrl string)(*TeamTemplatesItemDefinitionsItemTeamDefinitionOwnersUserItemRequestBuilder) { return NewTeamTemplatesItemDefinitionsItemTeamDefinitionOwnersUserItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/teamwork/team_templates_request_builder.go b/teamwork/team_templates_request_builder.go index 130494c8b06..f4d010d863b 100644 --- a/teamwork/team_templates_request_builder.go +++ b/teamwork/team_templates_request_builder.go @@ -11,7 +11,7 @@ import ( type TeamTemplatesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// TeamTemplatesRequestBuilderGetQueryParameters list the teamTemplateDefinition objects associated with a teamTemplate. +// TeamTemplatesRequestBuilderGetQueryParameters get the list of teamTemplate objects that are available for a tenant. type TeamTemplatesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -76,12 +76,12 @@ func NewTeamTemplatesRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee func (m *TeamTemplatesRequestBuilder) Count()(*TeamTemplatesCountRequestBuilder) { return NewTeamTemplatesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get list the teamTemplateDefinition objects associated with a teamTemplate. +// Get get the list of teamTemplate objects that are available for a tenant. // returns a TeamTemplateCollectionResponseable 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/teamtemplate-list-definitions?view=graph-rest-beta +// [Find more info here]: https://learn.microsoft.com/graph/api/teamwork-list-teamtemplates?view=graph-rest-beta func (m *TeamTemplatesRequestBuilder) Get(ctx context.Context, requestConfiguration *TeamTemplatesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamTemplateCollectionResponseable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -119,7 +119,7 @@ func (m *TeamTemplatesRequestBuilder) Post(ctx context.Context, body ie233ee762e } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamTemplateable), nil } -// ToGetRequestInformation list the teamTemplateDefinition objects associated with a teamTemplate. +// ToGetRequestInformation get the list of teamTemplate objects that are available for a tenant. // returns a *RequestInformation when successful func (m *TeamTemplatesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *TeamTemplatesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/users/0349ec224d3d6867a8f58bed3fd8ce2c2a82119ba77d4f83670a9724390f6c6b.go b/users/0349ec224d3d6867a8f58bed3fd8ce2c2a82119ba77d4f83670a9724390f6c6b.go index 6be7030c2a3..9f3dff66ba5 100644 --- a/users/0349ec224d3d6867a8f58bed3fd8ce2c2a82119ba77d4f83670a9724390f6c6b.go +++ b/users/0349ec224d3d6867a8f58bed3fd8ce2c2a82119ba77d4f83670a9724390f6c6b.go @@ -41,6 +41,7 @@ func NewItemMailFoldersItemChildFoldersItemUserConfigurationsUserConfigurationIt return NewItemMailFoldersItemChildFoldersItemUserConfigurationsUserConfigurationItemRequestBuilderInternal(urlParams, requestAdapter) } // Get get userConfigurations from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserConfigurationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemChildFoldersItemUserConfigurationsUserConfigurationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemUserConfigurationsUserConfigurationItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserConfigurationable, error) { @@ -61,6 +62,7 @@ func (m *ItemMailFoldersItemChildFoldersItemUserConfigurationsUserConfigurationI return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserConfigurationable), nil } // ToGetRequestInformation get userConfigurations from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemUserConfigurationsUserConfigurationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemUserConfigurationsUserConfigurationItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemMailFoldersItemChildFoldersItemUserConfigurationsUserConfigurationI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemChildFoldersItemUserConfigurationsUserConfigurationItemRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersItemUserConfigurationsUserConfigurationItemRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemChildFoldersItemUserConfigurationsUserConfigurationItemRequestBuilder) { return NewItemMailFoldersItemChildFoldersItemUserConfigurationsUserConfigurationItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/035aa54ccd06682ae8ca8fce1e17d00edc2007a7a4116e009b9fed4f9c0ac975.go b/users/035aa54ccd06682ae8ca8fce1e17d00edc2007a7a4116e009b9fed4f9c0ac975.go index b647d842136..6a9278f6238 100644 --- a/users/035aa54ccd06682ae8ca8fce1e17d00edc2007a7a4116e009b9fed4f9c0ac975.go +++ b/users/035aa54ccd06682ae8ca8fce1e17d00edc2007a7a4116e009b9fed4f9c0ac975.go @@ -55,6 +55,7 @@ func NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedReview return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedReviewersAccessReviewReviewerItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property contactedReviewers for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedReviewersAccessReviewReviewerItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedReviewersAccessReviewReviewerItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedRevie return nil } // Get returns the collection of reviewers who were contacted to complete this review. While the reviewers and fallbackReviewers properties of the accessReviewScheduleDefinition might specify group owners or managers as reviewers, contactedReviewers returns their individual identities. Supports $select. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewReviewerable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedReviewersAccessReviewReviewerItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedReviewersAccessReviewReviewerItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewReviewerable, error) { @@ -91,6 +93,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedRevie return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewReviewerable), nil } // Patch update the navigation property contactedReviewers in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewReviewerable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedReviewersAccessReviewReviewerItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewReviewerable, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedReviewersAccessReviewReviewerItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewReviewerable, error) { @@ -111,6 +114,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedRevie return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewReviewerable), nil } // ToDeleteRequestInformation delete navigation property contactedReviewers for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedReviewersAccessReviewReviewerItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedReviewersAccessReviewReviewerItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedRevie return requestInfo, nil } // ToGetRequestInformation returns the collection of reviewers who were contacted to complete this review. While the reviewers and fallbackReviewers properties of the accessReviewScheduleDefinition might specify group owners or managers as reviewers, contactedReviewers returns their individual identities. Supports $select. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedReviewersAccessReviewReviewerItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedReviewersAccessReviewReviewerItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedRevie return requestInfo, nil } // ToPatchRequestInformation update the navigation property contactedReviewers in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedReviewersAccessReviewReviewerItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewReviewerable, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedReviewersAccessReviewReviewerItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedRevie return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedReviewersAccessReviewReviewerItemRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedReviewersAccessReviewReviewerItemRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedReviewersAccessReviewReviewerItemRequestBuilder) { return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedReviewersAccessReviewReviewerItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/0368429f4a00282be52ee7b92d4de17fff26e86b565ad78ed582d1f4c9e7e1af.go b/users/0368429f4a00282be52ee7b92d4de17fff26e86b565ad78ed582d1f4c9e7e1af.go index 220a16cc9cf..b43dd21f881 100644 --- a/users/0368429f4a00282be52ee7b92d4de17fff26e86b565ad78ed582d1f4c9e7e1af.go +++ b/users/0368429f4a00282be52ee7b92d4de17fff26e86b565ad78ed582d1f4c9e7e1af.go @@ -48,6 +48,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptio return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,6 +65,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return nil } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -84,6 +86,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToDeleteRequestInformation delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +98,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return requestInfo, nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +113,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/036bb8a1a91b9f719d6d862210bd5aea47b3db55c62dfbbf359514335690eff1.go b/users/036bb8a1a91b9f719d6d862210bd5aea47b3db55c62dfbbf359514335690eff1.go index 94ec286cfab..389c905d8a1 100644 --- a/users/036bb8a1a91b9f719d6d862210bd5aea47b3db55c62dfbbf359514335690eff1.go +++ b/users/036bb8a1a91b9f719d6d862210bd5aea47b3db55c62dfbbf359514335690eff1.go @@ -55,6 +55,7 @@ func NewItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalStep return NewItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalStepsApprovalStepItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property steps for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalStepsApprovalStepItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalStepsApprovalStepItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalSte return nil } // Get used to represent the decision associated with a single step in the approval process configured in approvalStage. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ApprovalStepable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalStepsApprovalStepItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalStepsApprovalStepItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalStepable, error) { @@ -91,6 +93,7 @@ func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalSte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalStepable), nil } // Patch update the navigation property steps in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ApprovalStepable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalStepsApprovalStepItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalStepable, requestConfiguration *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalStepsApprovalStepItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalStepable, error) { @@ -111,6 +114,7 @@ func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalSte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalStepable), nil } // ToDeleteRequestInformation delete navigation property steps for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalStepsApprovalStepItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalStepsApprovalStepItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalSte return requestInfo, nil } // ToGetRequestInformation used to represent the decision associated with a single step in the approval process configured in approvalStage. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalStepsApprovalStepItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalStepsApprovalStepItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalSte return requestInfo, nil } // ToPatchRequestInformation update the navigation property steps in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalStepsApprovalStepItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalStepable, requestConfiguration *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalStepsApprovalStepItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalSte return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalStepsApprovalStepItemRequestBuilder when successful func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalStepsApprovalStepItemRequestBuilder) WithUrl(rawUrl string)(*ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalStepsApprovalStepItemRequestBuilder) { return NewItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalStepsApprovalStepItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/03cddafda67bc4e133d691877086d1990b01607876e3ba7e202b47bc1db47ed9.go b/users/03cddafda67bc4e133d691877086d1990b01607876e3ba7e202b47bc1db47ed9.go new file mode 100644 index 00000000000..7a7b7e3302e --- /dev/null +++ b/users/03cddafda67bc4e133d691877086d1990b01607876e3ba7e202b47bc1db47ed9.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/exceptionOccurrences/{event%2Did1}/instances/{event%2Did2}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/050b0b59cd88a05fd4d11b052f93ff4763c004ffd7b52fe8b2f114207b460f06.go b/users/050b0b59cd88a05fd4d11b052f93ff4763c004ffd7b52fe8b2f114207b460f06.go new file mode 100644 index 00000000000..93d0f47d679 --- /dev/null +++ b/users/050b0b59cd88a05fd4d11b052f93ff4763c004ffd7b52fe8b2f114207b460f06.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/exceptionOccurrences/{event%2Did2}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/061e82f2b28b2f83302069067e2920c27f4eae518e903317dd7184cc1f40ecab.go b/users/061e82f2b28b2f83302069067e2920c27f4eae518e903317dd7184cc1f40ecab.go index 78ebe57cc17..2c56c6da90f 100644 --- a/users/061e82f2b28b2f83302069067e2920c27f4eae518e903317dd7184cc1f40ecab.go +++ b/users/061e82f2b28b2f83302069067e2920c27f4eae518e903317dd7184cc1f40ecab.go @@ -32,6 +32,7 @@ func NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCrea return NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCre return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCre return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/0878efeaba749036390e12e5d3b8fa22db30c86014550da764abc3479c15f32f.go b/users/0878efeaba749036390e12e5d3b8fa22db30c86014550da764abc3479c15f32f.go index d73c5f17213..bfd2f316ec1 100644 --- a/users/0878efeaba749036390e12e5d3b8fa22db30c86014550da764abc3479c15f32f.go +++ b/users/0878efeaba749036390e12e5d3b8fa22db30c86014550da764abc3479c15f32f.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesI return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilderInternal(urlParams, requestAdapter) } // Post decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return nil } // ToPostRequestInformation decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemDeclinePostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/0898cea40818a9ed8969291406edc90a35bd59cfdc0a764130fadc0113c6ef54.go b/users/0898cea40818a9ed8969291406edc90a35bd59cfdc0a764130fadc0113c6ef54.go index 57b6eff4b8c..f8aa854116c 100644 --- a/users/0898cea40818a9ed8969291406edc90a35bd59cfdc0a764130fadc0113c6ef54.go +++ b/users/0898cea40818a9ed8969291406edc90a35bd59cfdc0a764130fadc0113c6ef54.go @@ -47,6 +47,7 @@ type ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecision Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAccessReviewInstanceDecisionItemId1 provides operations to manage the decisions property of the microsoft.graph.accessReviewStage entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsRequestBuilder) ByAccessReviewInstanceDecisionItemId1(accessReviewInstanceDecisionItemId1 string)(*ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,11 +78,13 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDeci return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // FilterByCurrentUserWithOn provides operations to call the filterByCurrentUser method. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsFilterByCurrentUserWithOnRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsRequestBuilder) FilterByCurrentUserWithOn(on *string)(*ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsFilterByCurrentUserWithOnRequestBuilder) { return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsFilterByCurrentUserWithOnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, on) } // Get each user reviewed in an accessReviewStage has a decision item representing if they were approved, denied, or not yet reviewed. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewInstanceDecisionItemCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceDecisionItemCollectionResponseable, error) { @@ -102,6 +105,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDeci return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceDecisionItemCollectionResponseable), nil } // Post create new navigation property to decisions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewInstanceDecisionItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceDecisionItemable, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceDecisionItemable, error) { @@ -127,6 +131,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDeci return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsRecordAllDecisionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation each user reviewed in an accessReviewStage has a decision item representing if they were approved, denied, or not yet reviewed. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,6 +146,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDeci return requestInfo, nil } // ToPostRequestInformation create new navigation property to decisions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceDecisionItemable, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +162,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDeci return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsRequestBuilder) { return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/091917b435c21daab9d74a25122a30e055af65151db7916f30cbded7f0d0a5a5.go b/users/091917b435c21daab9d74a25122a30e055af65151db7916f30cbded7f0d0a5a5.go index cfd9a60cc81..ec01b16741e 100644 --- a/users/091917b435c21daab9d74a25122a30e055af65151db7916f30cbded7f0d0a5a5.go +++ b/users/091917b435c21daab9d74a25122a30e055af65151db7916f30cbded7f0d0a5a5.go @@ -55,6 +55,7 @@ func NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemEx return NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemE return nil } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemE return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemE return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemE return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemE return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemE return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) { return NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/0a53c98d37acaab8f7a52479980a0e9267fe162a59e52b6d2f897456526f1abf.go b/users/0a53c98d37acaab8f7a52479980a0e9267fe162a59e52b6d2f897456526f1abf.go index d51a88b30fc..8fdcc4ec3c4 100644 --- a/users/0a53c98d37acaab8f7a52479980a0e9267fe162a59e52b6d2f897456526f1abf.go +++ b/users/0a53c98d37acaab8f7a52479980a0e9267fe162a59e52b6d2f897456526f1abf.go @@ -81,6 +81,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesEventI return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -105,6 +106,11 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesEventI func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesEventItemRequestBuilder) Instances()(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesEventItemRequestBuilder) PermanentDelete()(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) { @@ -116,6 +122,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesEventI return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -130,6 +137,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesEventI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesEventItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesEventItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesEventItemRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesEventItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/0a658b2e743f0b7678343b90d23341259f6e64ac2b4576ac188068ab4117eace.go b/users/0a658b2e743f0b7678343b90d23341259f6e64ac2b4576ac188068ab4117eace.go index b8c4d597559..c0fc7a70d6c 100644 --- a/users/0a658b2e743f0b7678343b90d23341259f6e64ac2b4576ac188068ab4117eace.go +++ b/users/0a658b2e743f0b7678343b90d23341259f6e64ac2b4576ac188068ab4117eace.go @@ -48,6 +48,7 @@ func NewItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsPasswordlessM return NewItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsPasswordlessMicrosoftAuthenticatorAuthenticationMethodItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete deletes a user's Microsoft Authenticator Passwordless Phone Sign-in method object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -72,6 +73,7 @@ func (m *ItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsPasswordless return NewItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsItemDeviceRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get represents the Microsoft Authenticator Passwordless Phone Sign-in methods registered to a user for authentication. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PasswordlessMicrosoftAuthenticatorAuthenticationMethodable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsPasswordlessMicrosoftAuthenticatorAuthenticationMethodItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsPasswordlessMicrosoftAuthenticatorAuthenticationMethodItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PasswordlessMicrosoftAuthenticatorAuthenticationMethodable, error) { @@ -92,6 +94,7 @@ func (m *ItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsPasswordless return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PasswordlessMicrosoftAuthenticatorAuthenticationMethodable), nil } // ToDeleteRequestInformation deletes a user's Microsoft Authenticator Passwordless Phone Sign-in method object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsPasswordlessMicrosoftAuthenticatorAuthenticationMethodItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsPasswordlessMicrosoftAuthenticatorAuthenticationMethodItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -103,6 +106,7 @@ func (m *ItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsPasswordless return requestInfo, nil } // ToGetRequestInformation represents the Microsoft Authenticator Passwordless Phone Sign-in methods registered to a user for authentication. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsPasswordlessMicrosoftAuthenticatorAuthenticationMethodItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsPasswordlessMicrosoftAuthenticatorAuthenticationMethodItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsPasswordless return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsPasswordlessMicrosoftAuthenticatorAuthenticationMethodItemRequestBuilder when successful func (m *ItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsPasswordlessMicrosoftAuthenticatorAuthenticationMethodItemRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsPasswordlessMicrosoftAuthenticatorAuthenticationMethodItemRequestBuilder) { return NewItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsPasswordlessMicrosoftAuthenticatorAuthenticationMethodItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/0b033e12cfe66675ed8655a75e5142b13105c68d72bdf7c191d53195c4749d5f.go b/users/0b033e12cfe66675ed8655a75e5142b13105c68d72bdf7c191d53195c4749d5f.go index 8deddd606dc..3b6bd2ddb68 100644 --- a/users/0b033e12cfe66675ed8655a75e5142b13105c68d72bdf7c191d53195c4749d5f.go +++ b/users/0b033e12cfe66675ed8655a75e5142b13105c68d72bdf7c191d53195c4749d5f.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemSn return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemS return nil } // ToPostRequestInformation postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminderPostRequestBodyable, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemS return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder) { return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/0b49aa6518466a9d226df275d57c8773b4908ad2e1e943c1f6c6bcdf87930f2a.go b/users/0b49aa6518466a9d226df275d57c8773b4908ad2e1e943c1f6c6bcdf87930f2a.go index a98c592e594..47be686fdee 100644 --- a/users/0b49aa6518466a9d226df275d57c8773b4908ad2e1e943c1f6c6bcdf87930f2a.go +++ b/users/0b49aa6518466a9d226df275d57c8773b4908ad2e1e943c1f6c6bcdf87930f2a.go @@ -47,6 +47,7 @@ type ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecision Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAccessReviewInstanceDecisionItemId1 provides operations to manage the decisions property of the microsoft.graph.accessReviewInstance entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsRequestBuilder) ByAccessReviewInstanceDecisionItemId1(accessReviewInstanceDecisionItemId1 string)(*ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,11 +78,13 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDeci return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // FilterByCurrentUserWithOn provides operations to call the filterByCurrentUser method. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsFilterByCurrentUserWithOnRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsRequestBuilder) FilterByCurrentUserWithOn(on *string)(*ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsFilterByCurrentUserWithOnRequestBuilder) { return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsFilterByCurrentUserWithOnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, on) } // Get each user reviewed in an accessReviewInstance has a decision item representing if they were approved, denied, or not yet reviewed. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewInstanceDecisionItemCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceDecisionItemCollectionResponseable, error) { @@ -102,6 +105,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDeci return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceDecisionItemCollectionResponseable), nil } // Post create new navigation property to decisions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewInstanceDecisionItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceDecisionItemable, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceDecisionItemable, error) { @@ -127,6 +131,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDeci return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsRecordAllDecisionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation each user reviewed in an accessReviewInstance has a decision item representing if they were approved, denied, or not yet reviewed. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,6 +146,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDeci return requestInfo, nil } // ToPostRequestInformation create new navigation property to decisions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceDecisionItemable, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +162,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDeci return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsRequestBuilder) { return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/0c075b51650eacc8d211eae5ec09b28009f93496e0ca5dcc1a5a0849aada7c66.go b/users/0c075b51650eacc8d211eae5ec09b28009f93496e0ca5dcc1a5a0849aada7c66.go index b9e43dd9495..535eaab126c 100644 --- a/users/0c075b51650eacc8d211eae5ec09b28009f93496e0ca5dcc1a5a0849aada7c66.go +++ b/users/0c075b51650eacc8d211eae5ec09b28009f93496e0ca5dcc1a5a0849aada7c66.go @@ -64,6 +64,7 @@ func NewItemManagedDevicesItemDeviceHealthScriptStatesWithIdWithPolicyIdWithDevi return NewItemManagedDevicesItemDeviceHealthScriptStatesWithIdWithPolicyIdWithDeviceIdRequestBuilderInternal(urlParams, requestAdapter, nil, nil, nil) } // Delete delete navigation property deviceHealthScriptStates for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemDeviceHealthScriptStatesWithIdWithPolicyIdWithDeviceIdRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemManagedDevicesItemDeviceHealthScriptStatesWithIdWithPolicyIdWithDeviceIdRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -80,6 +81,7 @@ func (m *ItemManagedDevicesItemDeviceHealthScriptStatesWithIdWithPolicyIdWithDev return nil } // Get results of device health scripts that ran for this device. Default is empty list. This property is read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DeviceHealthScriptPolicyStateable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemDeviceHealthScriptStatesWithIdWithPolicyIdWithDeviceIdRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemManagedDevicesItemDeviceHealthScriptStatesWithIdWithPolicyIdWithDeviceIdRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceHealthScriptPolicyStateable, error) { @@ -100,6 +102,7 @@ func (m *ItemManagedDevicesItemDeviceHealthScriptStatesWithIdWithPolicyIdWithDev return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceHealthScriptPolicyStateable), nil } // Patch update the navigation property deviceHealthScriptStates in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DeviceHealthScriptPolicyStateable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemDeviceHealthScriptStatesWithIdWithPolicyIdWithDeviceIdRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceHealthScriptPolicyStateable, requestConfiguration *ItemManagedDevicesItemDeviceHealthScriptStatesWithIdWithPolicyIdWithDeviceIdRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceHealthScriptPolicyStateable, error) { @@ -120,6 +123,7 @@ func (m *ItemManagedDevicesItemDeviceHealthScriptStatesWithIdWithPolicyIdWithDev return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceHealthScriptPolicyStateable), nil } // ToDeleteRequestInformation delete navigation property deviceHealthScriptStates for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemDeviceHealthScriptStatesWithIdWithPolicyIdWithDeviceIdRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemDeviceHealthScriptStatesWithIdWithPolicyIdWithDeviceIdRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemManagedDevicesItemDeviceHealthScriptStatesWithIdWithPolicyIdWithDev return requestInfo, nil } // ToGetRequestInformation results of device health scripts that ran for this device. Default is empty list. This property is read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemDeviceHealthScriptStatesWithIdWithPolicyIdWithDeviceIdRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemDeviceHealthScriptStatesWithIdWithPolicyIdWithDeviceIdRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -145,6 +150,7 @@ func (m *ItemManagedDevicesItemDeviceHealthScriptStatesWithIdWithPolicyIdWithDev return requestInfo, nil } // ToPatchRequestInformation update the navigation property deviceHealthScriptStates in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemDeviceHealthScriptStatesWithIdWithPolicyIdWithDeviceIdRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceHealthScriptPolicyStateable, requestConfiguration *ItemManagedDevicesItemDeviceHealthScriptStatesWithIdWithPolicyIdWithDeviceIdRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -160,6 +166,7 @@ func (m *ItemManagedDevicesItemDeviceHealthScriptStatesWithIdWithPolicyIdWithDev return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemDeviceHealthScriptStatesWithIdWithPolicyIdWithDeviceIdRequestBuilder when successful func (m *ItemManagedDevicesItemDeviceHealthScriptStatesWithIdWithPolicyIdWithDeviceIdRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemDeviceHealthScriptStatesWithIdWithPolicyIdWithDeviceIdRequestBuilder) { return NewItemManagedDevicesItemDeviceHealthScriptStatesWithIdWithPolicyIdWithDeviceIdRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/0dca8f8d5b0f1ed6b74b9428822bbfa197997940a009dc901a11fe05c494e4ad.go b/users/0dca8f8d5b0f1ed6b74b9428822bbfa197997940a009dc901a11fe05c494e4ad.go index 7fa5c5c711b..2b3bd57db11 100644 --- a/users/0dca8f8d5b0f1ed6b74b9428822bbfa197997940a009dc901a11fe05c494e4ad.go +++ b/users/0dca8f8d5b0f1ed6b74b9428822bbfa197997940a009dc901a11fe05c494e4ad.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemDismissR return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemDismissReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemDismiss return nil } // ToPostRequestInformation dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemDismissReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemDismissReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemDismiss return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemDismissReminderRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemDismissReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemDismissReminderRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemDismissReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/0dd799142755c7d92009f0f070dcd5586916d2060b9ca3cbfc6552cb369deb4f.go b/users/0dd799142755c7d92009f0f070dcd5586916d2060b9ca3cbfc6552cb369deb4f.go index d691834de1e..453b64b4f68 100644 --- a/users/0dd799142755c7d92009f0f070dcd5586916d2060b9ca3cbfc6552cb369deb4f.go +++ b/users/0dd799142755c7d92009f0f070dcd5586916d2060b9ca3cbfc6552cb369deb4f.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptio return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return nil } // ToPostRequestInformation tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemTentativelyAcceptPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/0ed88bb19cbc3df0391725dbb34c435fb2cdc17f60c2638ece83d1e305f78ab8.go b/users/0ed88bb19cbc3df0391725dbb34c435fb2cdc17f60c2638ece83d1e305f78ab8.go index 75e972d0ebf..1988ae584f5 100644 --- a/users/0ed88bb19cbc3df0391725dbb34c435fb2cdc17f60c2638ece83d1e305f78ab8.go +++ b/users/0ed88bb19cbc3df0391725dbb34c435fb2cdc17f60c2638ece83d1e305f78ab8.go @@ -32,7 +32,7 @@ func NewItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsCreateUpload return NewItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -56,7 +56,7 @@ func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsCreateUploa return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -72,7 +72,7 @@ func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsCreateUploa return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/0ff3065a4dafa52f537b138e7c9ea4797a361ec9f1093f6de80b2a08d0b333ed.go b/users/0ff3065a4dafa52f537b138e7c9ea4797a361ec9f1093f6de80b2a08d0b333ed.go index c97add61163..f6beceff310 100644 --- a/users/0ff3065a4dafa52f537b138e7c9ea4797a361ec9f1093f6de80b2a08d0b333ed.go +++ b/users/0ff3065a4dafa52f537b138e7c9ea4797a361ec9f1093f6de80b2a08d0b333ed.go @@ -79,6 +79,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDeci return res.(ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsFilterByCurrentUserWithOnResponseable), nil } // GetAsFilterByCurrentUserWithOnGetResponse retrieve the accessReviewInstanceDecisionItem objects for a specific accessReviewInstance. A list of zero or more accessReviewInstanceDecisionItem objects are returned, including all of their nested properties. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsFilterByCurrentUserWithOnGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -102,6 +103,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDeci return res.(ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsFilterByCurrentUserWithOnGetResponseable), nil } // ToGetRequestInformation retrieve the accessReviewInstanceDecisionItem objects for a specific accessReviewInstance. A list of zero or more accessReviewInstanceDecisionItem objects are returned, including all of their nested properties. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsFilterByCurrentUserWithOnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsFilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -116,6 +118,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDeci return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsFilterByCurrentUserWithOnRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsFilterByCurrentUserWithOnRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsFilterByCurrentUserWithOnRequestBuilder) { return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsFilterByCurrentUserWithOnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/10aadcfcbdc149d9fb81598ad5b0b3236adae00d5249bb6e1069ea7a14d68768.go b/users/10aadcfcbdc149d9fb81598ad5b0b3236adae00d5249bb6e1069ea7a14d68768.go index dcc534fe7cc..2440122c216 100644 --- a/users/10aadcfcbdc149d9fb81598ad5b0b3236adae00d5249bb6e1069ea7a14d68768.go +++ b/users/10aadcfcbdc149d9fb81598ad5b0b3236adae00d5249bb6e1069ea7a14d68768.go @@ -47,6 +47,7 @@ type ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExten Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemE return NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemE return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemE return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemE return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemE return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) { return NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/128eb51403ad8a29681a2de57d93ae4f1080b3b6aff2f66095286a3c92630294.go b/users/128eb51403ad8a29681a2de57d93ae4f1080b3b6aff2f66095286a3c92630294.go index be13d8c7d9e..cf02e85757a 100644 --- a/users/128eb51403ad8a29681a2de57d93ae4f1080b3b6aff2f66095286a3c92630294.go +++ b/users/128eb51403ad8a29681a2de57d93ae4f1080b3b6aff2f66095286a3c92630294.go @@ -55,6 +55,7 @@ func (m *ItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurit return res.(ItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurityEvaluateRemovalEvaluateRemovalResponseable), nil } // PostAsEvaluateRemovalPostResponse indicate to the consuming application what actions it should take to remove the label information. Given contentInfo as an input, which includes existing content metadata key-value pairs, the API returns an informationProtectionAction that contains some combination of one or more of the following: +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurityEvaluateRemovalEvaluateRemovalPostResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -78,6 +79,7 @@ func (m *ItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurit return res.(ItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurityEvaluateRemovalEvaluateRemovalPostResponseable), nil } // ToPostRequestInformation indicate to the consuming application what actions it should take to remove the label information. Given contentInfo as an input, which includes existing content metadata key-value pairs, the API returns an informationProtectionAction that contains some combination of one or more of the following: +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurityEvaluateRemovalRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurityEvaluateRemovalEvaluateRemovalPostRequestBodyable, requestConfiguration *ItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurityEvaluateRemovalRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -93,6 +95,7 @@ func (m *ItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurit return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurityEvaluateRemovalRequestBuilder when successful func (m *ItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurityEvaluateRemovalRequestBuilder) WithUrl(rawUrl string)(*ItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurityEvaluateRemovalRequestBuilder) { return NewItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurityEvaluateRemovalRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/15505b5bc92f7e6513e320ec767450dac909f6095b6c060713a14a47d87b6453.go b/users/15505b5bc92f7e6513e320ec767450dac909f6095b6c060713a14a47d87b6453.go index c4d9c20ddc7..e7d28b322ca 100644 --- a/users/15505b5bc92f7e6513e320ec767450dac909f6095b6c060713a14a47d87b6453.go +++ b/users/15505b5bc92f7e6513e320ec767450dac909f6095b6c060713a14a47d87b6453.go @@ -60,6 +60,7 @@ func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsChatMessageHostedCont return NewItemChatsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Delete delete navigation property hostedContents for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsChatMessageHostedContentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemChatsItemMessagesItemRepliesItemHostedContentsChatMessageHostedContentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -76,6 +77,7 @@ func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsChatMessageHostedCont return nil } // Get content in a message hosted by Microsoft Teams - for example, images or code snippets. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ChatMessageHostedContentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsChatMessageHostedContentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChatsItemMessagesItemRepliesItemHostedContentsChatMessageHostedContentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageHostedContentable, error) { @@ -96,6 +98,7 @@ func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsChatMessageHostedCont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageHostedContentable), nil } // Patch update the navigation property hostedContents in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ChatMessageHostedContentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsChatMessageHostedContentItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageHostedContentable, requestConfiguration *ItemChatsItemMessagesItemRepliesItemHostedContentsChatMessageHostedContentItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageHostedContentable, error) { @@ -116,6 +119,7 @@ func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsChatMessageHostedCont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageHostedContentable), nil } // ToDeleteRequestInformation delete navigation property hostedContents for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsChatMessageHostedContentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemMessagesItemRepliesItemHostedContentsChatMessageHostedContentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -127,6 +131,7 @@ func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsChatMessageHostedCont return requestInfo, nil } // ToGetRequestInformation content in a message hosted by Microsoft Teams - for example, images or code snippets. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsChatMessageHostedContentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemMessagesItemRepliesItemHostedContentsChatMessageHostedContentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,6 +146,7 @@ func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsChatMessageHostedCont return requestInfo, nil } // ToPatchRequestInformation update the navigation property hostedContents in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsChatMessageHostedContentItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageHostedContentable, requestConfiguration *ItemChatsItemMessagesItemRepliesItemHostedContentsChatMessageHostedContentItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +162,7 @@ func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsChatMessageHostedCont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemMessagesItemRepliesItemHostedContentsChatMessageHostedContentItemRequestBuilder when successful func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsChatMessageHostedContentItemRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemMessagesItemRepliesItemHostedContentsChatMessageHostedContentItemRequestBuilder) { return NewItemChatsItemMessagesItemRepliesItemHostedContentsChatMessageHostedContentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/160a174640253786ce59e3815727fa6a7badd061a0630227c5f3461727e8d654.go b/users/160a174640253786ce59e3815727fa6a7badd061a0630227c5f3461727e8d654.go index c593ac6dec7..df58f05b72f 100644 --- a/users/160a174640253786ce59e3815727fa6a7badd061a0630227c5f3461727e8d654.go +++ b/users/160a174640253786ce59e3815727fa6a7badd061a0630227c5f3461727e8d654.go @@ -32,6 +32,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsCre return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsCr return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsCr return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/17f9430b5519e6a63bd12fd792f506fd4e2bb590baf76ac965902ec53c234ae5.go b/users/17f9430b5519e6a63bd12fd792f506fd4e2bb590baf76ac965902ec53c234ae5.go new file mode 100644 index 00000000000..cedb539cb36 --- /dev/null +++ b/users/17f9430b5519e6a63bd12fd792f506fd4e2bb590baf76ac965902ec53c234ae5.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/exceptionOccurrences/{event%2Did1}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/187e0f375e3e7037b0f774e47f4d35719c9a2c66ebad3918046b6a075209daac.go b/users/187e0f375e3e7037b0f774e47f4d35719c9a2c66ebad3918046b6a075209daac.go index 79f12c0e114..795d4010220 100644 --- a/users/187e0f375e3e7037b0f774e47f4d35719c9a2c66ebad3918046b6a075209daac.go +++ b/users/187e0f375e3e7037b0f774e47f4d35719c9a2c66ebad3918046b6a075209daac.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccur return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemForwardRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return nil } // ToPostRequestInformation this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemForwardRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemForwardPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemForwardRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemForwardRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemForwardRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemForwardRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemForwardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/1a8d33b49b921f6c82aaac58b54f2ab390a9ddaf00a8ee78146d96995d59b696.go b/users/1a8d33b49b921f6c82aaac58b54f2ab390a9ddaf00a8ee78146d96995d59b696.go index a6ab20c7a03..2481376a444 100644 --- a/users/1a8d33b49b921f6c82aaac58b54f2ab390a9ddaf00a8ee78146d96995d59b696.go +++ b/users/1a8d33b49b921f6c82aaac58b54f2ab390a9ddaf00a8ee78146d96995d59b696.go @@ -32,6 +32,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccur return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/1afe08cdfff50c73766f9aae979433e0ca9e83b58f1e6568d60fe0881a3d00e3.go b/users/1afe08cdfff50c73766f9aae979433e0ca9e83b58f1e6568d60fe0881a3d00e3.go index 105a4e65221..59e169c3f96 100644 --- a/users/1afe08cdfff50c73766f9aae979433e0ca9e83b58f1e6568d60fe0881a3d00e3.go +++ b/users/1afe08cdfff50c73766f9aae979433e0ca9e83b58f1e6568d60fe0881a3d00e3.go @@ -48,6 +48,7 @@ func NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAtta return NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,6 +65,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAtt return nil } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -84,6 +86,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAtt return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToDeleteRequestInformation delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +98,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAtt return requestInfo, nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +113,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAtt return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) { return NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/1cd4cb77b7b11cf784ff09d0e5dd4832bc930467ce2b0da34cee71fab29bb0cd.go b/users/1cd4cb77b7b11cf784ff09d0e5dd4832bc930467ce2b0da34cee71fab29bb0cd.go index fa71ea9d9a0..468fc956267 100644 --- a/users/1cd4cb77b7b11cf784ff09d0e5dd4832bc930467ce2b0da34cee71fab29bb0cd.go +++ b/users/1cd4cb77b7b11cf784ff09d0e5dd4832bc930467ce2b0da34cee71fab29bb0cd.go @@ -48,6 +48,7 @@ func NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAt return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,6 +65,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemA return nil } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -84,6 +86,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemA return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToDeleteRequestInformation delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +98,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemA return requestInfo, nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +113,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemA return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) { return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/1d179f7d53d851a30f8c13260713de37583c422ca612ba4ec7d10b605969fa23.go b/users/1d179f7d53d851a30f8c13260713de37583c422ca612ba4ec7d10b605969fa23.go index 2d2be423af3..5b651c33e6d 100644 --- a/users/1d179f7d53d851a30f8c13260713de37583c422ca612ba4ec7d10b605969fa23.go +++ b/users/1d179f7d53d851a30f8c13260713de37583c422ca612ba4ec7d10b605969fa23.go @@ -47,6 +47,7 @@ type ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachments Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentId provides operations to manage the attachments property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ByAttachmentId(attachmentId string)(*ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachm return NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachm return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } // Post create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -122,6 +125,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachm return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachm return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachm return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) { return NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/1d3ea0f761c9aaf6f3fb9aa5020cd2d6c8a7aaad934009ae802304dfac268d3c.go b/users/1d3ea0f761c9aaf6f3fb9aa5020cd2d6c8a7aaad934009ae802304dfac268d3c.go index 31f03cd756f..ffb8d6b6f44 100644 --- a/users/1d3ea0f761c9aaf6f3fb9aa5020cd2d6c8a7aaad934009ae802304dfac268d3c.go +++ b/users/1d3ea0f761c9aaf6f3fb9aa5020cd2d6c8a7aaad934009ae802304dfac268d3c.go @@ -55,6 +55,7 @@ func NewItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesSecurityBas return NewItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesSecurityBaselineSettingStateItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property settingStates for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesSecurityBaselineSettingStateItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesSecurityBaselineSettingStateItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesSecurityBa return nil } // Get the security baseline state for different settings for a device +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SecurityBaselineSettingStateable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesSecurityBaselineSettingStateItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesSecurityBaselineSettingStateItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SecurityBaselineSettingStateable, error) { @@ -91,6 +93,7 @@ func (m *ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesSecurityBa return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SecurityBaselineSettingStateable), nil } // Patch update the navigation property settingStates in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SecurityBaselineSettingStateable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesSecurityBaselineSettingStateItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SecurityBaselineSettingStateable, requestConfiguration *ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesSecurityBaselineSettingStateItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SecurityBaselineSettingStateable, error) { @@ -111,6 +114,7 @@ func (m *ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesSecurityBa return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SecurityBaselineSettingStateable), nil } // ToDeleteRequestInformation delete navigation property settingStates for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesSecurityBaselineSettingStateItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesSecurityBaselineSettingStateItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesSecurityBa return requestInfo, nil } // ToGetRequestInformation the security baseline state for different settings for a device +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesSecurityBaselineSettingStateItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesSecurityBaselineSettingStateItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesSecurityBa return requestInfo, nil } // ToPatchRequestInformation update the navigation property settingStates in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesSecurityBaselineSettingStateItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SecurityBaselineSettingStateable, requestConfiguration *ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesSecurityBaselineSettingStateItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesSecurityBa return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesSecurityBaselineSettingStateItemRequestBuilder when successful func (m *ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesSecurityBaselineSettingStateItemRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesSecurityBaselineSettingStateItemRequestBuilder) { return NewItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesSecurityBaselineSettingStateItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/1da56d1cbdc57f7377ccfad720f1c89cd87a2cb2e4cc293bf69cd0e260e07144.go b/users/1da56d1cbdc57f7377ccfad720f1c89cd87a2cb2e4cc293bf69cd0e260e07144.go index 70eefbd20a7..e7e159469b4 100644 --- a/users/1da56d1cbdc57f7377ccfad720f1c89cd87a2cb2e4cc293bf69cd0e260e07144.go +++ b/users/1da56d1cbdc57f7377ccfad720f1c89cd87a2cb2e4cc293bf69cd0e260e07144.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptio return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemForwardRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return nil } // ToPostRequestInformation this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemForwardRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemForwardPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemForwardRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemForwardRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemForwardRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemForwardRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemForwardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/1ddd28352ef7d0fdc6a6d72c5c3b53d67f0576a65cafa6fd661fc77fd1a03d64.go b/users/1ddd28352ef7d0fdc6a6d72c5c3b53d67f0576a65cafa6fd661fc77fd1a03d64.go index 593cac38894..27aa28186d9 100644 --- a/users/1ddd28352ef7d0fdc6a6d72c5c3b53d67f0576a65cafa6fd661fc77fd1a03d64.go +++ b/users/1ddd28352ef7d0fdc6a6d72c5c3b53d67f0576a65cafa6fd661fc77fd1a03d64.go @@ -32,6 +32,7 @@ func NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachm return NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttach return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttach return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/1f0efa8867d1545fcdebfde4bc60caec57e063412672e09558607005915e7e50.go b/users/1f0efa8867d1545fcdebfde4bc60caec57e063412672e09558607005915e7e50.go index 2da8fd745a8..537e387222a 100644 --- a/users/1f0efa8867d1545fcdebfde4bc60caec57e063412672e09558607005915e7e50.go +++ b/users/1f0efa8867d1545fcdebfde4bc60caec57e063412672e09558607005915e7e50.go @@ -79,6 +79,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesFilterBy return res.(ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesFilterByCurrentUserWithOnResponseable), nil } // GetAsFilterByCurrentUserWithOnGetResponse return all accessReviewStage objects on a given accessReviewInstance where the calling user is a reviewer on one or more accessReviewInstanceDecisionItem objects. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesFilterByCurrentUserWithOnGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -102,6 +103,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesFilterBy return res.(ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesFilterByCurrentUserWithOnGetResponseable), nil } // ToGetRequestInformation return all accessReviewStage objects on a given accessReviewInstance where the calling user is a reviewer on one or more accessReviewInstanceDecisionItem objects. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesFilterByCurrentUserWithOnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesFilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -116,6 +118,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesFilterBy return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesFilterByCurrentUserWithOnRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesFilterByCurrentUserWithOnRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesFilterByCurrentUserWithOnRequestBuilder) { return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesFilterByCurrentUserWithOnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/1f84d67fca91db665933605e7f7d426fd981e7d75d4f0e37adec8e612e0f0c20.go b/users/1f84d67fca91db665933605e7f7d426fd981e7d75d4f0e37adec8e612e0f0c20.go index 1f5f5b4c91f..57601997d99 100644 --- a/users/1f84d67fca91db665933605e7f7d426fd981e7d75d4f0e37adec8e612e0f0c20.go +++ b/users/1f84d67fca91db665933605e7f7d426fd981e7d75d4f0e37adec8e612e0f0c20.go @@ -32,6 +32,7 @@ func NewItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsItemCreate return NewItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsItemCreateDownloadUrlRequestBuilderInternal(urlParams, requestAdapter) } // Post invoke action createDownloadUrl +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AppLogCollectionDownloadDetailsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsItemCreateDownloadUrlRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsItemCreateDownloadUrlRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AppLogCollectionDownloadDetailsable, error) { @@ -52,6 +53,7 @@ func (m *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsItemCreat return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AppLogCollectionDownloadDetailsable), nil } // ToPostRequestInformation invoke action createDownloadUrl +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsItemCreateDownloadUrlRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsItemCreateDownloadUrlRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -63,6 +65,7 @@ func (m *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsItemCreat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsItemCreateDownloadUrlRequestBuilder when successful func (m *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsItemCreateDownloadUrlRequestBuilder) WithUrl(rawUrl string)(*ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsItemCreateDownloadUrlRequestBuilder) { return NewItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsItemCreateDownloadUrlRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/203f309590065adf2ae92c91dafc593b697d8449911ad464b31f7af79c664b21.go b/users/203f309590065adf2ae92c91dafc593b697d8449911ad464b31f7af79c664b21.go index 4c68178d73f..c632d4ca02a 100644 --- a/users/203f309590065adf2ae92c91dafc593b697d8449911ad464b31f7af79c664b21.go +++ b/users/203f309590065adf2ae92c91dafc593b697d8449911ad464b31f7af79c664b21.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIns return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemCancelRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return nil } // ToPostRequestInformation this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemCancelPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemCancelRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemCancelRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemCancelRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/20df17ebde706e3276a5b24f21f249d4c34dacc1e2f6f55c1e50f5efaf992fd0.go b/users/20df17ebde706e3276a5b24f21f249d4c34dacc1e2f6f55c1e50f5efaf992fd0.go new file mode 100644 index 00000000000..3499f7e80fb --- /dev/null +++ b/users/20df17ebde706e3276a5b24f21f249d4c34dacc1e2f6f55c1e50f5efaf992fd0.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/exceptionOccurrences/{event%2Did1}/instances/{event%2Did2}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/2117f66de69d6f87c7afb98e464e2b4db5022e46165f97c893d8fbce8faec338.go b/users/2117f66de69d6f87c7afb98e464e2b4db5022e46165f97c893d8fbce8faec338.go index 9e06e611e88..f4bc58a7498 100644 --- a/users/2117f66de69d6f87c7afb98e464e2b4db5022e46165f97c893d8fbce8faec338.go +++ b/users/2117f66de69d6f87c7afb98e464e2b4db5022e46165f97c893d8fbce8faec338.go @@ -41,6 +41,7 @@ func NewItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemParentSect return NewItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemParentSectionRequestBuilderInternal(urlParams, requestAdapter) } // Get the section that contains the page. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenoteSectionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemParentSectionRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemParentSectionRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionable, error) { @@ -61,6 +62,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemParentSec return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionable), nil } // ToGetRequestInformation the section that contains the page. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemParentSectionRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemParentSectionRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemParentSec return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemParentSectionRequestBuilder when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemParentSectionRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemParentSectionRequestBuilder) { return NewItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemParentSectionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/212be63530609f11ae44d1e723fe9fdf53b87d2e0591a575ac428b3e7cfebac4.go b/users/212be63530609f11ae44d1e723fe9fdf53b87d2e0591a575ac428b3e7cfebac4.go index a49b6add4ec..7f90bf0edb2 100644 --- a/users/212be63530609f11ae44d1e723fe9fdf53b87d2e0591a575ac428b3e7cfebac4.go +++ b/users/212be63530609f11ae44d1e723fe9fdf53b87d2e0591a575ac428b3e7cfebac4.go @@ -40,6 +40,7 @@ func NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecis return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsItemInsightsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsItemInsightsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsItemInsightsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDeci return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsItemInsightsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsItemInsightsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDeci return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsItemInsightsCountRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsItemInsightsCountRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsItemInsightsCountRequestBuilder) { return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsItemInsightsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/22924a5cc4be43cc02d77a3a169e88f8d7bda173990d7fbbbeebc15184cbc00e.go b/users/22924a5cc4be43cc02d77a3a169e88f8d7bda173990d7fbbbeebc15184cbc00e.go index cf3785d0f83..e59239ce4e9 100644 --- a/users/22924a5cc4be43cc02d77a3a169e88f8d7bda173990d7fbbbeebc15184cbc00e.go +++ b/users/22924a5cc4be43cc02d77a3a169e88f8d7bda173990d7fbbbeebc15184cbc00e.go @@ -55,6 +55,7 @@ func NewItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateWindowsD return NewItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateWindowsDeviceMalwareStateItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property detectedMalwareState for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateWindowsDeviceMalwareStateItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateWindowsDeviceMalwareStateItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateWindows return nil } // Get device malware list +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a WindowsDeviceMalwareStateable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateWindowsDeviceMalwareStateItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateWindowsDeviceMalwareStateItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsDeviceMalwareStateable, error) { @@ -91,6 +93,7 @@ func (m *ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateWindows return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsDeviceMalwareStateable), nil } // Patch update the navigation property detectedMalwareState in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a WindowsDeviceMalwareStateable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateWindowsDeviceMalwareStateItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsDeviceMalwareStateable, requestConfiguration *ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateWindowsDeviceMalwareStateItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsDeviceMalwareStateable, error) { @@ -111,6 +114,7 @@ func (m *ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateWindows return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsDeviceMalwareStateable), nil } // ToDeleteRequestInformation delete navigation property detectedMalwareState for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateWindowsDeviceMalwareStateItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateWindowsDeviceMalwareStateItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateWindows return requestInfo, nil } // ToGetRequestInformation device malware list +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateWindowsDeviceMalwareStateItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateWindowsDeviceMalwareStateItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateWindows return requestInfo, nil } // ToPatchRequestInformation update the navigation property detectedMalwareState in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateWindowsDeviceMalwareStateItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsDeviceMalwareStateable, requestConfiguration *ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateWindowsDeviceMalwareStateItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateWindows return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateWindowsDeviceMalwareStateItemRequestBuilder when successful func (m *ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateWindowsDeviceMalwareStateItemRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateWindowsDeviceMalwareStateItemRequestBuilder) { return NewItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateWindowsDeviceMalwareStateItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/22aa31d2a6c978c7c532e69dee99ffa3df50d414622e31118dd11970a9524525.go b/users/22aa31d2a6c978c7c532e69dee99ffa3df50d414622e31118dd11970a9524525.go index 89d4ddd7ab5..94099b26e97 100644 --- a/users/22aa31d2a6c978c7c532e69dee99ffa3df50d414622e31118dd11970a9524525.go +++ b/users/22aa31d2a6c978c7c532e69dee99ffa3df50d414622e31118dd11970a9524525.go @@ -32,6 +32,7 @@ func NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachme return NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachm return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachm return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/24179eb29442b1508c89a9a419d35f73cd75c4fd9a1271de6a5c6f64c7b22d86.go b/users/24179eb29442b1508c89a9a419d35f73cd75c4fd9a1271de6a5c6f64c7b22d86.go index 7143cc972cd..c36500936a9 100644 --- a/users/24179eb29442b1508c89a9a419d35f73cd75c4fd9a1271de6a5c6f64c7b22d86.go +++ b/users/24179eb29442b1508c89a9a419d35f73cd75c4fd9a1271de6a5c6f64c7b22d86.go @@ -32,6 +32,7 @@ func NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCrea return NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCre return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCre return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/24415176daffe7dd4499a7f027d7eb9e232c5582042a0eb9ba2627e5c0feaa95.go b/users/24415176daffe7dd4499a7f027d7eb9e232c5582042a0eb9ba2627e5c0feaa95.go index 906d871f5ce..73ecefd9eed 100644 --- a/users/24415176daffe7dd4499a7f027d7eb9e232c5582042a0eb9ba2627e5c0feaa95.go +++ b/users/24415176daffe7dd4499a7f027d7eb9e232c5582042a0eb9ba2627e5c0feaa95.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemDismissR return NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemDismiss return nil } // ToPostRequestInformation dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemDismiss return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilder when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilder) { return NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/255b790bf15197e3fed138264538ec9a007922453dd40ee8af0e4bacf6bead7e.go b/users/255b790bf15197e3fed138264538ec9a007922453dd40ee8af0e4bacf6bead7e.go index 4a6a9a56b3b..878107436ea 100644 --- a/users/255b790bf15197e3fed138264538ec9a007922453dd40ee8af0e4bacf6bead7e.go +++ b/users/255b790bf15197e3fed138264538ec9a007922453dd40ee8af0e4bacf6bead7e.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesI return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemDeclineRequestBuilderInternal(urlParams, requestAdapter) } // Post decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return nil } // ToPostRequestInformation decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemDeclineRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemDeclinePostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemDeclineRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemDeclineRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemDeclineRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemDeclineRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemDeclineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/275a20a265cf0eeed40af09434850004299f4fb3c6646055cbdf5a9103f4c62a.go b/users/275a20a265cf0eeed40af09434850004299f4fb3c6646055cbdf5a9103f4c62a.go index 68c4de45cbc..9fbf50aad5c 100644 --- a/users/275a20a265cf0eeed40af09434850004299f4fb3c6646055cbdf5a9103f4c62a.go +++ b/users/275a20a265cf0eeed40af09434850004299f4fb3c6646055cbdf5a9103f4c62a.go @@ -40,6 +40,7 @@ func NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachme return NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachm return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachm return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) { return NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/28f6e801d678c6b6bcc5dc3e56f41109134e7b86ceed78c6f3a4afd932245a0e.go b/users/28f6e801d678c6b6bcc5dc3e56f41109134e7b86ceed78c6f3a4afd932245a0e.go index b5378b87e23..fd74b8bf8b9 100644 --- a/users/28f6e801d678c6b6bcc5dc3e56f41109134e7b86ceed78c6f3a4afd932245a0e.go +++ b/users/28f6e801d678c6b6bcc5dc3e56f41109134e7b86ceed78c6f3a4afd932245a0e.go @@ -31,6 +31,7 @@ func NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceAcceptRecommend return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceAcceptRecommendationsRequestBuilderInternal(urlParams, requestAdapter) } // Post allows the acceptance of recommendations on all accessReviewInstanceDecisionItem objects that haven't been reviewed for an accessReviewInstance object for which the calling user is a reviewer. Recommendations are generated if recommendationsEnabled is true on the accessReviewScheduleDefinition object. If there isn't a recommendation on an accessReviewInstanceDecisionItem object no decision will be recorded. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceAcceptRecommen return nil } // ToPostRequestInformation allows the acceptance of recommendations on all accessReviewInstanceDecisionItem objects that haven't been reviewed for an accessReviewInstance object for which the calling user is a reviewer. Recommendations are generated if recommendationsEnabled is true on the accessReviewScheduleDefinition object. If there isn't a recommendation on an accessReviewInstanceDecisionItem object no decision will be recorded. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceAcceptRecommendationsRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceAcceptRecommendationsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceAcceptRecommen return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceAcceptRecommendationsRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceAcceptRecommendationsRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemDecisionsItemInstanceAcceptRecommendationsRequestBuilder) { return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceAcceptRecommendationsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/29392a6d4765e329d050fa0cd8303ffa7bc2ae8e50c8c52849a65a6cedc8c58f.go b/users/29392a6d4765e329d050fa0cd8303ffa7bc2ae8e50c8c52849a65a6cedc8c58f.go index 4bf8d907c22..d71f9b30c12 100644 --- a/users/29392a6d4765e329d050fa0cd8303ffa7bc2ae8e50c8c52849a65a6cedc8c58f.go +++ b/users/29392a6d4765e329d050fa0cd8303ffa7bc2ae8e50c8c52849a65a6cedc8c58f.go @@ -48,6 +48,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIns return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,6 +65,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return nil } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -84,6 +86,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToDeleteRequestInformation delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +98,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return requestInfo, nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +113,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/2a27057c0c43028858d134ffe25c5885079ff9662bacfcbbb043075d3360f391.go b/users/2a27057c0c43028858d134ffe25c5885079ff9662bacfcbbb043075d3360f391.go index 34424161f78..0409102f5c8 100644 --- a/users/2a27057c0c43028858d134ffe25c5885079ff9662bacfcbbb043075d3360f391.go +++ b/users/2a27057c0c43028858d134ffe25c5885079ff9662bacfcbbb043075d3360f391.go @@ -47,6 +47,7 @@ type ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttach Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentId provides operations to manage the attachments property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) ByAttachmentId(attachmentId string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAt return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAt return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } // Post create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -122,6 +125,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAt return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAt return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAt return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/2aeeee140abbe04971476197bc3403bb94a14d2d837bb3eeea9198c81d381ba2.go b/users/2aeeee140abbe04971476197bc3403bb94a14d2d837bb3eeea9198c81d381ba2.go index be2180f3651..95e5d3b175d 100644 --- a/users/2aeeee140abbe04971476197bc3403bb94a14d2d837bb3eeea9198c81d381ba2.go +++ b/users/2aeeee140abbe04971476197bc3403bb94a14d2d837bb3eeea9198c81d381ba2.go @@ -55,6 +55,7 @@ func NewItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPol return NewItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property dataLossPreventionPolicies for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPo return nil } // Get get dataLossPreventionPolicies from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DataLossPreventionPolicyable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DataLossPreventionPolicyable, error) { @@ -91,6 +93,7 @@ func (m *ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPo return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DataLossPreventionPolicyable), nil } // Patch update the navigation property dataLossPreventionPolicies in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DataLossPreventionPolicyable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DataLossPreventionPolicyable, requestConfiguration *ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DataLossPreventionPolicyable, error) { @@ -111,6 +114,7 @@ func (m *ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPo return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DataLossPreventionPolicyable), nil } // ToDeleteRequestInformation delete navigation property dataLossPreventionPolicies for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPo return requestInfo, nil } // ToGetRequestInformation get dataLossPreventionPolicies from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPo return requestInfo, nil } // ToPatchRequestInformation update the navigation property dataLossPreventionPolicies in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DataLossPreventionPolicyable, requestConfiguration *ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilder when successful func (m *ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilder) WithUrl(rawUrl string)(*ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilder) { return NewItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/2b61906b9691ebac5fd09ab2dc373d9929075a0d23952e837ea2afe746c11951.go b/users/2b61906b9691ebac5fd09ab2dc373d9929075a0d23952e837ea2afe746c11951.go index d6b26cc790a..f7946fe1b34 100644 --- a/users/2b61906b9691ebac5fd09ab2dc373d9929075a0d23952e837ea2afe746c11951.go +++ b/users/2b61906b9691ebac5fd09ab2dc373d9929075a0d23952e837ea2afe746c11951.go @@ -55,6 +55,7 @@ func NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsExt return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsEx return nil } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsEx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsEx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsEx return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsEx return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsEx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) { return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/2c475153c555c1e03d71cc869ca287ecebeacbaaf9188141f6186fa16ff486a6.go b/users/2c475153c555c1e03d71cc869ca287ecebeacbaaf9188141f6186fa16ff486a6.go index ed6c3e191a6..aad62347cd9 100644 --- a/users/2c475153c555c1e03d71cc869ca287ecebeacbaaf9188141f6186fa16ff486a6.go +++ b/users/2c475153c555c1e03d71cc869ca287ecebeacbaaf9188141f6186fa16ff486a6.go @@ -41,6 +41,7 @@ func NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDefin return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDefinitionRequestBuilderInternal(urlParams, requestAdapter) } // Get there's exactly one accessReviewScheduleDefinition associated with each instance. It's the parent schedule for the instance, where instances are created for each recurrence of a review definition and each group selected to review by the definition. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewScheduleDefinitionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDefinitionRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDefinitionRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewScheduleDefinitionable, error) { @@ -61,6 +62,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDefi return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewScheduleDefinitionable), nil } // ToGetRequestInformation there's exactly one accessReviewScheduleDefinition associated with each instance. It's the parent schedule for the instance, where instances are created for each recurrence of a review definition and each group selected to review by the definition. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDefinitionRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDefinitionRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDefi return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDefinitionRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDefinitionRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDefinitionRequestBuilder) { return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDefinitionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/2cc4c549a346136c9cc3ce3284dd1c77044c23f2aedac36a6632cda98ec2e744.go b/users/2cc4c549a346136c9cc3ce3284dd1c77044c23f2aedac36a6632cda98ec2e744.go index 7b57363526e..1e680c928a4 100644 --- a/users/2cc4c549a346136c9cc3ce3284dd1c77044c23f2aedac36a6632cda98ec2e744.go +++ b/users/2cc4c549a346136c9cc3ce3284dd1c77044c23f2aedac36a6632cda98ec2e744.go @@ -47,6 +47,7 @@ type ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalStepsRe Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByApprovalStepId provides operations to manage the steps property of the microsoft.graph.approval entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalStepsApprovalStepItemRequestBuilder when successful func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalStepsRequestBuilder) ByApprovalStepId(approvalStepId string)(*ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalStepsApprovalStepItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalSte return NewItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalStepsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get used to represent the decision associated with a single step in the approval process configured in approvalStage. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ApprovalStepCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalStepsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalStepsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalStepCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalSte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalStepCollectionResponseable), nil } // Post create new navigation property to steps for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ApprovalStepable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalStepsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalStepable, requestConfiguration *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalStepsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalStepable, error) { @@ -117,6 +120,7 @@ func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalSte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalStepable), nil } // ToGetRequestInformation used to represent the decision associated with a single step in the approval process configured in approvalStage. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalStepsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalStepsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalSte return requestInfo, nil } // ToPostRequestInformation create new navigation property to steps for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalStepsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalStepable, requestConfiguration *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalStepsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalSte return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalStepsRequestBuilder when successful func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalStepsRequestBuilder) WithUrl(rawUrl string)(*ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalStepsRequestBuilder) { return NewItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalStepsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/2d01222b0ef4b4fcd95783bc0d7aff1ded810f095a7aef958acbd8635a6009ef.go b/users/2d01222b0ef4b4fcd95783bc0d7aff1ded810f095a7aef958acbd8635a6009ef.go index ca0793c6f22..ff5d64183e0 100644 --- a/users/2d01222b0ef4b4fcd95783bc0d7aff1ded810f095a7aef958acbd8635a6009ef.go +++ b/users/2d01222b0ef4b4fcd95783bc0d7aff1ded810f095a7aef958acbd8635a6009ef.go @@ -81,6 +81,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -105,6 +106,11 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilder) Instances()(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilder) PermanentDelete()(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) { @@ -116,6 +122,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -130,6 +137,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/2db0eaa8c91029ffd8a6c24f24dfd37b5bb1815c0e2c7881747ae7338cb065f6.go b/users/2db0eaa8c91029ffd8a6c24f24dfd37b5bb1815c0e2c7881747ae7338cb065f6.go index 45bb2894cc9..0aab3aaac26 100644 --- a/users/2db0eaa8c91029ffd8a6c24f24dfd37b5bb1815c0e2c7881747ae7338cb065f6.go +++ b/users/2db0eaa8c91029ffd8a6c24f24dfd37b5bb1815c0e2c7881747ae7338cb065f6.go @@ -48,6 +48,7 @@ func NewItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmen return NewItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,6 +65,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsAttachme return nil } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -84,6 +86,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsAttachme return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToDeleteRequestInformation delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +98,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsAttachme return requestInfo, nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +113,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsAttachme return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) { return NewItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/2ea6a6679404a5cb6acba294a3c6a349687a6de9983bb5bce31ca3e89a0ad698.go b/users/2ea6a6679404a5cb6acba294a3c6a349687a6de9983bb5bce31ca3e89a0ad698.go index d7eee819bb3..6df9a187d2c 100644 --- a/users/2ea6a6679404a5cb6acba294a3c6a349687a6de9983bb5bce31ca3e89a0ad698.go +++ b/users/2ea6a6679404a5cb6acba294a3c6a349687a6de9983bb5bce31ca3e89a0ad698.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIns return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return nil } // ToPostRequestInformation dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/2f1a39933c91cdb4734a6c7ce8ad410311a225a5e2454f710535e729ca5fc890.go b/users/2f1a39933c91cdb4734a6c7ce8ad410311a225a5e2454f710535e729ca5fc890.go index 7c32bf67d89..17e0b917010 100644 --- a/users/2f1a39933c91cdb4734a6c7ce8ad410311a225a5e2454f710535e729ca5fc890.go +++ b/users/2f1a39933c91cdb4734a6c7ce8ad410311a225a5e2454f710535e729ca5fc890.go @@ -31,6 +31,7 @@ func NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemDismiss return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemDismis return nil } // ToPostRequestInformation dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemDismis return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilder) { return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/2fe06467a7e769f5d083c2ce1cab5298a8b6662feabfea606db5aa1904e65032.go b/users/2fe06467a7e769f5d083c2ce1cab5298a8b6662feabfea606db5aa1904e65032.go new file mode 100644 index 00000000000..2124882add8 --- /dev/null +++ b/users/2fe06467a7e769f5d083c2ce1cab5298a8b6662feabfea606db5aa1904e65032.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView/{event%2Did}/exceptionOccurrences/{event%2Did1}/instances/{event%2Did2}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/31a0f2858ed9ddcd0ad7e85039920e5eff4ab59cac6f4a69545f7e16b1de944e.go b/users/31a0f2858ed9ddcd0ad7e85039920e5eff4ab59cac6f4a69545f7e16b1de944e.go index 94482d395e0..c4bc370ea30 100644 --- a/users/31a0f2858ed9ddcd0ad7e85039920e5eff4ab59cac6f4a69545f7e16b1de944e.go +++ b/users/31a0f2858ed9ddcd0ad7e85039920e5eff4ab59cac6f4a69545f7e16b1de944e.go @@ -40,6 +40,7 @@ func NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensio return NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensi return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensi return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder) { return NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/3255a246e5f40b496b6376708a47cc977819aea760df02ec36e4a2b89b633522.go b/users/3255a246e5f40b496b6376708a47cc977819aea760df02ec36e4a2b89b633522.go index ca3e3df52d8..64b28d81101 100644 --- a/users/3255a246e5f40b496b6376708a47cc977819aea760df02ec36e4a2b89b633522.go +++ b/users/3255a246e5f40b496b6376708a47cc977819aea760df02ec36e4a2b89b633522.go @@ -48,6 +48,7 @@ func NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAt return NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,6 +65,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsA return nil } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -84,6 +86,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsA return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToDeleteRequestInformation delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +98,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsA return requestInfo, nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +113,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsA return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) { return NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/344b8c72e47147062778fa0d4aba35e63fd714b3a1521648840c9f9c161e8a42.go b/users/344b8c72e47147062778fa0d4aba35e63fd714b3a1521648840c9f9c161e8a42.go index 46b31bdb0dd..ef8b808031d 100644 --- a/users/344b8c72e47147062778fa0d4aba35e63fd714b3a1521648840c9f9c161e8a42.go +++ b/users/344b8c72e47147062778fa0d4aba35e63fd714b3a1521648840c9f9c161e8a42.go @@ -40,6 +40,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesC return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesCountRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesCountRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/366a09a0134cfac90432e42d6ad10bd2d353b3c9b209a66ee4227fe820f80358.go b/users/366a09a0134cfac90432e42d6ad10bd2d353b3c9b209a66ee4227fe820f80358.go index a5d56151edf..993d6043862 100644 --- a/users/366a09a0134cfac90432e42d6ad10bd2d353b3c9b209a66ee4227fe820f80358.go +++ b/users/366a09a0134cfac90432e42d6ad10bd2d353b3c9b209a66ee4227fe820f80358.go @@ -55,6 +55,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccur return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return nil } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/3792a26384e711ffb4185e7681ea2c4e5466628d1885d9d7b03d78468a543868.go b/users/3792a26384e711ffb4185e7681ea2c4e5466628d1885d9d7b03d78468a543868.go index 99d7e22340a..c706b33d778 100644 --- a/users/3792a26384e711ffb4185e7681ea2c4e5466628d1885d9d7b03d78468a543868.go +++ b/users/3792a26384e711ffb4185e7681ea2c4e5466628d1885d9d7b03d78468a543868.go @@ -60,6 +60,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesAccessRe return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Delete delete navigation property stages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesAccessReviewStageItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesAccessReviewStageItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -76,6 +77,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesAccessRe return nil } // Get if the instance has multiple stages, this returns the collection of stages. A new stage will only be created when the previous stage ends. The existence, number, and settings of stages on a review instance are created based on the accessReviewStageSettings on the parent accessReviewScheduleDefinition. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewStageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesAccessReviewStageItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesAccessReviewStageItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewStageable, error) { @@ -96,6 +98,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesAccessRe return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewStageable), nil } // Patch update the navigation property stages in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewStageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesAccessReviewStageItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewStageable, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesAccessReviewStageItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewStageable, error) { @@ -121,6 +124,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesAccessRe return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemStopRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property stages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesAccessReviewStageItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesAccessReviewStageItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -132,6 +136,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesAccessRe return requestInfo, nil } // ToGetRequestInformation if the instance has multiple stages, this returns the collection of stages. A new stage will only be created when the previous stage ends. The existence, number, and settings of stages on a review instance are created based on the accessReviewStageSettings on the parent accessReviewScheduleDefinition. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesAccessReviewStageItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesAccessReviewStageItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesAccessRe return requestInfo, nil } // ToPatchRequestInformation update the navigation property stages in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesAccessReviewStageItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewStageable, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesAccessReviewStageItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -161,6 +167,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesAccessRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesAccessReviewStageItemRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesAccessReviewStageItemRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesAccessReviewStageItemRequestBuilder) { return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesAccessReviewStageItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/37d8312e33b8044260b1769f9ba6dc0d2dc052ca993d634d00bb3c28dbeacd41.go b/users/37d8312e33b8044260b1769f9ba6dc0d2dc052ca993d634d00bb3c28dbeacd41.go index 9ced202b6a3..d75a0936054 100644 --- a/users/37d8312e33b8044260b1769f9ba6dc0d2dc052ca993d634d00bb3c28dbeacd41.go +++ b/users/37d8312e33b8044260b1769f9ba6dc0d2dc052ca993d634d00bb3c28dbeacd41.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemDec return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemDeclineRequestBuilderInternal(urlParams, requestAdapter) } // Post decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemDe return nil } // ToPostRequestInformation decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemDeclineRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemDeclinePostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemDeclineRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemDe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemDeclineRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemDeclineRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemDeclineRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemDeclineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/3834112cfc3825e04ccb56f960ce095d709be2f66ded80499e078de06be8b2af.go b/users/3834112cfc3825e04ccb56f960ce095d709be2f66ded80499e078de06be8b2af.go index d936e8832e1..dec7fb3b524 100644 --- a/users/3834112cfc3825e04ccb56f960ce095d709be2f66ded80499e078de06be8b2af.go +++ b/users/3834112cfc3825e04ccb56f960ce095d709be2f66ded80499e078de06be8b2af.go @@ -80,6 +80,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return res.(ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -103,6 +104,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return res.(ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesDeltaGetResponseable), nil } // ToGetRequestInformation get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +119,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesDeltaRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesDeltaRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/384b03e24039cf5c294812caf4e75561a27a5ba394b579b20abf975f3a253db5.go b/users/384b03e24039cf5c294812caf4e75561a27a5ba394b579b20abf975f3a253db5.go index 06eeb06524a..cd9d63f2396 100644 --- a/users/384b03e24039cf5c294812caf4e75561a27a5ba394b579b20abf975f3a253db5.go +++ b/users/384b03e24039cf5c294812caf4e75561a27a5ba394b579b20abf975f3a253db5.go @@ -40,6 +40,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesI return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/3987d9195d7c701db0051ae328581b4a4f829b706b855c1b71cdf046b80ea466.go b/users/3987d9195d7c701db0051ae328581b4a4f829b706b855c1b71cdf046b80ea466.go index fc2e3a89e48..964e282ea9e 100644 --- a/users/3987d9195d7c701db0051ae328581b4a4f829b706b855c1b71cdf046b80ea466.go +++ b/users/3987d9195d7c701db0051ae328581b4a4f829b706b855c1b71cdf046b80ea466.go @@ -47,6 +47,7 @@ type ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItem Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/3acb081dfd9bcdbf37fd3b1263f7eb4accb6358162509eaaf02e5ee930c17f07.go b/users/3acb081dfd9bcdbf37fd3b1263f7eb4accb6358162509eaaf02e5ee930c17f07.go index 72457c82768..496fd035e00 100644 --- a/users/3acb081dfd9bcdbf37fd3b1263f7eb4accb6358162509eaaf02e5ee930c17f07.go +++ b/users/3acb081dfd9bcdbf37fd3b1263f7eb4accb6358162509eaaf02e5ee930c17f07.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemTentativ return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemTentativelyAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemTentati return nil } // ToPostRequestInformation tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemTentativelyAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemTentativelyAcceptPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemTentativelyAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemTentati return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemTentativelyAcceptRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemTentativelyAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemTentativelyAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/3b9d66e7aa12bbecb67b8265efa2841d27c10aff632cd47bc181ac55794ae4c5.go b/users/3b9d66e7aa12bbecb67b8265efa2841d27c10aff632cd47bc181ac55794ae4c5.go index 78cca3cb52b..e0d067cd79a 100644 --- a/users/3b9d66e7aa12bbecb67b8265efa2841d27c10aff632cd47bc181ac55794ae4c5.go +++ b/users/3b9d66e7aa12bbecb67b8265efa2841d27c10aff632cd47bc181ac55794ae4c5.go @@ -55,6 +55,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesI return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return nil } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/3c8e945fbf3c4b4c8d5a023a78089a59296da463d725ca6e17dc9d91b07df3fe.go b/users/3c8e945fbf3c4b4c8d5a023a78089a59296da463d725ca6e17dc9d91b07df3fe.go index d460ad0ae23..10c764c25ae 100644 --- a/users/3c8e945fbf3c4b4c8d5a023a78089a59296da463d725ca6e17dc9d91b07df3fe.go +++ b/users/3c8e945fbf3c4b4c8d5a023a78089a59296da463d725ca6e17dc9d91b07df3fe.go @@ -55,6 +55,7 @@ func NewItemDeviceManagementTroubleshootingEventsDeviceManagementTroubleshooting return NewItemDeviceManagementTroubleshootingEventsDeviceManagementTroubleshootingEventItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property deviceManagementTroubleshootingEvents for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDeviceManagementTroubleshootingEventsDeviceManagementTroubleshootingEventItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemDeviceManagementTroubleshootingEventsDeviceManagementTroubleshootingEventItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemDeviceManagementTroubleshootingEventsDeviceManagementTroubleshootin return nil } // Get the list of troubleshooting events for this user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DeviceManagementTroubleshootingEventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDeviceManagementTroubleshootingEventsDeviceManagementTroubleshootingEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDeviceManagementTroubleshootingEventsDeviceManagementTroubleshootingEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceManagementTroubleshootingEventable, error) { @@ -91,6 +93,7 @@ func (m *ItemDeviceManagementTroubleshootingEventsDeviceManagementTroubleshootin return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceManagementTroubleshootingEventable), nil } // Patch update the navigation property deviceManagementTroubleshootingEvents in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DeviceManagementTroubleshootingEventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDeviceManagementTroubleshootingEventsDeviceManagementTroubleshootingEventItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceManagementTroubleshootingEventable, requestConfiguration *ItemDeviceManagementTroubleshootingEventsDeviceManagementTroubleshootingEventItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceManagementTroubleshootingEventable, error) { @@ -111,6 +114,7 @@ func (m *ItemDeviceManagementTroubleshootingEventsDeviceManagementTroubleshootin return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceManagementTroubleshootingEventable), nil } // ToDeleteRequestInformation delete navigation property deviceManagementTroubleshootingEvents for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDeviceManagementTroubleshootingEventsDeviceManagementTroubleshootingEventItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemDeviceManagementTroubleshootingEventsDeviceManagementTroubleshootingEventItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemDeviceManagementTroubleshootingEventsDeviceManagementTroubleshootin return requestInfo, nil } // ToGetRequestInformation the list of troubleshooting events for this user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDeviceManagementTroubleshootingEventsDeviceManagementTroubleshootingEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDeviceManagementTroubleshootingEventsDeviceManagementTroubleshootingEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemDeviceManagementTroubleshootingEventsDeviceManagementTroubleshootin return requestInfo, nil } // ToPatchRequestInformation update the navigation property deviceManagementTroubleshootingEvents in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDeviceManagementTroubleshootingEventsDeviceManagementTroubleshootingEventItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceManagementTroubleshootingEventable, requestConfiguration *ItemDeviceManagementTroubleshootingEventsDeviceManagementTroubleshootingEventItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemDeviceManagementTroubleshootingEventsDeviceManagementTroubleshootin return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDeviceManagementTroubleshootingEventsDeviceManagementTroubleshootingEventItemRequestBuilder when successful func (m *ItemDeviceManagementTroubleshootingEventsDeviceManagementTroubleshootingEventItemRequestBuilder) WithUrl(rawUrl string)(*ItemDeviceManagementTroubleshootingEventsDeviceManagementTroubleshootingEventItemRequestBuilder) { return NewItemDeviceManagementTroubleshootingEventsDeviceManagementTroubleshootingEventItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/3d0d858ce30a5d13a9bcdadda543b7e09ee8ede03dec1ad8c5ed9d74b3192587.go b/users/3d0d858ce30a5d13a9bcdadda543b7e09ee8ede03dec1ad8c5ed9d74b3192587.go index 4f6d00394c8..3f7e73ddfa7 100644 --- a/users/3d0d858ce30a5d13a9bcdadda543b7e09ee8ede03dec1ad8c5ed9d74b3192587.go +++ b/users/3d0d858ce30a5d13a9bcdadda543b7e09ee8ede03dec1ad8c5ed9d74b3192587.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesI return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemForwardRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return nil } // ToPostRequestInformation this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemForwardPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemForwardRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/3d150e8dd85caf26012912c49b5d81f4c870139c65a7a32ee7744f37e66fb085.go b/users/3d150e8dd85caf26012912c49b5d81f4c870139c65a7a32ee7744f37e66fb085.go index e213226b9f2..424d10b8cd0 100644 --- a/users/3d150e8dd85caf26012912c49b5d81f4c870139c65a7a32ee7744f37e66fb085.go +++ b/users/3d150e8dd85caf26012912c49b5d81f4c870139c65a7a32ee7744f37e66fb085.go @@ -40,6 +40,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesI return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsCountRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsCountRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/3f7c37107dc65776a7c0a1b9ebc3c5926580ee73a3f102c4f0d16d72c6b5f66f.go b/users/3f7c37107dc65776a7c0a1b9ebc3c5926580ee73a3f102c4f0d16d72c6b5f66f.go index 1388e98f8c4..ad7bc6b6c26 100644 --- a/users/3f7c37107dc65776a7c0a1b9ebc3c5926580ee73a3f102c4f0d16d72c6b5f66f.go +++ b/users/3f7c37107dc65776a7c0a1b9ebc3c5926580ee73a3f102c4f0d16d72c6b5f66f.go @@ -47,6 +47,7 @@ type ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachment Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentId provides operations to manage the attachments property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ByAttachmentId(attachmentId string)(*ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttach return NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttach return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } // Post create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -122,6 +125,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttach return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttach return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttach return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) { return NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/402be3f582d9b0ce32f67f4ca87d64b43c2acf850c482af059ad46ba8443a6f1.go b/users/402be3f582d9b0ce32f67f4ca87d64b43c2acf850c482af059ad46ba8443a6f1.go index 6700e071262..08c3d4d9070 100644 --- a/users/402be3f582d9b0ce32f67f4ca87d64b43c2acf850c482af059ad46ba8443a6f1.go +++ b/users/402be3f582d9b0ce32f67f4ca87d64b43c2acf850c482af059ad46ba8443a6f1.go @@ -32,6 +32,7 @@ func NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAt return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemA return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemA return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/4107c2a9a90fda55c3a524fd19c3dff948391294a25faa63cc2720d73f294d9c.go b/users/4107c2a9a90fda55c3a524fd19c3dff948391294a25faa63cc2720d73f294d9c.go index 4c6ed567811..8cbddd44fc8 100644 --- a/users/4107c2a9a90fda55c3a524fd19c3dff948391294a25faa63cc2720d73f294d9c.go +++ b/users/4107c2a9a90fda55c3a524fd19c3dff948391294a25faa63cc2720d73f294d9c.go @@ -11,7 +11,7 @@ import ( type ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -44,6 +44,7 @@ type ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstan QueryParameters *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesRequestBuilderGetQueryParameters } // ByEventId2 provides operations to manage the instances property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesRequestBuilder) ByEventId2(eventId2 string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -78,7 +79,8 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesRequestBuilder) Delta()(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesDeltaRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -98,7 +100,8 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,6 +116,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/41a4e07c8ec67b075d79802078d344098511b652dce20c101c0ca53f3bbfa358.go b/users/41a4e07c8ec67b075d79802078d344098511b652dce20c101c0ca53f3bbfa358.go index 76144d4a5e2..c2f9d34ac14 100644 --- a/users/41a4e07c8ec67b075d79802078d344098511b652dce20c101c0ca53f3bbfa358.go +++ b/users/41a4e07c8ec67b075d79802078d344098511b652dce20c101c0ca53f3bbfa358.go @@ -47,6 +47,7 @@ type ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurren Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentId provides operations to manage the attachments property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ByAttachmentId(attachmentId string)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } // Post create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -122,6 +125,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/41ed91a435e483dc3d8b2263cab9d7a69bb1cfd004f8a8d32c374ca67918df68.go b/users/41ed91a435e483dc3d8b2263cab9d7a69bb1cfd004f8a8d32c374ca67918df68.go index 587439e9449..12f59b02dfd 100644 --- a/users/41ed91a435e483dc3d8b2263cab9d7a69bb1cfd004f8a8d32c374ca67918df68.go +++ b/users/41ed91a435e483dc3d8b2263cab9d7a69bb1cfd004f8a8d32c374ca67918df68.go @@ -55,6 +55,7 @@ func NewItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsAssignmentF return NewItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsAssignmentFilterEvaluationStatusDetailsItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property assignmentFilterEvaluationStatusDetails for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsAssignmentFilterEvaluationStatusDetailsItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsAssignmentFilterEvaluationStatusDetailsItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsAssignment return nil } // Get managed device mobile app configuration states for this device. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AssignmentFilterEvaluationStatusDetailsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsAssignmentFilterEvaluationStatusDetailsItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsAssignmentFilterEvaluationStatusDetailsItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AssignmentFilterEvaluationStatusDetailsable, error) { @@ -91,6 +93,7 @@ func (m *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsAssignment return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AssignmentFilterEvaluationStatusDetailsable), nil } // Patch update the navigation property assignmentFilterEvaluationStatusDetails in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AssignmentFilterEvaluationStatusDetailsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsAssignmentFilterEvaluationStatusDetailsItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AssignmentFilterEvaluationStatusDetailsable, requestConfiguration *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsAssignmentFilterEvaluationStatusDetailsItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AssignmentFilterEvaluationStatusDetailsable, error) { @@ -111,6 +114,7 @@ func (m *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsAssignment return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AssignmentFilterEvaluationStatusDetailsable), nil } // ToDeleteRequestInformation delete navigation property assignmentFilterEvaluationStatusDetails for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsAssignmentFilterEvaluationStatusDetailsItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsAssignmentFilterEvaluationStatusDetailsItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsAssignment return requestInfo, nil } // ToGetRequestInformation managed device mobile app configuration states for this device. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsAssignmentFilterEvaluationStatusDetailsItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsAssignmentFilterEvaluationStatusDetailsItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsAssignment return requestInfo, nil } // ToPatchRequestInformation update the navigation property assignmentFilterEvaluationStatusDetails in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsAssignmentFilterEvaluationStatusDetailsItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AssignmentFilterEvaluationStatusDetailsable, requestConfiguration *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsAssignmentFilterEvaluationStatusDetailsItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsAssignment return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsAssignmentFilterEvaluationStatusDetailsItemRequestBuilder when successful func (m *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsAssignmentFilterEvaluationStatusDetailsItemRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsAssignmentFilterEvaluationStatusDetailsItemRequestBuilder) { return NewItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsAssignmentFilterEvaluationStatusDetailsItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/4218cda68b7655a4106504046eb4d7a3bc3bd704ee28e489ffece038f890b10f.go b/users/4218cda68b7655a4106504046eb4d7a3bc3bd704ee28e489ffece038f890b10f.go index 7732f7d2d61..1d3e39c07eb 100644 --- a/users/4218cda68b7655a4106504046eb4d7a3bc3bd704ee28e489ffece038f890b10f.go +++ b/users/4218cda68b7655a4106504046eb4d7a3bc3bd704ee28e489ffece038f890b10f.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIns return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return nil } // ToPostRequestInformation accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAcceptPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/434eb0381a2128a0a22ebde8cb442751041edcac13fc50e212274d90217fec6a.go b/users/434eb0381a2128a0a22ebde8cb442751041edcac13fc50e212274d90217fec6a.go index b1adc586875..c38a22570ac 100644 --- a/users/434eb0381a2128a0a22ebde8cb442751041edcac13fc50e212274d90217fec6a.go +++ b/users/434eb0381a2128a0a22ebde8cb442751041edcac13fc50e212274d90217fec6a.go @@ -40,6 +40,7 @@ func NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAt return NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemA return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemA return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) { return NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/43e90a0ec43a6509b1c363426ab5af9abcdc166051089014477ec32761884ea0.go b/users/43e90a0ec43a6509b1c363426ab5af9abcdc166051089014477ec32761884ea0.go index 1105db2e8c3..ecd3434951f 100644 --- a/users/43e90a0ec43a6509b1c363426ab5af9abcdc166051089014477ec32761884ea0.go +++ b/users/43e90a0ec43a6509b1c363426ab5af9abcdc166051089014477ec32761884ea0.go @@ -40,6 +40,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensio return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensi return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensi return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensionsCountRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensionsCountRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/4447b3056e7dd1f81300c15913df724f58a4781b81d598c31037b5c3432ca509.go b/users/4447b3056e7dd1f81300c15913df724f58a4781b81d598c31037b5c3432ca509.go index 046a275bb7c..e8b230a9d00 100644 --- a/users/4447b3056e7dd1f81300c15913df724f58a4781b81d598c31037b5c3432ca509.go +++ b/users/4447b3056e7dd1f81300c15913df724f58a4781b81d598c31037b5c3432ca509.go @@ -32,6 +32,7 @@ func NewItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUplo return NewItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUpl return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUpl return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/463df897f3f951f43c276a9441225ff4dd79d193b91f70dea5adb81e4022a702.go b/users/463df897f3f951f43c276a9441225ff4dd79d193b91f70dea5adb81e4022a702.go index 21faae57d49..e5063be8488 100644 --- a/users/463df897f3f951f43c276a9441225ff4dd79d193b91f70dea5adb81e4022a702.go +++ b/users/463df897f3f951f43c276a9441225ff4dd79d193b91f70dea5adb81e4022a702.go @@ -40,6 +40,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesI return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsCountRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/473098a2a60ad25a9335fd961d7643878cfb69a5c2afcbd29d461effb0d82d94.go b/users/473098a2a60ad25a9335fd961d7643878cfb69a5c2afcbd29d461effb0d82d94.go index 70ec9af76dd..3eb33d669f0 100644 --- a/users/473098a2a60ad25a9335fd961d7643878cfb69a5c2afcbd29d461effb0d82d94.go +++ b/users/473098a2a60ad25a9335fd961d7643878cfb69a5c2afcbd29d461effb0d82d94.go @@ -31,6 +31,7 @@ func NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemTentativelyAc return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemTentativelyA return nil } // ToPostRequestInformation tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptPostRequestBodyable, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemTentativelyA return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/48cbadbbe66d0d9e3faa12adc00a32dce9fba960f716eba9539f896b3926c1da.go b/users/48cbadbbe66d0d9e3faa12adc00a32dce9fba960f716eba9539f896b3926c1da.go index 262287bf5e2..0ce866c5295 100644 --- a/users/48cbadbbe66d0d9e3faa12adc00a32dce9fba960f716eba9539f896b3926c1da.go +++ b/users/48cbadbbe66d0d9e3faa12adc00a32dce9fba960f716eba9539f896b3926c1da.go @@ -55,6 +55,7 @@ func NewItemPendingAccessReviewInstancesItemDecisionsItemInsightsGovernanceInsig return NewItemPendingAccessReviewInstancesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property insights for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInsightsGovernanceInsi return nil } // Get insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a GovernanceInsightable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightable, error) { @@ -91,6 +93,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInsightsGovernanceInsi return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightable), nil } // Patch update the navigation property insights in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a GovernanceInsightable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightable, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightable, error) { @@ -111,6 +114,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInsightsGovernanceInsi return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightable), nil } // ToDeleteRequestInformation delete navigation property insights for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInsightsGovernanceInsi return requestInfo, nil } // ToGetRequestInformation insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInsightsGovernanceInsi return requestInfo, nil } // ToPatchRequestInformation update the navigation property insights in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightable, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInsightsGovernanceInsi return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilder) { return NewItemPendingAccessReviewInstancesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/49ecd7509adc9f71741edec843f6478232680b2e847a75fa636da9d4dfe991d1.go b/users/49ecd7509adc9f71741edec843f6478232680b2e847a75fa636da9d4dfe991d1.go index 6dd5b71ae42..03ddeb87d20 100644 --- a/users/49ecd7509adc9f71741edec843f6478232680b2e847a75fa636da9d4dfe991d1.go +++ b/users/49ecd7509adc9f71741edec843f6478232680b2e847a75fa636da9d4dfe991d1.go @@ -55,6 +55,7 @@ func NewItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesManagedDe return NewItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesManagedDeviceMobileAppConfigurationStateItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property managedDeviceMobileAppConfigurationStates for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesManagedDeviceMobileAppConfigurationStateItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesManagedDeviceMobileAppConfigurationStateItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesManagedD return nil } // Get managed device mobile app configuration states for this device. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ManagedDeviceMobileAppConfigurationStateable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesManagedDeviceMobileAppConfigurationStateItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesManagedDeviceMobileAppConfigurationStateItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ManagedDeviceMobileAppConfigurationStateable, error) { @@ -91,6 +93,7 @@ func (m *ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesManagedD return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ManagedDeviceMobileAppConfigurationStateable), nil } // Patch update the navigation property managedDeviceMobileAppConfigurationStates in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ManagedDeviceMobileAppConfigurationStateable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesManagedDeviceMobileAppConfigurationStateItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ManagedDeviceMobileAppConfigurationStateable, requestConfiguration *ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesManagedDeviceMobileAppConfigurationStateItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ManagedDeviceMobileAppConfigurationStateable, error) { @@ -111,6 +114,7 @@ func (m *ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesManagedD return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ManagedDeviceMobileAppConfigurationStateable), nil } // ToDeleteRequestInformation delete navigation property managedDeviceMobileAppConfigurationStates for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesManagedDeviceMobileAppConfigurationStateItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesManagedDeviceMobileAppConfigurationStateItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesManagedD return requestInfo, nil } // ToGetRequestInformation managed device mobile app configuration states for this device. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesManagedDeviceMobileAppConfigurationStateItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesManagedDeviceMobileAppConfigurationStateItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesManagedD return requestInfo, nil } // ToPatchRequestInformation update the navigation property managedDeviceMobileAppConfigurationStates in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesManagedDeviceMobileAppConfigurationStateItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ManagedDeviceMobileAppConfigurationStateable, requestConfiguration *ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesManagedDeviceMobileAppConfigurationStateItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesManagedD return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesManagedDeviceMobileAppConfigurationStateItemRequestBuilder when successful func (m *ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesManagedDeviceMobileAppConfigurationStateItemRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesManagedDeviceMobileAppConfigurationStateItemRequestBuilder) { return NewItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesManagedDeviceMobileAppConfigurationStateItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/4a1034dae8e9adddb78c7df300087bfd06823b3021b02ca09736a73e1a91dcb3.go b/users/4a1034dae8e9adddb78c7df300087bfd06823b3021b02ca09736a73e1a91dcb3.go index 25e068990a6..5b38a481460 100644 --- a/users/4a1034dae8e9adddb78c7df300087bfd06823b3021b02ca09736a73e1a91dcb3.go +++ b/users/4a1034dae8e9adddb78c7df300087bfd06823b3021b02ca09736a73e1a91dcb3.go @@ -48,6 +48,7 @@ func NewItemAuthenticationMicrosoftAuthenticatorMethodsMicrosoftAuthenticatorAut return NewItemAuthenticationMicrosoftAuthenticatorMethodsMicrosoftAuthenticatorAuthenticationMethodItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete deletes a microsoftAuthenticatorAuthenticationMethod object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -72,6 +73,7 @@ func (m *ItemAuthenticationMicrosoftAuthenticatorMethodsMicrosoftAuthenticatorAu return NewItemAuthenticationMicrosoftAuthenticatorMethodsItemDeviceRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get read the properties and relationships of a microsoftAuthenticatorAuthenticationMethod object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MicrosoftAuthenticatorAuthenticationMethodable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -95,6 +97,7 @@ func (m *ItemAuthenticationMicrosoftAuthenticatorMethodsMicrosoftAuthenticatorAu return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MicrosoftAuthenticatorAuthenticationMethodable), nil } // ToDeleteRequestInformation deletes a microsoftAuthenticatorAuthenticationMethod object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationMicrosoftAuthenticatorMethodsMicrosoftAuthenticatorAuthenticationMethodItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationMicrosoftAuthenticatorMethodsMicrosoftAuthenticatorAuthenticationMethodItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -106,6 +109,7 @@ func (m *ItemAuthenticationMicrosoftAuthenticatorMethodsMicrosoftAuthenticatorAu return requestInfo, nil } // ToGetRequestInformation read the properties and relationships of a microsoftAuthenticatorAuthenticationMethod object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationMicrosoftAuthenticatorMethodsMicrosoftAuthenticatorAuthenticationMethodItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationMicrosoftAuthenticatorMethodsMicrosoftAuthenticatorAuthenticationMethodItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -120,6 +124,7 @@ func (m *ItemAuthenticationMicrosoftAuthenticatorMethodsMicrosoftAuthenticatorAu return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationMicrosoftAuthenticatorMethodsMicrosoftAuthenticatorAuthenticationMethodItemRequestBuilder when successful func (m *ItemAuthenticationMicrosoftAuthenticatorMethodsMicrosoftAuthenticatorAuthenticationMethodItemRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationMicrosoftAuthenticatorMethodsMicrosoftAuthenticatorAuthenticationMethodItemRequestBuilder) { return NewItemAuthenticationMicrosoftAuthenticatorMethodsMicrosoftAuthenticatorAuthenticationMethodItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/4a9a1b7524dccab255739f17ef2bf856fac24382818b82d01dde4a892a4a75ad.go b/users/4a9a1b7524dccab255739f17ef2bf856fac24382818b82d01dde4a892a4a75ad.go index 7c7d6a3b988..dde30cf77db 100644 --- a/users/4a9a1b7524dccab255739f17ef2bf856fac24382818b82d01dde4a892a4a75ad.go +++ b/users/4a9a1b7524dccab255739f17ef2bf856fac24382818b82d01dde4a892a4a75ad.go @@ -31,6 +31,7 @@ func NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceSendR return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceSendReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post send a reminder to the reviewers of a currently active accessReviewInstance. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceSend return nil } // ToPostRequestInformation send a reminder to the reviewers of a currently active accessReviewInstance. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceSendReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceSendReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceSend return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceSendReminderRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceSendReminderRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceSendReminderRequestBuilder) { return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceSendReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/4abea74ebe7185340c91bbc940f4e526779862b7a3d900034e6ef9a8d964c118.go b/users/4abea74ebe7185340c91bbc940f4e526779862b7a3d900034e6ef9a8d964c118.go index 67acfd6390a..418b7907303 100644 --- a/users/4abea74ebe7185340c91bbc940f4e526779862b7a3d900034e6ef9a8d964c118.go +++ b/users/4abea74ebe7185340c91bbc940f4e526779862b7a3d900034e6ef9a8d964c118.go @@ -55,6 +55,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesI return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return nil } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/4b16431a09873ee1348192390c1e55ea17a7e30755cc7e706371c88bb2912a8e.go b/users/4b16431a09873ee1348192390c1e55ea17a7e30755cc7e706371c88bb2912a8e.go index a297347f334..24a49d96689 100644 --- a/users/4b16431a09873ee1348192390c1e55ea17a7e30755cc7e706371c88bb2912a8e.go +++ b/users/4b16431a09873ee1348192390c1e55ea17a7e30755cc7e706371c88bb2912a8e.go @@ -32,6 +32,7 @@ func NewItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUplo return NewItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUpl return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUpl return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/4b6c25e303f32ce683636d24552be1d44e9682be84c667af6c9fc8cda1271ec8.go b/users/4b6c25e303f32ce683636d24552be1d44e9682be84c667af6c9fc8cda1271ec8.go new file mode 100644 index 00000000000..afddb876d05 --- /dev/null +++ b/users/4b6c25e303f32ce683636d24552be1d44e9682be84c667af6c9fc8cda1271ec8.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/4e10448a63a7ffb676ac004c9da9ac8779b130cd65d6d61c982b7b6b8a036b34.go b/users/4e10448a63a7ffb676ac004c9da9ac8779b130cd65d6d61c982b7b6b8a036b34.go index 15ce967fca8..bd7b2471c87 100644 --- a/users/4e10448a63a7ffb676ac004c9da9ac8779b130cd65d6d61c982b7b6b8a036b34.go +++ b/users/4e10448a63a7ffb676ac004c9da9ac8779b130cd65d6d61c982b7b6b8a036b34.go @@ -47,6 +47,7 @@ type ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensions Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtens return NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtens return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtens return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtens return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtens return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) { return NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/4ebd7213cdc17ab35ca466a91e4356a5c57f6fe189aac57ac78fdce7cc478c79.go b/users/4ebd7213cdc17ab35ca466a91e4356a5c57f6fe189aac57ac78fdce7cc478c79.go index 108ed14f8ff..a21471ed8cf 100644 --- a/users/4ebd7213cdc17ab35ca466a91e4356a5c57f6fe189aac57ac78fdce7cc478c79.go +++ b/users/4ebd7213cdc17ab35ca466a91e4356a5c57f6fe189aac57ac78fdce7cc478c79.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemDis return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemDismissReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemDi return nil } // ToPostRequestInformation dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemDismissReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemDismissReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemDi return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemDismissReminderRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemDismissReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemDismissReminderRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemDismissReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/5066ba1a50aff454323986f848e29116fb4ab8dd4cb26ff39cf8dc4cd2cd8420.go b/users/5066ba1a50aff454323986f848e29116fb4ab8dd4cb26ff39cf8dc4cd2cd8420.go index 66b92a3ec9f..8f7253c9692 100644 --- a/users/5066ba1a50aff454323986f848e29116fb4ab8dd4cb26ff39cf8dc4cd2cd8420.go +++ b/users/5066ba1a50aff454323986f848e29116fb4ab8dd4cb26ff39cf8dc4cd2cd8420.go @@ -55,6 +55,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarPermissionsCalendarPermission return NewItemCalendarGroupsItemCalendarsItemCalendarPermissionsCalendarPermissionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property calendarPermissions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarPermissionsCalendarPermissionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarPermissionsCalendarPermissionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarPermissionsCalendarPermissio return nil } // Get the permissions of the users with whom the calendar is shared. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a CalendarPermissionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarPermissionsCalendarPermissionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarPermissionsCalendarPermissionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarPermissionable, error) { @@ -91,6 +93,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarPermissionsCalendarPermissio return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarPermissionable), nil } // Patch update the navigation property calendarPermissions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a CalendarPermissionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarPermissionsCalendarPermissionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarPermissionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarPermissionsCalendarPermissionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarPermissionable, error) { @@ -111,6 +114,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarPermissionsCalendarPermissio return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarPermissionable), nil } // ToDeleteRequestInformation delete navigation property calendarPermissions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarPermissionsCalendarPermissionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarPermissionsCalendarPermissionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarPermissionsCalendarPermissio return requestInfo, nil } // ToGetRequestInformation the permissions of the users with whom the calendar is shared. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarPermissionsCalendarPermissionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarPermissionsCalendarPermissionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarPermissionsCalendarPermissio return requestInfo, nil } // ToPatchRequestInformation update the navigation property calendarPermissions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarPermissionsCalendarPermissionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarPermissionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarPermissionsCalendarPermissionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarPermissionsCalendarPermissio return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarPermissionsCalendarPermissionItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarPermissionsCalendarPermissionItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarPermissionsCalendarPermissionItemRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarPermissionsCalendarPermissionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/507d7deeba552d7facadf7be94b68390debcbb177ec9d17b689a8c5377e128d6.go b/users/507d7deeba552d7facadf7be94b68390debcbb177ec9d17b689a8c5377e128d6.go index 0cd7ca6f24b..23acc2809bf 100644 --- a/users/507d7deeba552d7facadf7be94b68390debcbb177ec9d17b689a8c5377e128d6.go +++ b/users/507d7deeba552d7facadf7be94b68390debcbb177ec9d17b689a8c5377e128d6.go @@ -32,6 +32,7 @@ func NewItemCalendarEventsItemExceptionOccurrencesItemAttachmentsCreateUploadSes return NewItemCalendarEventsItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsCreateUploadSe return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsCreateUploadSe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemCalendarEventsItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/52cef3c03567380feddfa31341af44a05f4412effefa6c375d85b43fe4d55608.go b/users/52cef3c03567380feddfa31341af44a05f4412effefa6c375d85b43fe4d55608.go index aeffbfa5940..5b189300a52 100644 --- a/users/52cef3c03567380feddfa31341af44a05f4412effefa6c375d85b43fe4d55608.go +++ b/users/52cef3c03567380feddfa31341af44a05f4412effefa6c375d85b43fe4d55608.go @@ -55,6 +55,7 @@ func NewItemInformationProtectionThreatAssessmentRequestsItemResultsThreatAssess return NewItemInformationProtectionThreatAssessmentRequestsItemResultsThreatAssessmentResultItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property results for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionThreatAssessmentRequestsItemResultsThreatAssessmentResultItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemInformationProtectionThreatAssessmentRequestsItemResultsThreatAssessmentResultItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemInformationProtectionThreatAssessmentRequestsItemResultsThreatAsses return nil } // Get a collection of threat assessment results. Read-only. By default, a GET /threatAssessmentRequests/{id} does not return this property unless you apply $expand on it. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ThreatAssessmentResultable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionThreatAssessmentRequestsItemResultsThreatAssessmentResultItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInformationProtectionThreatAssessmentRequestsItemResultsThreatAssessmentResultItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ThreatAssessmentResultable, error) { @@ -91,6 +93,7 @@ func (m *ItemInformationProtectionThreatAssessmentRequestsItemResultsThreatAsses return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ThreatAssessmentResultable), nil } // Patch update the navigation property results in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ThreatAssessmentResultable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionThreatAssessmentRequestsItemResultsThreatAssessmentResultItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ThreatAssessmentResultable, requestConfiguration *ItemInformationProtectionThreatAssessmentRequestsItemResultsThreatAssessmentResultItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ThreatAssessmentResultable, error) { @@ -111,6 +114,7 @@ func (m *ItemInformationProtectionThreatAssessmentRequestsItemResultsThreatAsses return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ThreatAssessmentResultable), nil } // ToDeleteRequestInformation delete navigation property results for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionThreatAssessmentRequestsItemResultsThreatAssessmentResultItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemInformationProtectionThreatAssessmentRequestsItemResultsThreatAssessmentResultItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemInformationProtectionThreatAssessmentRequestsItemResultsThreatAsses return requestInfo, nil } // ToGetRequestInformation a collection of threat assessment results. Read-only. By default, a GET /threatAssessmentRequests/{id} does not return this property unless you apply $expand on it. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionThreatAssessmentRequestsItemResultsThreatAssessmentResultItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemInformationProtectionThreatAssessmentRequestsItemResultsThreatAssessmentResultItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemInformationProtectionThreatAssessmentRequestsItemResultsThreatAsses return requestInfo, nil } // ToPatchRequestInformation update the navigation property results in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionThreatAssessmentRequestsItemResultsThreatAssessmentResultItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ThreatAssessmentResultable, requestConfiguration *ItemInformationProtectionThreatAssessmentRequestsItemResultsThreatAssessmentResultItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemInformationProtectionThreatAssessmentRequestsItemResultsThreatAsses return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInformationProtectionThreatAssessmentRequestsItemResultsThreatAssessmentResultItemRequestBuilder when successful func (m *ItemInformationProtectionThreatAssessmentRequestsItemResultsThreatAssessmentResultItemRequestBuilder) WithUrl(rawUrl string)(*ItemInformationProtectionThreatAssessmentRequestsItemResultsThreatAssessmentResultItemRequestBuilder) { return NewItemInformationProtectionThreatAssessmentRequestsItemResultsThreatAssessmentResultItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/5384dc1ae45bb93169993c337599f48f92d17f4ce6a83b85bb8a40be5ad421ef.go b/users/5384dc1ae45bb93169993c337599f48f92d17f4ce6a83b85bb8a40be5ad421ef.go index 361a4e63c7d..16950485ffd 100644 --- a/users/5384dc1ae45bb93169993c337599f48f92d17f4ce6a83b85bb8a40be5ad421ef.go +++ b/users/5384dc1ae45bb93169993c337599f48f92d17f4ce6a83b85bb8a40be5ad421ef.go @@ -47,6 +47,7 @@ type ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceContacte Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAccessReviewReviewerId provides operations to manage the contactedReviewers property of the microsoft.graph.accessReviewInstance entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceContactedReviewersAccessReviewReviewerItemRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceContactedReviewersRequestBuilder) ByAccessReviewReviewerId(accessReviewReviewerId string)(*ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceContactedReviewersAccessReviewReviewerItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceCont return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceContactedReviewersCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get returns the collection of reviewers who were contacted to complete this review. While the reviewers and fallbackReviewers properties of the accessReviewScheduleDefinition might specify group owners or managers as reviewers, contactedReviewers returns their individual identities. Supports $select. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewReviewerCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceContactedReviewersRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceContactedReviewersRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewReviewerCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceCont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewReviewerCollectionResponseable), nil } // Post create new navigation property to contactedReviewers for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewReviewerable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceContactedReviewersRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewReviewerable, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceContactedReviewersRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewReviewerable, error) { @@ -117,6 +120,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceCont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewReviewerable), nil } // ToGetRequestInformation returns the collection of reviewers who were contacted to complete this review. While the reviewers and fallbackReviewers properties of the accessReviewScheduleDefinition might specify group owners or managers as reviewers, contactedReviewers returns their individual identities. Supports $select. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceContactedReviewersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceContactedReviewersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceCont return requestInfo, nil } // ToPostRequestInformation create new navigation property to contactedReviewers for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceContactedReviewersRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewReviewerable, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceContactedReviewersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceCont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceContactedReviewersRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceContactedReviewersRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceContactedReviewersRequestBuilder) { return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceContactedReviewersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/5392ae1c0e8817880ca910c563f9bcf0bb8a22a0893636056d618f979dcb1586.go b/users/5392ae1c0e8817880ca910c563f9bcf0bb8a22a0893636056d618f979dcb1586.go index 9a3f0bde216..79a427321a5 100644 --- a/users/5392ae1c0e8817880ca910c563f9bcf0bb8a22a0893636056d618f979dcb1586.go +++ b/users/5392ae1c0e8817880ca910c563f9bcf0bb8a22a0893636056d618f979dcb1586.go @@ -55,6 +55,7 @@ func NewItemPendingAccessReviewInstancesItemContactedReviewersAccessReviewReview return NewItemPendingAccessReviewInstancesItemContactedReviewersAccessReviewReviewerItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property contactedReviewers for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemContactedReviewersAccessReviewReviewerItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemContactedReviewersAccessReviewReviewerItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemPendingAccessReviewInstancesItemContactedReviewersAccessReviewRevie return nil } // Get returns the collection of reviewers who were contacted to complete this review. While the reviewers and fallbackReviewers properties of the accessReviewScheduleDefinition might specify group owners or managers as reviewers, contactedReviewers returns their individual identities. Supports $select. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewReviewerable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemContactedReviewersAccessReviewReviewerItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemContactedReviewersAccessReviewReviewerItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewReviewerable, error) { @@ -91,6 +93,7 @@ func (m *ItemPendingAccessReviewInstancesItemContactedReviewersAccessReviewRevie return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewReviewerable), nil } // Patch update the navigation property contactedReviewers in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewReviewerable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemContactedReviewersAccessReviewReviewerItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewReviewerable, requestConfiguration *ItemPendingAccessReviewInstancesItemContactedReviewersAccessReviewReviewerItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewReviewerable, error) { @@ -111,6 +114,7 @@ func (m *ItemPendingAccessReviewInstancesItemContactedReviewersAccessReviewRevie return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewReviewerable), nil } // ToDeleteRequestInformation delete navigation property contactedReviewers for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemContactedReviewersAccessReviewReviewerItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemContactedReviewersAccessReviewReviewerItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemPendingAccessReviewInstancesItemContactedReviewersAccessReviewRevie return requestInfo, nil } // ToGetRequestInformation returns the collection of reviewers who were contacted to complete this review. While the reviewers and fallbackReviewers properties of the accessReviewScheduleDefinition might specify group owners or managers as reviewers, contactedReviewers returns their individual identities. Supports $select. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemContactedReviewersAccessReviewReviewerItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemContactedReviewersAccessReviewReviewerItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemPendingAccessReviewInstancesItemContactedReviewersAccessReviewRevie return requestInfo, nil } // ToPatchRequestInformation update the navigation property contactedReviewers in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemContactedReviewersAccessReviewReviewerItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewReviewerable, requestConfiguration *ItemPendingAccessReviewInstancesItemContactedReviewersAccessReviewReviewerItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemPendingAccessReviewInstancesItemContactedReviewersAccessReviewRevie return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemContactedReviewersAccessReviewReviewerItemRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemContactedReviewersAccessReviewReviewerItemRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemContactedReviewersAccessReviewReviewerItemRequestBuilder) { return NewItemPendingAccessReviewInstancesItemContactedReviewersAccessReviewReviewerItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/541a58e954ba9ee9c3b72b186901143f4c77f77fce1a3f5a35cb403ef3f7d553.go b/users/541a58e954ba9ee9c3b72b186901143f4c77f77fce1a3f5a35cb403ef3f7d553.go index de9197a90d1..b949a6f4f03 100644 --- a/users/541a58e954ba9ee9c3b72b186901143f4c77f77fce1a3f5a35cb403ef3f7d553.go +++ b/users/541a58e954ba9ee9c3b72b186901143f4c77f77fce1a3f5a35cb403ef3f7d553.go @@ -47,6 +47,7 @@ type ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItem Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/54ba335424260801b1d1af5681779169774fce3308abb0746e532921406fb79d.go b/users/54ba335424260801b1d1af5681779169774fce3308abb0746e532921406fb79d.go index d2f9d760bd9..d788c1b751b 100644 --- a/users/54ba335424260801b1d1af5681779169774fce3308abb0746e532921406fb79d.go +++ b/users/54ba335424260801b1d1af5681779169774fce3308abb0746e532921406fb79d.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemDi return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemD return nil } // ToPostRequestInformation dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemD return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilder) { return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/5797aaefa6589d11f63040b00267904d448c33af3c6cf17dda9670fb87dce9c7.go b/users/5797aaefa6589d11f63040b00267904d448c33af3c6cf17dda9670fb87dce9c7.go index 70aa580befc..df9cca93b2d 100644 --- a/users/5797aaefa6589d11f63040b00267904d448c33af3c6cf17dda9670fb87dce9c7.go +++ b/users/5797aaefa6589d11f63040b00267904d448c33af3c6cf17dda9670fb87dce9c7.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAcc return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAc return nil } // ToPostRequestInformation accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAcceptPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAc return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAcceptRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAcceptRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/586ca1135086a9851f4684936318600c377c317863b753f5eef5059812d199fa.go b/users/586ca1135086a9851f4684936318600c377c317863b753f5eef5059812d199fa.go index 1ba869b8f41..f7e926bf379 100644 --- a/users/586ca1135086a9851f4684936318600c377c317863b753f5eef5059812d199fa.go +++ b/users/586ca1135086a9851f4684936318600c377c317863b753f5eef5059812d199fa.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptio return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilderInternal(urlParams, requestAdapter) } // Post decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return nil } // ToPostRequestInformation decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemDeclinePostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/588c0d7d59c4e2c71419884dab88f02351e6f98d3dab2d6cdbbbef36482fcdde.go b/users/588c0d7d59c4e2c71419884dab88f02351e6f98d3dab2d6cdbbbef36482fcdde.go index 9a95dddb5b0..8551a39d933 100644 --- a/users/588c0d7d59c4e2c71419884dab88f02351e6f98d3dab2d6cdbbbef36482fcdde.go +++ b/users/588c0d7d59c4e2c71419884dab88f02351e6f98d3dab2d6cdbbbef36482fcdde.go @@ -31,6 +31,7 @@ func NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceStopA return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceStopApplyDecisionsRequestBuilderInternal(urlParams, requestAdapter) } // Post invoke action stopApplyDecisions +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceStopApplyDecisionsRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceStopApplyDecisionsRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceStop return nil } // ToPostRequestInformation invoke action stopApplyDecisions +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceStopApplyDecisionsRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceStopApplyDecisionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -58,6 +60,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceStop return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceStopApplyDecisionsRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceStopApplyDecisionsRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceStopApplyDecisionsRequestBuilder) { return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceStopApplyDecisionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/58e7f351a2883e17970f382879f0eca7767d3cbeb4b7ee64d243ceb5641c8dc5.go b/users/58e7f351a2883e17970f382879f0eca7767d3cbeb4b7ee64d243ceb5641c8dc5.go index da5d6088caf..86b252ffd4d 100644 --- a/users/58e7f351a2883e17970f382879f0eca7767d3cbeb4b7ee64d243ceb5641c8dc5.go +++ b/users/58e7f351a2883e17970f382879f0eca7767d3cbeb4b7ee64d243ceb5641c8dc5.go @@ -32,6 +32,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsCreateUploadSess return NewItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsCreateUploadSes return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsCreateUploadSes return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/5a903c6b789b730e4c0976880a86481474c43677947e37f5906efac88ab7e926.go b/users/5a903c6b789b730e4c0976880a86481474c43677947e37f5906efac88ab7e926.go index f7e09ce3d11..9f5de618e1b 100644 --- a/users/5a903c6b789b730e4c0976880a86481474c43677947e37f5906efac88ab7e926.go +++ b/users/5a903c6b789b730e4c0976880a86481474c43677947e37f5906efac88ab7e926.go @@ -81,6 +81,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -100,6 +101,11 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) PermanentDelete()(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) { @@ -111,6 +117,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -125,6 +132,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/5ac9507d7070b8a8972d0f7000e37e832bfcec0bc1f689b8fefd55f36f99e2c3.go b/users/5ac9507d7070b8a8972d0f7000e37e832bfcec0bc1f689b8fefd55f36f99e2c3.go index 44a266a0a59..b43fb6ebd8b 100644 --- a/users/5ac9507d7070b8a8972d0f7000e37e832bfcec0bc1f689b8fefd55f36f99e2c3.go +++ b/users/5ac9507d7070b8a8972d0f7000e37e832bfcec0bc1f689b8fefd55f36f99e2c3.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemCan return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemCancelRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemCa return nil } // ToPostRequestInformation this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemCancelPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemCa return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemCancelRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemCancelRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemCancelRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/5af5a7ad385cd3887d63799fc13912b267bc58c84507600d784e39ef9ee76aa7.go b/users/5af5a7ad385cd3887d63799fc13912b267bc58c84507600d784e39ef9ee76aa7.go index 2c9adacc568..6354d13791d 100644 --- a/users/5af5a7ad385cd3887d63799fc13912b267bc58c84507600d784e39ef9ee76aa7.go +++ b/users/5af5a7ad385cd3887d63799fc13912b267bc58c84507600d784e39ef9ee76aa7.go @@ -40,6 +40,7 @@ func NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemEx return NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemE return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemE return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder) { return NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/5b0e7a25e08cc58cf4777d2f9cc71ae0960e1c283a888c831ad9b4e299db16ad.go b/users/5b0e7a25e08cc58cf4777d2f9cc71ae0960e1c283a888c831ad9b4e299db16ad.go index a803b1c45c3..b117349ef01 100644 --- a/users/5b0e7a25e08cc58cf4777d2f9cc71ae0960e1c283a888c831ad9b4e299db16ad.go +++ b/users/5b0e7a25e08cc58cf4777d2f9cc71ae0960e1c283a888c831ad9b4e299db16ad.go @@ -48,6 +48,7 @@ func NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAt return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,6 +65,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsA return nil } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -84,6 +86,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsA return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToDeleteRequestInformation delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +98,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsA return requestInfo, nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +113,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsA return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) { return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/5b1f51ad85464c1038480d50c6370482292e8ad9053d9e5466b5e6ce9afb1ab1.go b/users/5b1f51ad85464c1038480d50c6370482292e8ad9053d9e5466b5e6ce9afb1ab1.go index 9fdd3292759..42c0e33695d 100644 --- a/users/5b1f51ad85464c1038480d50c6370482292e8ad9053d9e5466b5e6ce9afb1ab1.go +++ b/users/5b1f51ad85464c1038480d50c6370482292e8ad9053d9e5466b5e6ce9afb1ab1.go @@ -40,6 +40,7 @@ func NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachm return NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttach return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttach return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) { return NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/5b69dafa178fbf4f136fc9e9c71feb260c21ad92d388733b67ae9638e6779f09.go b/users/5b69dafa178fbf4f136fc9e9c71feb260c21ad92d388733b67ae9638e6779f09.go index 3340a92ea60..fe8242f364f 100644 --- a/users/5b69dafa178fbf4f136fc9e9c71feb260c21ad92d388733b67ae9638e6779f09.go +++ b/users/5b69dafa178fbf4f136fc9e9c71feb260c21ad92d388733b67ae9638e6779f09.go @@ -47,6 +47,7 @@ type ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurren Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/5b88b3f1386aaf0bb0ef1af03a6b10c11bc720ad7a3ed7c89d95207abaeede36.go b/users/5b88b3f1386aaf0bb0ef1af03a6b10c11bc720ad7a3ed7c89d95207abaeede36.go index c3b3ba41143..008c2e00d07 100644 --- a/users/5b88b3f1386aaf0bb0ef1af03a6b10c11bc720ad7a3ed7c89d95207abaeede36.go +++ b/users/5b88b3f1386aaf0bb0ef1af03a6b10c11bc720ad7a3ed7c89d95207abaeede36.go @@ -41,6 +41,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesI return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemCalendarRequestBuilderInternal(urlParams, requestAdapter) } // Get the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemCalendarRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemCalendarRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -61,6 +62,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable), nil } // ToGetRequestInformation the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemCalendarRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemCalendarRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemCalendarRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemCalendarRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemCalendarRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemCalendarRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/5da2d5d6882f5e5d9f38d0f1cd99843189f0679047c8864cb8528ce52acd7d74.go b/users/5da2d5d6882f5e5d9f38d0f1cd99843189f0679047c8864cb8528ce52acd7d74.go index b5606a12ed7..610783fc245 100644 --- a/users/5da2d5d6882f5e5d9f38d0f1cd99843189f0679047c8864cb8528ce52acd7d74.go +++ b/users/5da2d5d6882f5e5d9f38d0f1cd99843189f0679047c8864cb8528ce52acd7d74.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccur return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return nil } // ToPostRequestInformation postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/5da8efeeeaa4ff2aaf5d898920cd7d16b3e9cf3b412d04801351e5e0e98ce1ba.go b/users/5da8efeeeaa4ff2aaf5d898920cd7d16b3e9cf3b412d04801351e5e0e98ce1ba.go index 1bb47206123..027d4b6b651 100644 --- a/users/5da8efeeeaa4ff2aaf5d898920cd7d16b3e9cf3b412d04801351e5e0e98ce1ba.go +++ b/users/5da8efeeeaa4ff2aaf5d898920cd7d16b3e9cf3b412d04801351e5e0e98ce1ba.go @@ -55,6 +55,7 @@ func (m *ItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurit return res.(ItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurityEvaluateClassificationResultsEvaluateClassificationResultsResponseable), nil } // PostAsEvaluateClassificationResultsPostResponse use the classification results to compute the sensitivity label that should be applied and return the set of actions that must be taken to correctly label the information. This API is useful when a label should be set automatically based on classification of the file contents, rather than labeled directly by a user or service. To evaluate based on classification results, provide the contentInfo, which includes existing content metadata key-value pairs, and classification results. The API returns an informationProtectionAction that contains one of more of the following: +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurityEvaluateClassificationResultsEvaluateClassificationResultsPostResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -78,6 +79,7 @@ func (m *ItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurit return res.(ItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurityEvaluateClassificationResultsEvaluateClassificationResultsPostResponseable), nil } // ToPostRequestInformation use the classification results to compute the sensitivity label that should be applied and return the set of actions that must be taken to correctly label the information. This API is useful when a label should be set automatically based on classification of the file contents, rather than labeled directly by a user or service. To evaluate based on classification results, provide the contentInfo, which includes existing content metadata key-value pairs, and classification results. The API returns an informationProtectionAction that contains one of more of the following: +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurityEvaluateClassificationResultsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurityEvaluateClassificationResultsEvaluateClassificationResultsPostRequestBodyable, requestConfiguration *ItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurityEvaluateClassificationResultsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -93,6 +95,7 @@ func (m *ItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurit return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurityEvaluateClassificationResultsRequestBuilder when successful func (m *ItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurityEvaluateClassificationResultsRequestBuilder) WithUrl(rawUrl string)(*ItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurityEvaluateClassificationResultsRequestBuilder) { return NewItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurityEvaluateClassificationResultsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/60398e1b3154e8aa8c0591f0e0caf211e2ee37b8ada37b837fe6f53cba08748e.go b/users/60398e1b3154e8aa8c0591f0e0caf211e2ee37b8ada37b837fe6f53cba08748e.go index 02f1ac48cc4..fcdd4419f33 100644 --- a/users/60398e1b3154e8aa8c0591f0e0caf211e2ee37b8ada37b837fe6f53cba08748e.go +++ b/users/60398e1b3154e8aa8c0591f0e0caf211e2ee37b8ada37b837fe6f53cba08748e.go @@ -55,6 +55,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsExtensionIt return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsExtensionI return nil } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsExtensionI return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsExtensionI return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsExtensionI return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsExtensionI return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsExtensionI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsExtensionItemRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/613ee73d0b0806db85eb7291b7660b965db040f2524e8444caf4f0a8ff7ba71f.go b/users/613ee73d0b0806db85eb7291b7660b965db040f2524e8444caf4f0a8ff7ba71f.go index 5e982a19aee..aa957e015b3 100644 --- a/users/613ee73d0b0806db85eb7291b7660b965db040f2524e8444caf4f0a8ff7ba71f.go +++ b/users/613ee73d0b0806db85eb7291b7660b965db040f2524e8444caf4f0a8ff7ba71f.go @@ -81,6 +81,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesEvent return NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -100,6 +101,11 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesEvent } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) PermanentDelete()(*ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) { @@ -111,6 +117,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesEvent return NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -125,6 +132,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesEvent return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) { return NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/61c13866d673ef5511e36d7feaabfcf286eaa4f110568b823992b338aa8532e0.go b/users/61c13866d673ef5511e36d7feaabfcf286eaa4f110568b823992b338aa8532e0.go index bdc362fa61c..c16d2b39bd4 100644 --- a/users/61c13866d673ef5511e36d7feaabfcf286eaa4f110568b823992b338aa8532e0.go +++ b/users/61c13866d673ef5511e36d7feaabfcf286eaa4f110568b823992b338aa8532e0.go @@ -48,6 +48,7 @@ func NewItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachment return NewItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,6 +65,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmen return nil } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -84,6 +86,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmen return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToDeleteRequestInformation delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +98,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmen return requestInfo, nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +113,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmen return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) { return NewItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/61ce3a4002e6944994d6b877189091314d27d4cf09a7bcdce289f1b777cc37b5.go b/users/61ce3a4002e6944994d6b877189091314d27d4cf09a7bcdce289f1b777cc37b5.go index 498a3fa4135..f14d1e219ff 100644 --- a/users/61ce3a4002e6944994d6b877189091314d27d4cf09a7bcdce289f1b777cc37b5.go +++ b/users/61ce3a4002e6944994d6b877189091314d27d4cf09a7bcdce289f1b777cc37b5.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemTentativ return NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemTentati return nil } // ToPostRequestInformation tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemTentativelyAcceptPostRequestBodyable, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemTentati return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/62038c44e6427df0ffc281c7b90198791bc852b3d87ae65fd65d49738fd3c2de.go b/users/62038c44e6427df0ffc281c7b90198791bc852b3d87ae65fd65d49738fd3c2de.go index 0c73be25aa1..3bfb7805636 100644 --- a/users/62038c44e6427df0ffc281c7b90198791bc852b3d87ae65fd65d49738fd3c2de.go +++ b/users/62038c44e6427df0ffc281c7b90198791bc852b3d87ae65fd65d49738fd3c2de.go @@ -55,6 +55,7 @@ func NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsGover return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property insights for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsGove return nil } // Get insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a GovernanceInsightable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightable, error) { @@ -91,6 +93,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsGove return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightable), nil } // Patch update the navigation property insights in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a GovernanceInsightable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightable, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightable, error) { @@ -111,6 +114,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsGove return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightable), nil } // ToDeleteRequestInformation delete navigation property insights for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsGove return requestInfo, nil } // ToGetRequestInformation insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsGove return requestInfo, nil } // ToPatchRequestInformation update the navigation property insights in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightable, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsGove return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilder) { return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/62a13cccb40e22c715f3f92656b1ace84e79cd9d1cdb5ce49b79e4c904b772d8.go b/users/62a13cccb40e22c715f3f92656b1ace84e79cd9d1cdb5ce49b79e4c904b772d8.go index 8efc03f18a8..3ef178423c8 100644 --- a/users/62a13cccb40e22c715f3f92656b1ace84e79cd9d1cdb5ce49b79e4c904b772d8.go +++ b/users/62a13cccb40e22c715f3f92656b1ace84e79cd9d1cdb5ce49b79e4c904b772d8.go @@ -80,6 +80,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return res.(ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -103,6 +104,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return res.(ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesDeltaGetResponseable), nil } // ToGetRequestInformation get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +119,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesDeltaRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesDeltaRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/62cc8eeb9bf025587667f42f4a2951a3832b4209f8a8943e414ae854f956bd28.go b/users/62cc8eeb9bf025587667f42f4a2951a3832b4209f8a8943e414ae854f956bd28.go index fd86c577336..53f41ce97fa 100644 --- a/users/62cc8eeb9bf025587667f42f4a2951a3832b4209f8a8943e414ae854f956bd28.go +++ b/users/62cc8eeb9bf025587667f42f4a2951a3832b4209f8a8943e414ae854f956bd28.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemTen return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemTe return nil } // ToPostRequestInformation tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemTentativelyAcceptPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemTe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/635a1d22371238dc10c4b1a2775ab9dcfa0c840a7d2e1c3e01f360936cd93517.go b/users/635a1d22371238dc10c4b1a2775ab9dcfa0c840a7d2e1c3e01f360936cd93517.go index 36123924995..7127f13c869 100644 --- a/users/635a1d22371238dc10c4b1a2775ab9dcfa0c840a7d2e1c3e01f360936cd93517.go +++ b/users/635a1d22371238dc10c4b1a2775ab9dcfa0c840a7d2e1c3e01f360936cd93517.go @@ -32,6 +32,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAtt return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAt return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAt return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/636a8b15b37f2c027778ab9972b0f1a34e8f3fd229aabc5fbd6693f00c4ff727.go b/users/636a8b15b37f2c027778ab9972b0f1a34e8f3fd229aabc5fbd6693f00c4ff727.go index 744e0c8e6c0..d2ea41884ef 100644 --- a/users/636a8b15b37f2c027778ab9972b0f1a34e8f3fd229aabc5fbd6693f00c4ff727.go +++ b/users/636a8b15b37f2c027778ab9972b0f1a34e8f3fd229aabc5fbd6693f00c4ff727.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemDi return NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemD return nil } // ToPostRequestInformation dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemD return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilder) { return NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/66ddc5d2b4e13d165123f9ead97b441d7953e5a76fb2c008f115bfdbf2b0a2ca.go b/users/66ddc5d2b4e13d165123f9ead97b441d7953e5a76fb2c008f115bfdbf2b0a2ca.go index 079cf624f1d..83c0f50b612 100644 --- a/users/66ddc5d2b4e13d165123f9ead97b441d7953e5a76fb2c008f115bfdbf2b0a2ca.go +++ b/users/66ddc5d2b4e13d165123f9ead97b441d7953e5a76fb2c008f115bfdbf2b0a2ca.go @@ -11,7 +11,7 @@ import ( type ItemOnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemOnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters get all transcripts from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call transcripts from channel meetings. You can apply the delta function on getAllTranscripts to synchronize and get callTranscript resources as they're added for onlineMeeting instances organized by the specified user. Delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the transcripts for online meetings organized by the user. Incremental synchronization gets transcripts that are added since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that recording view periodically. For more information, see delta query. For more examples, see callTranscript: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. +// ItemOnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters get all transcripts from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call transcripts from channel meetings. You can apply the delta function on getAllTranscripts to synchronize and get callTranscript resources as they're added for onlineMeeting instances organized by the specified user. Delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the transcripts for online meetings organized by the user. Incremental synchronization gets transcripts that are added since the last synchronization. Typically, you do an initial full synchronization, and then get incremental changes to that recording view periodically. For more information, see delta query. For more examples, see callTranscript: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. type ItemOnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -58,7 +58,7 @@ func NewItemOnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganize urlParams["request-raw-url"] = rawUrl return NewItemOnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilderInternal(urlParams, requestAdapter) } -// Get get all transcripts from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call transcripts from channel meetings. You can apply the delta function on getAllTranscripts to synchronize and get callTranscript resources as they're added for onlineMeeting instances organized by the specified user. Delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the transcripts for online meetings organized by the user. Incremental synchronization gets transcripts that are added since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that recording view periodically. For more information, see delta query. For more examples, see callTranscript: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. +// Get get all transcripts from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call transcripts from channel meetings. You can apply the delta function on getAllTranscripts to synchronize and get callTranscript resources as they're added for onlineMeeting instances organized by the specified user. Delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the transcripts for online meetings organized by the user. Incremental synchronization gets transcripts that are added since the last synchronization. Typically, you do an initial full synchronization, and then get incremental changes to that recording view periodically. For more information, see delta query. For more examples, see callTranscript: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. // Deprecated: This method is obsolete. Use GetAsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponse instead. // returns a ItemOnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -82,7 +82,8 @@ func (m *ItemOnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganiz } return res.(ItemOnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeResponseable), nil } -// GetAsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponse get all transcripts from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call transcripts from channel meetings. You can apply the delta function on getAllTranscripts to synchronize and get callTranscript resources as they're added for onlineMeeting instances organized by the specified user. Delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the transcripts for online meetings organized by the user. Incremental synchronization gets transcripts that are added since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that recording view periodically. For more information, see delta query. For more examples, see callTranscript: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. +// GetAsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponse get all transcripts from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call transcripts from channel meetings. You can apply the delta function on getAllTranscripts to synchronize and get callTranscript resources as they're added for onlineMeeting instances organized by the specified user. Delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the transcripts for online meetings organized by the user. Incremental synchronization gets transcripts that are added since the last synchronization. Typically, you do an initial full synchronization, and then get incremental changes to that recording view periodically. For more information, see delta query. For more examples, see callTranscript: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemOnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -105,7 +106,8 @@ func (m *ItemOnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganiz } return res.(ItemOnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponseable), nil } -// ToGetRequestInformation get all transcripts from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call transcripts from channel meetings. You can apply the delta function on getAllTranscripts to synchronize and get callTranscript resources as they're added for onlineMeeting instances organized by the specified user. Delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the transcripts for online meetings organized by the user. Incremental synchronization gets transcripts that are added since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that recording view periodically. For more information, see delta query. For more examples, see callTranscript: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. +// ToGetRequestInformation get all transcripts from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call transcripts from channel meetings. You can apply the delta function on getAllTranscripts to synchronize and get callTranscript resources as they're added for onlineMeeting instances organized by the specified user. Delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the transcripts for online meetings organized by the user. Incremental synchronization gets transcripts that are added since the last synchronization. Typically, you do an initial full synchronization, and then get incremental changes to that recording view periodically. For more information, see delta query. For more examples, see callTranscript: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -120,6 +122,7 @@ func (m *ItemOnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganiz return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilder when successful func (m *ItemOnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilder) WithUrl(rawUrl string)(*ItemOnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilder) { return NewItemOnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/672ee79e5bf7d297a9f4a8607c4e4a936e43eab22662331e9690cec1a4e2be49.go b/users/672ee79e5bf7d297a9f4a8607c4e4a936e43eab22662331e9690cec1a4e2be49.go index cf7121a79b4..20a003e070c 100644 --- a/users/672ee79e5bf7d297a9f4a8607c4e4a936e43eab22662331e9690cec1a4e2be49.go +++ b/users/672ee79e5bf7d297a9f4a8607c4e4a936e43eab22662331e9690cec1a4e2be49.go @@ -40,6 +40,7 @@ func NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensi return NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtens return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtens return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder) { return NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/6c45a543098d43002dfc383db5f6cf0837906d865c636d708f5c33ceafdda816.go b/users/6c45a543098d43002dfc383db5f6cf0837906d865c636d708f5c33ceafdda816.go index b9689696c42..b6d021e0590 100644 --- a/users/6c45a543098d43002dfc383db5f6cf0837906d865c636d708f5c33ceafdda816.go +++ b/users/6c45a543098d43002dfc383db5f6cf0837906d865c636d708f5c33ceafdda816.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemSn return NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemS return nil } // ToPostRequestInformation postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminderPostRequestBodyable, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemS return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) { return NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/6cd35d6fb4c87e502fe318d1f64f3200c60f342f06a02425392f1471d53ab4fe.go b/users/6cd35d6fb4c87e502fe318d1f64f3200c60f342f06a02425392f1471d53ab4fe.go index 4c05d9265c4..5f1f9d8350d 100644 --- a/users/6cd35d6fb4c87e502fe318d1f64f3200c60f342f06a02425392f1471d53ab4fe.go +++ b/users/6cd35d6fb4c87e502fe318d1f64f3200c60f342f06a02425392f1471d53ab4fe.go @@ -48,6 +48,7 @@ func NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAt return NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,6 +65,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemA return nil } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -84,6 +86,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemA return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToDeleteRequestInformation delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +98,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemA return requestInfo, nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +113,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemA return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) { return NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/6cd9fca1114bc3e8ec54df61eaa0fc5be81b2f56a57248fa35862f7af10dcabf.go b/users/6cd9fca1114bc3e8ec54df61eaa0fc5be81b2f56a57248fa35862f7af10dcabf.go index efa85e18a98..e699696d90e 100644 --- a/users/6cd9fca1114bc3e8ec54df61eaa0fc5be81b2f56a57248fa35862f7af10dcabf.go +++ b/users/6cd9fca1114bc3e8ec54df61eaa0fc5be81b2f56a57248fa35862f7af10dcabf.go @@ -40,6 +40,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesI return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/6d9674ae643e087e70b8a68261bfe68d2e041dbd96b3f365125d81e018b0437d.go b/users/6d9674ae643e087e70b8a68261bfe68d2e041dbd96b3f365125d81e018b0437d.go index 49842a35b90..9259d36942b 100644 --- a/users/6d9674ae643e087e70b8a68261bfe68d2e041dbd96b3f365125d81e018b0437d.go +++ b/users/6d9674ae643e087e70b8a68261bfe68d2e041dbd96b3f365125d81e018b0437d.go @@ -40,6 +40,7 @@ func NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceConta return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceContactedReviewersCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceContactedReviewersCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceContactedReviewersCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceCont return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceContactedReviewersCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceContactedReviewersCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceCont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceContactedReviewersCountRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceContactedReviewersCountRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceContactedReviewersCountRequestBuilder) { return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceContactedReviewersCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/6e20eb06f1bebc36f79bde0bd8c0454b91cd4e00df04dd2d5d6934decaec407a.go b/users/6e20eb06f1bebc36f79bde0bd8c0454b91cd4e00df04dd2d5d6934decaec407a.go index 92ba736c892..1ad07ffccff 100644 --- a/users/6e20eb06f1bebc36f79bde0bd8c0454b91cd4e00df04dd2d5d6934decaec407a.go +++ b/users/6e20eb06f1bebc36f79bde0bd8c0454b91cd4e00df04dd2d5d6934decaec407a.go @@ -47,6 +47,7 @@ type ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensionsR Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensi return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensi return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensi return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensi return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensi return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensionsRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensionsRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/6ef7fd6c953d89a41d111c31636363e3a3d89196b309e5592aa91aabd210ae95.go b/users/6ef7fd6c953d89a41d111c31636363e3a3d89196b309e5592aa91aabd210ae95.go index 8b6fe25f956..e1c0b93837e 100644 --- a/users/6ef7fd6c953d89a41d111c31636363e3a3d89196b309e5592aa91aabd210ae95.go +++ b/users/6ef7fd6c953d89a41d111c31636363e3a3d89196b309e5592aa91aabd210ae95.go @@ -40,6 +40,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptio return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/6fabd5eb54068a92adbc7f330b1953ed14e3f009af91e51cc0ba47c608f539fc.go b/users/6fabd5eb54068a92adbc7f330b1953ed14e3f009af91e51cc0ba47c608f539fc.go index 8b827e7942e..85241e0178b 100644 --- a/users/6fabd5eb54068a92adbc7f330b1953ed14e3f009af91e51cc0ba47c608f539fc.go +++ b/users/6fabd5eb54068a92adbc7f330b1953ed14e3f009af91e51cc0ba47c608f539fc.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemCa return NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemCancelRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemC return nil } // ToPostRequestInformation this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemCancelPostRequestBodyable, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemC return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemCancelRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemCancelRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemCancelRequestBuilder) { return NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/70980e8c09bbc8524a89327fc9295db013662851605dd323bab62e02d78b2889.go b/users/70980e8c09bbc8524a89327fc9295db013662851605dd323bab62e02d78b2889.go new file mode 100644 index 00000000000..15ac1914ad2 --- /dev/null +++ b/users/70980e8c09bbc8524a89327fc9295db013662851605dd323bab62e02d78b2889.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/exceptionOccurrences/{event%2Did2}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/7173d45c4038c5955bcbb01eaaeec1702122d2234dee6ba0887fc4a75b42d054.go b/users/7173d45c4038c5955bcbb01eaaeec1702122d2234dee6ba0887fc4a75b42d054.go index e8c78c231e1..0e1ab122ad0 100644 --- a/users/7173d45c4038c5955bcbb01eaaeec1702122d2234dee6ba0887fc4a75b42d054.go +++ b/users/7173d45c4038c5955bcbb01eaaeec1702122d2234dee6ba0887fc4a75b42d054.go @@ -55,6 +55,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIns return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return nil } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/71a91f7b78c46ea55eb19def398f43e66326b0d1cce93426224bba1f0b6b1ce2.go b/users/71a91f7b78c46ea55eb19def398f43e66326b0d1cce93426224bba1f0b6b1ce2.go index de6ac84fd0d..95cbef95fbf 100644 --- a/users/71a91f7b78c46ea55eb19def398f43e66326b0d1cce93426224bba1f0b6b1ce2.go +++ b/users/71a91f7b78c46ea55eb19def398f43e66326b0d1cce93426224bba1f0b6b1ce2.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesI return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemSnoozeReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return nil } // ToPostRequestInformation postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemSnoozeReminderPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemSnoozeReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemSnoozeReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/72f96136825ef4baf0ec53016f04e2d7a324c7bc98688e843f8075941d99f63c.go b/users/72f96136825ef4baf0ec53016f04e2d7a324c7bc98688e843f8075941d99f63c.go index e2125e37e59..3b0903b986e 100644 --- a/users/72f96136825ef4baf0ec53016f04e2d7a324c7bc98688e843f8075941d99f63c.go +++ b/users/72f96136825ef4baf0ec53016f04e2d7a324c7bc98688e843f8075941d99f63c.go @@ -80,6 +80,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return res.(ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -103,6 +104,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return res.(ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesDeltaGetResponseable), nil } // ToGetRequestInformation get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +119,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesDeltaRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesDeltaRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/74e516571b5db6cc17b933f02361460d5b32f3d4b166c47f12f642c5a2805bc0.go b/users/74e516571b5db6cc17b933f02361460d5b32f3d4b166c47f12f642c5a2805bc0.go index 01e39e7e32f..eea347cadc0 100644 --- a/users/74e516571b5db6cc17b933f02361460d5b32f3d4b166c47f12f642c5a2805bc0.go +++ b/users/74e516571b5db6cc17b933f02361460d5b32f3d4b166c47f12f642c5a2805bc0.go @@ -41,6 +41,7 @@ func NewItemWindowsInformationProtectionDeviceRegistrationsWindowsInformationPro return NewItemWindowsInformationProtectionDeviceRegistrationsWindowsInformationProtectionDeviceRegistrationItemRequestBuilderInternal(urlParams, requestAdapter) } // Get zero or more WIP device registrations that belong to the user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a WindowsInformationProtectionDeviceRegistrationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemWindowsInformationProtectionDeviceRegistrationsWindowsInformationProtectionDeviceRegistrationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemWindowsInformationProtectionDeviceRegistrationsWindowsInformationProtectionDeviceRegistrationItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsInformationProtectionDeviceRegistrationable, error) { @@ -61,6 +62,7 @@ func (m *ItemWindowsInformationProtectionDeviceRegistrationsWindowsInformationPr return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsInformationProtectionDeviceRegistrationable), nil } // ToGetRequestInformation zero or more WIP device registrations that belong to the user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemWindowsInformationProtectionDeviceRegistrationsWindowsInformationProtectionDeviceRegistrationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemWindowsInformationProtectionDeviceRegistrationsWindowsInformationProtectionDeviceRegistrationItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemWindowsInformationProtectionDeviceRegistrationsWindowsInformationPr return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemWindowsInformationProtectionDeviceRegistrationsWindowsInformationProtectionDeviceRegistrationItemRequestBuilder when successful func (m *ItemWindowsInformationProtectionDeviceRegistrationsWindowsInformationProtectionDeviceRegistrationItemRequestBuilder) WithUrl(rawUrl string)(*ItemWindowsInformationProtectionDeviceRegistrationsWindowsInformationProtectionDeviceRegistrationItemRequestBuilder) { return NewItemWindowsInformationProtectionDeviceRegistrationsWindowsInformationProtectionDeviceRegistrationItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/769e63f54fd36e342c4c1c3105b77cb0cf8c359de1b286f60c7139e123c1321e.go b/users/769e63f54fd36e342c4c1c3105b77cb0cf8c359de1b286f60c7139e123c1321e.go index 0ffb8a85a3c..02f7ffce30b 100644 --- a/users/769e63f54fd36e342c4c1c3105b77cb0cf8c359de1b286f60c7139e123c1321e.go +++ b/users/769e63f54fd36e342c4c1c3105b77cb0cf8c359de1b286f60c7139e123c1321e.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptio return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return nil } // ToPostRequestInformation postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminderPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/76cdd3ac8fa1bf1ef0c8a38eb9ad24b70a8564fe783c163bca95c079ede67c63.go b/users/76cdd3ac8fa1bf1ef0c8a38eb9ad24b70a8564fe783c163bca95c079ede67c63.go index fd59f59b37f..0731156db3d 100644 --- a/users/76cdd3ac8fa1bf1ef0c8a38eb9ad24b70a8564fe783c163bca95c079ede67c63.go +++ b/users/76cdd3ac8fa1bf1ef0c8a38eb9ad24b70a8564fe783c163bca95c079ede67c63.go @@ -48,6 +48,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesI return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,6 +65,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return nil } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -84,6 +86,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToDeleteRequestInformation delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +98,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +113,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/777197ccf51926f86ff400e460399ab89cfe0c6d546395a170df60a483cf9ab4.go b/users/777197ccf51926f86ff400e460399ab89cfe0c6d546395a170df60a483cf9ab4.go index 29d086bcc2e..40727c3ea6c 100644 --- a/users/777197ccf51926f86ff400e460399ab89cfe0c6d546395a170df60a483cf9ab4.go +++ b/users/777197ccf51926f86ff400e460399ab89cfe0c6d546395a170df60a483cf9ab4.go @@ -40,6 +40,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIns return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesCountRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesCountRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/78e25af7a8e271fb26237416d52c0ded4e517d03ee8f46cb0d1bca40bda0f29e.go b/users/78e25af7a8e271fb26237416d52c0ded4e517d03ee8f46cb0d1bca40bda0f29e.go index b9a9cc184ca..2a6fabe2195 100644 --- a/users/78e25af7a8e271fb26237416d52c0ded4e517d03ee8f46cb0d1bca40bda0f29e.go +++ b/users/78e25af7a8e271fb26237416d52c0ded4e517d03ee8f46cb0d1bca40bda0f29e.go @@ -55,6 +55,7 @@ func (m *ItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurit return res.(ItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurityEvaluateApplicationEvaluateApplicationResponseable), nil } // PostAsEvaluateApplicationPostResponse compute the sensitivity label that should be applied and return the set of actions that must be taken to correctly label the information. This API is useful when a label should be set manually or explicitly by a user or service, rather than automatically based on file contents. Given contentInfo, which includes existing content metadata key-value pairs, and labelingOptions as an input, the API returns an informationProtectionAction object that contains one of more of the following: +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurityEvaluateApplicationEvaluateApplicationPostResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -78,6 +79,7 @@ func (m *ItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurit return res.(ItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurityEvaluateApplicationEvaluateApplicationPostResponseable), nil } // ToPostRequestInformation compute the sensitivity label that should be applied and return the set of actions that must be taken to correctly label the information. This API is useful when a label should be set manually or explicitly by a user or service, rather than automatically based on file contents. Given contentInfo, which includes existing content metadata key-value pairs, and labelingOptions as an input, the API returns an informationProtectionAction object that contains one of more of the following: +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurityEvaluateApplicationRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurityEvaluateApplicationEvaluateApplicationPostRequestBodyable, requestConfiguration *ItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurityEvaluateApplicationRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -93,6 +95,7 @@ func (m *ItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurit return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurityEvaluateApplicationRequestBuilder when successful func (m *ItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurityEvaluateApplicationRequestBuilder) WithUrl(rawUrl string)(*ItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurityEvaluateApplicationRequestBuilder) { return NewItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurityEvaluateApplicationRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/79dcabcc45023ec94f172e7b3d37b1fb7f08926e3f265f4e2023ebde379c27ca.go b/users/79dcabcc45023ec94f172e7b3d37b1fb7f08926e3f265f4e2023ebde379c27ca.go index aa77409e4d3..f544af6c22f 100644 --- a/users/79dcabcc45023ec94f172e7b3d37b1fb7f08926e3f265f4e2023ebde379c27ca.go +++ b/users/79dcabcc45023ec94f172e7b3d37b1fb7f08926e3f265f4e2023ebde379c27ca.go @@ -48,6 +48,7 @@ func NewItemAuthenticationWindowsHelloForBusinessMethodsWindowsHelloForBusinessA return NewItemAuthenticationWindowsHelloForBusinessMethodsWindowsHelloForBusinessAuthenticationMethodItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete deletes a windowsHelloForBusinessAuthenticationMethod object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -72,6 +73,7 @@ func (m *ItemAuthenticationWindowsHelloForBusinessMethodsWindowsHelloForBusiness return NewItemAuthenticationWindowsHelloForBusinessMethodsItemDeviceRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get read the properties and relationships of a windowsHelloForBusinessAuthenticationMethod object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a WindowsHelloForBusinessAuthenticationMethodable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -95,6 +97,7 @@ func (m *ItemAuthenticationWindowsHelloForBusinessMethodsWindowsHelloForBusiness return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsHelloForBusinessAuthenticationMethodable), nil } // ToDeleteRequestInformation deletes a windowsHelloForBusinessAuthenticationMethod object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationWindowsHelloForBusinessMethodsWindowsHelloForBusinessAuthenticationMethodItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationWindowsHelloForBusinessMethodsWindowsHelloForBusinessAuthenticationMethodItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -106,6 +109,7 @@ func (m *ItemAuthenticationWindowsHelloForBusinessMethodsWindowsHelloForBusiness return requestInfo, nil } // ToGetRequestInformation read the properties and relationships of a windowsHelloForBusinessAuthenticationMethod object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationWindowsHelloForBusinessMethodsWindowsHelloForBusinessAuthenticationMethodItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationWindowsHelloForBusinessMethodsWindowsHelloForBusinessAuthenticationMethodItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -120,6 +124,7 @@ func (m *ItemAuthenticationWindowsHelloForBusinessMethodsWindowsHelloForBusiness return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationWindowsHelloForBusinessMethodsWindowsHelloForBusinessAuthenticationMethodItemRequestBuilder when successful func (m *ItemAuthenticationWindowsHelloForBusinessMethodsWindowsHelloForBusinessAuthenticationMethodItemRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationWindowsHelloForBusinessMethodsWindowsHelloForBusinessAuthenticationMethodItemRequestBuilder) { return NewItemAuthenticationWindowsHelloForBusinessMethodsWindowsHelloForBusinessAuthenticationMethodItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/7a36872ea7ede17c32f9693be7ef2d4ad4dcc24c9565c7a4bf9ad7f4f0b698c4.go b/users/7a36872ea7ede17c32f9693be7ef2d4ad4dcc24c9565c7a4bf9ad7f4f0b698c4.go index 74c3b686bbb..063c85c7ddc 100644 --- a/users/7a36872ea7ede17c32f9693be7ef2d4ad4dcc24c9565c7a4bf9ad7f4f0b698c4.go +++ b/users/7a36872ea7ede17c32f9693be7ef2d4ad4dcc24c9565c7a4bf9ad7f4f0b698c4.go @@ -32,6 +32,7 @@ func NewItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsCreateUpl return NewItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsCreateUp return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsCreateUp return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/7a79d371a23833ed34f7d13f6cac5b51b7254c461b4bdcd73abc5e5793f58786.go b/users/7a79d371a23833ed34f7d13f6cac5b51b7254c461b4bdcd73abc5e5793f58786.go index 1ad0409bc49..192e731405f 100644 --- a/users/7a79d371a23833ed34f7d13f6cac5b51b7254c461b4bdcd73abc5e5793f58786.go +++ b/users/7a79d371a23833ed34f7d13f6cac5b51b7254c461b4bdcd73abc5e5793f58786.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemTe return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemT return nil } // ToPostRequestInformation tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcceptPostRequestBodyable, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemT return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/7cf518620b2e80d058b8e4bfa33348b38737f4ba56cf7b3e88c70e0a11dc4ddf.go b/users/7cf518620b2e80d058b8e4bfa33348b38737f4ba56cf7b3e88c70e0a11dc4ddf.go index 9457e392e46..595eeea5303 100644 --- a/users/7cf518620b2e80d058b8e4bfa33348b38737f4ba56cf7b3e88c70e0a11dc4ddf.go +++ b/users/7cf518620b2e80d058b8e4bfa33348b38737f4ba56cf7b3e88c70e0a11dc4ddf.go @@ -32,6 +32,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIns return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/7db219e38faabf2511fe04f72f0727a67b9003d19827d76062a03dc6ff2d9076.go b/users/7db219e38faabf2511fe04f72f0727a67b9003d19827d76062a03dc6ff2d9076.go index 79dd0bc234f..0faa44a4e2e 100644 --- a/users/7db219e38faabf2511fe04f72f0727a67b9003d19827d76062a03dc6ff2d9076.go +++ b/users/7db219e38faabf2511fe04f72f0727a67b9003d19827d76062a03dc6ff2d9076.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIns return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilderInternal(urlParams, requestAdapter) } // Post decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return nil } // ToPostRequestInformation decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemDeclinePostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/7e4c3ef18223a482d9807328e75dd0bbec254b2262924f338788122660cc7541.go b/users/7e4c3ef18223a482d9807328e75dd0bbec254b2262924f338788122660cc7541.go index 249c06e4366..28b37fa4896 100644 --- a/users/7e4c3ef18223a482d9807328e75dd0bbec254b2262924f338788122660cc7541.go +++ b/users/7e4c3ef18223a482d9807328e75dd0bbec254b2262924f338788122660cc7541.go @@ -11,7 +11,7 @@ import ( type ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetQueryParameters struct { // The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 EndDateTime *string `uriparametername:"endDateTime"` @@ -84,7 +84,8 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesEvent func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) Forward()(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder) { return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -104,6 +105,11 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesEvent } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) PermanentDelete()(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder) { @@ -114,7 +120,8 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesEvent func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) TentativelyAccept()(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -129,6 +136,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesEvent return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) { return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/813062eb1c0f1daae1a50949ec6d231b52b6ba00cb6ecded6a5955cf53f5f46e.go b/users/813062eb1c0f1daae1a50949ec6d231b52b6ba00cb6ecded6a5955cf53f5f46e.go index 69352ea01e8..9217e2fb392 100644 --- a/users/813062eb1c0f1daae1a50949ec6d231b52b6ba00cb6ecded6a5955cf53f5f46e.go +++ b/users/813062eb1c0f1daae1a50949ec6d231b52b6ba00cb6ecded6a5955cf53f5f46e.go @@ -81,6 +81,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -100,6 +101,11 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) PermanentDelete()(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) { @@ -111,6 +117,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -125,6 +132,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/821ced05a810e68100e7ff624c48e0c12c95bb8f2e48d2cfd26f405885845a9a.go b/users/821ced05a810e68100e7ff624c48e0c12c95bb8f2e48d2cfd26f405885845a9a.go index 016e64cce46..1a88526e181 100644 --- a/users/821ced05a810e68100e7ff624c48e0c12c95bb8f2e48d2cfd26f405885845a9a.go +++ b/users/821ced05a810e68100e7ff624c48e0c12c95bb8f2e48d2cfd26f405885845a9a.go @@ -32,6 +32,7 @@ func NewItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsCreateUploadSe return NewItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsCreateUploadS return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsCreateUploadS return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/82954f4a4beb7acd2c9c811230d16659f15db635f2795feafcf5254759575546.go b/users/82954f4a4beb7acd2c9c811230d16659f15db635f2795feafcf5254759575546.go index 732ac82421a..c5cbe6a3c14 100644 --- a/users/82954f4a4beb7acd2c9c811230d16659f15db635f2795feafcf5254759575546.go +++ b/users/82954f4a4beb7acd2c9c811230d16659f15db635f2795feafcf5254759575546.go @@ -31,6 +31,7 @@ func NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemTentativelyAc return NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemTentativelyA return nil } // ToPostRequestInformation tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemTentativelyAcceptPostRequestBodyable, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemTentativelyA return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/835d93bca7b1727e31d110656587b38cc4a865e0f0b0ff593bc96f1a22d6f1a7.go b/users/835d93bca7b1727e31d110656587b38cc4a865e0f0b0ff593bc96f1a22d6f1a7.go index 488da445cc7..aed3e2a7e60 100644 --- a/users/835d93bca7b1727e31d110656587b38cc4a865e0f0b0ff593bc96f1a22d6f1a7.go +++ b/users/835d93bca7b1727e31d110656587b38cc4a865e0f0b0ff593bc96f1a22d6f1a7.go @@ -40,6 +40,7 @@ func NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecis return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsItemInsightsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsItemInsightsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsItemInsightsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDeci return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsItemInsightsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsItemInsightsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDeci return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsItemInsightsCountRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsItemInsightsCountRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsItemInsightsCountRequestBuilder) { return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsItemInsightsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/8506d9f53fc1239cd58ab575ad3a978f0ede14cf18fe806581d47436027ffdea.go b/users/8506d9f53fc1239cd58ab575ad3a978f0ede14cf18fe806581d47436027ffdea.go index b35648a77f6..5023dd6fd51 100644 --- a/users/8506d9f53fc1239cd58ab575ad3a978f0ede14cf18fe806581d47436027ffdea.go +++ b/users/8506d9f53fc1239cd58ab575ad3a978f0ede14cf18fe806581d47436027ffdea.go @@ -55,6 +55,7 @@ func NewItemPendingAccessReviewInstancesItemDecisionsAccessReviewInstanceDecisio return NewItemPendingAccessReviewInstancesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property decisions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsAccessReviewInstanceDecisi return nil } // Get each user reviewed in an accessReviewInstance has a decision item representing if they were approved, denied, or not yet reviewed. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewInstanceDecisionItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceDecisionItemable, error) { @@ -101,6 +103,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsAccessReviewInstanceDecisi return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property decisions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewInstanceDecisionItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceDecisionItemable, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceDecisionItemable, error) { @@ -121,6 +124,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsAccessReviewInstanceDecisi return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceDecisionItemable), nil } // ToDeleteRequestInformation delete navigation property decisions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -132,6 +136,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsAccessReviewInstanceDecisi return requestInfo, nil } // ToGetRequestInformation each user reviewed in an accessReviewInstance has a decision item representing if they were approved, denied, or not yet reviewed. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsAccessReviewInstanceDecisi return requestInfo, nil } // ToPatchRequestInformation update the navigation property decisions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceDecisionItemable, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -161,6 +167,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsAccessReviewInstanceDecisi return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder) { return NewItemPendingAccessReviewInstancesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/859b7e6270c96fac04732c59425ea73fcc3d87db04c7d48c8e234c03f855d0d6.go b/users/859b7e6270c96fac04732c59425ea73fcc3d87db04c7d48c8e234c03f855d0d6.go index cfe2b02f67e..9e7d6a6c429 100644 --- a/users/859b7e6270c96fac04732c59425ea73fcc3d87db04c7d48c8e234c03f855d0d6.go +++ b/users/859b7e6270c96fac04732c59425ea73fcc3d87db04c7d48c8e234c03f855d0d6.go @@ -32,6 +32,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptio return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/85a7dac961fa19d829d68ddef56c5210a6cf489a5d67a05854649cf688e0be23.go b/users/85a7dac961fa19d829d68ddef56c5210a6cf489a5d67a05854649cf688e0be23.go index c5fb6eb982c..0f82198d1b6 100644 --- a/users/85a7dac961fa19d829d68ddef56c5210a6cf489a5d67a05854649cf688e0be23.go +++ b/users/85a7dac961fa19d829d68ddef56c5210a6cf489a5d67a05854649cf688e0be23.go @@ -65,6 +65,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesOnenotePageIt return NewItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemCopyToSectionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Delete delete navigation property pages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesOnenotePageItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesOnenotePageItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -81,6 +82,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesOnenotePageIt return nil } // Get the collection of pages in the section. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenotePageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesOnenotePageItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesOnenotePageItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable, error) { @@ -116,6 +118,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesOnenotePageIt return NewItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemParentSectionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property pages in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenotePageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesOnenotePageItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesOnenotePageItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable, error) { @@ -141,6 +144,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesOnenotePageIt return NewItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemPreviewRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property pages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesOnenotePageItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesOnenotePageItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -152,6 +156,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesOnenotePageIt return requestInfo, nil } // ToGetRequestInformation the collection of pages in the section. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesOnenotePageItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesOnenotePageItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -166,6 +171,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesOnenotePageIt return requestInfo, nil } // ToPatchRequestInformation update the navigation property pages in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesOnenotePageItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesOnenotePageItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -181,6 +187,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesOnenotePageIt return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesOnenotePageItemRequestBuilder when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesOnenotePageItemRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesOnenotePageItemRequestBuilder) { return NewItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesOnenotePageItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/860295aa61871bd6551373ff342b5fdbda8041260eb107b30a89b453d65a674b.go b/users/860295aa61871bd6551373ff342b5fdbda8041260eb107b30a89b453d65a674b.go index 1d95a81951b..4c265944921 100644 --- a/users/860295aa61871bd6551373ff342b5fdbda8041260eb107b30a89b453d65a674b.go +++ b/users/860295aa61871bd6551373ff342b5fdbda8041260eb107b30a89b453d65a674b.go @@ -55,6 +55,7 @@ func NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceConta return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceContactedReviewersAccessReviewReviewerItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property contactedReviewers for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceContactedReviewersAccessReviewReviewerItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceContactedReviewersAccessReviewReviewerItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceCont return nil } // Get returns the collection of reviewers who were contacted to complete this review. While the reviewers and fallbackReviewers properties of the accessReviewScheduleDefinition might specify group owners or managers as reviewers, contactedReviewers returns their individual identities. Supports $select. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewReviewerable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceContactedReviewersAccessReviewReviewerItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceContactedReviewersAccessReviewReviewerItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewReviewerable, error) { @@ -91,6 +93,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceCont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewReviewerable), nil } // Patch update the navigation property contactedReviewers in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewReviewerable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceContactedReviewersAccessReviewReviewerItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewReviewerable, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceContactedReviewersAccessReviewReviewerItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewReviewerable, error) { @@ -111,6 +114,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceCont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewReviewerable), nil } // ToDeleteRequestInformation delete navigation property contactedReviewers for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceContactedReviewersAccessReviewReviewerItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceContactedReviewersAccessReviewReviewerItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceCont return requestInfo, nil } // ToGetRequestInformation returns the collection of reviewers who were contacted to complete this review. While the reviewers and fallbackReviewers properties of the accessReviewScheduleDefinition might specify group owners or managers as reviewers, contactedReviewers returns their individual identities. Supports $select. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceContactedReviewersAccessReviewReviewerItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceContactedReviewersAccessReviewReviewerItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceCont return requestInfo, nil } // ToPatchRequestInformation update the navigation property contactedReviewers in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceContactedReviewersAccessReviewReviewerItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewReviewerable, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceContactedReviewersAccessReviewReviewerItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceCont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceContactedReviewersAccessReviewReviewerItemRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceContactedReviewersAccessReviewReviewerItemRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceContactedReviewersAccessReviewReviewerItemRequestBuilder) { return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceContactedReviewersAccessReviewReviewerItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/8747059ba766f1a7a0be601b6237f845540503393205bdeb1358d7432dc078b8.go b/users/8747059ba766f1a7a0be601b6237f845540503393205bdeb1358d7432dc078b8.go index 9715b9b64d3..72001f17ded 100644 --- a/users/8747059ba766f1a7a0be601b6237f845540503393205bdeb1358d7432dc078b8.go +++ b/users/8747059ba766f1a7a0be601b6237f845540503393205bdeb1358d7432dc078b8.go @@ -40,6 +40,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAtt return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAt return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAt return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsCountRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/89011fd8fc609ca21eb4495200de0d1be46473d342209c80ae5b3bc28a593b72.go b/users/89011fd8fc609ca21eb4495200de0d1be46473d342209c80ae5b3bc28a593b72.go index 4ccde4aa2db..b88660c3b9f 100644 --- a/users/89011fd8fc609ca21eb4495200de0d1be46473d342209c80ae5b3bc28a593b72.go +++ b/users/89011fd8fc609ca21eb4495200de0d1be46473d342209c80ae5b3bc28a593b72.go @@ -40,6 +40,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachme return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachm return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachm return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsCountRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsCountRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/89f230e37343fa9fb89903934c75fd642f026fbce2706b4e81c4577316b55d71.go b/users/89f230e37343fa9fb89903934c75fd642f026fbce2706b4e81c4577316b55d71.go index f982e3c9bd2..222f42af580 100644 --- a/users/89f230e37343fa9fb89903934c75fd642f026fbce2706b4e81c4577316b55d71.go +++ b/users/89f230e37343fa9fb89903934c75fd642f026fbce2706b4e81c4577316b55d71.go @@ -55,6 +55,7 @@ func NewItemManagedDevicesItemDeviceConfigurationStatesDeviceConfigurationStateI return NewItemManagedDevicesItemDeviceConfigurationStatesDeviceConfigurationStateItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property deviceConfigurationStates for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemDeviceConfigurationStatesDeviceConfigurationStateItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemManagedDevicesItemDeviceConfigurationStatesDeviceConfigurationStateItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemManagedDevicesItemDeviceConfigurationStatesDeviceConfigurationState return nil } // Get device configuration states for this device. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DeviceConfigurationStateable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemDeviceConfigurationStatesDeviceConfigurationStateItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemManagedDevicesItemDeviceConfigurationStatesDeviceConfigurationStateItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceConfigurationStateable, error) { @@ -91,6 +93,7 @@ func (m *ItemManagedDevicesItemDeviceConfigurationStatesDeviceConfigurationState return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceConfigurationStateable), nil } // Patch update the navigation property deviceConfigurationStates in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DeviceConfigurationStateable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemDeviceConfigurationStatesDeviceConfigurationStateItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceConfigurationStateable, requestConfiguration *ItemManagedDevicesItemDeviceConfigurationStatesDeviceConfigurationStateItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceConfigurationStateable, error) { @@ -111,6 +114,7 @@ func (m *ItemManagedDevicesItemDeviceConfigurationStatesDeviceConfigurationState return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceConfigurationStateable), nil } // ToDeleteRequestInformation delete navigation property deviceConfigurationStates for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemDeviceConfigurationStatesDeviceConfigurationStateItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemDeviceConfigurationStatesDeviceConfigurationStateItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemManagedDevicesItemDeviceConfigurationStatesDeviceConfigurationState return requestInfo, nil } // ToGetRequestInformation device configuration states for this device. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemDeviceConfigurationStatesDeviceConfigurationStateItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemDeviceConfigurationStatesDeviceConfigurationStateItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemManagedDevicesItemDeviceConfigurationStatesDeviceConfigurationState return requestInfo, nil } // ToPatchRequestInformation update the navigation property deviceConfigurationStates in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemDeviceConfigurationStatesDeviceConfigurationStateItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceConfigurationStateable, requestConfiguration *ItemManagedDevicesItemDeviceConfigurationStatesDeviceConfigurationStateItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemManagedDevicesItemDeviceConfigurationStatesDeviceConfigurationState return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemDeviceConfigurationStatesDeviceConfigurationStateItemRequestBuilder when successful func (m *ItemManagedDevicesItemDeviceConfigurationStatesDeviceConfigurationStateItemRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemDeviceConfigurationStatesDeviceConfigurationStateItemRequestBuilder) { return NewItemManagedDevicesItemDeviceConfigurationStatesDeviceConfigurationStateItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/8a53a21696d0cbce19c29bb6fa8bfb9efab8f45f83cd8b8e6d56512d4fc3175c.go b/users/8a53a21696d0cbce19c29bb6fa8bfb9efab8f45f83cd8b8e6d56512d4fc3175c.go index fc9007cc173..808e09075a7 100644 --- a/users/8a53a21696d0cbce19c29bb6fa8bfb9efab8f45f83cd8b8e6d56512d4fc3175c.go +++ b/users/8a53a21696d0cbce19c29bb6fa8bfb9efab8f45f83cd8b8e6d56512d4fc3175c.go @@ -47,6 +47,7 @@ type ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOc Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentId provides operations to manage the attachments property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ByAttachmentId(attachmentId string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } // Post create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -122,6 +125,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/8cc905cdfef6debb24b43bfd56186dcb770c1cb1767b94a39d39d57428baa21e.go b/users/8cc905cdfef6debb24b43bfd56186dcb770c1cb1767b94a39d39d57428baa21e.go index fa058b8b6d9..316aa537952 100644 --- a/users/8cc905cdfef6debb24b43bfd56186dcb770c1cb1767b94a39d39d57428baa21e.go +++ b/users/8cc905cdfef6debb24b43bfd56186dcb770c1cb1767b94a39d39d57428baa21e.go @@ -40,6 +40,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIns return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/8de013d9b01bac9a13828ab350d8d432cd85328ea566428df03fee06cb3c9996.go b/users/8de013d9b01bac9a13828ab350d8d432cd85328ea566428df03fee06cb3c9996.go index 4d256e40194..acd42f89bed 100644 --- a/users/8de013d9b01bac9a13828ab350d8d432cd85328ea566428df03fee06cb3c9996.go +++ b/users/8de013d9b01bac9a13828ab350d8d432cd85328ea566428df03fee06cb3c9996.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemSnoozeRe return NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemSnoozeR return nil } // ToPostRequestInformation postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderPostRequestBodyable, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemSnoozeR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) { return NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/8e5044c4c0d4af5e6f1f3e76a391c79e11ae696d5e3b202bab89460554af2cea.go b/users/8e5044c4c0d4af5e6f1f3e76a391c79e11ae696d5e3b202bab89460554af2cea.go index fad99a12b56..253160075bd 100644 --- a/users/8e5044c4c0d4af5e6f1f3e76a391c79e11ae696d5e3b202bab89460554af2cea.go +++ b/users/8e5044c4c0d4af5e6f1f3e76a391c79e11ae696d5e3b202bab89460554af2cea.go @@ -40,6 +40,7 @@ func NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCo return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsC return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsC return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder) { return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/8f10aedb1ce4c9d580b0b55a1abd4df96fff07366f42f4b7f3a2f09d09751fe7.go b/users/8f10aedb1ce4c9d580b0b55a1abd4df96fff07366f42f4b7f3a2f09d09751fe7.go index d9fb6ccc88b..79caf5d69c6 100644 --- a/users/8f10aedb1ce4c9d580b0b55a1abd4df96fff07366f42f4b7f3a2f09d09751fe7.go +++ b/users/8f10aedb1ce4c9d580b0b55a1abd4df96fff07366f42f4b7f3a2f09d09751fe7.go @@ -55,6 +55,7 @@ func NewItemPendingAccessReviewInstancesItemStagesItemDecisionsAccessReviewInsta return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property decisions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsAccessReviewInst return nil } // Get each user reviewed in an accessReviewStage has a decision item representing if they were approved, denied, or not yet reviewed. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewInstanceDecisionItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceDecisionItemable, error) { @@ -101,6 +103,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsAccessReviewInst return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property decisions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewInstanceDecisionItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceDecisionItemable, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceDecisionItemable, error) { @@ -121,6 +124,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsAccessReviewInst return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceDecisionItemable), nil } // ToDeleteRequestInformation delete navigation property decisions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -132,6 +136,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsAccessReviewInst return requestInfo, nil } // ToGetRequestInformation each user reviewed in an accessReviewStage has a decision item representing if they were approved, denied, or not yet reviewed. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsAccessReviewInst return requestInfo, nil } // ToPatchRequestInformation update the navigation property decisions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceDecisionItemable, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -161,6 +167,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsAccessReviewInst return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemStagesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemStagesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder) { return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/8fbc06f909d1b03ba6488e144999b39c126fe93189408459e53a3a96c4bfd24d.go b/users/8fbc06f909d1b03ba6488e144999b39c126fe93189408459e53a3a96c4bfd24d.go index e3f45fa2bf9..b7caa752d23 100644 --- a/users/8fbc06f909d1b03ba6488e144999b39c126fe93189408459e53a3a96c4bfd24d.go +++ b/users/8fbc06f909d1b03ba6488e144999b39c126fe93189408459e53a3a96c4bfd24d.go @@ -48,6 +48,7 @@ func NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachm return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,6 +65,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttach return nil } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -84,6 +86,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttach return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToDeleteRequestInformation delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +98,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttach return requestInfo, nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +113,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttach return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) { return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/905e377b1bae568a0eba21173c566f998c7335dd6f93af6e11b770c419503fec.go b/users/905e377b1bae568a0eba21173c566f998c7335dd6f93af6e11b770c419503fec.go index 3971be25688..4d6bb3d52fe 100644 --- a/users/905e377b1bae568a0eba21173c566f998c7335dd6f93af6e11b770c419503fec.go +++ b/users/905e377b1bae568a0eba21173c566f998c7335dd6f93af6e11b770c419503fec.go @@ -47,6 +47,7 @@ type ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttac Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentId provides operations to manage the attachments property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ByAttachmentId(attachmentId string)(*ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemA return NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemA return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } // Post create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -122,6 +125,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemA return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemA return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemA return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) { return NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/906fbfde4d26c9751d66b948f8a898e2b20eb68dc86631c0ad88c4e692a54939.go b/users/906fbfde4d26c9751d66b948f8a898e2b20eb68dc86631c0ad88c4e692a54939.go index 8fc7226112c..3baf340095d 100644 --- a/users/906fbfde4d26c9751d66b948f8a898e2b20eb68dc86631c0ad88c4e692a54939.go +++ b/users/906fbfde4d26c9751d66b948f8a898e2b20eb68dc86631c0ad88c4e692a54939.go @@ -41,6 +41,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemCal return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemCalendarRequestBuilderInternal(urlParams, requestAdapter) } // Get the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemCalendarRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemCalendarRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -61,6 +62,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemCa return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable), nil } // ToGetRequestInformation the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemCalendarRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemCalendarRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemCa return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemCalendarRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemCalendarRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemCalendarRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemCalendarRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/913afdf2c96559f580ad8cc2145f303b325124da4978880b5f3c6cf9d64016f0.go b/users/913afdf2c96559f580ad8cc2145f303b325124da4978880b5f3c6cf9d64016f0.go index ac5697cb730..db93ec682d3 100644 --- a/users/913afdf2c96559f580ad8cc2145f303b325124da4978880b5f3c6cf9d64016f0.go +++ b/users/913afdf2c96559f580ad8cc2145f303b325124da4978880b5f3c6cf9d64016f0.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesI return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemCancelRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return nil } // ToPostRequestInformation this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemCancelPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemCancelRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemCancelRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemCancelRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/93fc6594b8784a2a54ae577b7747f4894a6dcffabfc5783f7213c73992815bc1.go b/users/93fc6594b8784a2a54ae577b7747f4894a6dcffabfc5783f7213c73992815bc1.go index b2d2824d103..2c5e58b1cf1 100644 --- a/users/93fc6594b8784a2a54ae577b7747f4894a6dcffabfc5783f7213c73992815bc1.go +++ b/users/93fc6594b8784a2a54ae577b7747f4894a6dcffabfc5783f7213c73992815bc1.go @@ -47,6 +47,7 @@ type ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstan Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentId provides operations to manage the attachments property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ByAttachmentId(attachmentId string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } // Post create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -122,6 +125,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/941650929ff971595fac487a0a803ed653913446862ef67d7ede7bf72fc5ee71.go b/users/941650929ff971595fac487a0a803ed653913446862ef67d7ede7bf72fc5ee71.go index b42f83c2e24..4d61a3ca5de 100644 --- a/users/941650929ff971595fac487a0a803ed653913446862ef67d7ede7bf72fc5ee71.go +++ b/users/941650929ff971595fac487a0a803ed653913446862ef67d7ede7bf72fc5ee71.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemTentativ return NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemTentati return nil } // ToPostRequestInformation tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptPostRequestBodyable, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemTentati return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/964b3e186c24a31a9d686dd53bf3d10643e6d84ff72d4631e0e6b33321dec558.go b/users/964b3e186c24a31a9d686dd53bf3d10643e6d84ff72d4631e0e6b33321dec558.go index 2f9c8e0f4a7..22822014cff 100644 --- a/users/964b3e186c24a31a9d686dd53bf3d10643e6d84ff72d4631e0e6b33321dec558.go +++ b/users/964b3e186c24a31a9d686dd53bf3d10643e6d84ff72d4631e0e6b33321dec558.go @@ -40,6 +40,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptio return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/96c57b34cc9e183d071ee80dbece4db11559f4996fb1c9b51be646ac4e94dc8f.go b/users/96c57b34cc9e183d071ee80dbece4db11559f4996fb1c9b51be646ac4e94dc8f.go index dc994cfe5c2..b1076cd99c7 100644 --- a/users/96c57b34cc9e183d071ee80dbece4db11559f4996fb1c9b51be646ac4e94dc8f.go +++ b/users/96c57b34cc9e183d071ee80dbece4db11559f4996fb1c9b51be646ac4e94dc8f.go @@ -55,6 +55,7 @@ func NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensio return NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensi return nil } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensi return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensi return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensi return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensi return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensi return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) { return NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/99598b8aa04bfaaf2e9fe87da3196d1efab58d865bfb0f0ff24207c6e0bcfc6e.go b/users/99598b8aa04bfaaf2e9fe87da3196d1efab58d865bfb0f0ff24207c6e0bcfc6e.go index 71061a9ad07..f59693b2b6e 100644 --- a/users/99598b8aa04bfaaf2e9fe87da3196d1efab58d865bfb0f0ff24207c6e0bcfc6e.go +++ b/users/99598b8aa04bfaaf2e9fe87da3196d1efab58d865bfb0f0ff24207c6e0bcfc6e.go @@ -47,6 +47,7 @@ type ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExten Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemE return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemE return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemE return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemE return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemE return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) { return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/996a9c67c9d0dbcf31c341a9e292157232a45dea41d6c97eff7a1f8d496977db.go b/users/996a9c67c9d0dbcf31c341a9e292157232a45dea41d6c97eff7a1f8d496977db.go index 96c7e5c6459..d2b1dd07eb4 100644 --- a/users/996a9c67c9d0dbcf31c341a9e292157232a45dea41d6c97eff7a1f8d496977db.go +++ b/users/996a9c67c9d0dbcf31c341a9e292157232a45dea41d6c97eff7a1f8d496977db.go @@ -32,6 +32,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesI return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/9a7e72406154303d85c77770510facd3437608807558ff14df98edfbfc3b3ab2.go b/users/9a7e72406154303d85c77770510facd3437608807558ff14df98edfbfc3b3ab2.go index 08dec3d55b0..864c9abd46c 100644 --- a/users/9a7e72406154303d85c77770510facd3437608807558ff14df98edfbfc3b3ab2.go +++ b/users/9a7e72406154303d85c77770510facd3437608807558ff14df98edfbfc3b3ab2.go @@ -55,6 +55,7 @@ func NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensi return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtens return nil } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtens return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtens return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtens return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtens return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtens return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) { return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/9a86be8be10969299e7b1ed5f26101555059ceabc0b75abca200db38f55714df.go b/users/9a86be8be10969299e7b1ed5f26101555059ceabc0b75abca200db38f55714df.go index 1b2cadb2f60..fb9c99445b0 100644 --- a/users/9a86be8be10969299e7b1ed5f26101555059ceabc0b75abca200db38f55714df.go +++ b/users/9a86be8be10969299e7b1ed5f26101555059ceabc0b75abca200db38f55714df.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccur return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return nil } // ToPostRequestInformation tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemTentativelyAcceptPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/9a8cc817f5560284b49ac59d1084e4ee1f64cc4fd08338117c340ac1dffb44e8.go b/users/9a8cc817f5560284b49ac59d1084e4ee1f64cc4fd08338117c340ac1dffb44e8.go index 3ba22162097..2388213606c 100644 --- a/users/9a8cc817f5560284b49ac59d1084e4ee1f64cc4fd08338117c340ac1dffb44e8.go +++ b/users/9a8cc817f5560284b49ac59d1084e4ee1f64cc4fd08338117c340ac1dffb44e8.go @@ -48,6 +48,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAtt return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,6 +65,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAt return nil } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -84,6 +86,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAt return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToDeleteRequestInformation delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +98,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAt return requestInfo, nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +113,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAt return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/9ab948084c1413f1ba4af47a7077697fa09084af7bed7a802e9e0b915682679a.go b/users/9ab948084c1413f1ba4af47a7077697fa09084af7bed7a802e9e0b915682679a.go index 6680dd25005..0564decc4ca 100644 --- a/users/9ab948084c1413f1ba4af47a7077697fa09084af7bed7a802e9e0b915682679a.go +++ b/users/9ab948084c1413f1ba4af47a7077697fa09084af7bed7a802e9e0b915682679a.go @@ -32,6 +32,7 @@ func NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCr return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsC return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsC return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/9c542608ee4365eb37c80bd6fc4015e2070c7961eba7b4e366d443ba9ec9c531.go b/users/9c542608ee4365eb37c80bd6fc4015e2070c7961eba7b4e366d443ba9ec9c531.go index 3a14ef5f835..505c71ab959 100644 --- a/users/9c542608ee4365eb37c80bd6fc4015e2070c7961eba7b4e366d443ba9ec9c531.go +++ b/users/9c542608ee4365eb37c80bd6fc4015e2070c7961eba7b4e366d443ba9ec9c531.go @@ -41,6 +41,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesI return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilderInternal(urlParams, requestAdapter) } // Get the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -61,6 +62,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable), nil } // ToGetRequestInformation the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/9d17f5842ff50585ac9326b3c846c4f7ee7663c5dc96659656869b6263055927.go b/users/9d17f5842ff50585ac9326b3c846c4f7ee7663c5dc96659656869b6263055927.go index 270a446c04d..d996d2e5b7f 100644 --- a/users/9d17f5842ff50585ac9326b3c846c4f7ee7663c5dc96659656869b6263055927.go +++ b/users/9d17f5842ff50585ac9326b3c846c4f7ee7663c5dc96659656869b6263055927.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesI return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemCancelRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return nil } // ToPostRequestInformation this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemCancelPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemCancelRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemCancelRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemCancelRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/9d70a9af9709d1244a013fef95067d574a26aac4f56e4cc84426dbb360ebca11.go b/users/9d70a9af9709d1244a013fef95067d574a26aac4f56e4cc84426dbb360ebca11.go index 9791a632f5a..55c06b3f762 100644 --- a/users/9d70a9af9709d1244a013fef95067d574a26aac4f56e4cc84426dbb360ebca11.go +++ b/users/9d70a9af9709d1244a013fef95067d574a26aac4f56e4cc84426dbb360ebca11.go @@ -31,6 +31,7 @@ func NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemTentati return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemTentat return nil } // ToPostRequestInformation tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcceptPostRequestBodyable, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemTentat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/9e6c2280810bff4e565a5aab2821190378174aa67c5c83c765f3f785848b055c.go b/users/9e6c2280810bff4e565a5aab2821190378174aa67c5c83c765f3f785848b055c.go index 9cfd1566053..b7ab2c48e2d 100644 --- a/users/9e6c2280810bff4e565a5aab2821190378174aa67c5c83c765f3f785848b055c.go +++ b/users/9e6c2280810bff4e565a5aab2821190378174aa67c5c83c765f3f785848b055c.go @@ -48,6 +48,7 @@ func NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAtta return NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,6 +65,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAtt return nil } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -84,6 +86,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAtt return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToDeleteRequestInformation delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +98,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAtt return requestInfo, nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +113,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAtt return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) { return NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/9e72da3a6e72498cd5f53c9b1c34661ab6cffb9155c55325c9c82ff536a21581.go b/users/9e72da3a6e72498cd5f53c9b1c34661ab6cffb9155c55325c9c82ff536a21581.go index e1f5a03acb7..233aab7af70 100644 --- a/users/9e72da3a6e72498cd5f53c9b1c34661ab6cffb9155c55325c9c82ff536a21581.go +++ b/users/9e72da3a6e72498cd5f53c9b1c34661ab6cffb9155c55325c9c82ff536a21581.go @@ -55,6 +55,7 @@ func NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExten return NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExte return nil } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExte return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExte return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExte return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) { return NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/9ed9f30495a0295d9cd811ad16d9070a49071927240d608613f9c07346975a49.go b/users/9ed9f30495a0295d9cd811ad16d9070a49071927240d608613f9c07346975a49.go index 0fac986bb7d..16471faf11c 100644 --- a/users/9ed9f30495a0295d9cd811ad16d9070a49071927240d608613f9c07346975a49.go +++ b/users/9ed9f30495a0295d9cd811ad16d9070a49071927240d608613f9c07346975a49.go @@ -40,6 +40,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccur return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/9f52b6cfa171d67f1d34d1c90056904e5a75ad8604f79052174556233c41a0f3.go b/users/9f52b6cfa171d67f1d34d1c90056904e5a75ad8604f79052174556233c41a0f3.go index 6da43ac46a9..c6b89d3429c 100644 --- a/users/9f52b6cfa171d67f1d34d1c90056904e5a75ad8604f79052174556233c41a0f3.go +++ b/users/9f52b6cfa171d67f1d34d1c90056904e5a75ad8604f79052174556233c41a0f3.go @@ -32,6 +32,7 @@ func NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachm return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttach return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttach return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/9f8f62a5b26837be9c706eab2e807302a4d4b470dd2d2fbc8d469661a5cd24f6.go b/users/9f8f62a5b26837be9c706eab2e807302a4d4b470dd2d2fbc8d469661a5cd24f6.go index f3c6c489f4b..8468e2c6727 100644 --- a/users/9f8f62a5b26837be9c706eab2e807302a4d4b470dd2d2fbc8d469661a5cd24f6.go +++ b/users/9f8f62a5b26837be9c706eab2e807302a4d4b470dd2d2fbc8d469661a5cd24f6.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemSno return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemSnoozeReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemSn return nil } // ToPostRequestInformation postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemSnoozeReminderPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemSnoozeReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemSn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemSnoozeReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/a2db3597dd54f932b983e96f0a4eb14ac6f5e071e73d2705c8d056f955601867.go b/users/a2db3597dd54f932b983e96f0a4eb14ac6f5e071e73d2705c8d056f955601867.go index 29a2a894380..d07d6ba0113 100644 --- a/users/a2db3597dd54f932b983e96f0a4eb14ac6f5e071e73d2705c8d056f955601867.go +++ b/users/a2db3597dd54f932b983e96f0a4eb14ac6f5e071e73d2705c8d056f955601867.go @@ -41,6 +41,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccur return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilderInternal(urlParams, requestAdapter) } // Get the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -61,6 +62,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable), nil } // ToGetRequestInformation the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/a32a8f435bcd264ed9013ce71e771d8b70e249d41cfc76f2362516c0cd16c059.go b/users/a32a8f435bcd264ed9013ce71e771d8b70e249d41cfc76f2362516c0cd16c059.go index 72089a9f4f7..a0765993d41 100644 --- a/users/a32a8f435bcd264ed9013ce71e771d8b70e249d41cfc76f2362516c0cd16c059.go +++ b/users/a32a8f435bcd264ed9013ce71e771d8b70e249d41cfc76f2362516c0cd16c059.go @@ -79,6 +79,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDeci return res.(ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsFilterByCurrentUserWithOnResponseable), nil } // GetAsFilterByCurrentUserWithOnGetResponse retrieve the accessReviewInstanceDecisionItem objects for a specific accessReviewInstance. A list of zero or more accessReviewInstanceDecisionItem objects are returned, including all of their nested properties. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsFilterByCurrentUserWithOnGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -102,6 +103,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDeci return res.(ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsFilterByCurrentUserWithOnGetResponseable), nil } // ToGetRequestInformation retrieve the accessReviewInstanceDecisionItem objects for a specific accessReviewInstance. A list of zero or more accessReviewInstanceDecisionItem objects are returned, including all of their nested properties. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsFilterByCurrentUserWithOnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsFilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -116,6 +118,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDeci return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsFilterByCurrentUserWithOnRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsFilterByCurrentUserWithOnRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsFilterByCurrentUserWithOnRequestBuilder) { return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsFilterByCurrentUserWithOnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/a337b5350fd5a59203ebe7808a8cc9dfcb57a31ece9a3d94101ca82c82c5ec2c.go b/users/a337b5350fd5a59203ebe7808a8cc9dfcb57a31ece9a3d94101ca82c82c5ec2c.go new file mode 100644 index 00000000000..94eedf25272 --- /dev/null +++ b/users/a337b5350fd5a59203ebe7808a8cc9dfcb57a31ece9a3d94101ca82c82c5ec2c.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/exceptionOccurrences/{event%2Did2}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/a380aaa756cbef2fc0df5692e77c3d5dda9df944afd446cf99181d3afe76d740.go b/users/a380aaa756cbef2fc0df5692e77c3d5dda9df944afd446cf99181d3afe76d740.go index 00ef5e0b77c..48b01a7b6ae 100644 --- a/users/a380aaa756cbef2fc0df5692e77c3d5dda9df944afd446cf99181d3afe76d740.go +++ b/users/a380aaa756cbef2fc0df5692e77c3d5dda9df944afd446cf99181d3afe76d740.go @@ -31,6 +31,7 @@ func NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecis return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsRecordAllDecisionsRequestBuilderInternal(urlParams, requestAdapter) } // Post as a reviewer of an access review, record a decision for an accessReviewInstanceDecisionItem that is assigned to you and that matches the principal or resource IDs specified. If no IDs are specified, the decisions will apply to every accessReviewInstanceDecisionItem for which you are the reviewer. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDeci return nil } // ToPostRequestInformation as a reviewer of an access review, record a decision for an accessReviewInstanceDecisionItem that is assigned to you and that matches the principal or resource IDs specified. If no IDs are specified, the decisions will apply to every accessReviewInstanceDecisionItem for which you are the reviewer. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsRecordAllDecisionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsRecordAllDecisionsPostRequestBodyable, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsRecordAllDecisionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDeci return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsRecordAllDecisionsRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsRecordAllDecisionsRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsRecordAllDecisionsRequestBuilder) { return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsRecordAllDecisionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/a3fb4a0e248f055d22f40504d3f9d9b1a4fb0ed702a24339f2c506561c27148e.go b/users/a3fb4a0e248f055d22f40504d3f9d9b1a4fb0ed702a24339f2c506561c27148e.go index b88f4550914..ae5d97e0e5a 100644 --- a/users/a3fb4a0e248f055d22f40504d3f9d9b1a4fb0ed702a24339f2c506561c27148e.go +++ b/users/a3fb4a0e248f055d22f40504d3f9d9b1a4fb0ed702a24339f2c506561c27148e.go @@ -32,6 +32,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachme return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachm return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachm return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/a4981b015cee2ba22d2c43321ca121dbde242585ce0007c1e122e851b734ce90.go b/users/a4981b015cee2ba22d2c43321ca121dbde242585ce0007c1e122e851b734ce90.go index 3c97cf00587..36bb2378bc3 100644 --- a/users/a4981b015cee2ba22d2c43321ca121dbde242585ce0007c1e122e851b734ce90.go +++ b/users/a4981b015cee2ba22d2c43321ca121dbde242585ce0007c1e122e851b734ce90.go @@ -31,6 +31,7 @@ func NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemTentati return NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemTentat return nil } // ToPostRequestInformation tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemTentativelyAcceptPostRequestBodyable, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemTentat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/a50923c8dbbec345bab9969d74a445b3caa508895f3f4cc47f7f6868c64212da.go b/users/a50923c8dbbec345bab9969d74a445b3caa508895f3f4cc47f7f6868c64212da.go index 28881c8fe8d..4e5b2632080 100644 --- a/users/a50923c8dbbec345bab9969d74a445b3caa508895f3f4cc47f7f6868c64212da.go +++ b/users/a50923c8dbbec345bab9969d74a445b3caa508895f3f4cc47f7f6868c64212da.go @@ -41,6 +41,7 @@ func NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemCa return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilderInternal(urlParams, requestAdapter) } // Get the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -61,6 +62,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemC return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable), nil } // ToGetRequestInformation the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemC return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder) { return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/a790b530c417fc3f3c9eac97ccad59210786c342fb5bffb15bb3cdbc3966b2bc.go b/users/a790b530c417fc3f3c9eac97ccad59210786c342fb5bffb15bb3cdbc3966b2bc.go index 4acd6c53b65..f7e8db729d7 100644 --- a/users/a790b530c417fc3f3c9eac97ccad59210786c342fb5bffb15bb3cdbc3966b2bc.go +++ b/users/a790b530c417fc3f3c9eac97ccad59210786c342fb5bffb15bb3cdbc3966b2bc.go @@ -80,6 +80,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return res.(ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -103,6 +104,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return res.(ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesDeltaGetResponseable), nil } // ToGetRequestInformation get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +119,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesDeltaRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesDeltaRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/a8486b1a70028df9358ded74a4e5c21fd169b620f82385656cc7ab3d1d612831.go b/users/a8486b1a70028df9358ded74a4e5c21fd169b620f82385656cc7ab3d1d612831.go index 9f6554608cd..0a4f6877ef0 100644 --- a/users/a8486b1a70028df9358ded74a4e5c21fd169b620f82385656cc7ab3d1d612831.go +++ b/users/a8486b1a70028df9358ded74a4e5c21fd169b620f82385656cc7ab3d1d612831.go @@ -31,6 +31,7 @@ func NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceReset return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceResetDecisionsRequestBuilderInternal(urlParams, requestAdapter) } // Post resets decisions of all accessReviewInstanceDecisionItem objects on an accessReviewInstance to notReviewed. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceRese return nil } // ToPostRequestInformation resets decisions of all accessReviewInstanceDecisionItem objects on an accessReviewInstance to notReviewed. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceResetDecisionsRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceResetDecisionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceRese return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceResetDecisionsRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceResetDecisionsRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceResetDecisionsRequestBuilder) { return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceResetDecisionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/a93a831617f04527ede8f5b6bafbf40be0786097915e19ef789ce3df03be54b9.go b/users/a93a831617f04527ede8f5b6bafbf40be0786097915e19ef789ce3df03be54b9.go index 2b43f8abf10..2bb0f13a3a1 100644 --- a/users/a93a831617f04527ede8f5b6bafbf40be0786097915e19ef789ce3df03be54b9.go +++ b/users/a93a831617f04527ede8f5b6bafbf40be0786097915e19ef789ce3df03be54b9.go @@ -55,6 +55,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsExte return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsExt return nil } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsExt return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsExt return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsExt return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsExt return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsExt return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/ab05eee878f009c141b2bc5fb9147dfc4fd96e4fec95ccb434cf2eb7e75bdc84.go b/users/ab05eee878f009c141b2bc5fb9147dfc4fd96e4fec95ccb434cf2eb7e75bdc84.go index ca12dbf3755..f4216ce015f 100644 --- a/users/ab05eee878f009c141b2bc5fb9147dfc4fd96e4fec95ccb434cf2eb7e75bdc84.go +++ b/users/ab05eee878f009c141b2bc5fb9147dfc4fd96e4fec95ccb434cf2eb7e75bdc84.go @@ -55,6 +55,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExt return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemEx return nil } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemEx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemEx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemEx return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemEx return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemEx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/ab5c7226ee1a5fb6086c9ff0f01672cf4ff4d6bd9f2a057d8b654bc5cda252cb.go b/users/ab5c7226ee1a5fb6086c9ff0f01672cf4ff4d6bd9f2a057d8b654bc5cda252cb.go index 07832b45dff..93f8762687c 100644 --- a/users/ab5c7226ee1a5fb6086c9ff0f01672cf4ff4d6bd9f2a057d8b654bc5cda252cb.go +++ b/users/ab5c7226ee1a5fb6086c9ff0f01672cf4ff4d6bd9f2a057d8b654bc5cda252cb.go @@ -55,6 +55,7 @@ func NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensi return NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtens return nil } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtens return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtens return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtens return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtens return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtens return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) { return NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/ab5edfbdf60fb191f1677b906f59b7af5f9633f61ac5afe23d831d2c4b785e86.go b/users/ab5edfbdf60fb191f1677b906f59b7af5f9633f61ac5afe23d831d2c4b785e86.go index 82a72ff4c91..ae279667732 100644 --- a/users/ab5edfbdf60fb191f1677b906f59b7af5f9633f61ac5afe23d831d2c4b785e86.go +++ b/users/ab5edfbdf60fb191f1677b906f59b7af5f9633f61ac5afe23d831d2c4b785e86.go @@ -47,6 +47,7 @@ type ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItem Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentId provides operations to manage the attachments property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ByAttachmentId(attachmentId string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } // Post create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -122,6 +125,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/ac9bc1bd9beda7930d90e130dc7a40195f945ce5e8e9126dd328944617e995a7.go b/users/ac9bc1bd9beda7930d90e130dc7a40195f945ce5e8e9126dd328944617e995a7.go index e5338e10c72..89d3b043a5d 100644 --- a/users/ac9bc1bd9beda7930d90e130dc7a40195f945ce5e8e9126dd328944617e995a7.go +++ b/users/ac9bc1bd9beda7930d90e130dc7a40195f945ce5e8e9126dd328944617e995a7.go @@ -18,7 +18,7 @@ type ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCollect // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCollectionRequestItemRequestBuilderGetQueryParameters indicates collection of App Log Upload Request. +// ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCollectionRequestItemRequestBuilderGetQueryParameters the collection property of AppLogUploadRequest. type ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCollectionRequestItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -60,6 +60,7 @@ func (m *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCol return NewItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsItemCreateDownloadUrlRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Delete delete navigation property appLogCollectionRequests for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCollectionRequestItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCollectionRequestItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -75,7 +76,8 @@ func (m *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCol } return nil } -// Get indicates collection of App Log Upload Request. +// Get the collection property of AppLogUploadRequest. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AppLogCollectionRequestable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCollectionRequestItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCollectionRequestItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AppLogCollectionRequestable, error) { @@ -96,6 +98,7 @@ func (m *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCol return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AppLogCollectionRequestable), nil } // Patch update the navigation property appLogCollectionRequests in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AppLogCollectionRequestable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCollectionRequestItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AppLogCollectionRequestable, requestConfiguration *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCollectionRequestItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AppLogCollectionRequestable, error) { @@ -116,6 +119,7 @@ func (m *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCol return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AppLogCollectionRequestable), nil } // ToDeleteRequestInformation delete navigation property appLogCollectionRequests for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCollectionRequestItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCollectionRequestItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -126,7 +130,8 @@ func (m *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCol requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation indicates collection of App Log Upload Request. +// ToGetRequestInformation the collection property of AppLogUploadRequest. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCollectionRequestItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCollectionRequestItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,6 +146,7 @@ func (m *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCol return requestInfo, nil } // ToPatchRequestInformation update the navigation property appLogCollectionRequests in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCollectionRequestItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AppLogCollectionRequestable, requestConfiguration *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCollectionRequestItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +162,7 @@ func (m *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCol return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCollectionRequestItemRequestBuilder when successful func (m *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCollectionRequestItemRequestBuilder) WithUrl(rawUrl string)(*ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCollectionRequestItemRequestBuilder) { return NewItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCollectionRequestItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/acebc72c191addde99799eb9215f04edaeb3304c109c1cbc0c7d628edd230cdd.go b/users/acebc72c191addde99799eb9215f04edaeb3304c109c1cbc0c7d628edd230cdd.go index 141ffcdbdac..34239317d2c 100644 --- a/users/acebc72c191addde99799eb9215f04edaeb3304c109c1cbc0c7d628edd230cdd.go +++ b/users/acebc72c191addde99799eb9215f04edaeb3304c109c1cbc0c7d628edd230cdd.go @@ -31,6 +31,7 @@ func NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceApply return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceApplyDecisionsRequestBuilderInternal(urlParams, requestAdapter) } // Post apply review decisions on an accessReviewInstance if the decisions were not applied automatically because the autoApplyDecisionsEnabled property is false in the review's accessReviewScheduleSettings. The status of the accessReviewInstance must be Completed to call this method. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceAppl return nil } // ToPostRequestInformation apply review decisions on an accessReviewInstance if the decisions were not applied automatically because the autoApplyDecisionsEnabled property is false in the review's accessReviewScheduleSettings. The status of the accessReviewInstance must be Completed to call this method. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceApplyDecisionsRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceApplyDecisionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceAppl return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceApplyDecisionsRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceApplyDecisionsRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceApplyDecisionsRequestBuilder) { return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceApplyDecisionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/ad1382631eb435e90acfd92195ee489d5b2fb7fd8e8ce217b83e67a228ca21f8.go b/users/ad1382631eb435e90acfd92195ee489d5b2fb7fd8e8ce217b83e67a228ca21f8.go index bc3294a03be..0ec5e651aca 100644 --- a/users/ad1382631eb435e90acfd92195ee489d5b2fb7fd8e8ce217b83e67a228ca21f8.go +++ b/users/ad1382631eb435e90acfd92195ee489d5b2fb7fd8e8ce217b83e67a228ca21f8.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesI return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemDismissReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return nil } // ToPostRequestInformation dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemDismissReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemDismissReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemDismissReminderRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemDismissReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemDismissReminderRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemDismissReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/ad41db8f4e2f5e2c1e02a38b09a9e16d73fbb23d272c4bd1bf410ca5d980646d.go b/users/ad41db8f4e2f5e2c1e02a38b09a9e16d73fbb23d272c4bd1bf410ca5d980646d.go index 930921ccd64..25892359055 100644 --- a/users/ad41db8f4e2f5e2c1e02a38b09a9e16d73fbb23d272c4bd1bf410ca5d980646d.go +++ b/users/ad41db8f4e2f5e2c1e02a38b09a9e16d73fbb23d272c4bd1bf410ca5d980646d.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIns return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return nil } // ToPostRequestInformation postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/adda5e84432f4345ac08b35d4002d41b71b6bc7150887bea202ecc77c6e2d328.go b/users/adda5e84432f4345ac08b35d4002d41b71b6bc7150887bea202ecc77c6e2d328.go index f9fe0eb4961..93e53e645aa 100644 --- a/users/adda5e84432f4345ac08b35d4002d41b71b6bc7150887bea202ecc77c6e2d328.go +++ b/users/adda5e84432f4345ac08b35d4002d41b71b6bc7150887bea202ecc77c6e2d328.go @@ -55,6 +55,7 @@ func NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsExten return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsExte return nil } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsExte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsExte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsExte return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsExte return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsExte return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) { return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/ae078fe8e8718116116b12a6492a0dc15b9e6492f75cdcb1aff93af06dc3da66.go b/users/ae078fe8e8718116116b12a6492a0dc15b9e6492f75cdcb1aff93af06dc3da66.go index 2f5818c85a6..7595654392e 100644 --- a/users/ae078fe8e8718116116b12a6492a0dc15b9e6492f75cdcb1aff93af06dc3da66.go +++ b/users/ae078fe8e8718116116b12a6492a0dc15b9e6492f75cdcb1aff93af06dc3da66.go @@ -47,6 +47,7 @@ type ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecision Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByGovernanceInsightId provides operations to manage the insights property of the microsoft.graph.accessReviewInstanceDecisionItem entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsItemInsightsGovernanceInsightItemRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsItemInsightsRequestBuilder) ByGovernanceInsightId(governanceInsightId string)(*ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsItemInsightsGovernanceInsightItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDeci return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsItemInsightsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a GovernanceInsightCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsItemInsightsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsItemInsightsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDeci return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightCollectionResponseable), nil } // Post create new navigation property to insights for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a GovernanceInsightable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsItemInsightsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightable, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsItemInsightsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightable, error) { @@ -117,6 +120,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDeci return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightable), nil } // ToGetRequestInformation insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsItemInsightsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsItemInsightsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDeci return requestInfo, nil } // ToPostRequestInformation create new navigation property to insights for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsItemInsightsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightable, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsItemInsightsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDeci return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsItemInsightsRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsItemInsightsRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsItemInsightsRequestBuilder) { return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsItemInsightsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/b109606e7c5fdad2db5ed4a64ca6991333dd7a6eabff34a737c49b7074b7dbd8.go b/users/b109606e7c5fdad2db5ed4a64ca6991333dd7a6eabff34a737c49b7074b7dbd8.go index 9d89c5334ec..8af6b48abcb 100644 --- a/users/b109606e7c5fdad2db5ed4a64ca6991333dd7a6eabff34a737c49b7074b7dbd8.go +++ b/users/b109606e7c5fdad2db5ed4a64ca6991333dd7a6eabff34a737c49b7074b7dbd8.go @@ -32,6 +32,7 @@ func NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAt return NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemA return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemA return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/b151935c9a4f892324274b0eab38790e2eee2d6eaa8c487fac398a80b931c99d.go b/users/b151935c9a4f892324274b0eab38790e2eee2d6eaa8c487fac398a80b931c99d.go index 147106d9e84..82580b7ff05 100644 --- a/users/b151935c9a4f892324274b0eab38790e2eee2d6eaa8c487fac398a80b931c99d.go +++ b/users/b151935c9a4f892324274b0eab38790e2eee2d6eaa8c487fac398a80b931c99d.go @@ -48,6 +48,7 @@ func NewItemAuthenticationTemporaryAccessPassMethodsTemporaryAccessPassAuthentic return NewItemAuthenticationTemporaryAccessPassMethodsTemporaryAccessPassAuthenticationMethodItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete a users's temporaryAccessPassAuthenticationMethod object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -67,6 +68,7 @@ func (m *ItemAuthenticationTemporaryAccessPassMethodsTemporaryAccessPassAuthenti return nil } // Get retrieve a user's single temporaryAccessPassAuthenticationMethod object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a TemporaryAccessPassAuthenticationMethodable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -90,6 +92,7 @@ func (m *ItemAuthenticationTemporaryAccessPassMethodsTemporaryAccessPassAuthenti return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TemporaryAccessPassAuthenticationMethodable), nil } // ToDeleteRequestInformation delete a users's temporaryAccessPassAuthenticationMethod object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationTemporaryAccessPassMethodsTemporaryAccessPassAuthenticationMethodItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationTemporaryAccessPassMethodsTemporaryAccessPassAuthenticationMethodItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -101,6 +104,7 @@ func (m *ItemAuthenticationTemporaryAccessPassMethodsTemporaryAccessPassAuthenti return requestInfo, nil } // ToGetRequestInformation retrieve a user's single temporaryAccessPassAuthenticationMethod object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationTemporaryAccessPassMethodsTemporaryAccessPassAuthenticationMethodItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationTemporaryAccessPassMethodsTemporaryAccessPassAuthenticationMethodItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -115,6 +119,7 @@ func (m *ItemAuthenticationTemporaryAccessPassMethodsTemporaryAccessPassAuthenti return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationTemporaryAccessPassMethodsTemporaryAccessPassAuthenticationMethodItemRequestBuilder when successful func (m *ItemAuthenticationTemporaryAccessPassMethodsTemporaryAccessPassAuthenticationMethodItemRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationTemporaryAccessPassMethodsTemporaryAccessPassAuthenticationMethodItemRequestBuilder) { return NewItemAuthenticationTemporaryAccessPassMethodsTemporaryAccessPassAuthenticationMethodItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/b158e4f56244b5917a16460c20276af8c20eab709396b28a09e3b3d6a24036d5.go b/users/b158e4f56244b5917a16460c20276af8c20eab709396b28a09e3b3d6a24036d5.go index e6bcc785c51..009041307f7 100644 --- a/users/b158e4f56244b5917a16460c20276af8c20eab709396b28a09e3b3d6a24036d5.go +++ b/users/b158e4f56244b5917a16460c20276af8c20eab709396b28a09e3b3d6a24036d5.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAc return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemA return nil } // ToPostRequestInformation accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAcceptPostRequestBodyable, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemA return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilder) { return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/b2b2a3c3b331c9281104036b4e9cf3f8d4a0052843c5bf69d3a11175fee96df6.go b/users/b2b2a3c3b331c9281104036b4e9cf3f8d4a0052843c5bf69d3a11175fee96df6.go index d82f13543b5..e37f6fcebc8 100644 --- a/users/b2b2a3c3b331c9281104036b4e9cf3f8d4a0052843c5bf69d3a11175fee96df6.go +++ b/users/b2b2a3c3b331c9281104036b4e9cf3f8d4a0052843c5bf69d3a11175fee96df6.go @@ -55,6 +55,7 @@ func NewItemManagedDevicesItemDeviceCompliancePolicyStatesDeviceCompliancePolicy return NewItemManagedDevicesItemDeviceCompliancePolicyStatesDeviceCompliancePolicyStateItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property deviceCompliancePolicyStates for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemDeviceCompliancePolicyStatesDeviceCompliancePolicyStateItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemManagedDevicesItemDeviceCompliancePolicyStatesDeviceCompliancePolicyStateItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemManagedDevicesItemDeviceCompliancePolicyStatesDeviceCompliancePolic return nil } // Get device compliance policy states for this device. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DeviceCompliancePolicyStateable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemDeviceCompliancePolicyStatesDeviceCompliancePolicyStateItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemManagedDevicesItemDeviceCompliancePolicyStatesDeviceCompliancePolicyStateItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceCompliancePolicyStateable, error) { @@ -91,6 +93,7 @@ func (m *ItemManagedDevicesItemDeviceCompliancePolicyStatesDeviceCompliancePolic return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceCompliancePolicyStateable), nil } // Patch update the navigation property deviceCompliancePolicyStates in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DeviceCompliancePolicyStateable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemDeviceCompliancePolicyStatesDeviceCompliancePolicyStateItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceCompliancePolicyStateable, requestConfiguration *ItemManagedDevicesItemDeviceCompliancePolicyStatesDeviceCompliancePolicyStateItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceCompliancePolicyStateable, error) { @@ -111,6 +114,7 @@ func (m *ItemManagedDevicesItemDeviceCompliancePolicyStatesDeviceCompliancePolic return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceCompliancePolicyStateable), nil } // ToDeleteRequestInformation delete navigation property deviceCompliancePolicyStates for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemDeviceCompliancePolicyStatesDeviceCompliancePolicyStateItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemDeviceCompliancePolicyStatesDeviceCompliancePolicyStateItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemManagedDevicesItemDeviceCompliancePolicyStatesDeviceCompliancePolic return requestInfo, nil } // ToGetRequestInformation device compliance policy states for this device. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemDeviceCompliancePolicyStatesDeviceCompliancePolicyStateItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemDeviceCompliancePolicyStatesDeviceCompliancePolicyStateItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemManagedDevicesItemDeviceCompliancePolicyStatesDeviceCompliancePolic return requestInfo, nil } // ToPatchRequestInformation update the navigation property deviceCompliancePolicyStates in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemDeviceCompliancePolicyStatesDeviceCompliancePolicyStateItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceCompliancePolicyStateable, requestConfiguration *ItemManagedDevicesItemDeviceCompliancePolicyStatesDeviceCompliancePolicyStateItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemManagedDevicesItemDeviceCompliancePolicyStatesDeviceCompliancePolic return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemDeviceCompliancePolicyStatesDeviceCompliancePolicyStateItemRequestBuilder when successful func (m *ItemManagedDevicesItemDeviceCompliancePolicyStatesDeviceCompliancePolicyStateItemRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemDeviceCompliancePolicyStatesDeviceCompliancePolicyStateItemRequestBuilder) { return NewItemManagedDevicesItemDeviceCompliancePolicyStatesDeviceCompliancePolicyStateItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/b30057625334ffdc2a61bd17a46c3b4fbb7d6b4ba6733ac8c9281ff29c81b655.go b/users/b30057625334ffdc2a61bd17a46c3b4fbb7d6b4ba6733ac8c9281ff29c81b655.go index 389116209b3..0c5a39c4b37 100644 --- a/users/b30057625334ffdc2a61bd17a46c3b4fbb7d6b4ba6733ac8c9281ff29c81b655.go +++ b/users/b30057625334ffdc2a61bd17a46c3b4fbb7d6b4ba6733ac8c9281ff29c81b655.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemCa return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemCancelRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemC return nil } // ToPostRequestInformation this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemCancelPostRequestBodyable, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemC return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemCancelRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemCancelRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemCancelRequestBuilder) { return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/b36a0d98a16ce1a359998ce949c4ce287a8cda5940efbb2f31eb1d0c0177ad08.go b/users/b36a0d98a16ce1a359998ce949c4ce287a8cda5940efbb2f31eb1d0c0177ad08.go index 472ce5438a9..13a368ea5b4 100644 --- a/users/b36a0d98a16ce1a359998ce949c4ce287a8cda5940efbb2f31eb1d0c0177ad08.go +++ b/users/b36a0d98a16ce1a359998ce949c4ce287a8cda5940efbb2f31eb1d0c0177ad08.go @@ -55,6 +55,7 @@ func NewItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsAttendance return NewItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsAttendanceRecordItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attendanceRecords for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsAttendanceRecordItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsAttendanceRecordItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsAttendanc return nil } // Get list of attendance records of an attendance report. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttendanceRecordable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsAttendanceRecordItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsAttendanceRecordItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttendanceRecordable, error) { @@ -91,6 +93,7 @@ func (m *ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsAttendanc return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttendanceRecordable), nil } // Patch update the navigation property attendanceRecords in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttendanceRecordable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsAttendanceRecordItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttendanceRecordable, requestConfiguration *ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsAttendanceRecordItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttendanceRecordable, error) { @@ -111,6 +114,7 @@ func (m *ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsAttendanc return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttendanceRecordable), nil } // ToDeleteRequestInformation delete navigation property attendanceRecords for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsAttendanceRecordItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsAttendanceRecordItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsAttendanc return requestInfo, nil } // ToGetRequestInformation list of attendance records of an attendance report. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsAttendanceRecordItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsAttendanceRecordItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsAttendanc return requestInfo, nil } // ToPatchRequestInformation update the navigation property attendanceRecords in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsAttendanceRecordItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttendanceRecordable, requestConfiguration *ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsAttendanceRecordItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsAttendanc return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsAttendanceRecordItemRequestBuilder when successful func (m *ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsAttendanceRecordItemRequestBuilder) WithUrl(rawUrl string)(*ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsAttendanceRecordItemRequestBuilder) { return NewItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsAttendanceRecordItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/b38b37edda9ec093051d48bb39bf0df12843b29639589f0fab6ea76ca1383cae.go b/users/b38b37edda9ec093051d48bb39bf0df12843b29639589f0fab6ea76ca1383cae.go index 24efd959999..aff1a60b4b7 100644 --- a/users/b38b37edda9ec093051d48bb39bf0df12843b29639589f0fab6ea76ca1383cae.go +++ b/users/b38b37edda9ec093051d48bb39bf0df12843b29639589f0fab6ea76ca1383cae.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIns return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemForwardRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return nil } // ToPostRequestInformation this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemForwardPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemForwardRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/b3c151c4bf92e7defd3dde3c0d36c3e74d39b146121f58e996d1c26a39926158.go b/users/b3c151c4bf92e7defd3dde3c0d36c3e74d39b146121f58e996d1c26a39926158.go index 3e202405995..e49d662afd7 100644 --- a/users/b3c151c4bf92e7defd3dde3c0d36c3e74d39b146121f58e996d1c26a39926158.go +++ b/users/b3c151c4bf92e7defd3dde3c0d36c3e74d39b146121f58e996d1c26a39926158.go @@ -41,6 +41,7 @@ func NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemCa return NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilderInternal(urlParams, requestAdapter) } // Get the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -61,6 +62,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemC return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable), nil } // ToGetRequestInformation the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemC return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder) { return NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/b431f17c08a130b76fea94361f6587c4b3b9e6913f76faf3cad894e8d7fb035e.go b/users/b431f17c08a130b76fea94361f6587c4b3b9e6913f76faf3cad894e8d7fb035e.go index f1e14d3158d..abc7cbfc97b 100644 --- a/users/b431f17c08a130b76fea94361f6587c4b3b9e6913f76faf3cad894e8d7fb035e.go +++ b/users/b431f17c08a130b76fea94361f6587c4b3b9e6913f76faf3cad894e8d7fb035e.go @@ -47,6 +47,7 @@ type ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstan Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/b4bca45f48c863167d03ab5b2a72b75e1bd26e91dfd5dfa7b3fb26562607d76b.go b/users/b4bca45f48c863167d03ab5b2a72b75e1bd26e91dfd5dfa7b3fb26562607d76b.go index 432a7f714ac..6462d22edfe 100644 --- a/users/b4bca45f48c863167d03ab5b2a72b75e1bd26e91dfd5dfa7b3fb26562607d76b.go +++ b/users/b4bca45f48c863167d03ab5b2a72b75e1bd26e91dfd5dfa7b3fb26562607d76b.go @@ -40,6 +40,7 @@ func NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensio return NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensi return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensi return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder) { return NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/b542c11a92cfe3b1fd4379c434acda7d167376bbed329ffc1eebff0bb6ebede0.go b/users/b542c11a92cfe3b1fd4379c434acda7d167376bbed329ffc1eebff0bb6ebede0.go index 73e25610a1a..a5d3cac1022 100644 --- a/users/b542c11a92cfe3b1fd4379c434acda7d167376bbed329ffc1eebff0bb6ebede0.go +++ b/users/b542c11a92cfe3b1fd4379c434acda7d167376bbed329ffc1eebff0bb6ebede0.go @@ -32,6 +32,7 @@ func NewItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsCreateUplo return NewItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsCreateUpl return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsCreateUpl return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/b580c47d1f827e54e6e9d806320f801ae9bfd0af1a2561523d47f3187c3f6624.go b/users/b580c47d1f827e54e6e9d806320f801ae9bfd0af1a2561523d47f3187c3f6624.go index 2b34eb001ef..ca1fd4504f1 100644 --- a/users/b580c47d1f827e54e6e9d806320f801ae9bfd0af1a2561523d47f3187c3f6624.go +++ b/users/b580c47d1f827e54e6e9d806320f801ae9bfd0af1a2561523d47f3187c3f6624.go @@ -55,6 +55,7 @@ func NewItemOnlineMeetingsItemRegistrationCustomQuestionsMeetingRegistrationQues return NewItemOnlineMeetingsItemRegistrationCustomQuestionsMeetingRegistrationQuestionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property customQuestions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemRegistrationCustomQuestionsMeetingRegistrationQuestionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRegistrationCustomQuestionsMeetingRegistrationQuestionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemOnlineMeetingsItemRegistrationCustomQuestionsMeetingRegistrationQue return nil } // Get custom registration questions. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MeetingRegistrationQuestionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemRegistrationCustomQuestionsMeetingRegistrationQuestionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRegistrationCustomQuestionsMeetingRegistrationQuestionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingRegistrationQuestionable, error) { @@ -91,6 +93,7 @@ func (m *ItemOnlineMeetingsItemRegistrationCustomQuestionsMeetingRegistrationQue return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingRegistrationQuestionable), nil } // Patch update the navigation property customQuestions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MeetingRegistrationQuestionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemRegistrationCustomQuestionsMeetingRegistrationQuestionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingRegistrationQuestionable, requestConfiguration *ItemOnlineMeetingsItemRegistrationCustomQuestionsMeetingRegistrationQuestionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingRegistrationQuestionable, error) { @@ -111,6 +114,7 @@ func (m *ItemOnlineMeetingsItemRegistrationCustomQuestionsMeetingRegistrationQue return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingRegistrationQuestionable), nil } // ToDeleteRequestInformation delete navigation property customQuestions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemRegistrationCustomQuestionsMeetingRegistrationQuestionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRegistrationCustomQuestionsMeetingRegistrationQuestionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemOnlineMeetingsItemRegistrationCustomQuestionsMeetingRegistrationQue return requestInfo, nil } // ToGetRequestInformation custom registration questions. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemRegistrationCustomQuestionsMeetingRegistrationQuestionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRegistrationCustomQuestionsMeetingRegistrationQuestionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemOnlineMeetingsItemRegistrationCustomQuestionsMeetingRegistrationQue return requestInfo, nil } // ToPatchRequestInformation update the navigation property customQuestions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemRegistrationCustomQuestionsMeetingRegistrationQuestionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingRegistrationQuestionable, requestConfiguration *ItemOnlineMeetingsItemRegistrationCustomQuestionsMeetingRegistrationQuestionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemOnlineMeetingsItemRegistrationCustomQuestionsMeetingRegistrationQue return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsItemRegistrationCustomQuestionsMeetingRegistrationQuestionItemRequestBuilder when successful func (m *ItemOnlineMeetingsItemRegistrationCustomQuestionsMeetingRegistrationQuestionItemRequestBuilder) WithUrl(rawUrl string)(*ItemOnlineMeetingsItemRegistrationCustomQuestionsMeetingRegistrationQuestionItemRequestBuilder) { return NewItemOnlineMeetingsItemRegistrationCustomQuestionsMeetingRegistrationQuestionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/b7b8db028a0f9c19d5761572c0fe79665b208e711f91ee20a4a26e7dfb0ee0ab.go b/users/b7b8db028a0f9c19d5761572c0fe79665b208e711f91ee20a4a26e7dfb0ee0ab.go index bcddc395c4c..ef8b48ebe71 100644 --- a/users/b7b8db028a0f9c19d5761572c0fe79665b208e711f91ee20a4a26e7dfb0ee0ab.go +++ b/users/b7b8db028a0f9c19d5761572c0fe79665b208e711f91ee20a4a26e7dfb0ee0ab.go @@ -60,6 +60,7 @@ func NewItemAppConsentRequestsForApprovalItemUserConsentRequestsUserConsentReque return NewItemAppConsentRequestsForApprovalItemUserConsentRequestsUserConsentRequestItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property userConsentRequests for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsUserConsentRequestItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemAppConsentRequestsForApprovalItemUserConsentRequestsUserConsentRequestItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -76,6 +77,7 @@ func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsUserConsentRequ return nil } // Get a list of pending user consent requests. Supports $filter (eq). +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserConsentRequestable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsUserConsentRequestItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAppConsentRequestsForApprovalItemUserConsentRequestsUserConsentRequestItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserConsentRequestable, error) { @@ -96,6 +98,7 @@ func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsUserConsentRequ return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserConsentRequestable), nil } // Patch update the navigation property userConsentRequests in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserConsentRequestable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsUserConsentRequestItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserConsentRequestable, requestConfiguration *ItemAppConsentRequestsForApprovalItemUserConsentRequestsUserConsentRequestItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserConsentRequestable, error) { @@ -116,6 +119,7 @@ func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsUserConsentRequ return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserConsentRequestable), nil } // ToDeleteRequestInformation delete navigation property userConsentRequests for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsUserConsentRequestItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemAppConsentRequestsForApprovalItemUserConsentRequestsUserConsentRequestItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -127,6 +131,7 @@ func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsUserConsentRequ return requestInfo, nil } // ToGetRequestInformation a list of pending user consent requests. Supports $filter (eq). +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsUserConsentRequestItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAppConsentRequestsForApprovalItemUserConsentRequestsUserConsentRequestItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,6 +146,7 @@ func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsUserConsentRequ return requestInfo, nil } // ToPatchRequestInformation update the navigation property userConsentRequests in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsUserConsentRequestItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserConsentRequestable, requestConfiguration *ItemAppConsentRequestsForApprovalItemUserConsentRequestsUserConsentRequestItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +162,7 @@ func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsUserConsentRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAppConsentRequestsForApprovalItemUserConsentRequestsUserConsentRequestItemRequestBuilder when successful func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsUserConsentRequestItemRequestBuilder) WithUrl(rawUrl string)(*ItemAppConsentRequestsForApprovalItemUserConsentRequestsUserConsentRequestItemRequestBuilder) { return NewItemAppConsentRequestsForApprovalItemUserConsentRequestsUserConsentRequestItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/b86ca96263a88ee810d5d0968562df2bc0cf57e4bf6e9e4c8fc21f7eb97f6585.go b/users/b86ca96263a88ee810d5d0968562df2bc0cf57e4bf6e9e4c8fc21f7eb97f6585.go index 1b0fe139c7b..507f155ca61 100644 --- a/users/b86ca96263a88ee810d5d0968562df2bc0cf57e4bf6e9e4c8fc21f7eb97f6585.go +++ b/users/b86ca96263a88ee810d5d0968562df2bc0cf57e4bf6e9e4c8fc21f7eb97f6585.go @@ -40,6 +40,7 @@ func NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAt return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemA return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemA return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder) { return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/ba6df0a795aaf3e430a1a8d6248fa8ffb14031884dccf1ad266445b29cdeb0e7.go b/users/ba6df0a795aaf3e430a1a8d6248fa8ffb14031884dccf1ad266445b29cdeb0e7.go index ae5bdb1fd66..53c0e6b1ebc 100644 --- a/users/ba6df0a795aaf3e430a1a8d6248fa8ffb14031884dccf1ad266445b29cdeb0e7.go +++ b/users/ba6df0a795aaf3e430a1a8d6248fa8ffb14031884dccf1ad266445b29cdeb0e7.go @@ -40,6 +40,7 @@ func NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemEx return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemE return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemE return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder) { return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/bb13ba575e6045db95b89702524207221f4b630bd4e5ef29848d90b1ef8c701d.go b/users/bb13ba575e6045db95b89702524207221f4b630bd4e5ef29848d90b1ef8c701d.go index 292f8d0b127..ac14256d67a 100644 --- a/users/bb13ba575e6045db95b89702524207221f4b630bd4e5ef29848d90b1ef8c701d.go +++ b/users/bb13ba575e6045db95b89702524207221f4b630bd4e5ef29848d90b1ef8c701d.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesI return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return nil } // ToPostRequestInformation tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcceptPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/bc7275d1d927444f55f5efb872639ecbd61a8d9b79fd801176a8f2d482e3a905.go b/users/bc7275d1d927444f55f5efb872639ecbd61a8d9b79fd801176a8f2d482e3a905.go index 4e0eb415c47..1628ece45d2 100644 --- a/users/bc7275d1d927444f55f5efb872639ecbd61a8d9b79fd801176a8f2d482e3a905.go +++ b/users/bc7275d1d927444f55f5efb872639ecbd61a8d9b79fd801176a8f2d482e3a905.go @@ -60,6 +60,7 @@ func (m *ItemManagedDevicesItemLogCollectionRequestsDeviceLogCollectionResponseI return NewItemManagedDevicesItemLogCollectionRequestsItemCreateDownloadUrlRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Delete delete navigation property logCollectionRequests for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemLogCollectionRequestsDeviceLogCollectionResponseItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemManagedDevicesItemLogCollectionRequestsDeviceLogCollectionResponseItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -76,6 +77,7 @@ func (m *ItemManagedDevicesItemLogCollectionRequestsDeviceLogCollectionResponseI return nil } // Get list of log collection requests +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DeviceLogCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemLogCollectionRequestsDeviceLogCollectionResponseItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemManagedDevicesItemLogCollectionRequestsDeviceLogCollectionResponseItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceLogCollectionResponseable, error) { @@ -96,6 +98,7 @@ func (m *ItemManagedDevicesItemLogCollectionRequestsDeviceLogCollectionResponseI return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceLogCollectionResponseable), nil } // Patch update the navigation property logCollectionRequests in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DeviceLogCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemLogCollectionRequestsDeviceLogCollectionResponseItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceLogCollectionResponseable, requestConfiguration *ItemManagedDevicesItemLogCollectionRequestsDeviceLogCollectionResponseItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceLogCollectionResponseable, error) { @@ -116,6 +119,7 @@ func (m *ItemManagedDevicesItemLogCollectionRequestsDeviceLogCollectionResponseI return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceLogCollectionResponseable), nil } // ToDeleteRequestInformation delete navigation property logCollectionRequests for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemLogCollectionRequestsDeviceLogCollectionResponseItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemLogCollectionRequestsDeviceLogCollectionResponseItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -127,6 +131,7 @@ func (m *ItemManagedDevicesItemLogCollectionRequestsDeviceLogCollectionResponseI return requestInfo, nil } // ToGetRequestInformation list of log collection requests +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemLogCollectionRequestsDeviceLogCollectionResponseItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemLogCollectionRequestsDeviceLogCollectionResponseItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,6 +146,7 @@ func (m *ItemManagedDevicesItemLogCollectionRequestsDeviceLogCollectionResponseI return requestInfo, nil } // ToPatchRequestInformation update the navigation property logCollectionRequests in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemLogCollectionRequestsDeviceLogCollectionResponseItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceLogCollectionResponseable, requestConfiguration *ItemManagedDevicesItemLogCollectionRequestsDeviceLogCollectionResponseItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +162,7 @@ func (m *ItemManagedDevicesItemLogCollectionRequestsDeviceLogCollectionResponseI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemLogCollectionRequestsDeviceLogCollectionResponseItemRequestBuilder when successful func (m *ItemManagedDevicesItemLogCollectionRequestsDeviceLogCollectionResponseItemRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemLogCollectionRequestsDeviceLogCollectionResponseItemRequestBuilder) { return NewItemManagedDevicesItemLogCollectionRequestsDeviceLogCollectionResponseItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/bd7891099b0e0a82a99aa4c8c0d5eb565df68ed6dbf56562734c9af27e150d66.go b/users/bd7891099b0e0a82a99aa4c8c0d5eb565df68ed6dbf56562734c9af27e150d66.go index bfc2ab2dc6f..63766f987be 100644 --- a/users/bd7891099b0e0a82a99aa4c8c0d5eb565df68ed6dbf56562734c9af27e150d66.go +++ b/users/bd7891099b0e0a82a99aa4c8c0d5eb565df68ed6dbf56562734c9af27e150d66.go @@ -55,6 +55,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptio return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return nil } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/bfcc68d9e2c9d1a51a03e4a5788e99aefacd932e6dff38c570bc56ad1c0528db.go b/users/bfcc68d9e2c9d1a51a03e4a5788e99aefacd932e6dff38c570bc56ad1c0528db.go index 066a1b0be37..7b8b19203ea 100644 --- a/users/bfcc68d9e2c9d1a51a03e4a5788e99aefacd932e6dff38c570bc56ad1c0528db.go +++ b/users/bfcc68d9e2c9d1a51a03e4a5788e99aefacd932e6dff38c570bc56ad1c0528db.go @@ -47,6 +47,7 @@ type ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttac Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentId provides operations to manage the attachments property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ByAttachmentId(attachmentId string)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemA return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemA return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } // Post create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -122,6 +125,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemA return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemA return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemA return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) { return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/bfd88da506f0e83f8d1ad7ede17e23e9cdd28213b79dd18b3e0a5819439e99da.go b/users/bfd88da506f0e83f8d1ad7ede17e23e9cdd28213b79dd18b3e0a5819439e99da.go index a8b0a72ca25..ca10a28c00b 100644 --- a/users/bfd88da506f0e83f8d1ad7ede17e23e9cdd28213b79dd18b3e0a5819439e99da.go +++ b/users/bfd88da506f0e83f8d1ad7ede17e23e9cdd28213b79dd18b3e0a5819439e99da.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptio return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemCancelRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return nil } // ToPostRequestInformation this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemCancelPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemCancelRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemCancelRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemCancelRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/c2756b827ba3b59916aaad24a7d6e165018646333aa1b5c51786860573d3c4e6.go b/users/c2756b827ba3b59916aaad24a7d6e165018646333aa1b5c51786860573d3c4e6.go index 0540e7eff28..432e7ce6cf3 100644 --- a/users/c2756b827ba3b59916aaad24a7d6e165018646333aa1b5c51786860573d3c4e6.go +++ b/users/c2756b827ba3b59916aaad24a7d6e165018646333aa1b5c51786860573d3c4e6.go @@ -32,6 +32,7 @@ func NewItemCalendarsItemCalendarViewItemInstancesItemAttachmentsCreateUploadSes return NewItemCalendarsItemCalendarViewItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsCreateUploadSe return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsCreateUploadSe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemCalendarsItemCalendarViewItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/c2f42a27cbb58b660d4d044f1f5486ee158fda7e9f1fc8eddc811b9f6e4347ac.go b/users/c2f42a27cbb58b660d4d044f1f5486ee158fda7e9f1fc8eddc811b9f6e4347ac.go index 5d26e8fa92c..27c642566de 100644 --- a/users/c2f42a27cbb58b660d4d044f1f5486ee158fda7e9f1fc8eddc811b9f6e4347ac.go +++ b/users/c2f42a27cbb58b660d4d044f1f5486ee158fda7e9f1fc8eddc811b9f6e4347ac.go @@ -48,6 +48,7 @@ func NewItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsAttachment return NewItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,6 +65,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsAttachmen return nil } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -84,6 +86,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsAttachmen return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToDeleteRequestInformation delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +98,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsAttachmen return requestInfo, nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +113,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsAttachmen return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) { return NewItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/c2fdcf860572efa8bff06d91027006f638f602638bab90ec2fce79efd1f3ef81.go b/users/c2fdcf860572efa8bff06d91027006f638f602638bab90ec2fce79efd1f3ef81.go index 019ae0145fa..6dae0171b2e 100644 --- a/users/c2fdcf860572efa8bff06d91027006f638f602638bab90ec2fce79efd1f3ef81.go +++ b/users/c2fdcf860572efa8bff06d91027006f638f602638bab90ec2fce79efd1f3ef81.go @@ -31,6 +31,7 @@ func NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeR return NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemSnooze return nil } // ToPostRequestInformation postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminderPostRequestBodyable, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemSnooze return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) { return NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/c3748ff1a5b310c94aa2a4f0b86843e69f2584acb8f11cb2187f4d7d280ad2e9.go b/users/c3748ff1a5b310c94aa2a4f0b86843e69f2584acb8f11cb2187f4d7d280ad2e9.go index 919e3eabc3e..db3e71e7455 100644 --- a/users/c3748ff1a5b310c94aa2a4f0b86843e69f2584acb8f11cb2187f4d7d280ad2e9.go +++ b/users/c3748ff1a5b310c94aa2a4f0b86843e69f2584acb8f11cb2187f4d7d280ad2e9.go @@ -79,6 +79,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsFilterByCurrentU return res.(ItemPendingAccessReviewInstancesItemStagesItemDecisionsFilterByCurrentUserWithOnResponseable), nil } // GetAsFilterByCurrentUserWithOnGetResponse retrieve the accessReviewInstanceDecisionItem objects for a specific accessReviewInstance. A list of zero or more accessReviewInstanceDecisionItem objects are returned, including all of their nested properties. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemPendingAccessReviewInstancesItemStagesItemDecisionsFilterByCurrentUserWithOnGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -102,6 +103,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsFilterByCurrentU return res.(ItemPendingAccessReviewInstancesItemStagesItemDecisionsFilterByCurrentUserWithOnGetResponseable), nil } // ToGetRequestInformation retrieve the accessReviewInstanceDecisionItem objects for a specific accessReviewInstance. A list of zero or more accessReviewInstanceDecisionItem objects are returned, including all of their nested properties. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsFilterByCurrentUserWithOnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsFilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -116,6 +118,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsFilterByCurrentU return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemStagesItemDecisionsFilterByCurrentUserWithOnRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsFilterByCurrentUserWithOnRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemStagesItemDecisionsFilterByCurrentUserWithOnRequestBuilder) { return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsFilterByCurrentUserWithOnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/c3bbb61f043d4513347f23898ebab05bee6f6c42baf33679d439c91f74ae1bbb.go b/users/c3bbb61f043d4513347f23898ebab05bee6f6c42baf33679d439c91f74ae1bbb.go index ae2e435eba4..c0366473589 100644 --- a/users/c3bbb61f043d4513347f23898ebab05bee6f6c42baf33679d439c91f74ae1bbb.go +++ b/users/c3bbb61f043d4513347f23898ebab05bee6f6c42baf33679d439c91f74ae1bbb.go @@ -55,6 +55,7 @@ func NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecis return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsAccessReviewInstanceDecisionItemItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property decisions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsAccessReviewInstanceDecisionItemItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDeci return nil } // Get each user reviewed in an accessReviewInstance has a decision item representing if they were approved, denied, or not yet reviewed. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewInstanceDecisionItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsAccessReviewInstanceDecisionItemItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceDecisionItemable, error) { @@ -96,6 +98,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDeci return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsItemInsightsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property decisions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewInstanceDecisionItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceDecisionItemable, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsAccessReviewInstanceDecisionItemItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceDecisionItemable, error) { @@ -116,6 +119,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDeci return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceDecisionItemable), nil } // ToDeleteRequestInformation delete navigation property decisions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsAccessReviewInstanceDecisionItemItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -127,6 +131,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDeci return requestInfo, nil } // ToGetRequestInformation each user reviewed in an accessReviewInstance has a decision item representing if they were approved, denied, or not yet reviewed. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsAccessReviewInstanceDecisionItemItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,6 +146,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDeci return requestInfo, nil } // ToPatchRequestInformation update the navigation property decisions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceDecisionItemable, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsAccessReviewInstanceDecisionItemItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +162,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDeci return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder) { return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/c4e78c5de396a5e0a728f222fb63535771d046b5a24f85308018f796ef64b284.go b/users/c4e78c5de396a5e0a728f222fb63535771d046b5a24f85308018f796ef64b284.go index 35544a05094..126cca28de9 100644 --- a/users/c4e78c5de396a5e0a728f222fb63535771d046b5a24f85308018f796ef64b284.go +++ b/users/c4e78c5de396a5e0a728f222fb63535771d046b5a24f85308018f796ef64b284.go @@ -55,6 +55,7 @@ func NewItemInformationProtectionThreatAssessmentRequestsThreatAssessmentRequest return NewItemInformationProtectionThreatAssessmentRequestsThreatAssessmentRequestItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property threatAssessmentRequests for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionThreatAssessmentRequestsThreatAssessmentRequestItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemInformationProtectionThreatAssessmentRequestsThreatAssessmentRequestItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemInformationProtectionThreatAssessmentRequestsThreatAssessmentReques return nil } // Get get threatAssessmentRequests from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ThreatAssessmentRequestable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionThreatAssessmentRequestsThreatAssessmentRequestItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInformationProtectionThreatAssessmentRequestsThreatAssessmentRequestItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ThreatAssessmentRequestable, error) { @@ -91,6 +93,7 @@ func (m *ItemInformationProtectionThreatAssessmentRequestsThreatAssessmentReques return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ThreatAssessmentRequestable), nil } // Patch update the navigation property threatAssessmentRequests in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ThreatAssessmentRequestable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionThreatAssessmentRequestsThreatAssessmentRequestItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ThreatAssessmentRequestable, requestConfiguration *ItemInformationProtectionThreatAssessmentRequestsThreatAssessmentRequestItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ThreatAssessmentRequestable, error) { @@ -116,6 +119,7 @@ func (m *ItemInformationProtectionThreatAssessmentRequestsThreatAssessmentReques return NewItemInformationProtectionThreatAssessmentRequestsItemResultsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property threatAssessmentRequests for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionThreatAssessmentRequestsThreatAssessmentRequestItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemInformationProtectionThreatAssessmentRequestsThreatAssessmentRequestItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -127,6 +131,7 @@ func (m *ItemInformationProtectionThreatAssessmentRequestsThreatAssessmentReques return requestInfo, nil } // ToGetRequestInformation get threatAssessmentRequests from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionThreatAssessmentRequestsThreatAssessmentRequestItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemInformationProtectionThreatAssessmentRequestsThreatAssessmentRequestItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,6 +146,7 @@ func (m *ItemInformationProtectionThreatAssessmentRequestsThreatAssessmentReques return requestInfo, nil } // ToPatchRequestInformation update the navigation property threatAssessmentRequests in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionThreatAssessmentRequestsThreatAssessmentRequestItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ThreatAssessmentRequestable, requestConfiguration *ItemInformationProtectionThreatAssessmentRequestsThreatAssessmentRequestItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +162,7 @@ func (m *ItemInformationProtectionThreatAssessmentRequestsThreatAssessmentReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInformationProtectionThreatAssessmentRequestsThreatAssessmentRequestItemRequestBuilder when successful func (m *ItemInformationProtectionThreatAssessmentRequestsThreatAssessmentRequestItemRequestBuilder) WithUrl(rawUrl string)(*ItemInformationProtectionThreatAssessmentRequestsThreatAssessmentRequestItemRequestBuilder) { return NewItemInformationProtectionThreatAssessmentRequestsThreatAssessmentRequestItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/c5bfd281315ed17c854954b84fd8581c6984032e4e481e2ec697ce615a8d74db.go b/users/c5bfd281315ed17c854954b84fd8581c6984032e4e481e2ec697ce615a8d74db.go index 96a793b6072..f676084e567 100644 --- a/users/c5bfd281315ed17c854954b84fd8581c6984032e4e481e2ec697ce615a8d74db.go +++ b/users/c5bfd281315ed17c854954b84fd8581c6984032e4e481e2ec697ce615a8d74db.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccur return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return nil } // ToPostRequestInformation dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/c72bb9b5b2e2a017c3063cbb8e7525a6332357e042c1c34996def7acfa2ada56.go b/users/c72bb9b5b2e2a017c3063cbb8e7525a6332357e042c1c34996def7acfa2ada56.go index 06b4a8ae8f7..13062c530df 100644 --- a/users/c72bb9b5b2e2a017c3063cbb8e7525a6332357e042c1c34996def7acfa2ada56.go +++ b/users/c72bb9b5b2e2a017c3063cbb8e7525a6332357e042c1c34996def7acfa2ada56.go @@ -55,6 +55,7 @@ func NewItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsAttendanceRe return NewItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attendanceRecords for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsAttendanceR return nil } // Get list of attendance records of an attendance report. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttendanceRecordable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttendanceRecordable, error) { @@ -91,6 +93,7 @@ func (m *ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsAttendanceR return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttendanceRecordable), nil } // Patch update the navigation property attendanceRecords in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttendanceRecordable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttendanceRecordable, requestConfiguration *ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttendanceRecordable, error) { @@ -111,6 +114,7 @@ func (m *ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsAttendanceR return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttendanceRecordable), nil } // ToDeleteRequestInformation delete navigation property attendanceRecords for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsAttendanceR return requestInfo, nil } // ToGetRequestInformation list of attendance records of an attendance report. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsAttendanceR return requestInfo, nil } // ToPatchRequestInformation update the navigation property attendanceRecords in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttendanceRecordable, requestConfiguration *ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsAttendanceR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilder when successful func (m *ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilder) WithUrl(rawUrl string)(*ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilder) { return NewItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/c72ec518df834dc58ed1bf35ac893a72d572644e2d0993cef25d56f7eba18fc4.go b/users/c72ec518df834dc58ed1bf35ac893a72d572644e2d0993cef25d56f7eba18fc4.go new file mode 100644 index 00000000000..cf208432b6b --- /dev/null +++ b/users/c72ec518df834dc58ed1bf35ac893a72d572644e2d0993cef25d56f7eba18fc4.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/exceptionOccurrences/{event%2Did2}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/c74c5170d31f070f89c29bb9e2eeb5c4f2c177ca161191b05bbb7f014ba0a256.go b/users/c74c5170d31f070f89c29bb9e2eeb5c4f2c177ca161191b05bbb7f014ba0a256.go new file mode 100644 index 00000000000..95acddfd678 --- /dev/null +++ b/users/c74c5170d31f070f89c29bb9e2eeb5c4f2c177ca161191b05bbb7f014ba0a256.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/exceptionOccurrences/{event%2Did1}/instances/{event%2Did2}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/c79dd4da59f53ef53075584a633afad1c90a1f905352bad58ce73daaeb677c40.go b/users/c79dd4da59f53ef53075584a633afad1c90a1f905352bad58ce73daaeb677c40.go index 487f6db9318..32e59dc9b7f 100644 --- a/users/c79dd4da59f53ef53075584a633afad1c90a1f905352bad58ce73daaeb677c40.go +++ b/users/c79dd4da59f53ef53075584a633afad1c90a1f905352bad58ce73daaeb677c40.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemDismissR return NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemDismiss return nil } // ToPostRequestInformation dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemDismiss return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilder) { return NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/c81af0e3c3080c3f0b4d31e2e276ff5d223daca7e3f48d253f7d926bff9431be.go b/users/c81af0e3c3080c3f0b4d31e2e276ff5d223daca7e3f48d253f7d926bff9431be.go index bf6e07c8ebd..910c0bc85bf 100644 --- a/users/c81af0e3c3080c3f0b4d31e2e276ff5d223daca7e3f48d253f7d926bff9431be.go +++ b/users/c81af0e3c3080c3f0b4d31e2e276ff5d223daca7e3f48d253f7d926bff9431be.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesI return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return nil } // ToPostRequestInformation postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminderPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/c8310a9a3757d628cc43a9ec4680a571880d9fb478acbfca231301b3e9e020ec.go b/users/c8310a9a3757d628cc43a9ec4680a571880d9fb478acbfca231301b3e9e020ec.go index 870bf7e5b47..c40d901040c 100644 --- a/users/c8310a9a3757d628cc43a9ec4680a571880d9fb478acbfca231301b3e9e020ec.go +++ b/users/c8310a9a3757d628cc43a9ec4680a571880d9fb478acbfca231301b3e9e020ec.go @@ -48,6 +48,7 @@ func NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachm return NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,6 +65,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttach return nil } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -84,6 +86,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttach return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToDeleteRequestInformation delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +98,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttach return requestInfo, nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +113,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttach return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) { return NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/c8ae94fc2e5c49af690f9420405c1ea41ffe285be64cac00915336d89ba24612.go b/users/c8ae94fc2e5c49af690f9420405c1ea41ffe285be64cac00915336d89ba24612.go index ee929d86462..d2ce45cbd4f 100644 --- a/users/c8ae94fc2e5c49af690f9420405c1ea41ffe285be64cac00915336d89ba24612.go +++ b/users/c8ae94fc2e5c49af690f9420405c1ea41ffe285be64cac00915336d89ba24612.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptio return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return nil } // ToPostRequestInformation accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAcceptPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/c8d17fcdf5eaccf06cb586afcaa1a8389550bd1dea283523c34a70609ec065ee.go b/users/c8d17fcdf5eaccf06cb586afcaa1a8389550bd1dea283523c34a70609ec065ee.go index 7a31c6676d5..748a203be8d 100644 --- a/users/c8d17fcdf5eaccf06cb586afcaa1a8389550bd1dea283523c34a70609ec065ee.go +++ b/users/c8d17fcdf5eaccf06cb586afcaa1a8389550bd1dea283523c34a70609ec065ee.go @@ -11,7 +11,7 @@ import ( type ItemOnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemOnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters get all recordings from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call recordings from channel meetings. You can apply the delta function on getAllRecordings to synchronize and get callRecording resources as they're added for onlineMeeting instances organized by the specified user. The delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the recordings for online meetings organized by the user. Incremental synchronization gets recordings that are added since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that recording view periodically. Find more information in the delta query documentation. For more examples, see callRecording: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. +// ItemOnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters get all recordings from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call recordings from channel meetings. You can apply the delta function on getAllRecordings to synchronize and get callRecording resources as they're added for onlineMeeting instances organized by the specified user. The delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the recordings for online meetings organized by the user. Incremental synchronization gets recordings that are added since the last synchronization. Typically, you do an initial full synchronization, and then get incremental changes to that recording view periodically. Find more information in the delta query documentation. For more examples, see callRecording: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. type ItemOnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -58,7 +58,7 @@ func NewItemOnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizer urlParams["request-raw-url"] = rawUrl return NewItemOnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilderInternal(urlParams, requestAdapter) } -// Get get all recordings from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call recordings from channel meetings. You can apply the delta function on getAllRecordings to synchronize and get callRecording resources as they're added for onlineMeeting instances organized by the specified user. The delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the recordings for online meetings organized by the user. Incremental synchronization gets recordings that are added since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that recording view periodically. Find more information in the delta query documentation. For more examples, see callRecording: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. +// Get get all recordings from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call recordings from channel meetings. You can apply the delta function on getAllRecordings to synchronize and get callRecording resources as they're added for onlineMeeting instances organized by the specified user. The delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the recordings for online meetings organized by the user. Incremental synchronization gets recordings that are added since the last synchronization. Typically, you do an initial full synchronization, and then get incremental changes to that recording view periodically. Find more information in the delta query documentation. For more examples, see callRecording: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. // Deprecated: This method is obsolete. Use GetAsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponse instead. // returns a ItemOnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code @@ -82,7 +82,8 @@ func (m *ItemOnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganize } return res.(ItemOnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeResponseable), nil } -// GetAsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponse get all recordings from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call recordings from channel meetings. You can apply the delta function on getAllRecordings to synchronize and get callRecording resources as they're added for onlineMeeting instances organized by the specified user. The delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the recordings for online meetings organized by the user. Incremental synchronization gets recordings that are added since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that recording view periodically. Find more information in the delta query documentation. For more examples, see callRecording: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. +// GetAsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponse get all recordings from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call recordings from channel meetings. You can apply the delta function on getAllRecordings to synchronize and get callRecording resources as they're added for onlineMeeting instances organized by the specified user. The delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the recordings for online meetings organized by the user. Incremental synchronization gets recordings that are added since the last synchronization. Typically, you do an initial full synchronization, and then get incremental changes to that recording view periodically. Find more information in the delta query documentation. For more examples, see callRecording: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemOnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -105,7 +106,8 @@ func (m *ItemOnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganize } return res.(ItemOnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeGetResponseable), nil } -// ToGetRequestInformation get all recordings from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call recordings from channel meetings. You can apply the delta function on getAllRecordings to synchronize and get callRecording resources as they're added for onlineMeeting instances organized by the specified user. The delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the recordings for online meetings organized by the user. Incremental synchronization gets recordings that are added since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that recording view periodically. Find more information in the delta query documentation. For more examples, see callRecording: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. +// ToGetRequestInformation get all recordings from scheduled onlineMeeting instances for which the specified user is the organizer. This API currently doesn't support getting call recordings from channel meetings. You can apply the delta function on getAllRecordings to synchronize and get callRecording resources as they're added for onlineMeeting instances organized by the specified user. The delta query supports both full synchronization and incremental synchronization. Full synchronization gets all the recordings for online meetings organized by the user. Incremental synchronization gets recordings that are added since the last synchronization. Typically, you do an initial full synchronization, and then get incremental changes to that recording view periodically. Find more information in the delta query documentation. For more examples, see callRecording: delta. To learn more about using the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -120,6 +122,7 @@ func (m *ItemOnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganize return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilder when successful func (m *ItemOnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilder) WithUrl(rawUrl string)(*ItemOnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilder) { return NewItemOnlineMeetingsGetAllRecordingsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/cadbbb5e5a7aff46ef564d1233391068d0b41aabdb5c13d5f6d4fb70c360b050.go b/users/cadbbb5e5a7aff46ef564d1233391068d0b41aabdb5c13d5f6d4fb70c360b050.go index 1c5ddade603..2452982bdd8 100644 --- a/users/cadbbb5e5a7aff46ef564d1233391068d0b41aabdb5c13d5f6d4fb70c360b050.go +++ b/users/cadbbb5e5a7aff46ef564d1233391068d0b41aabdb5c13d5f6d4fb70c360b050.go @@ -11,7 +11,7 @@ import ( type ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetQueryParameters struct { // The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 EndDateTime *string `uriparametername:"endDateTime"` @@ -84,7 +84,8 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) Forward()(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -104,6 +105,11 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) PermanentDelete()(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder) { @@ -114,7 +120,8 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) TentativelyAccept()(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -129,6 +136,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/cb8c36ad03b6c7ac6d2e3d50815d71461433c7cd3980115e9ce4cca34b27ddcc.go b/users/cb8c36ad03b6c7ac6d2e3d50815d71461433c7cd3980115e9ce4cca34b27ddcc.go index 91f1d8b6660..18bc42fd502 100644 --- a/users/cb8c36ad03b6c7ac6d2e3d50815d71461433c7cd3980115e9ce4cca34b27ddcc.go +++ b/users/cb8c36ad03b6c7ac6d2e3d50815d71461433c7cd3980115e9ce4cca34b27ddcc.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesI return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return nil } // ToPostRequestInformation accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAcceptPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/cbc41dd0faf90ce5c5099711b629eb2a06222cde383be7be3fb2dd0a88d1e3be.go b/users/cbc41dd0faf90ce5c5099711b629eb2a06222cde383be7be3fb2dd0a88d1e3be.go index 6fd2f19aee3..dbef45cdd6f 100644 --- a/users/cbc41dd0faf90ce5c5099711b629eb2a06222cde383be7be3fb2dd0a88d1e3be.go +++ b/users/cbc41dd0faf90ce5c5099711b629eb2a06222cde383be7be3fb2dd0a88d1e3be.go @@ -40,6 +40,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccur return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesCountRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesCountRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/cc7d657fb6263cc84989f1f71d2585cb56512a1871e30e5b04c3fe11e8c8d7d0.go b/users/cc7d657fb6263cc84989f1f71d2585cb56512a1871e30e5b04c3fe11e8c8d7d0.go index 1446dff1156..e65c39e0c91 100644 --- a/users/cc7d657fb6263cc84989f1f71d2585cb56512a1871e30e5b04c3fe11e8c8d7d0.go +++ b/users/cc7d657fb6263cc84989f1f71d2585cb56512a1871e30e5b04c3fe11e8c8d7d0.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemDe return NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilderInternal(urlParams, requestAdapter) } // Post decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemD return nil } // ToPostRequestInformation decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemDeclinePostRequestBodyable, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemD return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilder) { return NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/ccdc84611ffc90fcb7ae359d7e3aa548ed3d5a11978d7414406c38df72a71905.go b/users/ccdc84611ffc90fcb7ae359d7e3aa548ed3d5a11978d7414406c38df72a71905.go index 780f51725b1..0ddd89d12d7 100644 --- a/users/ccdc84611ffc90fcb7ae359d7e3aa548ed3d5a11978d7414406c38df72a71905.go +++ b/users/ccdc84611ffc90fcb7ae359d7e3aa548ed3d5a11978d7414406c38df72a71905.go @@ -47,6 +47,7 @@ type ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensions Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtens return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtens return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtens return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtens return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtens return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) { return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/cdb4a972f19df796a68f270a412b7369731a4986f1154af51169b9a62b565dfb.go b/users/cdb4a972f19df796a68f270a412b7369731a4986f1154af51169b9a62b565dfb.go index 6aeb4538bc3..2b1a43c0c44 100644 --- a/users/cdb4a972f19df796a68f270a412b7369731a4986f1154af51169b9a62b565dfb.go +++ b/users/cdb4a972f19df796a68f270a412b7369731a4986f1154af51169b9a62b565dfb.go @@ -31,6 +31,7 @@ func NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemDismiss return NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemDismis return nil } // ToPostRequestInformation dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemDismis return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilder) { return NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/ce0dc3888f4b80a44db59c130f213fa0cd9440a30fdc916d6b58feedeaf79535.go b/users/ce0dc3888f4b80a44db59c130f213fa0cd9440a30fdc916d6b58feedeaf79535.go index 748c03aa6ac..9e0a8b54002 100644 --- a/users/ce0dc3888f4b80a44db59c130f213fa0cd9440a30fdc916d6b58feedeaf79535.go +++ b/users/ce0dc3888f4b80a44db59c130f213fa0cd9440a30fdc916d6b58feedeaf79535.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemFo return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemForwardRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemF return nil } // ToPostRequestInformation this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemForwardPostRequestBodyable, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemForwardRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemF return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder) { return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/ce6100ec3acc2fb51e7630904a60815b2eff808e078eed374e20f70daac07d93.go b/users/ce6100ec3acc2fb51e7630904a60815b2eff808e078eed374e20f70daac07d93.go index 3f852dcd4ee..b1b0601a5ed 100644 --- a/users/ce6100ec3acc2fb51e7630904a60815b2eff808e078eed374e20f70daac07d93.go +++ b/users/ce6100ec3acc2fb51e7630904a60815b2eff808e078eed374e20f70daac07d93.go @@ -40,6 +40,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIns return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/ce986dfab5f587de263c514a1a3b7a8d89a9ee093096a512000a6e672fb04809.go b/users/ce986dfab5f587de263c514a1a3b7a8d89a9ee093096a512000a6e672fb04809.go index e60341b2383..f4fde5f95d1 100644 --- a/users/ce986dfab5f587de263c514a1a3b7a8d89a9ee093096a512000a6e672fb04809.go +++ b/users/ce986dfab5f587de263c514a1a3b7a8d89a9ee093096a512000a6e672fb04809.go @@ -48,6 +48,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsAtt return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,6 +65,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsAt return nil } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -84,6 +86,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsAt return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToDeleteRequestInformation delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +98,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsAt return requestInfo, nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +113,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsAt return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/ceac5aedab570d6f5c6c3404bf00f79c36446e829a56a1ea91285f3eaf45895e.go b/users/ceac5aedab570d6f5c6c3404bf00f79c36446e829a56a1ea91285f3eaf45895e.go index c0f0dd781e6..13a64ee3b63 100644 --- a/users/ceac5aedab570d6f5c6c3404bf00f79c36446e829a56a1ea91285f3eaf45895e.go +++ b/users/ceac5aedab570d6f5c6c3404bf00f79c36446e829a56a1ea91285f3eaf45895e.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAc return NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemA return nil } // ToPostRequestInformation accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAcceptPostRequestBodyable, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemA return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilder) { return NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/cedfbbc7f7010894bdbabb289669c3d2ca0b8d4f7dfef78d5487d12efd75a9bc.go b/users/cedfbbc7f7010894bdbabb289669c3d2ca0b8d4f7dfef78d5487d12efd75a9bc.go index 8ace45aabd2..497d62e1a25 100644 --- a/users/cedfbbc7f7010894bdbabb289669c3d2ca0b8d4f7dfef78d5487d12efd75a9bc.go +++ b/users/cedfbbc7f7010894bdbabb289669c3d2ca0b8d4f7dfef78d5487d12efd75a9bc.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptio return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return nil } // ToPostRequestInformation dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/count_request_builder.go b/users/count_request_builder.go index d13938bcdbb..5c25c15fd3b 100644 --- a/users/count_request_builder.go +++ b/users/count_request_builder.go @@ -40,6 +40,7 @@ func NewCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb return NewCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *CountRequestBuilder) Get(ctx context.Context, requestConfiguration *CountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *CountRequestBuilder) Get(ctx context.Context, requestConfiguration *Cou return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *CountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *CountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *CountRequestBuilder) ToGetRequestInformation(ctx context.Context, reque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *CountRequestBuilder when successful func (m *CountRequestBuilder) WithUrl(rawUrl string)(*CountRequestBuilder) { return NewCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/d09dd770e160660df9d835b3271c7624ebb320dbe56c2170cfa2dbd38d6ddbe3.go b/users/d09dd770e160660df9d835b3271c7624ebb320dbe56c2170cfa2dbd38d6ddbe3.go index 30b2fa3b9c7..ba966c0d276 100644 --- a/users/d09dd770e160660df9d835b3271c7624ebb320dbe56c2170cfa2dbd38d6ddbe3.go +++ b/users/d09dd770e160660df9d835b3271c7624ebb320dbe56c2170cfa2dbd38d6ddbe3.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemDe return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilderInternal(urlParams, requestAdapter) } // Post decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemD return nil } // ToPostRequestInformation decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemDeclinePostRequestBodyable, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemD return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilder) { return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/d174ed11681c9a8f3c58aa595dc2ff51761e3bdb519d8d276eaa71edb675b70a.go b/users/d174ed11681c9a8f3c58aa595dc2ff51761e3bdb519d8d276eaa71edb675b70a.go index 22b442c9d13..903561ba7dc 100644 --- a/users/d174ed11681c9a8f3c58aa595dc2ff51761e3bdb519d8d276eaa71edb675b70a.go +++ b/users/d174ed11681c9a8f3c58aa595dc2ff51761e3bdb519d8d276eaa71edb675b70a.go @@ -32,6 +32,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesI return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/d2876f6aaefbff1a38cda00c0b0550eb57e296150850a98112b74bd1fb879fc8.go b/users/d2876f6aaefbff1a38cda00c0b0550eb57e296150850a98112b74bd1fb879fc8.go index 1ec25307793..34013a77cf0 100644 --- a/users/d2876f6aaefbff1a38cda00c0b0550eb57e296150850a98112b74bd1fb879fc8.go +++ b/users/d2876f6aaefbff1a38cda00c0b0550eb57e296150850a98112b74bd1fb879fc8.go @@ -32,6 +32,7 @@ func NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsCrea return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsCre return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsCre return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/d2fb160b48cce8947303cba23ef94f1f18aecb611b0e90607764ba131adc6ebb.go b/users/d2fb160b48cce8947303cba23ef94f1f18aecb611b0e90607764ba131adc6ebb.go new file mode 100644 index 00000000000..f140d59381d --- /dev/null +++ b/users/d2fb160b48cce8947303cba23ef94f1f18aecb611b0e90607764ba131adc6ebb.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/exceptionOccurrences/{event%2Did1}/instances/{event%2Did2}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/d34e3466fb9e03d1d47d2e4f962ab9ed389a060086abbbf6227f547ff2798a2d.go b/users/d34e3466fb9e03d1d47d2e4f962ab9ed389a060086abbbf6227f547ff2798a2d.go index 99d8122afd8..a6e3ef8188d 100644 --- a/users/d34e3466fb9e03d1d47d2e4f962ab9ed389a060086abbbf6227f547ff2798a2d.go +++ b/users/d34e3466fb9e03d1d47d2e4f962ab9ed389a060086abbbf6227f547ff2798a2d.go @@ -40,6 +40,7 @@ func NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCo return NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsC return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsC return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) { return NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/d3ed1ab9665febb59b88aa5f70c81b920caf3e3cb3b7dcfaf7ad83491fefa7ab.go b/users/d3ed1ab9665febb59b88aa5f70c81b920caf3e3cb3b7dcfaf7ad83491fefa7ab.go index 26194aded0b..db644c4344a 100644 --- a/users/d3ed1ab9665febb59b88aa5f70c81b920caf3e3cb3b7dcfaf7ad83491fefa7ab.go +++ b/users/d3ed1ab9665febb59b88aa5f70c81b920caf3e3cb3b7dcfaf7ad83491fefa7ab.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesI return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return nil } // ToPostRequestInformation tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemTentativelyAcceptPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/d44aa7286126fcc6d4c24a5964cc522f027c512f68abcf0650e8243e41f6b2b3.go b/users/d44aa7286126fcc6d4c24a5964cc522f027c512f68abcf0650e8243e41f6b2b3.go index 4c72f1b9e1a..e930b4b2345 100644 --- a/users/d44aa7286126fcc6d4c24a5964cc522f027c512f68abcf0650e8243e41f6b2b3.go +++ b/users/d44aa7286126fcc6d4c24a5964cc522f027c512f68abcf0650e8243e41f6b2b3.go @@ -47,6 +47,7 @@ type ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExtens Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemEx return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemEx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemEx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemEx return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemEx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/d456ef8f171a35a21608ff0911457665298448d6ac6719411021129610efed40.go b/users/d456ef8f171a35a21608ff0911457665298448d6ac6719411021129610efed40.go index 1647eb9863c..ea4ca8d830d 100644 --- a/users/d456ef8f171a35a21608ff0911457665298448d6ac6719411021129610efed40.go +++ b/users/d456ef8f171a35a21608ff0911457665298448d6ac6719411021129610efed40.go @@ -47,6 +47,7 @@ type ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachments Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentId provides operations to manage the attachments property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ByAttachmentId(attachmentId string)(*ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachm return NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachm return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } // Post create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -122,6 +125,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachm return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachm return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachm return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) { return NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/d45ba20adb8eeb7cf3d2efe7a25f26f28846dfa7c6176871aebbb090a622c17a.go b/users/d45ba20adb8eeb7cf3d2efe7a25f26f28846dfa7c6176871aebbb090a622c17a.go index a335ca27092..26ef0436b2a 100644 --- a/users/d45ba20adb8eeb7cf3d2efe7a25f26f28846dfa7c6176871aebbb090a622c17a.go +++ b/users/d45ba20adb8eeb7cf3d2efe7a25f26f28846dfa7c6176871aebbb090a622c17a.go @@ -55,6 +55,7 @@ func NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecis return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property decisions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDeci return nil } // Get each user reviewed in an accessReviewStage has a decision item representing if they were approved, denied, or not yet reviewed. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewInstanceDecisionItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceDecisionItemable, error) { @@ -96,6 +98,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDeci return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsItemInsightsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property decisions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewInstanceDecisionItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceDecisionItemable, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceDecisionItemable, error) { @@ -116,6 +119,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDeci return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceDecisionItemable), nil } // ToDeleteRequestInformation delete navigation property decisions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -127,6 +131,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDeci return requestInfo, nil } // ToGetRequestInformation each user reviewed in an accessReviewStage has a decision item representing if they were approved, denied, or not yet reviewed. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,6 +146,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDeci return requestInfo, nil } // ToPatchRequestInformation update the navigation property decisions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceDecisionItemable, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +162,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDeci return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder) { return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/d6038262da4ace5d62b41f749c09c40c8dff465b0cbcd54bcd05df609657cf6a.go b/users/d6038262da4ace5d62b41f749c09c40c8dff465b0cbcd54bcd05df609657cf6a.go index f1c111d2e00..a823205e0ca 100644 --- a/users/d6038262da4ace5d62b41f749c09c40c8dff465b0cbcd54bcd05df609657cf6a.go +++ b/users/d6038262da4ace5d62b41f749c09c40c8dff465b0cbcd54bcd05df609657cf6a.go @@ -32,6 +32,7 @@ func NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachme return NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachm return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachm return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/d6247a4aa99858d269fdb537b6921da587cf609f1af9efcd1ff0cb3df7911fa5.go b/users/d6247a4aa99858d269fdb537b6921da587cf609f1af9efcd1ff0cb3df7911fa5.go index 34a88754023..b7195aeaec4 100644 --- a/users/d6247a4aa99858d269fdb537b6921da587cf609f1af9efcd1ff0cb3df7911fa5.go +++ b/users/d6247a4aa99858d269fdb537b6921da587cf609f1af9efcd1ff0cb3df7911fa5.go @@ -55,6 +55,7 @@ func NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecis return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property insights for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDeci return nil } // Get insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a GovernanceInsightable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightable, error) { @@ -91,6 +93,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDeci return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightable), nil } // Patch update the navigation property insights in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a GovernanceInsightable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightable, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightable, error) { @@ -111,6 +114,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDeci return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightable), nil } // ToDeleteRequestInformation delete navigation property insights for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDeci return requestInfo, nil } // ToGetRequestInformation insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDeci return requestInfo, nil } // ToPatchRequestInformation update the navigation property insights in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightable, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDeci return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilder) { return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/d694e017b61c44f2466ca99129af51eebfcee581629ca07682693e7317b2fba1.go b/users/d694e017b61c44f2466ca99129af51eebfcee581629ca07682693e7317b2fba1.go index 2af609b1ccc..2539b56460f 100644 --- a/users/d694e017b61c44f2466ca99129af51eebfcee581629ca07682693e7317b2fba1.go +++ b/users/d694e017b61c44f2466ca99129af51eebfcee581629ca07682693e7317b2fba1.go @@ -48,6 +48,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachme return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,6 +65,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachm return nil } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -84,6 +86,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachm return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToDeleteRequestInformation delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +98,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachm return requestInfo, nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +113,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachm return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/d71ca7092d24991c7896ba8926b062352dd085cc88543ef7ff96d9c7ef74f06b.go b/users/d71ca7092d24991c7896ba8926b062352dd085cc88543ef7ff96d9c7ef74f06b.go index bfb843805eb..e0c7a31d0e8 100644 --- a/users/d71ca7092d24991c7896ba8926b062352dd085cc88543ef7ff96d9c7ef74f06b.go +++ b/users/d71ca7092d24991c7896ba8926b062352dd085cc88543ef7ff96d9c7ef74f06b.go @@ -47,6 +47,7 @@ type ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOc Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/d867a84df92b77ed7829a63ce9049aeec95760e46d070e1d94e72d0e9290f237.go b/users/d867a84df92b77ed7829a63ce9049aeec95760e46d070e1d94e72d0e9290f237.go index 985685f29b7..0e4246b862c 100644 --- a/users/d867a84df92b77ed7829a63ce9049aeec95760e46d070e1d94e72d0e9290f237.go +++ b/users/d867a84df92b77ed7829a63ce9049aeec95760e46d070e1d94e72d0e9290f237.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemTentativelyAcc return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemTentativelyAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemTentativelyAc return nil } // ToPostRequestInformation tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemTentativelyAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemTentativelyAcceptPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemTentativelyAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemTentativelyAc return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemTentativelyAcceptRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemTentativelyAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemTentativelyAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/d8d2c37cf5644ed4c286efa92b8600258d0a996f8e69b5893287ecc4923a29bb.go b/users/d8d2c37cf5644ed4c286efa92b8600258d0a996f8e69b5893287ecc4923a29bb.go index 00299dbdc5b..8a020302812 100644 --- a/users/d8d2c37cf5644ed4c286efa92b8600258d0a996f8e69b5893287ecc4923a29bb.go +++ b/users/d8d2c37cf5644ed4c286efa92b8600258d0a996f8e69b5893287ecc4923a29bb.go @@ -47,6 +47,7 @@ type ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedReviewers Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAccessReviewReviewerId provides operations to manage the contactedReviewers property of the microsoft.graph.accessReviewInstance entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedReviewersAccessReviewReviewerItemRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedReviewersRequestBuilder) ByAccessReviewReviewerId(accessReviewReviewerId string)(*ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedReviewersAccessReviewReviewerItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedRevie return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedReviewersCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get returns the collection of reviewers who were contacted to complete this review. While the reviewers and fallbackReviewers properties of the accessReviewScheduleDefinition might specify group owners or managers as reviewers, contactedReviewers returns their individual identities. Supports $select. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewReviewerCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedReviewersRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedReviewersRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewReviewerCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedRevie return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewReviewerCollectionResponseable), nil } // Post create new navigation property to contactedReviewers for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewReviewerable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedReviewersRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewReviewerable, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedReviewersRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewReviewerable, error) { @@ -117,6 +120,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedRevie return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewReviewerable), nil } // ToGetRequestInformation returns the collection of reviewers who were contacted to complete this review. While the reviewers and fallbackReviewers properties of the accessReviewScheduleDefinition might specify group owners or managers as reviewers, contactedReviewers returns their individual identities. Supports $select. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedReviewersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedReviewersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedRevie return requestInfo, nil } // ToPostRequestInformation create new navigation property to contactedReviewers for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedReviewersRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewReviewerable, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedReviewersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedRevie return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedReviewersRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedReviewersRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedReviewersRequestBuilder) { return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedReviewersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/d8e17ae18889a6c2a95f2af9257901df4490602fca1e1b568b13664aaeff1a60.go b/users/d8e17ae18889a6c2a95f2af9257901df4490602fca1e1b568b13664aaeff1a60.go index bb592188917..f01cc1e7420 100644 --- a/users/d8e17ae18889a6c2a95f2af9257901df4490602fca1e1b568b13664aaeff1a60.go +++ b/users/d8e17ae18889a6c2a95f2af9257901df4490602fca1e1b568b13664aaeff1a60.go @@ -40,6 +40,7 @@ type ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurren QueryParameters *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesRequestBuilderGetQueryParameters } // ByEventId2 provides operations to manage the exceptionOccurrences property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesRequestBuilder) ByEventId2(eventId2 string)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -75,6 +76,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -95,6 +97,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } // ToGetRequestInformation get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +112,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/da1fd162cadf2ac4318f31d31e7e3e4804f8b3e9c8af2d4dc77d8f8292306c73.go b/users/da1fd162cadf2ac4318f31d31e7e3e4804f8b3e9c8af2d4dc77d8f8292306c73.go index 5d8873bfb45..b74bd37e970 100644 --- a/users/da1fd162cadf2ac4318f31d31e7e3e4804f8b3e9c8af2d4dc77d8f8292306c73.go +++ b/users/da1fd162cadf2ac4318f31d31e7e3e4804f8b3e9c8af2d4dc77d8f8292306c73.go @@ -41,6 +41,7 @@ func NewItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemParentNote return NewItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemParentNotebookRequestBuilderInternal(urlParams, requestAdapter) } // Get the notebook that contains the page. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Notebookable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemParentNotebookRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemParentNotebookRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Notebookable, error) { @@ -61,6 +62,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemParentNot return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Notebookable), nil } // ToGetRequestInformation the notebook that contains the page. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemParentNotebookRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemParentNotebookRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemParentNot return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemParentNotebookRequestBuilder when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemParentNotebookRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemParentNotebookRequestBuilder) { return NewItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemParentNotebookRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/db379680e58598c3c568c9842822b29f4b9c43eb907f380aa0332b941a9b4030.go b/users/db379680e58598c3c568c9842822b29f4b9c43eb907f380aa0332b941a9b4030.go index 230a26f652a..a7eda43f519 100644 --- a/users/db379680e58598c3c568c9842822b29f4b9c43eb907f380aa0332b941a9b4030.go +++ b/users/db379680e58598c3c568c9842822b29f4b9c43eb907f380aa0332b941a9b4030.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemTe return NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemT return nil } // ToPostRequestInformation tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemTentativelyAcceptPostRequestBodyable, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemT return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/dbeda9fddacee30c3609a2972d818b96ec569b834a1c55f7d63ed944b715c85b.go b/users/dbeda9fddacee30c3609a2972d818b96ec569b834a1c55f7d63ed944b715c85b.go index ce3d6bfbdc7..2e290ae31f0 100644 --- a/users/dbeda9fddacee30c3609a2972d818b96ec569b834a1c55f7d63ed944b715c85b.go +++ b/users/dbeda9fddacee30c3609a2972d818b96ec569b834a1c55f7d63ed944b715c85b.go @@ -31,6 +31,7 @@ func NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceBatch return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceBatchRecordDecisionsRequestBuilderInternal(urlParams, requestAdapter) } // Post enables reviewers to review all accessReviewInstanceDecisionItem objects in batches by using principalId, resourceId, or neither. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceBatc return nil } // ToPostRequestInformation enables reviewers to review all accessReviewInstanceDecisionItem objects in batches by using principalId, resourceId, or neither. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceBatchRecordDecisionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceBatchRecordDecisionsPostRequestBodyable, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceBatchRecordDecisionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceBatc return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceBatchRecordDecisionsRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceBatchRecordDecisionsRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceBatchRecordDecisionsRequestBuilder) { return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceBatchRecordDecisionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/dc53854e04386e67be111165a69f01b78647202ec436c07d10bf82f5460db0ba.go b/users/dc53854e04386e67be111165a69f01b78647202ec436c07d10bf82f5460db0ba.go index 083b47ea9c6..be7bce17b61 100644 --- a/users/dc53854e04386e67be111165a69f01b78647202ec436c07d10bf82f5460db0ba.go +++ b/users/dc53854e04386e67be111165a69f01b78647202ec436c07d10bf82f5460db0ba.go @@ -32,6 +32,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsCreateUplo return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsCreateUpl return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsCreateUpl return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/dceb3c323cf9540117a4e1853f09d6c9d2260b9b2a8f25a3f34252c77211d520.go b/users/dceb3c323cf9540117a4e1853f09d6c9d2260b9b2a8f25a3f34252c77211d520.go index f5fcedeba18..f2416a764dc 100644 --- a/users/dceb3c323cf9540117a4e1853f09d6c9d2260b9b2a8f25a3f34252c77211d520.go +++ b/users/dceb3c323cf9540117a4e1853f09d6c9d2260b9b2a8f25a3f34252c77211d520.go @@ -55,6 +55,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensio return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensi return nil } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensi return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensi return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensi return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensi return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensi return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/dcfa7fab5df36117fbe47f617fbe3443f7d511c5c1cbe9a8939323484cd4f6d7.go b/users/dcfa7fab5df36117fbe47f617fbe3443f7d511c5c1cbe9a8939323484cd4f6d7.go index ddfd27b01ef..3f99ee190c5 100644 --- a/users/dcfa7fab5df36117fbe47f617fbe3443f7d511c5c1cbe9a8939323484cd4f6d7.go +++ b/users/dcfa7fab5df36117fbe47f617fbe3443f7d511c5c1cbe9a8939323484cd4f6d7.go @@ -48,6 +48,7 @@ func NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachme return NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,6 +65,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachm return nil } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -84,6 +86,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachm return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToDeleteRequestInformation delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +98,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachm return requestInfo, nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +113,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachm return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) { return NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/dd3227932e8e6a37f4512e60ff95a95229e787762eb98a7e4189c323886bbfbc.go b/users/dd3227932e8e6a37f4512e60ff95a95229e787762eb98a7e4189c323886bbfbc.go index be3a9447773..660ab948b6b 100644 --- a/users/dd3227932e8e6a37f4512e60ff95a95229e787762eb98a7e4189c323886bbfbc.go +++ b/users/dd3227932e8e6a37f4512e60ff95a95229e787762eb98a7e4189c323886bbfbc.go @@ -47,6 +47,7 @@ type ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecision Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByGovernanceInsightId provides operations to manage the insights property of the microsoft.graph.accessReviewInstanceDecisionItem entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsItemInsightsRequestBuilder) ByGovernanceInsightId(governanceInsightId string)(*ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDeci return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsItemInsightsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a GovernanceInsightCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsItemInsightsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsItemInsightsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDeci return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightCollectionResponseable), nil } // Post create new navigation property to insights for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a GovernanceInsightable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsItemInsightsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightable, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsItemInsightsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightable, error) { @@ -117,6 +120,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDeci return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightable), nil } // ToGetRequestInformation insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsItemInsightsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsItemInsightsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDeci return requestInfo, nil } // ToPostRequestInformation create new navigation property to insights for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsItemInsightsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightable, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsItemInsightsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDeci return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsItemInsightsRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsItemInsightsRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsItemInsightsRequestBuilder) { return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsItemInsightsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/dd33a89673354dd7aed8d8c7bf5b7f5d423b93cd623aca2c53cb6478e58bc28a.go b/users/dd33a89673354dd7aed8d8c7bf5b7f5d423b93cd623aca2c53cb6478e58bc28a.go index 116e5b5b2a9..fe5f4d30ca9 100644 --- a/users/dd33a89673354dd7aed8d8c7bf5b7f5d423b93cd623aca2c53cb6478e58bc28a.go +++ b/users/dd33a89673354dd7aed8d8c7bf5b7f5d423b93cd623aca2c53cb6478e58bc28a.go @@ -48,6 +48,7 @@ func NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachme return NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,6 +65,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachm return nil } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -84,6 +86,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachm return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToDeleteRequestInformation delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +98,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachm return requestInfo, nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +113,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachm return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) { return NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/ddaf37144570d365021dff8a8a0c4df586f9a00a219b4003a3118e6de2e302d3.go b/users/ddaf37144570d365021dff8a8a0c4df586f9a00a219b4003a3118e6de2e302d3.go index 857ff7d97c3..cd13879e39e 100644 --- a/users/ddaf37144570d365021dff8a8a0c4df586f9a00a219b4003a3118e6de2e302d3.go +++ b/users/ddaf37144570d365021dff8a8a0c4df586f9a00a219b4003a3118e6de2e302d3.go @@ -31,6 +31,7 @@ func NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceBatchRecordDeci return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceBatchRecordDecisionsRequestBuilderInternal(urlParams, requestAdapter) } // Post enables reviewers to review all accessReviewInstanceDecisionItem objects in batches by using principalId, resourceId, or neither. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceBatchRecordDec return nil } // ToPostRequestInformation enables reviewers to review all accessReviewInstanceDecisionItem objects in batches by using principalId, resourceId, or neither. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceBatchRecordDecisionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemPendingAccessReviewInstancesItemDecisionsItemInstanceBatchRecordDecisionsPostRequestBodyable, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceBatchRecordDecisionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceBatchRecordDec return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceBatchRecordDecisionsRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceBatchRecordDecisionsRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemDecisionsItemInstanceBatchRecordDecisionsRequestBuilder) { return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceBatchRecordDecisionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/delta_request_builder.go b/users/delta_request_builder.go index 6428e426ef9..d05580bc798 100644 --- a/users/delta_request_builder.go +++ b/users/delta_request_builder.go @@ -76,6 +76,7 @@ func (m *DeltaRequestBuilder) Get(ctx context.Context, requestConfiguration *Del return res.(DeltaResponseable), nil } // GetAsDeltaGetResponse get newly created, updated, or deleted users without having to perform a full read of the entire user collection. See change tracking for details. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -99,6 +100,7 @@ func (m *DeltaRequestBuilder) GetAsDeltaGetResponse(ctx context.Context, request return res.(DeltaGetResponseable), nil } // ToGetRequestInformation get newly created, updated, or deleted users without having to perform a full read of the entire user collection. See change tracking for details. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *DeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,6 +115,7 @@ func (m *DeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, reque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *DeltaRequestBuilder when successful func (m *DeltaRequestBuilder) WithUrl(rawUrl string)(*DeltaRequestBuilder) { return NewDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/dff563fa3225f17b59a73fe169ce6ba78bbf7e0ef917661ee60c16a983c1cf9e.go b/users/dff563fa3225f17b59a73fe169ce6ba78bbf7e0ef917661ee60c16a983c1cf9e.go index ce30c910880..a2e165c67f7 100644 --- a/users/dff563fa3225f17b59a73fe169ce6ba78bbf7e0ef917661ee60c16a983c1cf9e.go +++ b/users/dff563fa3225f17b59a73fe169ce6ba78bbf7e0ef917661ee60c16a983c1cf9e.go @@ -55,6 +55,7 @@ func NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecis return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsItemInsightsGovernanceInsightItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property insights for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsItemInsightsGovernanceInsightItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsItemInsightsGovernanceInsightItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDeci return nil } // Get insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a GovernanceInsightable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsItemInsightsGovernanceInsightItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsItemInsightsGovernanceInsightItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightable, error) { @@ -91,6 +93,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDeci return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightable), nil } // Patch update the navigation property insights in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a GovernanceInsightable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsItemInsightsGovernanceInsightItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightable, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsItemInsightsGovernanceInsightItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightable, error) { @@ -111,6 +114,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDeci return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightable), nil } // ToDeleteRequestInformation delete navigation property insights for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsItemInsightsGovernanceInsightItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsItemInsightsGovernanceInsightItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDeci return requestInfo, nil } // ToGetRequestInformation insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsItemInsightsGovernanceInsightItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsItemInsightsGovernanceInsightItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDeci return requestInfo, nil } // ToPatchRequestInformation update the navigation property insights in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsItemInsightsGovernanceInsightItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightable, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsItemInsightsGovernanceInsightItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDeci return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsItemInsightsGovernanceInsightItemRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsItemInsightsGovernanceInsightItemRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsItemInsightsGovernanceInsightItemRequestBuilder) { return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsItemInsightsGovernanceInsightItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/dffce879ded35bc3190de621cdfc3621703a1ea91279cc92c1d7756761af459c.go b/users/dffce879ded35bc3190de621cdfc3621703a1ea91279cc92c1d7756761af459c.go index c62798a601e..bc29817ece4 100644 --- a/users/dffce879ded35bc3190de621cdfc3621703a1ea91279cc92c1d7756761af459c.go +++ b/users/dffce879ded35bc3190de621cdfc3621703a1ea91279cc92c1d7756761af459c.go @@ -48,6 +48,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccur return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,6 +65,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return nil } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -84,6 +86,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToDeleteRequestInformation delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +98,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return requestInfo, nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +113,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/e078f103a142aa47ba8759d9ed6b6856479acabe384d5746db64f354c3f32662.go b/users/e078f103a142aa47ba8759d9ed6b6856479acabe384d5746db64f354c3f32662.go index e25213f57eb..43d1aa36666 100644 --- a/users/e078f103a142aa47ba8759d9ed6b6856479acabe384d5746db64f354c3f32662.go +++ b/users/e078f103a142aa47ba8759d9ed6b6856479acabe384d5746db64f354c3f32662.go @@ -55,6 +55,7 @@ func NewItemDeviceEnrollmentConfigurationsItemAssignmentsEnrollmentConfiguration return NewItemDeviceEnrollmentConfigurationsItemAssignmentsEnrollmentConfigurationAssignmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property assignments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDeviceEnrollmentConfigurationsItemAssignmentsEnrollmentConfigurationAssignmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemDeviceEnrollmentConfigurationsItemAssignmentsEnrollmentConfigurationAssignmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemDeviceEnrollmentConfigurationsItemAssignmentsEnrollmentConfiguratio return nil } // Get the list of group assignments for the device configuration profile +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EnrollmentConfigurationAssignmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDeviceEnrollmentConfigurationsItemAssignmentsEnrollmentConfigurationAssignmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDeviceEnrollmentConfigurationsItemAssignmentsEnrollmentConfigurationAssignmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EnrollmentConfigurationAssignmentable, error) { @@ -91,6 +93,7 @@ func (m *ItemDeviceEnrollmentConfigurationsItemAssignmentsEnrollmentConfiguratio return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EnrollmentConfigurationAssignmentable), nil } // Patch update the navigation property assignments in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EnrollmentConfigurationAssignmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDeviceEnrollmentConfigurationsItemAssignmentsEnrollmentConfigurationAssignmentItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EnrollmentConfigurationAssignmentable, requestConfiguration *ItemDeviceEnrollmentConfigurationsItemAssignmentsEnrollmentConfigurationAssignmentItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EnrollmentConfigurationAssignmentable, error) { @@ -111,6 +114,7 @@ func (m *ItemDeviceEnrollmentConfigurationsItemAssignmentsEnrollmentConfiguratio return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EnrollmentConfigurationAssignmentable), nil } // ToDeleteRequestInformation delete navigation property assignments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDeviceEnrollmentConfigurationsItemAssignmentsEnrollmentConfigurationAssignmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemDeviceEnrollmentConfigurationsItemAssignmentsEnrollmentConfigurationAssignmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemDeviceEnrollmentConfigurationsItemAssignmentsEnrollmentConfiguratio return requestInfo, nil } // ToGetRequestInformation the list of group assignments for the device configuration profile +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDeviceEnrollmentConfigurationsItemAssignmentsEnrollmentConfigurationAssignmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDeviceEnrollmentConfigurationsItemAssignmentsEnrollmentConfigurationAssignmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemDeviceEnrollmentConfigurationsItemAssignmentsEnrollmentConfiguratio return requestInfo, nil } // ToPatchRequestInformation update the navigation property assignments in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDeviceEnrollmentConfigurationsItemAssignmentsEnrollmentConfigurationAssignmentItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EnrollmentConfigurationAssignmentable, requestConfiguration *ItemDeviceEnrollmentConfigurationsItemAssignmentsEnrollmentConfigurationAssignmentItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemDeviceEnrollmentConfigurationsItemAssignmentsEnrollmentConfiguratio return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDeviceEnrollmentConfigurationsItemAssignmentsEnrollmentConfigurationAssignmentItemRequestBuilder when successful func (m *ItemDeviceEnrollmentConfigurationsItemAssignmentsEnrollmentConfigurationAssignmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemDeviceEnrollmentConfigurationsItemAssignmentsEnrollmentConfigurationAssignmentItemRequestBuilder) { return NewItemDeviceEnrollmentConfigurationsItemAssignmentsEnrollmentConfigurationAssignmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/e0938f6f5a23ea5ee4d02e45e31c3be0ce36e5703be847a98326cfaba71330d0.go b/users/e0938f6f5a23ea5ee4d02e45e31c3be0ce36e5703be847a98326cfaba71330d0.go index d6463ffd5bc..67b88224899 100644 --- a/users/e0938f6f5a23ea5ee4d02e45e31c3be0ce36e5703be847a98326cfaba71330d0.go +++ b/users/e0938f6f5a23ea5ee4d02e45e31c3be0ce36e5703be847a98326cfaba71330d0.go @@ -48,6 +48,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesI return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,6 +65,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return nil } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -84,6 +86,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToDeleteRequestInformation delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +98,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +113,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/e11e86d572b4d5312dc16194564afdcf82743f97eb8b0d04739e82f1beabe1d4.go b/users/e11e86d572b4d5312dc16194564afdcf82743f97eb8b0d04739e82f1beabe1d4.go index b074fcfb2a8..133bd89a39c 100644 --- a/users/e11e86d572b4d5312dc16194564afdcf82743f97eb8b0d04739e82f1beabe1d4.go +++ b/users/e11e86d572b4d5312dc16194564afdcf82743f97eb8b0d04739e82f1beabe1d4.go @@ -40,6 +40,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsCou return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsCo return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsCo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsCountRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsCountRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/e12f92da235304e8fc317e7c3baa392d0118b6090e1ea63c653485d56248d5ab.go b/users/e12f92da235304e8fc317e7c3baa392d0118b6090e1ea63c653485d56248d5ab.go index 52dbab83b62..a46b4f8acf9 100644 --- a/users/e12f92da235304e8fc317e7c3baa392d0118b6090e1ea63c653485d56248d5ab.go +++ b/users/e12f92da235304e8fc317e7c3baa392d0118b6090e1ea63c653485d56248d5ab.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesI return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemForwardRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return nil } // ToPostRequestInformation this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemForwardRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemForwardPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemForwardRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemForwardRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemForwardRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemForwardRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemForwardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/e1975b23a524e016cf826421a69bf9e5173b3c0f2b78ff40bbc846ed9b5f9817.go b/users/e1975b23a524e016cf826421a69bf9e5173b3c0f2b78ff40bbc846ed9b5f9817.go index 93be2f634ee..dcb44d9445e 100644 --- a/users/e1975b23a524e016cf826421a69bf9e5173b3c0f2b78ff40bbc846ed9b5f9817.go +++ b/users/e1975b23a524e016cf826421a69bf9e5173b3c0f2b78ff40bbc846ed9b5f9817.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesI return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return nil } // ToPostRequestInformation accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAcceptPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAcceptRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAcceptRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/e35d99ec8373179e2569607bdaeba2981f9d87c9c4778a353ccbe1d93f0c6bea.go b/users/e35d99ec8373179e2569607bdaeba2981f9d87c9c4778a353ccbe1d93f0c6bea.go index f79adacf317..4691aed2de5 100644 --- a/users/e35d99ec8373179e2569607bdaeba2981f9d87c9c4778a353ccbe1d93f0c6bea.go +++ b/users/e35d99ec8373179e2569607bdaeba2981f9d87c9c4778a353ccbe1d93f0c6bea.go @@ -40,6 +40,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccur return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/e3cd590ef62ae13804ff6a0fc82186e1a339d0469172a7a719810cc37454e316.go b/users/e3cd590ef62ae13804ff6a0fc82186e1a339d0469172a7a719810cc37454e316.go index 24ad3af84c8..5b745a1e67f 100644 --- a/users/e3cd590ef62ae13804ff6a0fc82186e1a339d0469172a7a719810cc37454e316.go +++ b/users/e3cd590ef62ae13804ff6a0fc82186e1a339d0469172a7a719810cc37454e316.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIns return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return nil } // ToPostRequestInformation tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/e4cdc4ba600134ff304a4f5e6700f84ef3e867704651bbd61a7ec22e752ca86f.go b/users/e4cdc4ba600134ff304a4f5e6700f84ef3e867704651bbd61a7ec22e752ca86f.go index ffbd99958bd..6b1b94a77f8 100644 --- a/users/e4cdc4ba600134ff304a4f5e6700f84ef3e867704651bbd61a7ec22e752ca86f.go +++ b/users/e4cdc4ba600134ff304a4f5e6700f84ef3e867704651bbd61a7ec22e752ca86f.go @@ -47,6 +47,7 @@ type ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItem Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentId provides operations to manage the attachments property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) ByAttachmentId(attachmentId string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } // Post create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -122,6 +125,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/e51279f6146a19b91820ec6cd053330c1fd6ec40bcd1554eb73e8d983a6468e5.go b/users/e51279f6146a19b91820ec6cd053330c1fd6ec40bcd1554eb73e8d983a6468e5.go index b033bf1c155..6a3431e6816 100644 --- a/users/e51279f6146a19b91820ec6cd053330c1fd6ec40bcd1554eb73e8d983a6468e5.go +++ b/users/e51279f6146a19b91820ec6cd053330c1fd6ec40bcd1554eb73e8d983a6468e5.go @@ -31,6 +31,7 @@ func NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceAccep return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceAcceptRecommendationsRequestBuilderInternal(urlParams, requestAdapter) } // Post allows the acceptance of recommendations on all accessReviewInstanceDecisionItem objects that haven't been reviewed for an accessReviewInstance object for which the calling user is a reviewer. Recommendations are generated if recommendationsEnabled is true on the accessReviewScheduleDefinition object. If there isn't a recommendation on an accessReviewInstanceDecisionItem object no decision will be recorded. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceAcce return nil } // ToPostRequestInformation allows the acceptance of recommendations on all accessReviewInstanceDecisionItem objects that haven't been reviewed for an accessReviewInstance object for which the calling user is a reviewer. Recommendations are generated if recommendationsEnabled is true on the accessReviewScheduleDefinition object. If there isn't a recommendation on an accessReviewInstanceDecisionItem object no decision will be recorded. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceAcceptRecommendationsRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceAcceptRecommendationsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceAcce return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceAcceptRecommendationsRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceAcceptRecommendationsRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceAcceptRecommendationsRequestBuilder) { return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceAcceptRecommendationsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/e513f0e0cc33ed2aff35888870e8c0c6fb06daad7ad6b42652b201c71424e850.go b/users/e513f0e0cc33ed2aff35888870e8c0c6fb06daad7ad6b42652b201c71424e850.go index 24dad7ff5ca..120209dcd71 100644 --- a/users/e513f0e0cc33ed2aff35888870e8c0c6fb06daad7ad6b42652b201c71424e850.go +++ b/users/e513f0e0cc33ed2aff35888870e8c0c6fb06daad7ad6b42652b201c71424e850.go @@ -47,6 +47,7 @@ type ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachments Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentId provides operations to manage the attachments property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) ByAttachmentId(attachmentId string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachm return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachm return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } // Post create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -122,6 +125,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachm return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachm return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachm return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/e60ea2cd237739cfc84f4387f46567feed9818c48b86eb7f9f226bb2fa0480d9.go b/users/e60ea2cd237739cfc84f4387f46567feed9818c48b86eb7f9f226bb2fa0480d9.go index 8cabedc8d51..9ea424984bf 100644 --- a/users/e60ea2cd237739cfc84f4387f46567feed9818c48b86eb7f9f226bb2fa0480d9.go +++ b/users/e60ea2cd237739cfc84f4387f46567feed9818c48b86eb7f9f226bb2fa0480d9.go @@ -80,6 +80,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return res.(ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -103,6 +104,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return res.(ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesDeltaGetResponseable), nil } // ToGetRequestInformation get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +119,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesDeltaRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesDeltaRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/e6daef9e81e48409c30cdd83b6417141f5a0061cd0412267842c1b499356f5ee.go b/users/e6daef9e81e48409c30cdd83b6417141f5a0061cd0412267842c1b499356f5ee.go index 4e6654d617f..423e4d0629e 100644 --- a/users/e6daef9e81e48409c30cdd83b6417141f5a0061cd0412267842c1b499356f5ee.go +++ b/users/e6daef9e81e48409c30cdd83b6417141f5a0061cd0412267842c1b499356f5ee.go @@ -40,6 +40,7 @@ func NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecis return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDeci return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDeci return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsCountRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsCountRequestBuilder) { return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDecisionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/e71099842769ad5666ebf1136a44cf08e1e89f2ef231f9d0eb97c4f93fdbcff9.go b/users/e71099842769ad5666ebf1136a44cf08e1e89f2ef231f9d0eb97c4f93fdbcff9.go index 38f4235a0fd..29ef2de3a97 100644 --- a/users/e71099842769ad5666ebf1136a44cf08e1e89f2ef231f9d0eb97c4f93fdbcff9.go +++ b/users/e71099842769ad5666ebf1136a44cf08e1e89f2ef231f9d0eb97c4f93fdbcff9.go @@ -40,6 +40,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesI return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesCountRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesCountRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/e71ab03d1fc2645f833f7fede1ba3a90a6002cd0424089b7db93ce99804324bb.go b/users/e71ab03d1fc2645f833f7fede1ba3a90a6002cd0424089b7db93ce99804324bb.go index b93afb1cdd4..8fb8751eca4 100644 --- a/users/e71ab03d1fc2645f833f7fede1ba3a90a6002cd0424089b7db93ce99804324bb.go +++ b/users/e71ab03d1fc2645f833f7fede1ba3a90a6002cd0424089b7db93ce99804324bb.go @@ -31,6 +31,7 @@ func NewItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemOnenotePat return NewItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemOnenotePatchContentRequestBuilderInternal(urlParams, requestAdapter) } // Post invoke action onenotePatchContent +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemOnenotePatchContentRequestBuilder) Post(ctx context.Context, body ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemOnenotePatchContentPostRequestBodyable, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemOnenotePatchContentRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemOnenotePa return nil } // ToPostRequestInformation invoke action onenotePatchContent +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemOnenotePatchContentRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemOnenotePatchContentPostRequestBodyable, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemOnenotePatchContentRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -62,6 +64,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemOnenotePa return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemOnenotePatchContentRequestBuilder when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemOnenotePatchContentRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemOnenotePatchContentRequestBuilder) { return NewItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemOnenotePatchContentRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/e72928ad05d0beef981d26bc73eb9c7930cb6ee17a3b1ecfc9d01e8f7304223b.go b/users/e72928ad05d0beef981d26bc73eb9c7930cb6ee17a3b1ecfc9d01e8f7304223b.go index cf47c5aae2e..670fa7dcb39 100644 --- a/users/e72928ad05d0beef981d26bc73eb9c7930cb6ee17a3b1ecfc9d01e8f7304223b.go +++ b/users/e72928ad05d0beef981d26bc73eb9c7930cb6ee17a3b1ecfc9d01e8f7304223b.go @@ -41,6 +41,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptio return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilderInternal(urlParams, requestAdapter) } // Get the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -61,6 +62,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable), nil } // ToGetRequestInformation the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/e86eed1e51c90975c7f10b19e3671be183933be7e2c889fa42c50dac95795ac2.go b/users/e86eed1e51c90975c7f10b19e3671be183933be7e2c889fa42c50dac95795ac2.go new file mode 100644 index 00000000000..a4f630cc812 --- /dev/null +++ b/users/e86eed1e51c90975c7f10b19e3671be183933be7e2c889fa42c50dac95795ac2.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/exceptionOccurrences/{event%2Did1}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/e88e9fbeffd5372fbb73702767196af80b1c9586a84c8d99d6ac0ef20f5f4146.go b/users/e88e9fbeffd5372fbb73702767196af80b1c9586a84c8d99d6ac0ef20f5f4146.go index 22a32cb4aab..e1e565f2ff1 100644 --- a/users/e88e9fbeffd5372fbb73702767196af80b1c9586a84c8d99d6ac0ef20f5f4146.go +++ b/users/e88e9fbeffd5372fbb73702767196af80b1c9586a84c8d99d6ac0ef20f5f4146.go @@ -31,6 +31,7 @@ func NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeR return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemSnooze return nil } // ToPostRequestInformation postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminderPostRequestBodyable, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemSnooze return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder) { return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/e993d41c36529d6943f2ca341ba5e43203c6463b36d575a882e62b0f0e7624a3.go b/users/e993d41c36529d6943f2ca341ba5e43203c6463b36d575a882e62b0f0e7624a3.go index 7d6992a3870..901f6c3a9ec 100644 --- a/users/e993d41c36529d6943f2ca341ba5e43203c6463b36d575a882e62b0f0e7624a3.go +++ b/users/e993d41c36529d6943f2ca341ba5e43203c6463b36d575a882e62b0f0e7624a3.go @@ -55,6 +55,7 @@ func NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExten return NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExte return nil } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExte return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExte return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExte return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) { return NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/e9c13ab285b5e2ab06eec260c90bd67e9773d31e04ea0ae1ba1a150b7265fba4.go b/users/e9c13ab285b5e2ab06eec260c90bd67e9773d31e04ea0ae1ba1a150b7265fba4.go index 5fae5d96b57..3f83ccd4925 100644 --- a/users/e9c13ab285b5e2ab06eec260c90bd67e9773d31e04ea0ae1ba1a150b7265fba4.go +++ b/users/e9c13ab285b5e2ab06eec260c90bd67e9773d31e04ea0ae1ba1a150b7265fba4.go @@ -40,6 +40,7 @@ func NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecis return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDeci return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDeci return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsCountRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsCountRequestBuilder) { return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/ea3eb140b8c67d64c04bc30927a8e96bf809a71a1d49f68161c0f27dc8e5c388.go b/users/ea3eb140b8c67d64c04bc30927a8e96bf809a71a1d49f68161c0f27dc8e5c388.go index 33e0cc1601a..bf7571fd733 100644 --- a/users/ea3eb140b8c67d64c04bc30927a8e96bf809a71a1d49f68161c0f27dc8e5c388.go +++ b/users/ea3eb140b8c67d64c04bc30927a8e96bf809a71a1d49f68161c0f27dc8e5c388.go @@ -40,6 +40,7 @@ func NewItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalStep return NewItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalStepsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalStepsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalStepsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalSte return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalStepsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalStepsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalSte return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalStepsCountRequestBuilder when successful func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalStepsCountRequestBuilder) WithUrl(rawUrl string)(*ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalStepsCountRequestBuilder) { return NewItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalStepsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/ea5bf0a4426300a67de58d8a2ce8f3e29cff794898ef665377f5605cef29c9dc.go b/users/ea5bf0a4426300a67de58d8a2ce8f3e29cff794898ef665377f5605cef29c9dc.go index fef8b705195..c5fefdb9995 100644 --- a/users/ea5bf0a4426300a67de58d8a2ce8f3e29cff794898ef665377f5605cef29c9dc.go +++ b/users/ea5bf0a4426300a67de58d8a2ce8f3e29cff794898ef665377f5605cef29c9dc.go @@ -55,6 +55,7 @@ func NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemEx return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemE return nil } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemE return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemE return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemE return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemE return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemE return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) { return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/eac7d2da8f93acd2eccda4716fabcd662a5f97490d84bf0a559a82d8bfbb9984.go b/users/eac7d2da8f93acd2eccda4716fabcd662a5f97490d84bf0a559a82d8bfbb9984.go index aa6f80e16ef..806a164f2e1 100644 --- a/users/eac7d2da8f93acd2eccda4716fabcd662a5f97490d84bf0a559a82d8bfbb9984.go +++ b/users/eac7d2da8f93acd2eccda4716fabcd662a5f97490d84bf0a559a82d8bfbb9984.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemSnoozeRe return NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemSnoozeR return nil } // ToPostRequestInformation postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderPostRequestBodyable, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemSnoozeR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder) { return NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/ebcbcbd0075030c7f168cc814494141a6c6f0d0ad717d33eb75c91fe156f9312.go b/users/ebcbcbd0075030c7f168cc814494141a6c6f0d0ad717d33eb75c91fe156f9312.go index 464c773077b..88022b115bc 100644 --- a/users/ebcbcbd0075030c7f168cc814494141a6c6f0d0ad717d33eb75c91fe156f9312.go +++ b/users/ebcbcbd0075030c7f168cc814494141a6c6f0d0ad717d33eb75c91fe156f9312.go @@ -55,6 +55,7 @@ func NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsExt return NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsEx return nil } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsEx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsEx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsEx return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsEx return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsEx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) { return NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/ec0a1fbd4a383204230c57d4f3cd5262c884762040648e55a200d8b8e6f7a28a.go b/users/ec0a1fbd4a383204230c57d4f3cd5262c884762040648e55a200d8b8e6f7a28a.go new file mode 100644 index 00000000000..f55afc4e989 --- /dev/null +++ b/users/ec0a1fbd4a383204230c57d4f3cd5262c884762040648e55a200d8b8e6f7a28a.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/exceptionOccurrences/{event%2Did2}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/ecdc6802d5a7008eae4216ce532c3718ba9e06427c18b77b21434fb08eb645c5.go b/users/ecdc6802d5a7008eae4216ce532c3718ba9e06427c18b77b21434fb08eb645c5.go index 13e7f312bd2..c7271a765d2 100644 --- a/users/ecdc6802d5a7008eae4216ce532c3718ba9e06427c18b77b21434fb08eb645c5.go +++ b/users/ecdc6802d5a7008eae4216ce532c3718ba9e06427c18b77b21434fb08eb645c5.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesI return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return nil } // ToPostRequestInformation dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/ed47499bba8ccf8bdf9c0419a141283bba64c9bfbf4df38dc8e1a8e61a9290c5.go b/users/ed47499bba8ccf8bdf9c0419a141283bba64c9bfbf4df38dc8e1a8e61a9290c5.go index 00f5dd4e20f..df8364b2188 100644 --- a/users/ed47499bba8ccf8bdf9c0419a141283bba64c9bfbf4df38dc8e1a8e61a9290c5.go +++ b/users/ed47499bba8ccf8bdf9c0419a141283bba64c9bfbf4df38dc8e1a8e61a9290c5.go @@ -40,6 +40,7 @@ func NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensi return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtens return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtens return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder) { return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/eddfbd02bcd021e770d7b93c1243ec88d2662122aa8776a6d0c4210b347fa525.go b/users/eddfbd02bcd021e770d7b93c1243ec88d2662122aa8776a6d0c4210b347fa525.go index efb95cc79d0..63f10b17428 100644 --- a/users/eddfbd02bcd021e770d7b93c1243ec88d2662122aa8776a6d0c4210b347fa525.go +++ b/users/eddfbd02bcd021e770d7b93c1243ec88d2662122aa8776a6d0c4210b347fa525.go @@ -40,6 +40,7 @@ func NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedReview return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedReviewersCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedReviewersCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedReviewersCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedRevie return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedReviewersCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedReviewersCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedRevie return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedReviewersCountRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedReviewersCountRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedReviewersCountRequestBuilder) { return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceContactedReviewersCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/ede953233f9812b93822275f73ef766b23b79796d7540860f8491ab61a977a48.go b/users/ede953233f9812b93822275f73ef766b23b79796d7540860f8491ab61a977a48.go index 6e7db1b2323..4724d90f4b0 100644 --- a/users/ede953233f9812b93822275f73ef766b23b79796d7540860f8491ab61a977a48.go +++ b/users/ede953233f9812b93822275f73ef766b23b79796d7540860f8491ab61a977a48.go @@ -32,6 +32,7 @@ func NewItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemCopyToSect return NewItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemCopyToSectionRequestBuilderInternal(urlParams, requestAdapter) } // Post copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenoteOperationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemCopyToSec return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteOperationable), nil } // ToPostRequestInformation copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemCopyToSectionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBodyable, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemCopyToSectionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemCopyToSec return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemCopyToSectionRequestBuilder when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemCopyToSectionRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemCopyToSectionRequestBuilder) { return NewItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemCopyToSectionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/effd782d2f922ea561a3bc11e2fa16c32157e241f773d93d6c56424d37efe840.go b/users/effd782d2f922ea561a3bc11e2fa16c32157e241f773d93d6c56424d37efe840.go index 97e35b368ff..66624244116 100644 --- a/users/effd782d2f922ea561a3bc11e2fa16c32157e241f773d93d6c56424d37efe840.go +++ b/users/effd782d2f922ea561a3bc11e2fa16c32157e241f773d93d6c56424d37efe840.go @@ -40,6 +40,7 @@ func NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachme return NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachm return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachm return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder) { return NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/f0025ddd129b1664af40a9fbd21ae79afdde317a479ee7585eddecfccca0a40e.go b/users/f0025ddd129b1664af40a9fbd21ae79afdde317a479ee7585eddecfccca0a40e.go index d8326d126cb..81305a96d90 100644 --- a/users/f0025ddd129b1664af40a9fbd21ae79afdde317a479ee7585eddecfccca0a40e.go +++ b/users/f0025ddd129b1664af40a9fbd21ae79afdde317a479ee7585eddecfccca0a40e.go @@ -48,6 +48,7 @@ func NewItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachment return NewItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,6 +65,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmen return nil } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -84,6 +86,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmen return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToDeleteRequestInformation delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +98,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmen return requestInfo, nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +113,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmen return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) { return NewItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/f0bd0bb129a4cc30af2d72845137fd7ae45866c20d68a4ef2a92969a764f5829.go b/users/f0bd0bb129a4cc30af2d72845137fd7ae45866c20d68a4ef2a92969a764f5829.go index aee2c481d73..7caa6705962 100644 --- a/users/f0bd0bb129a4cc30af2d72845137fd7ae45866c20d68a4ef2a92969a764f5829.go +++ b/users/f0bd0bb129a4cc30af2d72845137fd7ae45866c20d68a4ef2a92969a764f5829.go @@ -40,6 +40,7 @@ type ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOc QueryParameters *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesRequestBuilderGetQueryParameters } // ByEventId2 provides operations to manage the exceptionOccurrences property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesRequestBuilder) ByEventId2(eventId2 string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -75,6 +76,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -95,6 +97,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } // ToGetRequestInformation get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +112,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/f12fb46626dd639f68a08815fe68a10d821e138ec2bffb475fd5573b5971bc40.go b/users/f12fb46626dd639f68a08815fe68a10d821e138ec2bffb475fd5573b5971bc40.go index 807b348b92d..2d9ea95c136 100644 --- a/users/f12fb46626dd639f68a08815fe68a10d821e138ec2bffb475fd5573b5971bc40.go +++ b/users/f12fb46626dd639f68a08815fe68a10d821e138ec2bffb475fd5573b5971bc40.go @@ -40,6 +40,7 @@ func NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachm return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttach return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttach return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder) { return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/f25617c61f3befedc7ab645f4e7ab9f63fbc60cf81e801a67bc7bd003640661b.go b/users/f25617c61f3befedc7ab645f4e7ab9f63fbc60cf81e801a67bc7bd003640661b.go index 98b5619ca97..961b09b6529 100644 --- a/users/f25617c61f3befedc7ab645f4e7ab9f63fbc60cf81e801a67bc7bd003640661b.go +++ b/users/f25617c61f3befedc7ab645f4e7ab9f63fbc60cf81e801a67bc7bd003640661b.go @@ -40,6 +40,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptio return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExcepti return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesCountRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesCountRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/f482cdcccb989c258d6e9a8fd2b0539f828ce105191611cf1aa11a2a289e19ef.go b/users/f482cdcccb989c258d6e9a8fd2b0539f828ce105191611cf1aa11a2a289e19ef.go index 6d4628f0d9e..c5aee7b6b25 100644 --- a/users/f482cdcccb989c258d6e9a8fd2b0539f828ce105191611cf1aa11a2a289e19ef.go +++ b/users/f482cdcccb989c258d6e9a8fd2b0539f828ce105191611cf1aa11a2a289e19ef.go @@ -41,6 +41,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIns return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilderInternal(urlParams, requestAdapter) } // Get the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -61,6 +62,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable), nil } // ToGetRequestInformation the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/f48475174579b90b201ddd676f051193570d9afe157e684688e1b65369b9c257.go b/users/f48475174579b90b201ddd676f051193570d9afe157e684688e1b65369b9c257.go index 1ef22b294dc..896d0ce22eb 100644 --- a/users/f48475174579b90b201ddd676f051193570d9afe157e684688e1b65369b9c257.go +++ b/users/f48475174579b90b201ddd676f051193570d9afe157e684688e1b65369b9c257.go @@ -48,6 +48,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsAttachment return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsAttachmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,6 +65,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsAttachmen return nil } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -84,6 +86,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsAttachmen return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToDeleteRequestInformation delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +98,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsAttachmen return requestInfo, nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +113,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsAttachmen return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsAttachmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsAttachmentItemRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsAttachmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/f487cec8275a29ab8610b8e5be98816052d1e7e0551aa8003a374442f1b571b9.go b/users/f487cec8275a29ab8610b8e5be98816052d1e7e0551aa8003a374442f1b571b9.go index 53fd3c7db95..f8954049422 100644 --- a/users/f487cec8275a29ab8610b8e5be98816052d1e7e0551aa8003a374442f1b571b9.go +++ b/users/f487cec8275a29ab8610b8e5be98816052d1e7e0551aa8003a374442f1b571b9.go @@ -11,7 +11,7 @@ import ( type ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetQueryParameters struct { // The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 EndDateTime *string `uriparametername:"endDateTime"` @@ -84,7 +84,8 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) Forward()(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -104,6 +105,11 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) PermanentDelete()(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder) { @@ -114,7 +120,8 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) TentativelyAccept()(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -129,6 +136,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/f48f6505aa9effe55bf2b788cc0664cfb2256f7e42dbe4db2e9d3f23c7ec63ec.go b/users/f48f6505aa9effe55bf2b788cc0664cfb2256f7e42dbe4db2e9d3f23c7ec63ec.go index 98f2131cddd..91aff2bf4ee 100644 --- a/users/f48f6505aa9effe55bf2b788cc0664cfb2256f7e42dbe4db2e9d3f23c7ec63ec.go +++ b/users/f48f6505aa9effe55bf2b788cc0664cfb2256f7e42dbe4db2e9d3f23c7ec63ec.go @@ -31,6 +31,7 @@ func NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceStopApplyDecisi return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceStopApplyDecisionsRequestBuilderInternal(urlParams, requestAdapter) } // Post invoke action stopApplyDecisions +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStopApplyDecisionsRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStopApplyDecisionsRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStopApplyDecis return nil } // ToPostRequestInformation invoke action stopApplyDecisions +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStopApplyDecisionsRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStopApplyDecisionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -58,6 +60,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStopApplyDecis return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStopApplyDecisionsRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStopApplyDecisionsRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStopApplyDecisionsRequestBuilder) { return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceStopApplyDecisionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/f4ab700a886bdd70ebbc56466cebb95e8263690116f8c435e939d259267e0426.go b/users/f4ab700a886bdd70ebbc56466cebb95e8263690116f8c435e939d259267e0426.go index fc8aeb6bf97..0c25f824a4a 100644 --- a/users/f4ab700a886bdd70ebbc56466cebb95e8263690116f8c435e939d259267e0426.go +++ b/users/f4ab700a886bdd70ebbc56466cebb95e8263690116f8c435e939d259267e0426.go @@ -48,6 +48,7 @@ func NewItemAuthenticationPlatformCredentialMethodsPlatformCredentialAuthenticat return NewItemAuthenticationPlatformCredentialMethodsPlatformCredentialAuthenticationMethodItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete a platformCredentialAuthenticationMethod object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -72,6 +73,7 @@ func (m *ItemAuthenticationPlatformCredentialMethodsPlatformCredentialAuthentica return NewItemAuthenticationPlatformCredentialMethodsItemDeviceRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get platformCredentialMethods from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlatformCredentialAuthenticationMethodable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAuthenticationPlatformCredentialMethodsPlatformCredentialAuthenticationMethodItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAuthenticationPlatformCredentialMethodsPlatformCredentialAuthenticationMethodItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlatformCredentialAuthenticationMethodable, error) { @@ -92,6 +94,7 @@ func (m *ItemAuthenticationPlatformCredentialMethodsPlatformCredentialAuthentica return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlatformCredentialAuthenticationMethodable), nil } // ToDeleteRequestInformation delete a platformCredentialAuthenticationMethod object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationPlatformCredentialMethodsPlatformCredentialAuthenticationMethodItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationPlatformCredentialMethodsPlatformCredentialAuthenticationMethodItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -103,6 +106,7 @@ func (m *ItemAuthenticationPlatformCredentialMethodsPlatformCredentialAuthentica return requestInfo, nil } // ToGetRequestInformation get platformCredentialMethods from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationPlatformCredentialMethodsPlatformCredentialAuthenticationMethodItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationPlatformCredentialMethodsPlatformCredentialAuthenticationMethodItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemAuthenticationPlatformCredentialMethodsPlatformCredentialAuthentica return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationPlatformCredentialMethodsPlatformCredentialAuthenticationMethodItemRequestBuilder when successful func (m *ItemAuthenticationPlatformCredentialMethodsPlatformCredentialAuthenticationMethodItemRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationPlatformCredentialMethodsPlatformCredentialAuthenticationMethodItemRequestBuilder) { return NewItemAuthenticationPlatformCredentialMethodsPlatformCredentialAuthenticationMethodItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/f5a387c5eb3f3e804ade5ee5a1366ed1bcfbb50007fc3552d852ebb578c1396a.go b/users/f5a387c5eb3f3e804ade5ee5a1366ed1bcfbb50007fc3552d852ebb578c1396a.go index 86aec9e482b..dda78005ff1 100644 --- a/users/f5a387c5eb3f3e804ade5ee5a1366ed1bcfbb50007fc3552d852ebb578c1396a.go +++ b/users/f5a387c5eb3f3e804ade5ee5a1366ed1bcfbb50007fc3552d852ebb578c1396a.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccur return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return nil } // ToPostRequestInformation accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAcceptPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/f6e981a979b7e662b27f326163ecc4de8f659367aaf89b8e7ec13eedc90c26c7.go b/users/f6e981a979b7e662b27f326163ecc4de8f659367aaf89b8e7ec13eedc90c26c7.go index 9acb65ba16f..5c07a283fe6 100644 --- a/users/f6e981a979b7e662b27f326163ecc4de8f659367aaf89b8e7ec13eedc90c26c7.go +++ b/users/f6e981a979b7e662b27f326163ecc4de8f659367aaf89b8e7ec13eedc90c26c7.go @@ -55,6 +55,7 @@ func NewItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsExtensionI return NewItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsExtension return nil } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsExtension return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsExtension return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsExtension return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsExtension return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsExtension return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) { return NewItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/f771618c72da61f340f312ddf40b1f922937ca55057bf0dd486adcd7aee084c0.go b/users/f771618c72da61f340f312ddf40b1f922937ca55057bf0dd486adcd7aee084c0.go index dadadf7e624..4cb6fc4cbd3 100644 --- a/users/f771618c72da61f340f312ddf40b1f922937ca55057bf0dd486adcd7aee084c0.go +++ b/users/f771618c72da61f340f312ddf40b1f922937ca55057bf0dd486adcd7aee084c0.go @@ -31,6 +31,7 @@ func NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecis return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsRecordAllDecisionsRequestBuilderInternal(urlParams, requestAdapter) } // Post as a reviewer of an access review, record a decision for an accessReviewInstanceDecisionItem that is assigned to you and that matches the principal or resource IDs specified. If no IDs are specified, the decisions will apply to every accessReviewInstanceDecisionItem for which you are the reviewer. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDeci return nil } // ToPostRequestInformation as a reviewer of an access review, record a decision for an accessReviewInstanceDecisionItem that is assigned to you and that matches the principal or resource IDs specified. If no IDs are specified, the decisions will apply to every accessReviewInstanceDecisionItem for which you are the reviewer. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsRecordAllDecisionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsRecordAllDecisionsPostRequestBodyable, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsRecordAllDecisionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDeci return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsRecordAllDecisionsRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsRecordAllDecisionsRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsRecordAllDecisionsRequestBuilder) { return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemDecisionsRecordAllDecisionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/f7a46ee8841f01bf5708d98cbf9f59c92bd2514af6e835a825a1e5db61df0e89.go b/users/f7a46ee8841f01bf5708d98cbf9f59c92bd2514af6e835a825a1e5db61df0e89.go index 3619598bcc5..f861e9b220c 100644 --- a/users/f7a46ee8841f01bf5708d98cbf9f59c92bd2514af6e835a825a1e5db61df0e89.go +++ b/users/f7a46ee8841f01bf5708d98cbf9f59c92bd2514af6e835a825a1e5db61df0e89.go @@ -55,6 +55,7 @@ func NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensio return NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensi return nil } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensi return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensi return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensi return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensi return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensi return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) { return NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/fac9778ffe2340ab4148e71afec4e7191b450bfea64574fdfc9bf75776aa0e69.go b/users/fac9778ffe2340ab4148e71afec4e7191b450bfea64574fdfc9bf75776aa0e69.go index c4e0c347d30..2b6bf270b94 100644 --- a/users/fac9778ffe2340ab4148e71afec4e7191b450bfea64574fdfc9bf75776aa0e69.go +++ b/users/fac9778ffe2340ab4148e71afec4e7191b450bfea64574fdfc9bf75776aa0e69.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccur return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilderInternal(urlParams, requestAdapter) } // Post decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return nil } // ToPostRequestInformation decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemDeclinePostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/fb5e93c078b8c6b0ffebcbdeaf6930aeff40b927b3b0fc9093852c9349439a1d.go b/users/fb5e93c078b8c6b0ffebcbdeaf6930aeff40b927b3b0fc9093852c9349439a1d.go index d00c515cc76..d9effc921a1 100644 --- a/users/fb5e93c078b8c6b0ffebcbdeaf6930aeff40b927b3b0fc9093852c9349439a1d.go +++ b/users/fb5e93c078b8c6b0ffebcbdeaf6930aeff40b927b3b0fc9093852c9349439a1d.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemFo return NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemForwardRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemF return nil } // ToPostRequestInformation this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemForwardRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemForwardPostRequestBodyable, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemForwardRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemF return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemForwardRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemForwardRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemForwardRequestBuilder) { return NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesItemForwardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/fb92dc874665ace906595149703905a5b24d2a19ca84a097a8ff1505d1dbc8df.go b/users/fb92dc874665ace906595149703905a5b24d2a19ca84a097a8ff1505d1dbc8df.go index e042a6aa32b..53eae9488bf 100644 --- a/users/fb92dc874665ace906595149703905a5b24d2a19ca84a097a8ff1505d1dbc8df.go +++ b/users/fb92dc874665ace906595149703905a5b24d2a19ca84a097a8ff1505d1dbc8df.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemFor return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemForwardRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemFo return nil } // ToPostRequestInformation this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemForwardRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemForwardPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemForwardRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemFo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemForwardRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemForwardRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemForwardRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemForwardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/fbd4dc3ca6b6126931fe913894504c205c2c134aaacbb43a3e862e2d5dc009f7.go b/users/fbd4dc3ca6b6126931fe913894504c205c2c134aaacbb43a3e862e2d5dc009f7.go index 2b74c4c2209..f049f6cb35d 100644 --- a/users/fbd4dc3ca6b6126931fe913894504c205c2c134aaacbb43a3e862e2d5dc009f7.go +++ b/users/fbd4dc3ca6b6126931fe913894504c205c2c134aaacbb43a3e862e2d5dc009f7.go @@ -48,6 +48,7 @@ func NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsAtta return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,6 +65,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsAtt return nil } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -84,6 +86,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsAtt return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToDeleteRequestInformation delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +98,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsAtt return requestInfo, nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +113,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsAtt return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) { return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/fc22f354e2c8b789ca80305a6bb5a506dc0bb6f90081d6f856490a51cc8d688b.go b/users/fc22f354e2c8b789ca80305a6bb5a506dc0bb6f90081d6f856490a51cc8d688b.go index 19e451eea44..54cf73749e9 100644 --- a/users/fc22f354e2c8b789ca80305a6bb5a506dc0bb6f90081d6f856490a51cc8d688b.go +++ b/users/fc22f354e2c8b789ca80305a6bb5a506dc0bb6f90081d6f856490a51cc8d688b.go @@ -32,6 +32,7 @@ func NewItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurity return NewItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurityExtractContentLabelRequestBuilderInternal(urlParams, requestAdapter) } // Post use the metadata that exists on an already-labeled piece of information to resolve the metadata to a specific sensitivity label. The contentInfo input is resolved to informationProtectionContentLabel. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ContentLabelable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurit return res.(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.ContentLabelable), nil } // ToPostRequestInformation use the metadata that exists on an already-labeled piece of information to resolve the metadata to a specific sensitivity label. The contentInfo input is resolved to informationProtectionContentLabel. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurityExtractContentLabelRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurityExtractContentLabelExtractContentLabelPostRequestBodyable, requestConfiguration *ItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurityExtractContentLabelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurit return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurityExtractContentLabelRequestBuilder when successful func (m *ItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurityExtractContentLabelRequestBuilder) WithUrl(rawUrl string)(*ItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurityExtractContentLabelRequestBuilder) { return NewItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurityExtractContentLabelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/fc593872d01fa1c422b14efd6b3537309d17f7a88f9d7a6fc2254418205b60a2.go b/users/fc593872d01fa1c422b14efd6b3537309d17f7a88f9d7a6fc2254418205b60a2.go index 02741cb8122..09a129bb292 100644 --- a/users/fc593872d01fa1c422b14efd6b3537309d17f7a88f9d7a6fc2254418205b60a2.go +++ b/users/fc593872d01fa1c422b14efd6b3537309d17f7a88f9d7a6fc2254418205b60a2.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccur return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemCancelRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return nil } // ToPostRequestInformation this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemCancelPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccu return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemCancelRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemCancelRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemCancelRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/fd01e0037eb24cc761018f87f0186c43e94c386d9b8aba67e4712e1cef9bf703.go b/users/fd01e0037eb24cc761018f87f0186c43e94c386d9b8aba67e4712e1cef9bf703.go index 470ef03a59f..3e4c82a9a97 100644 --- a/users/fd01e0037eb24cc761018f87f0186c43e94c386d9b8aba67e4712e1cef9bf703.go +++ b/users/fd01e0037eb24cc761018f87f0186c43e94c386d9b8aba67e4712e1cef9bf703.go @@ -40,6 +40,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExt return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemEx return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemEx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsCountRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsCountRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/fd3d7d049022d4aac3e13a19ad2b4faa4c4292c789dedd3948fd6ff125073c25.go b/users/fd3d7d049022d4aac3e13a19ad2b4faa4c4292c789dedd3948fd6ff125073c25.go index 283cddfafe6..d8b83d90127 100644 --- a/users/fd3d7d049022d4aac3e13a19ad2b4faa4c4292c789dedd3948fd6ff125073c25.go +++ b/users/fd3d7d049022d4aac3e13a19ad2b4faa4c4292c789dedd3948fd6ff125073c25.go @@ -32,6 +32,7 @@ func NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCr return NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsC return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsC return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/fdb83c79a4cf6b98362426c2c3d4530edb5c6e4af9e714d383f62d270475faed.go b/users/fdb83c79a4cf6b98362426c2c3d4530edb5c6e4af9e714d383f62d270475faed.go index edfc34faca6..25c67fbb433 100644 --- a/users/fdb83c79a4cf6b98362426c2c3d4530edb5c6e4af9e714d383f62d270475faed.go +++ b/users/fdb83c79a4cf6b98362426c2c3d4530edb5c6e4af9e714d383f62d270475faed.go @@ -79,6 +79,7 @@ func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsFilterByCurrent return res.(ItemAppConsentRequestsForApprovalItemUserConsentRequestsFilterByCurrentUserWithOnResponseable), nil } // GetAsFilterByCurrentUserWithOnGetResponse retrieve a collection of userConsentRequest objects for accessing a specified app, for which the current user is the reviewer. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemAppConsentRequestsForApprovalItemUserConsentRequestsFilterByCurrentUserWithOnGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -102,6 +103,7 @@ func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsFilterByCurrent return res.(ItemAppConsentRequestsForApprovalItemUserConsentRequestsFilterByCurrentUserWithOnGetResponseable), nil } // ToGetRequestInformation retrieve a collection of userConsentRequest objects for accessing a specified app, for which the current user is the reviewer. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsFilterByCurrentUserWithOnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAppConsentRequestsForApprovalItemUserConsentRequestsFilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -116,6 +118,7 @@ func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsFilterByCurrent return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAppConsentRequestsForApprovalItemUserConsentRequestsFilterByCurrentUserWithOnRequestBuilder when successful func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsFilterByCurrentUserWithOnRequestBuilder) WithUrl(rawUrl string)(*ItemAppConsentRequestsForApprovalItemUserConsentRequestsFilterByCurrentUserWithOnRequestBuilder) { return NewItemAppConsentRequestsForApprovalItemUserConsentRequestsFilterByCurrentUserWithOnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/fdf003543bf434ff675a422831578b72048557082b5912e6d6cb8ed0ff971c08.go b/users/fdf003543bf434ff675a422831578b72048557082b5912e6d6cb8ed0ff971c08.go index 23b62d602aa..55672ae35f9 100644 --- a/users/fdf003543bf434ff675a422831578b72048557082b5912e6d6cb8ed0ff971c08.go +++ b/users/fdf003543bf434ff675a422831578b72048557082b5912e6d6cb8ed0ff971c08.go @@ -47,6 +47,7 @@ type ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachment Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentId provides operations to manage the attachments property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ByAttachmentId(attachmentId string)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttach return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttach return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } // Post create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -122,6 +125,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttach return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttach return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttach return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) { return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/fede54ea51b22f46c0feb21fae1fd1f1052756f636c2ea3174d46a31ade46f03.go b/users/fede54ea51b22f46c0feb21fae1fd1f1052756f636c2ea3174d46a31ade46f03.go index 1c45c7d268e..e090a4c7616 100644 --- a/users/fede54ea51b22f46c0feb21fae1fd1f1052756f636c2ea3174d46a31ade46f03.go +++ b/users/fede54ea51b22f46c0feb21fae1fd1f1052756f636c2ea3174d46a31ade46f03.go @@ -18,7 +18,7 @@ type ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsAttachmentItemR // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsAttachmentItemRequestBuilderGetQueryParameters the collection of fileAttachment, itemAttachment, and referenceAttachment attachments for the task. Read-only. Nullable. +// ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsAttachmentItemRequestBuilderGetQueryParameters the collection of fileAttachment, itemAttachment, and referenceAttachment attachments for the task. Read-only. Nullable. type ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsAttachmentItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -48,7 +48,7 @@ func NewItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsAttachmentIt return NewItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsAttachmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attachments for users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,8 +64,8 @@ func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsAttachmentI } return nil } -// Get the collection of fileAttachment, itemAttachment, and referenceAttachment attachments for the task. Read-only. Nullable. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Get the collection of fileAttachment, itemAttachment, and referenceAttachment attachments for the task. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -86,7 +86,7 @@ func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsAttachmentI return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToDeleteRequestInformation delete navigation property attachments for users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -97,8 +97,8 @@ func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsAttachmentI requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the collection of fileAttachment, itemAttachment, and referenceAttachment attachments for the task. Read-only. Nullable. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// ToGetRequestInformation the collection of fileAttachment, itemAttachment, and referenceAttachment attachments for the task. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,7 +113,7 @@ func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsAttachmentI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsAttachmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsAttachmentItemRequestBuilder) { return NewItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsAttachmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/feeae6651e5a9e8681fe9cc154cd4e6d5ff967f33050d1d2d7eea489a3746500.go b/users/feeae6651e5a9e8681fe9cc154cd4e6d5ff967f33050d1d2d7eea489a3746500.go index 769f1e13566..ec4fcee517c 100644 --- a/users/feeae6651e5a9e8681fe9cc154cd4e6d5ff967f33050d1d2d7eea489a3746500.go +++ b/users/feeae6651e5a9e8681fe9cc154cd4e6d5ff967f33050d1d2d7eea489a3746500.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemSnoozeRe return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemSnoozeReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemSnoozeR return nil } // ToPostRequestInformation postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemSnoozeReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemSnoozeReminderPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemSnoozeReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemSnoozeR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemSnoozeReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemSnoozeReminderRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemSnoozeReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/ff3ca155ca6bb64d4a397873ec671995aaf30b6eb8bbaeba662eb4110cad3c9f.go b/users/ff3ca155ca6bb64d4a397873ec671995aaf30b6eb8bbaeba662eb4110cad3c9f.go index ead7ba03be3..39011fe956a 100644 --- a/users/ff3ca155ca6bb64d4a397873ec671995aaf30b6eb8bbaeba662eb4110cad3c9f.go +++ b/users/ff3ca155ca6bb64d4a397873ec671995aaf30b6eb8bbaeba662eb4110cad3c9f.go @@ -11,7 +11,7 @@ import ( type ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -44,6 +44,7 @@ type ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItem QueryParameters *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilderGetQueryParameters } // ByEventId2 provides operations to manage the instances property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder) ByEventId2(eventId2 string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -78,7 +79,8 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder) Delta()(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesDeltaRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -98,7 +100,8 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,6 +116,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/get_by_ids_request_builder.go b/users/get_by_ids_request_builder.go index 07cb317f119..9252bb4becb 100644 --- a/users/get_by_ids_request_builder.go +++ b/users/get_by_ids_request_builder.go @@ -55,6 +55,7 @@ func (m *GetByIdsRequestBuilder) Post(ctx context.Context, body GetByIdsPostRequ return res.(GetByIdsResponseable), nil } // PostAsGetByIdsPostResponse return the directory objects specified in a list of IDs. Some common uses for this function are to: +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a GetByIdsPostResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -78,6 +79,7 @@ func (m *GetByIdsRequestBuilder) PostAsGetByIdsPostResponse(ctx context.Context, return res.(GetByIdsPostResponseable), nil } // ToPostRequestInformation return the directory objects specified in a list of IDs. Some common uses for this function are to: +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *GetByIdsRequestBuilder) ToPostRequestInformation(ctx context.Context, body GetByIdsPostRequestBodyable, requestConfiguration *GetByIdsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -93,6 +95,7 @@ func (m *GetByIdsRequestBuilder) ToPostRequestInformation(ctx context.Context, b return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *GetByIdsRequestBuilder when successful func (m *GetByIdsRequestBuilder) WithUrl(rawUrl string)(*GetByIdsRequestBuilder) { return NewGetByIdsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/get_managed_app_blocked_users_request_builder.go b/users/get_managed_app_blocked_users_request_builder.go index 3045bb0ae7e..d79e8831eaa 100644 --- a/users/get_managed_app_blocked_users_request_builder.go +++ b/users/get_managed_app_blocked_users_request_builder.go @@ -67,6 +67,7 @@ func (m *GetManagedAppBlockedUsersRequestBuilder) Get(ctx context.Context, reque return res.(GetManagedAppBlockedUsersResponseable), nil } // GetAsGetManagedAppBlockedUsersGetResponse invoke function getManagedAppBlockedUsers +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a GetManagedAppBlockedUsersGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *GetManagedAppBlockedUsersRequestBuilder) GetAsGetManagedAppBlockedUsersGetResponse(ctx context.Context, requestConfiguration *GetManagedAppBlockedUsersRequestBuilderGetRequestConfiguration)(GetManagedAppBlockedUsersGetResponseable, error) { @@ -87,6 +88,7 @@ func (m *GetManagedAppBlockedUsersRequestBuilder) GetAsGetManagedAppBlockedUsers return res.(GetManagedAppBlockedUsersGetResponseable), nil } // ToGetRequestInformation invoke function getManagedAppBlockedUsers +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *GetManagedAppBlockedUsersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *GetManagedAppBlockedUsersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -101,6 +103,7 @@ func (m *GetManagedAppBlockedUsersRequestBuilder) ToGetRequestInformation(ctx co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *GetManagedAppBlockedUsersRequestBuilder when successful func (m *GetManagedAppBlockedUsersRequestBuilder) WithUrl(rawUrl string)(*GetManagedAppBlockedUsersRequestBuilder) { return NewGetManagedAppBlockedUsersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/get_user_owned_objects_request_builder.go b/users/get_user_owned_objects_request_builder.go index 762c8e81faa..a241a567ef4 100644 --- a/users/get_user_owned_objects_request_builder.go +++ b/users/get_user_owned_objects_request_builder.go @@ -32,6 +32,7 @@ func NewGetUserOwnedObjectsRequestBuilder(rawUrl string, requestAdapter i2ae4187 return NewGetUserOwnedObjectsRequestBuilderInternal(urlParams, requestAdapter) } // Post retrieve a list of recently deleted application and group objects owned by the specified user. This API returns up to 1,000 deleted objects owned by the user, sorted by ID, and doesn't support pagination. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DirectoryObjectable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *GetUserOwnedObjectsRequestBuilder) Post(ctx context.Context, body GetUs return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryObjectable), nil } // ToPostRequestInformation retrieve a list of recently deleted application and group objects owned by the specified user. This API returns up to 1,000 deleted objects owned by the user, sorted by ID, and doesn't support pagination. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *GetUserOwnedObjectsRequestBuilder) ToPostRequestInformation(ctx context.Context, body GetUserOwnedObjectsPostRequestBodyable, requestConfiguration *GetUserOwnedObjectsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *GetUserOwnedObjectsRequestBuilder) ToPostRequestInformation(ctx context return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *GetUserOwnedObjectsRequestBuilder when successful func (m *GetUserOwnedObjectsRequestBuilder) WithUrl(rawUrl string)(*GetUserOwnedObjectsRequestBuilder) { return NewGetUserOwnedObjectsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_activities_count_request_builder.go b/users/item_activities_count_request_builder.go index 1e6930fa397..29a97cefde3 100644 --- a/users/item_activities_count_request_builder.go +++ b/users/item_activities_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemActivitiesCountRequestBuilder(rawUrl string, requestAdapter i2ae4187 return NewItemActivitiesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemActivitiesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemActivitiesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemActivitiesCountRequestBuilder) Get(ctx context.Context, requestConf return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemActivitiesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemActivitiesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemActivitiesCountRequestBuilder) ToGetRequestInformation(ctx context. return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemActivitiesCountRequestBuilder when successful func (m *ItemActivitiesCountRequestBuilder) WithUrl(rawUrl string)(*ItemActivitiesCountRequestBuilder) { return NewItemActivitiesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_activities_item_history_items_activity_history_item_item_request_builder.go b/users/item_activities_item_history_items_activity_history_item_item_request_builder.go index 428e9556a9f..e00a8504d04 100644 --- a/users/item_activities_item_history_items_activity_history_item_item_request_builder.go +++ b/users/item_activities_item_history_items_activity_history_item_item_request_builder.go @@ -60,6 +60,7 @@ func NewItemActivitiesItemHistoryItemsActivityHistoryItemItemRequestBuilder(rawU return NewItemActivitiesItemHistoryItemsActivityHistoryItemItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property historyItems for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemActivitiesItemHistoryItemsActivityHistoryItemItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemActivitiesItemHistoryItemsActivityHistoryItemItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -76,6 +77,7 @@ func (m *ItemActivitiesItemHistoryItemsActivityHistoryItemItemRequestBuilder) De return nil } // Get optional. NavigationProperty/Containment; navigation property to the activity's activityHistoryItems. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ActivityHistoryItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemActivitiesItemHistoryItemsActivityHistoryItemItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemActivitiesItemHistoryItemsActivityHistoryItemItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActivityHistoryItemable, error) { @@ -96,6 +98,7 @@ func (m *ItemActivitiesItemHistoryItemsActivityHistoryItemItemRequestBuilder) Ge return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActivityHistoryItemable), nil } // Patch update the navigation property historyItems in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ActivityHistoryItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemActivitiesItemHistoryItemsActivityHistoryItemItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActivityHistoryItemable, requestConfiguration *ItemActivitiesItemHistoryItemsActivityHistoryItemItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActivityHistoryItemable, error) { @@ -116,6 +119,7 @@ func (m *ItemActivitiesItemHistoryItemsActivityHistoryItemItemRequestBuilder) Pa return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActivityHistoryItemable), nil } // ToDeleteRequestInformation delete navigation property historyItems for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemActivitiesItemHistoryItemsActivityHistoryItemItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemActivitiesItemHistoryItemsActivityHistoryItemItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -127,6 +131,7 @@ func (m *ItemActivitiesItemHistoryItemsActivityHistoryItemItemRequestBuilder) To return requestInfo, nil } // ToGetRequestInformation optional. NavigationProperty/Containment; navigation property to the activity's activityHistoryItems. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemActivitiesItemHistoryItemsActivityHistoryItemItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemActivitiesItemHistoryItemsActivityHistoryItemItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,6 +146,7 @@ func (m *ItemActivitiesItemHistoryItemsActivityHistoryItemItemRequestBuilder) To return requestInfo, nil } // ToPatchRequestInformation update the navigation property historyItems in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemActivitiesItemHistoryItemsActivityHistoryItemItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActivityHistoryItemable, requestConfiguration *ItemActivitiesItemHistoryItemsActivityHistoryItemItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +162,7 @@ func (m *ItemActivitiesItemHistoryItemsActivityHistoryItemItemRequestBuilder) To return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemActivitiesItemHistoryItemsActivityHistoryItemItemRequestBuilder when successful func (m *ItemActivitiesItemHistoryItemsActivityHistoryItemItemRequestBuilder) WithUrl(rawUrl string)(*ItemActivitiesItemHistoryItemsActivityHistoryItemItemRequestBuilder) { return NewItemActivitiesItemHistoryItemsActivityHistoryItemItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_activities_item_history_items_count_request_builder.go b/users/item_activities_item_history_items_count_request_builder.go index 9f0fdd7ea6e..d88ac81e531 100644 --- a/users/item_activities_item_history_items_count_request_builder.go +++ b/users/item_activities_item_history_items_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemActivitiesItemHistoryItemsCountRequestBuilder(rawUrl string, request return NewItemActivitiesItemHistoryItemsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemActivitiesItemHistoryItemsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemActivitiesItemHistoryItemsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemActivitiesItemHistoryItemsCountRequestBuilder) Get(ctx context.Cont return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemActivitiesItemHistoryItemsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemActivitiesItemHistoryItemsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemActivitiesItemHistoryItemsCountRequestBuilder) ToGetRequestInformat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemActivitiesItemHistoryItemsCountRequestBuilder when successful func (m *ItemActivitiesItemHistoryItemsCountRequestBuilder) WithUrl(rawUrl string)(*ItemActivitiesItemHistoryItemsCountRequestBuilder) { return NewItemActivitiesItemHistoryItemsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_activities_item_history_items_item_activity_request_builder.go b/users/item_activities_item_history_items_item_activity_request_builder.go index 3981bc4b130..472cb892fe3 100644 --- a/users/item_activities_item_history_items_item_activity_request_builder.go +++ b/users/item_activities_item_history_items_item_activity_request_builder.go @@ -41,6 +41,7 @@ func NewItemActivitiesItemHistoryItemsItemActivityRequestBuilder(rawUrl string, return NewItemActivitiesItemHistoryItemsItemActivityRequestBuilderInternal(urlParams, requestAdapter) } // Get optional. NavigationProperty/Containment; navigation property to the associated activity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserActivityable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemActivitiesItemHistoryItemsItemActivityRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemActivitiesItemHistoryItemsItemActivityRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserActivityable, error) { @@ -61,6 +62,7 @@ func (m *ItemActivitiesItemHistoryItemsItemActivityRequestBuilder) Get(ctx conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserActivityable), nil } // ToGetRequestInformation optional. NavigationProperty/Containment; navigation property to the associated activity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemActivitiesItemHistoryItemsItemActivityRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemActivitiesItemHistoryItemsItemActivityRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemActivitiesItemHistoryItemsItemActivityRequestBuilder) ToGetRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemActivitiesItemHistoryItemsItemActivityRequestBuilder when successful func (m *ItemActivitiesItemHistoryItemsItemActivityRequestBuilder) WithUrl(rawUrl string)(*ItemActivitiesItemHistoryItemsItemActivityRequestBuilder) { return NewItemActivitiesItemHistoryItemsItemActivityRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_activities_item_history_items_request_builder.go b/users/item_activities_item_history_items_request_builder.go index 8b18d6a4724..ce2535cfc05 100644 --- a/users/item_activities_item_history_items_request_builder.go +++ b/users/item_activities_item_history_items_request_builder.go @@ -47,6 +47,7 @@ type ItemActivitiesItemHistoryItemsRequestBuilderPostRequestConfiguration struct Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByActivityHistoryItemId provides operations to manage the historyItems property of the microsoft.graph.userActivity entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemActivitiesItemHistoryItemsActivityHistoryItemItemRequestBuilder when successful func (m *ItemActivitiesItemHistoryItemsRequestBuilder) ByActivityHistoryItemId(activityHistoryItemId string)(*ItemActivitiesItemHistoryItemsActivityHistoryItemItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemActivitiesItemHistoryItemsRequestBuilder) Count()(*ItemActivitiesIt return NewItemActivitiesItemHistoryItemsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get optional. NavigationProperty/Containment; navigation property to the activity's activityHistoryItems. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ActivityHistoryItemCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemActivitiesItemHistoryItemsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemActivitiesItemHistoryItemsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActivityHistoryItemCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemActivitiesItemHistoryItemsRequestBuilder) Get(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActivityHistoryItemCollectionResponseable), nil } // Post create new navigation property to historyItems for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ActivityHistoryItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemActivitiesItemHistoryItemsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActivityHistoryItemable, requestConfiguration *ItemActivitiesItemHistoryItemsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActivityHistoryItemable, error) { @@ -117,6 +120,7 @@ func (m *ItemActivitiesItemHistoryItemsRequestBuilder) Post(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActivityHistoryItemable), nil } // ToGetRequestInformation optional. NavigationProperty/Containment; navigation property to the activity's activityHistoryItems. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemActivitiesItemHistoryItemsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemActivitiesItemHistoryItemsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemActivitiesItemHistoryItemsRequestBuilder) ToGetRequestInformation(c return requestInfo, nil } // ToPostRequestInformation create new navigation property to historyItems for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemActivitiesItemHistoryItemsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActivityHistoryItemable, requestConfiguration *ItemActivitiesItemHistoryItemsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemActivitiesItemHistoryItemsRequestBuilder) ToPostRequestInformation( return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemActivitiesItemHistoryItemsRequestBuilder when successful func (m *ItemActivitiesItemHistoryItemsRequestBuilder) WithUrl(rawUrl string)(*ItemActivitiesItemHistoryItemsRequestBuilder) { return NewItemActivitiesItemHistoryItemsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_activities_recent_request_builder.go b/users/item_activities_recent_request_builder.go index 690e66f15f3..9ffa6ae3916 100644 --- a/users/item_activities_recent_request_builder.go +++ b/users/item_activities_recent_request_builder.go @@ -73,6 +73,7 @@ func (m *ItemActivitiesRecentRequestBuilder) Get(ctx context.Context, requestCon return res.(ItemActivitiesRecentResponseable), nil } // GetAsRecentGetResponse invoke function recent +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemActivitiesRecentGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemActivitiesRecentRequestBuilder) GetAsRecentGetResponse(ctx context.Context, requestConfiguration *ItemActivitiesRecentRequestBuilderGetRequestConfiguration)(ItemActivitiesRecentGetResponseable, error) { @@ -93,6 +94,7 @@ func (m *ItemActivitiesRecentRequestBuilder) GetAsRecentGetResponse(ctx context. return res.(ItemActivitiesRecentGetResponseable), nil } // ToGetRequestInformation invoke function recent +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemActivitiesRecentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemActivitiesRecentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -107,6 +109,7 @@ func (m *ItemActivitiesRecentRequestBuilder) ToGetRequestInformation(ctx context return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemActivitiesRecentRequestBuilder when successful func (m *ItemActivitiesRecentRequestBuilder) WithUrl(rawUrl string)(*ItemActivitiesRecentRequestBuilder) { return NewItemActivitiesRecentRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_activities_request_builder.go b/users/item_activities_request_builder.go index c042d2adbd4..8442f675a32 100644 --- a/users/item_activities_request_builder.go +++ b/users/item_activities_request_builder.go @@ -47,6 +47,7 @@ type ItemActivitiesRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByUserActivityId provides operations to manage the activities property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemActivitiesUserActivityItemRequestBuilder when successful func (m *ItemActivitiesRequestBuilder) ByUserActivityId(userActivityId string)(*ItemActivitiesUserActivityItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemActivitiesRequestBuilder) Count()(*ItemActivitiesCountRequestBuilde return NewItemActivitiesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the user's activities across devices. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserActivityCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemActivitiesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemActivitiesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserActivityCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemActivitiesRequestBuilder) Get(ctx context.Context, requestConfigura return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserActivityCollectionResponseable), nil } // Post create new navigation property to activities for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserActivityable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemActivitiesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserActivityable, requestConfiguration *ItemActivitiesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserActivityable, error) { @@ -122,6 +125,7 @@ func (m *ItemActivitiesRequestBuilder) Recent()(*ItemActivitiesRecentRequestBuil return NewItemActivitiesRecentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation the user's activities across devices. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemActivitiesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemActivitiesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemActivitiesRequestBuilder) ToGetRequestInformation(ctx context.Conte return requestInfo, nil } // ToPostRequestInformation create new navigation property to activities for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemActivitiesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserActivityable, requestConfiguration *ItemActivitiesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemActivitiesRequestBuilder) ToPostRequestInformation(ctx context.Cont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemActivitiesRequestBuilder when successful func (m *ItemActivitiesRequestBuilder) WithUrl(rawUrl string)(*ItemActivitiesRequestBuilder) { return NewItemActivitiesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_activities_user_activity_item_request_builder.go b/users/item_activities_user_activity_item_request_builder.go index ac1f177488a..467d406e916 100644 --- a/users/item_activities_user_activity_item_request_builder.go +++ b/users/item_activities_user_activity_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemActivitiesUserActivityItemRequestBuilder(rawUrl string, requestAdapt return NewItemActivitiesUserActivityItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property activities for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemActivitiesUserActivityItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemActivitiesUserActivityItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemActivitiesUserActivityItemRequestBuilder) Delete(ctx context.Contex return nil } // Get the user's activities across devices. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserActivityable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemActivitiesUserActivityItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemActivitiesUserActivityItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserActivityable, error) { @@ -96,6 +98,7 @@ func (m *ItemActivitiesUserActivityItemRequestBuilder) HistoryItems()(*ItemActiv return NewItemActivitiesItemHistoryItemsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property activities in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserActivityable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemActivitiesUserActivityItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserActivityable, requestConfiguration *ItemActivitiesUserActivityItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserActivityable, error) { @@ -116,6 +119,7 @@ func (m *ItemActivitiesUserActivityItemRequestBuilder) Patch(ctx context.Context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserActivityable), nil } // ToDeleteRequestInformation delete navigation property activities for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemActivitiesUserActivityItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemActivitiesUserActivityItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -127,6 +131,7 @@ func (m *ItemActivitiesUserActivityItemRequestBuilder) ToDeleteRequestInformatio return requestInfo, nil } // ToGetRequestInformation the user's activities across devices. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemActivitiesUserActivityItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemActivitiesUserActivityItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,6 +146,7 @@ func (m *ItemActivitiesUserActivityItemRequestBuilder) ToGetRequestInformation(c return requestInfo, nil } // ToPatchRequestInformation update the navigation property activities in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemActivitiesUserActivityItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserActivityable, requestConfiguration *ItemActivitiesUserActivityItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +162,7 @@ func (m *ItemActivitiesUserActivityItemRequestBuilder) ToPatchRequestInformation return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemActivitiesUserActivityItemRequestBuilder when successful func (m *ItemActivitiesUserActivityItemRequestBuilder) WithUrl(rawUrl string)(*ItemActivitiesUserActivityItemRequestBuilder) { return NewItemActivitiesUserActivityItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_agreement_acceptances_agreement_acceptance_item_request_builder.go b/users/item_agreement_acceptances_agreement_acceptance_item_request_builder.go index a1e3e7adea6..e264f5b8a4a 100644 --- a/users/item_agreement_acceptances_agreement_acceptance_item_request_builder.go +++ b/users/item_agreement_acceptances_agreement_acceptance_item_request_builder.go @@ -41,6 +41,7 @@ func NewItemAgreementAcceptancesAgreementAcceptanceItemRequestBuilder(rawUrl str return NewItemAgreementAcceptancesAgreementAcceptanceItemRequestBuilderInternal(urlParams, requestAdapter) } // Get the user's terms of use acceptance statuses. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AgreementAcceptanceable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAgreementAcceptancesAgreementAcceptanceItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAgreementAcceptancesAgreementAcceptanceItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AgreementAcceptanceable, error) { @@ -61,6 +62,7 @@ func (m *ItemAgreementAcceptancesAgreementAcceptanceItemRequestBuilder) Get(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AgreementAcceptanceable), nil } // ToGetRequestInformation the user's terms of use acceptance statuses. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAgreementAcceptancesAgreementAcceptanceItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAgreementAcceptancesAgreementAcceptanceItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemAgreementAcceptancesAgreementAcceptanceItemRequestBuilder) ToGetReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAgreementAcceptancesAgreementAcceptanceItemRequestBuilder when successful func (m *ItemAgreementAcceptancesAgreementAcceptanceItemRequestBuilder) WithUrl(rawUrl string)(*ItemAgreementAcceptancesAgreementAcceptanceItemRequestBuilder) { return NewItemAgreementAcceptancesAgreementAcceptanceItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_agreement_acceptances_count_request_builder.go b/users/item_agreement_acceptances_count_request_builder.go index c2b206109f4..abf9782f760 100644 --- a/users/item_agreement_acceptances_count_request_builder.go +++ b/users/item_agreement_acceptances_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemAgreementAcceptancesCountRequestBuilder(rawUrl string, requestAdapte return NewItemAgreementAcceptancesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAgreementAcceptancesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAgreementAcceptancesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemAgreementAcceptancesCountRequestBuilder) Get(ctx context.Context, r return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAgreementAcceptancesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAgreementAcceptancesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemAgreementAcceptancesCountRequestBuilder) ToGetRequestInformation(ct return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAgreementAcceptancesCountRequestBuilder when successful func (m *ItemAgreementAcceptancesCountRequestBuilder) WithUrl(rawUrl string)(*ItemAgreementAcceptancesCountRequestBuilder) { return NewItemAgreementAcceptancesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_agreement_acceptances_request_builder.go b/users/item_agreement_acceptances_request_builder.go index 37d8bdaa0ea..dca5c60d48a 100644 --- a/users/item_agreement_acceptances_request_builder.go +++ b/users/item_agreement_acceptances_request_builder.go @@ -40,6 +40,7 @@ type ItemAgreementAcceptancesRequestBuilderGetRequestConfiguration struct { QueryParameters *ItemAgreementAcceptancesRequestBuilderGetQueryParameters } // ByAgreementAcceptanceId provides operations to manage the agreementAcceptances property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAgreementAcceptancesAgreementAcceptanceItemRequestBuilder when successful func (m *ItemAgreementAcceptancesRequestBuilder) ByAgreementAcceptanceId(agreementAcceptanceId string)(*ItemAgreementAcceptancesAgreementAcceptanceItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -70,6 +71,7 @@ func (m *ItemAgreementAcceptancesRequestBuilder) Count()(*ItemAgreementAcceptanc return NewItemAgreementAcceptancesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the user's terms of use acceptance statuses. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AgreementAcceptanceCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAgreementAcceptancesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAgreementAcceptancesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AgreementAcceptanceCollectionResponseable, error) { @@ -90,6 +92,7 @@ func (m *ItemAgreementAcceptancesRequestBuilder) Get(ctx context.Context, reques return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AgreementAcceptanceCollectionResponseable), nil } // ToGetRequestInformation the user's terms of use acceptance statuses. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAgreementAcceptancesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAgreementAcceptancesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -104,6 +107,7 @@ func (m *ItemAgreementAcceptancesRequestBuilder) ToGetRequestInformation(ctx con return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAgreementAcceptancesRequestBuilder when successful func (m *ItemAgreementAcceptancesRequestBuilder) WithUrl(rawUrl string)(*ItemAgreementAcceptancesRequestBuilder) { return NewItemAgreementAcceptancesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_analytics_activity_statistics_activity_statistics_item_request_builder.go b/users/item_analytics_activity_statistics_activity_statistics_item_request_builder.go index f3583cd0055..e15927173e0 100644 --- a/users/item_analytics_activity_statistics_activity_statistics_item_request_builder.go +++ b/users/item_analytics_activity_statistics_activity_statistics_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemAnalyticsActivityStatisticsActivityStatisticsItemRequestBuilder(rawU return NewItemAnalyticsActivityStatisticsActivityStatisticsItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property activityStatistics for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAnalyticsActivityStatisticsActivityStatisticsItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemAnalyticsActivityStatisticsActivityStatisticsItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemAnalyticsActivityStatisticsActivityStatisticsItemRequestBuilder) De return nil } // Get the collection of work activities that a user spent time on during and outside of working hours. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ActivityStatisticsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAnalyticsActivityStatisticsActivityStatisticsItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAnalyticsActivityStatisticsActivityStatisticsItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActivityStatisticsable, error) { @@ -91,6 +93,7 @@ func (m *ItemAnalyticsActivityStatisticsActivityStatisticsItemRequestBuilder) Ge return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActivityStatisticsable), nil } // Patch update the navigation property activityStatistics in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ActivityStatisticsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAnalyticsActivityStatisticsActivityStatisticsItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActivityStatisticsable, requestConfiguration *ItemAnalyticsActivityStatisticsActivityStatisticsItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActivityStatisticsable, error) { @@ -111,6 +114,7 @@ func (m *ItemAnalyticsActivityStatisticsActivityStatisticsItemRequestBuilder) Pa return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActivityStatisticsable), nil } // ToDeleteRequestInformation delete navigation property activityStatistics for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAnalyticsActivityStatisticsActivityStatisticsItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemAnalyticsActivityStatisticsActivityStatisticsItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemAnalyticsActivityStatisticsActivityStatisticsItemRequestBuilder) To return requestInfo, nil } // ToGetRequestInformation the collection of work activities that a user spent time on during and outside of working hours. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAnalyticsActivityStatisticsActivityStatisticsItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAnalyticsActivityStatisticsActivityStatisticsItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemAnalyticsActivityStatisticsActivityStatisticsItemRequestBuilder) To return requestInfo, nil } // ToPatchRequestInformation update the navigation property activityStatistics in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAnalyticsActivityStatisticsActivityStatisticsItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActivityStatisticsable, requestConfiguration *ItemAnalyticsActivityStatisticsActivityStatisticsItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemAnalyticsActivityStatisticsActivityStatisticsItemRequestBuilder) To return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAnalyticsActivityStatisticsActivityStatisticsItemRequestBuilder when successful func (m *ItemAnalyticsActivityStatisticsActivityStatisticsItemRequestBuilder) WithUrl(rawUrl string)(*ItemAnalyticsActivityStatisticsActivityStatisticsItemRequestBuilder) { return NewItemAnalyticsActivityStatisticsActivityStatisticsItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_analytics_activity_statistics_count_request_builder.go b/users/item_analytics_activity_statistics_count_request_builder.go index 744e520217a..f3ddc518c77 100644 --- a/users/item_analytics_activity_statistics_count_request_builder.go +++ b/users/item_analytics_activity_statistics_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemAnalyticsActivityStatisticsCountRequestBuilder(rawUrl string, reques return NewItemAnalyticsActivityStatisticsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAnalyticsActivityStatisticsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAnalyticsActivityStatisticsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemAnalyticsActivityStatisticsCountRequestBuilder) Get(ctx context.Con return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAnalyticsActivityStatisticsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAnalyticsActivityStatisticsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemAnalyticsActivityStatisticsCountRequestBuilder) ToGetRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAnalyticsActivityStatisticsCountRequestBuilder when successful func (m *ItemAnalyticsActivityStatisticsCountRequestBuilder) WithUrl(rawUrl string)(*ItemAnalyticsActivityStatisticsCountRequestBuilder) { return NewItemAnalyticsActivityStatisticsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_analytics_activity_statistics_request_builder.go b/users/item_analytics_activity_statistics_request_builder.go index 73ea2c3f539..e6ee48bfdd0 100644 --- a/users/item_analytics_activity_statistics_request_builder.go +++ b/users/item_analytics_activity_statistics_request_builder.go @@ -47,6 +47,7 @@ type ItemAnalyticsActivityStatisticsRequestBuilderPostRequestConfiguration struc Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByActivityStatisticsId provides operations to manage the activityStatistics property of the microsoft.graph.userAnalytics entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAnalyticsActivityStatisticsActivityStatisticsItemRequestBuilder when successful func (m *ItemAnalyticsActivityStatisticsRequestBuilder) ByActivityStatisticsId(activityStatisticsId string)(*ItemAnalyticsActivityStatisticsActivityStatisticsItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemAnalyticsActivityStatisticsRequestBuilder) Count()(*ItemAnalyticsAc return NewItemAnalyticsActivityStatisticsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of work activities that a user spent time on during and outside of working hours. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ActivityStatisticsCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAnalyticsActivityStatisticsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAnalyticsActivityStatisticsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActivityStatisticsCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemAnalyticsActivityStatisticsRequestBuilder) Get(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActivityStatisticsCollectionResponseable), nil } // Post create new navigation property to activityStatistics for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ActivityStatisticsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAnalyticsActivityStatisticsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActivityStatisticsable, requestConfiguration *ItemAnalyticsActivityStatisticsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActivityStatisticsable, error) { @@ -117,6 +120,7 @@ func (m *ItemAnalyticsActivityStatisticsRequestBuilder) Post(ctx context.Context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActivityStatisticsable), nil } // ToGetRequestInformation the collection of work activities that a user spent time on during and outside of working hours. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAnalyticsActivityStatisticsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAnalyticsActivityStatisticsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemAnalyticsActivityStatisticsRequestBuilder) ToGetRequestInformation( return requestInfo, nil } // ToPostRequestInformation create new navigation property to activityStatistics for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAnalyticsActivityStatisticsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ActivityStatisticsable, requestConfiguration *ItemAnalyticsActivityStatisticsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemAnalyticsActivityStatisticsRequestBuilder) ToPostRequestInformation return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAnalyticsActivityStatisticsRequestBuilder when successful func (m *ItemAnalyticsActivityStatisticsRequestBuilder) WithUrl(rawUrl string)(*ItemAnalyticsActivityStatisticsRequestBuilder) { return NewItemAnalyticsActivityStatisticsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_analytics_request_builder.go b/users/item_analytics_request_builder.go index e0a066409bd..a428e295a52 100644 --- a/users/item_analytics_request_builder.go +++ b/users/item_analytics_request_builder.go @@ -60,6 +60,7 @@ func NewItemAnalyticsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee return NewItemAnalyticsRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property analytics for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAnalyticsRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemAnalyticsRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -76,6 +77,7 @@ func (m *ItemAnalyticsRequestBuilder) Delete(ctx context.Context, requestConfigu return nil } // Get get analytics from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserAnalyticsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAnalyticsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAnalyticsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserAnalyticsable, error) { @@ -96,6 +98,7 @@ func (m *ItemAnalyticsRequestBuilder) Get(ctx context.Context, requestConfigurat return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserAnalyticsable), nil } // Patch update the navigation property analytics in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserAnalyticsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAnalyticsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserAnalyticsable, requestConfiguration *ItemAnalyticsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserAnalyticsable, error) { @@ -116,6 +119,7 @@ func (m *ItemAnalyticsRequestBuilder) Patch(ctx context.Context, body ie233ee762 return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserAnalyticsable), nil } // ToDeleteRequestInformation delete navigation property analytics for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAnalyticsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemAnalyticsRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -127,6 +131,7 @@ func (m *ItemAnalyticsRequestBuilder) ToDeleteRequestInformation(ctx context.Con return requestInfo, nil } // ToGetRequestInformation get analytics from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAnalyticsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAnalyticsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,6 +146,7 @@ func (m *ItemAnalyticsRequestBuilder) ToGetRequestInformation(ctx context.Contex return requestInfo, nil } // ToPatchRequestInformation update the navigation property analytics in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAnalyticsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserAnalyticsable, requestConfiguration *ItemAnalyticsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +162,7 @@ func (m *ItemAnalyticsRequestBuilder) ToPatchRequestInformation(ctx context.Cont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAnalyticsRequestBuilder when successful func (m *ItemAnalyticsRequestBuilder) WithUrl(rawUrl string)(*ItemAnalyticsRequestBuilder) { return NewItemAnalyticsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_app_consent_requests_for_approval_app_consent_request_item_request_builder.go b/users/item_app_consent_requests_for_approval_app_consent_request_item_request_builder.go index 1e62f027eff..4035ffd67b9 100644 --- a/users/item_app_consent_requests_for_approval_app_consent_request_item_request_builder.go +++ b/users/item_app_consent_requests_for_approval_app_consent_request_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemAppConsentRequestsForApprovalAppConsentRequestItemRequestBuilder(raw return NewItemAppConsentRequestsForApprovalAppConsentRequestItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property appConsentRequestsForApproval for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAppConsentRequestsForApprovalAppConsentRequestItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemAppConsentRequestsForApprovalAppConsentRequestItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemAppConsentRequestsForApprovalAppConsentRequestItemRequestBuilder) D return nil } // Get get appConsentRequestsForApproval from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AppConsentRequestable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAppConsentRequestsForApprovalAppConsentRequestItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAppConsentRequestsForApprovalAppConsentRequestItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AppConsentRequestable, error) { @@ -91,6 +93,7 @@ func (m *ItemAppConsentRequestsForApprovalAppConsentRequestItemRequestBuilder) G return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AppConsentRequestable), nil } // Patch update the navigation property appConsentRequestsForApproval in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AppConsentRequestable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAppConsentRequestsForApprovalAppConsentRequestItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AppConsentRequestable, requestConfiguration *ItemAppConsentRequestsForApprovalAppConsentRequestItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AppConsentRequestable, error) { @@ -111,6 +114,7 @@ func (m *ItemAppConsentRequestsForApprovalAppConsentRequestItemRequestBuilder) P return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AppConsentRequestable), nil } // ToDeleteRequestInformation delete navigation property appConsentRequestsForApproval for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAppConsentRequestsForApprovalAppConsentRequestItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemAppConsentRequestsForApprovalAppConsentRequestItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemAppConsentRequestsForApprovalAppConsentRequestItemRequestBuilder) T return requestInfo, nil } // ToGetRequestInformation get appConsentRequestsForApproval from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAppConsentRequestsForApprovalAppConsentRequestItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAppConsentRequestsForApprovalAppConsentRequestItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemAppConsentRequestsForApprovalAppConsentRequestItemRequestBuilder) T return requestInfo, nil } // ToPatchRequestInformation update the navigation property appConsentRequestsForApproval in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAppConsentRequestsForApprovalAppConsentRequestItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AppConsentRequestable, requestConfiguration *ItemAppConsentRequestsForApprovalAppConsentRequestItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +162,7 @@ func (m *ItemAppConsentRequestsForApprovalAppConsentRequestItemRequestBuilder) U return NewItemAppConsentRequestsForApprovalItemUserConsentRequestsRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAppConsentRequestsForApprovalAppConsentRequestItemRequestBuilder when successful func (m *ItemAppConsentRequestsForApprovalAppConsentRequestItemRequestBuilder) WithUrl(rawUrl string)(*ItemAppConsentRequestsForApprovalAppConsentRequestItemRequestBuilder) { return NewItemAppConsentRequestsForApprovalAppConsentRequestItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_app_consent_requests_for_approval_count_request_builder.go b/users/item_app_consent_requests_for_approval_count_request_builder.go index b62cfe9ac65..448db993b51 100644 --- a/users/item_app_consent_requests_for_approval_count_request_builder.go +++ b/users/item_app_consent_requests_for_approval_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemAppConsentRequestsForApprovalCountRequestBuilder(rawUrl string, requ return NewItemAppConsentRequestsForApprovalCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAppConsentRequestsForApprovalCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAppConsentRequestsForApprovalCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemAppConsentRequestsForApprovalCountRequestBuilder) Get(ctx context.C return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAppConsentRequestsForApprovalCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAppConsentRequestsForApprovalCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemAppConsentRequestsForApprovalCountRequestBuilder) ToGetRequestInfor return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAppConsentRequestsForApprovalCountRequestBuilder when successful func (m *ItemAppConsentRequestsForApprovalCountRequestBuilder) WithUrl(rawUrl string)(*ItemAppConsentRequestsForApprovalCountRequestBuilder) { return NewItemAppConsentRequestsForApprovalCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_app_consent_requests_for_approval_filter_by_current_user_with_on_request_builder.go b/users/item_app_consent_requests_for_approval_filter_by_current_user_with_on_request_builder.go index d3b2fdb28b5..2b0a3aa166d 100644 --- a/users/item_app_consent_requests_for_approval_filter_by_current_user_with_on_request_builder.go +++ b/users/item_app_consent_requests_for_approval_filter_by_current_user_with_on_request_builder.go @@ -79,6 +79,7 @@ func (m *ItemAppConsentRequestsForApprovalFilterByCurrentUserWithOnRequestBuilde return res.(ItemAppConsentRequestsForApprovalFilterByCurrentUserWithOnResponseable), nil } // GetAsFilterByCurrentUserWithOnGetResponse retrieve a collection of appConsentRequest objects for which the current user is the reviewer and the status of the userConsentRequest for accessing the specified app is InProgress. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemAppConsentRequestsForApprovalFilterByCurrentUserWithOnGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -102,6 +103,7 @@ func (m *ItemAppConsentRequestsForApprovalFilterByCurrentUserWithOnRequestBuilde return res.(ItemAppConsentRequestsForApprovalFilterByCurrentUserWithOnGetResponseable), nil } // ToGetRequestInformation retrieve a collection of appConsentRequest objects for which the current user is the reviewer and the status of the userConsentRequest for accessing the specified app is InProgress. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAppConsentRequestsForApprovalFilterByCurrentUserWithOnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAppConsentRequestsForApprovalFilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -116,6 +118,7 @@ func (m *ItemAppConsentRequestsForApprovalFilterByCurrentUserWithOnRequestBuilde return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAppConsentRequestsForApprovalFilterByCurrentUserWithOnRequestBuilder when successful func (m *ItemAppConsentRequestsForApprovalFilterByCurrentUserWithOnRequestBuilder) WithUrl(rawUrl string)(*ItemAppConsentRequestsForApprovalFilterByCurrentUserWithOnRequestBuilder) { return NewItemAppConsentRequestsForApprovalFilterByCurrentUserWithOnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_app_consent_requests_for_approval_item_user_consent_requests_count_request_builder.go b/users/item_app_consent_requests_for_approval_item_user_consent_requests_count_request_builder.go index 8bec35afbf7..00d20945f2a 100644 --- a/users/item_app_consent_requests_for_approval_item_user_consent_requests_count_request_builder.go +++ b/users/item_app_consent_requests_for_approval_item_user_consent_requests_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemAppConsentRequestsForApprovalItemUserConsentRequestsCountRequestBuil return NewItemAppConsentRequestsForApprovalItemUserConsentRequestsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAppConsentRequestsForApprovalItemUserConsentRequestsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsCountRequestBui return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAppConsentRequestsForApprovalItemUserConsentRequestsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsCountRequestBui return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAppConsentRequestsForApprovalItemUserConsentRequestsCountRequestBuilder when successful func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsCountRequestBuilder) WithUrl(rawUrl string)(*ItemAppConsentRequestsForApprovalItemUserConsentRequestsCountRequestBuilder) { return NewItemAppConsentRequestsForApprovalItemUserConsentRequestsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_app_consent_requests_for_approval_item_user_consent_requests_item_approval_request_builder.go b/users/item_app_consent_requests_for_approval_item_user_consent_requests_item_approval_request_builder.go index 2618b1175d7..67759dca0e8 100644 --- a/users/item_app_consent_requests_for_approval_item_user_consent_requests_item_approval_request_builder.go +++ b/users/item_app_consent_requests_for_approval_item_user_consent_requests_item_approval_request_builder.go @@ -55,6 +55,7 @@ func NewItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalRequ return NewItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property approval for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalReq return nil } // Get approval decisions associated with a request. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Approvalable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Approvalable, error) { @@ -91,6 +93,7 @@ func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalReq return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Approvalable), nil } // Patch update the navigation property approval in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Approvalable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Approvalable, requestConfiguration *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Approvalable, error) { @@ -116,6 +119,7 @@ func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalReq return NewItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalStepsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property approval for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -127,6 +131,7 @@ func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalReq return requestInfo, nil } // ToGetRequestInformation approval decisions associated with a request. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,6 +146,7 @@ func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalReq return requestInfo, nil } // ToPatchRequestInformation update the navigation property approval in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Approvalable, requestConfiguration *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +162,7 @@ func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalRequestBuilder when successful func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalRequestBuilder) WithUrl(rawUrl string)(*ItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalRequestBuilder) { return NewItemAppConsentRequestsForApprovalItemUserConsentRequestsItemApprovalRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_app_consent_requests_for_approval_item_user_consent_requests_request_builder.go b/users/item_app_consent_requests_for_approval_item_user_consent_requests_request_builder.go index 531c0969195..8e30969eb17 100644 --- a/users/item_app_consent_requests_for_approval_item_user_consent_requests_request_builder.go +++ b/users/item_app_consent_requests_for_approval_item_user_consent_requests_request_builder.go @@ -47,6 +47,7 @@ type ItemAppConsentRequestsForApprovalItemUserConsentRequestsRequestBuilderPostR Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByUserConsentRequestId provides operations to manage the userConsentRequests property of the microsoft.graph.appConsentRequest entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAppConsentRequestsForApprovalItemUserConsentRequestsUserConsentRequestItemRequestBuilder when successful func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsRequestBuilder) ByUserConsentRequestId(userConsentRequestId string)(*ItemAppConsentRequestsForApprovalItemUserConsentRequestsUserConsentRequestItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,11 +78,13 @@ func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsRequestBuilder) return NewItemAppConsentRequestsForApprovalItemUserConsentRequestsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // FilterByCurrentUserWithOn provides operations to call the filterByCurrentUser method. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAppConsentRequestsForApprovalItemUserConsentRequestsFilterByCurrentUserWithOnRequestBuilder when successful func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsRequestBuilder) FilterByCurrentUserWithOn(on *string)(*ItemAppConsentRequestsForApprovalItemUserConsentRequestsFilterByCurrentUserWithOnRequestBuilder) { return NewItemAppConsentRequestsForApprovalItemUserConsentRequestsFilterByCurrentUserWithOnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, on) } // Get a list of pending user consent requests. Supports $filter (eq). +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserConsentRequestCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAppConsentRequestsForApprovalItemUserConsentRequestsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserConsentRequestCollectionResponseable, error) { @@ -102,6 +105,7 @@ func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserConsentRequestCollectionResponseable), nil } // Post create new navigation property to userConsentRequests for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserConsentRequestable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserConsentRequestable, requestConfiguration *ItemAppConsentRequestsForApprovalItemUserConsentRequestsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserConsentRequestable, error) { @@ -122,6 +126,7 @@ func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserConsentRequestable), nil } // ToGetRequestInformation a list of pending user consent requests. Supports $filter (eq). +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAppConsentRequestsForApprovalItemUserConsentRequestsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsRequestBuilder) return requestInfo, nil } // ToPostRequestInformation create new navigation property to userConsentRequests for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserConsentRequestable, requestConfiguration *ItemAppConsentRequestsForApprovalItemUserConsentRequestsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAppConsentRequestsForApprovalItemUserConsentRequestsRequestBuilder when successful func (m *ItemAppConsentRequestsForApprovalItemUserConsentRequestsRequestBuilder) WithUrl(rawUrl string)(*ItemAppConsentRequestsForApprovalItemUserConsentRequestsRequestBuilder) { return NewItemAppConsentRequestsForApprovalItemUserConsentRequestsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_app_consent_requests_for_approval_request_builder.go b/users/item_app_consent_requests_for_approval_request_builder.go index 64c2272fe85..6c0e7dcd6f3 100644 --- a/users/item_app_consent_requests_for_approval_request_builder.go +++ b/users/item_app_consent_requests_for_approval_request_builder.go @@ -47,6 +47,7 @@ type ItemAppConsentRequestsForApprovalRequestBuilderPostRequestConfiguration str Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAppConsentRequestId provides operations to manage the appConsentRequestsForApproval property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAppConsentRequestsForApprovalAppConsentRequestItemRequestBuilder when successful func (m *ItemAppConsentRequestsForApprovalRequestBuilder) ByAppConsentRequestId(appConsentRequestId string)(*ItemAppConsentRequestsForApprovalAppConsentRequestItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,11 +78,13 @@ func (m *ItemAppConsentRequestsForApprovalRequestBuilder) Count()(*ItemAppConsen return NewItemAppConsentRequestsForApprovalCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // FilterByCurrentUserWithOn provides operations to call the filterByCurrentUser method. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAppConsentRequestsForApprovalFilterByCurrentUserWithOnRequestBuilder when successful func (m *ItemAppConsentRequestsForApprovalRequestBuilder) FilterByCurrentUserWithOn(on *string)(*ItemAppConsentRequestsForApprovalFilterByCurrentUserWithOnRequestBuilder) { return NewItemAppConsentRequestsForApprovalFilterByCurrentUserWithOnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, on) } // Get get appConsentRequestsForApproval from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AppConsentRequestCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAppConsentRequestsForApprovalRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAppConsentRequestsForApprovalRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AppConsentRequestCollectionResponseable, error) { @@ -102,6 +105,7 @@ func (m *ItemAppConsentRequestsForApprovalRequestBuilder) Get(ctx context.Contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AppConsentRequestCollectionResponseable), nil } // Post create new navigation property to appConsentRequestsForApproval for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AppConsentRequestable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAppConsentRequestsForApprovalRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AppConsentRequestable, requestConfiguration *ItemAppConsentRequestsForApprovalRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AppConsentRequestable, error) { @@ -122,6 +126,7 @@ func (m *ItemAppConsentRequestsForApprovalRequestBuilder) Post(ctx context.Conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AppConsentRequestable), nil } // ToGetRequestInformation get appConsentRequestsForApproval from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAppConsentRequestsForApprovalRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAppConsentRequestsForApprovalRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemAppConsentRequestsForApprovalRequestBuilder) ToGetRequestInformatio return requestInfo, nil } // ToPostRequestInformation create new navigation property to appConsentRequestsForApproval for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAppConsentRequestsForApprovalRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AppConsentRequestable, requestConfiguration *ItemAppConsentRequestsForApprovalRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemAppConsentRequestsForApprovalRequestBuilder) ToPostRequestInformati return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAppConsentRequestsForApprovalRequestBuilder when successful func (m *ItemAppConsentRequestsForApprovalRequestBuilder) WithUrl(rawUrl string)(*ItemAppConsentRequestsForApprovalRequestBuilder) { return NewItemAppConsentRequestsForApprovalRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_app_role_assigned_resources_count_request_builder.go b/users/item_app_role_assigned_resources_count_request_builder.go index 93a716f587f..74732b12a31 100644 --- a/users/item_app_role_assigned_resources_count_request_builder.go +++ b/users/item_app_role_assigned_resources_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemAppRoleAssignedResourcesCountRequestBuilder(rawUrl string, requestAd return NewItemAppRoleAssignedResourcesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAppRoleAssignedResourcesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAppRoleAssignedResourcesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemAppRoleAssignedResourcesCountRequestBuilder) Get(ctx context.Contex return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAppRoleAssignedResourcesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAppRoleAssignedResourcesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemAppRoleAssignedResourcesCountRequestBuilder) ToGetRequestInformatio return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAppRoleAssignedResourcesCountRequestBuilder when successful func (m *ItemAppRoleAssignedResourcesCountRequestBuilder) WithUrl(rawUrl string)(*ItemAppRoleAssignedResourcesCountRequestBuilder) { return NewItemAppRoleAssignedResourcesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_app_role_assigned_resources_request_builder.go b/users/item_app_role_assigned_resources_request_builder.go index eeb5ff5c883..fea324f712c 100644 --- a/users/item_app_role_assigned_resources_request_builder.go +++ b/users/item_app_role_assigned_resources_request_builder.go @@ -40,6 +40,7 @@ type ItemAppRoleAssignedResourcesRequestBuilderGetRequestConfiguration struct { QueryParameters *ItemAppRoleAssignedResourcesRequestBuilderGetQueryParameters } // ByServicePrincipalId provides operations to manage the appRoleAssignedResources property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAppRoleAssignedResourcesServicePrincipalItemRequestBuilder when successful func (m *ItemAppRoleAssignedResourcesRequestBuilder) ByServicePrincipalId(servicePrincipalId string)(*ItemAppRoleAssignedResourcesServicePrincipalItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -70,6 +71,7 @@ func (m *ItemAppRoleAssignedResourcesRequestBuilder) Count()(*ItemAppRoleAssigne return NewItemAppRoleAssignedResourcesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get appRoleAssignedResources from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServicePrincipalCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAppRoleAssignedResourcesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAppRoleAssignedResourcesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServicePrincipalCollectionResponseable, error) { @@ -90,6 +92,7 @@ func (m *ItemAppRoleAssignedResourcesRequestBuilder) Get(ctx context.Context, re return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServicePrincipalCollectionResponseable), nil } // ToGetRequestInformation get appRoleAssignedResources from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAppRoleAssignedResourcesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAppRoleAssignedResourcesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -104,6 +107,7 @@ func (m *ItemAppRoleAssignedResourcesRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAppRoleAssignedResourcesRequestBuilder when successful func (m *ItemAppRoleAssignedResourcesRequestBuilder) WithUrl(rawUrl string)(*ItemAppRoleAssignedResourcesRequestBuilder) { return NewItemAppRoleAssignedResourcesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_app_role_assigned_resources_service_principal_item_request_builder.go b/users/item_app_role_assigned_resources_service_principal_item_request_builder.go index 05e61e5aeea..4eb92f4a9a9 100644 --- a/users/item_app_role_assigned_resources_service_principal_item_request_builder.go +++ b/users/item_app_role_assigned_resources_service_principal_item_request_builder.go @@ -41,6 +41,7 @@ func NewItemAppRoleAssignedResourcesServicePrincipalItemRequestBuilder(rawUrl st return NewItemAppRoleAssignedResourcesServicePrincipalItemRequestBuilderInternal(urlParams, requestAdapter) } // Get get appRoleAssignedResources from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServicePrincipalable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAppRoleAssignedResourcesServicePrincipalItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAppRoleAssignedResourcesServicePrincipalItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServicePrincipalable, error) { @@ -61,6 +62,7 @@ func (m *ItemAppRoleAssignedResourcesServicePrincipalItemRequestBuilder) Get(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServicePrincipalable), nil } // ToGetRequestInformation get appRoleAssignedResources from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAppRoleAssignedResourcesServicePrincipalItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAppRoleAssignedResourcesServicePrincipalItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemAppRoleAssignedResourcesServicePrincipalItemRequestBuilder) ToGetRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAppRoleAssignedResourcesServicePrincipalItemRequestBuilder when successful func (m *ItemAppRoleAssignedResourcesServicePrincipalItemRequestBuilder) WithUrl(rawUrl string)(*ItemAppRoleAssignedResourcesServicePrincipalItemRequestBuilder) { return NewItemAppRoleAssignedResourcesServicePrincipalItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_app_role_assigned_resources_with_app_id_request_builder.go b/users/item_app_role_assigned_resources_with_app_id_request_builder.go index c8cdc638e34..daf8ff1817f 100644 --- a/users/item_app_role_assigned_resources_with_app_id_request_builder.go +++ b/users/item_app_role_assigned_resources_with_app_id_request_builder.go @@ -44,6 +44,7 @@ func NewItemAppRoleAssignedResourcesWithAppIdRequestBuilder(rawUrl string, reque return NewItemAppRoleAssignedResourcesWithAppIdRequestBuilderInternal(urlParams, requestAdapter, nil) } // Get get appRoleAssignedResources from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServicePrincipalable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAppRoleAssignedResourcesWithAppIdRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAppRoleAssignedResourcesWithAppIdRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServicePrincipalable, error) { @@ -64,6 +65,7 @@ func (m *ItemAppRoleAssignedResourcesWithAppIdRequestBuilder) Get(ctx context.Co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServicePrincipalable), nil } // ToGetRequestInformation get appRoleAssignedResources from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAppRoleAssignedResourcesWithAppIdRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAppRoleAssignedResourcesWithAppIdRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -78,6 +80,7 @@ func (m *ItemAppRoleAssignedResourcesWithAppIdRequestBuilder) ToGetRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAppRoleAssignedResourcesWithAppIdRequestBuilder when successful func (m *ItemAppRoleAssignedResourcesWithAppIdRequestBuilder) WithUrl(rawUrl string)(*ItemAppRoleAssignedResourcesWithAppIdRequestBuilder) { return NewItemAppRoleAssignedResourcesWithAppIdRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_app_role_assignments_app_role_assignment_item_request_builder.go b/users/item_app_role_assignments_app_role_assignment_item_request_builder.go index cc5c315d1c5..80ac0da1a8b 100644 --- a/users/item_app_role_assignments_app_role_assignment_item_request_builder.go +++ b/users/item_app_role_assignments_app_role_assignment_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemAppRoleAssignmentsAppRoleAssignmentItemRequestBuilder(rawUrl string, return NewItemAppRoleAssignmentsAppRoleAssignmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete an appRoleAssignment that has been granted to a user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -74,6 +75,7 @@ func (m *ItemAppRoleAssignmentsAppRoleAssignmentItemRequestBuilder) Delete(ctx c return nil } // Get represents the app roles a user has been granted for an application. Supports $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AppRoleAssignmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAppRoleAssignmentsAppRoleAssignmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAppRoleAssignmentsAppRoleAssignmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AppRoleAssignmentable, error) { @@ -94,6 +96,7 @@ func (m *ItemAppRoleAssignmentsAppRoleAssignmentItemRequestBuilder) Get(ctx cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AppRoleAssignmentable), nil } // Patch update the navigation property appRoleAssignments in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AppRoleAssignmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAppRoleAssignmentsAppRoleAssignmentItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AppRoleAssignmentable, requestConfiguration *ItemAppRoleAssignmentsAppRoleAssignmentItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AppRoleAssignmentable, error) { @@ -114,6 +117,7 @@ func (m *ItemAppRoleAssignmentsAppRoleAssignmentItemRequestBuilder) Patch(ctx co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AppRoleAssignmentable), nil } // ToDeleteRequestInformation delete an appRoleAssignment that has been granted to a user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAppRoleAssignmentsAppRoleAssignmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemAppRoleAssignmentsAppRoleAssignmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -125,6 +129,7 @@ func (m *ItemAppRoleAssignmentsAppRoleAssignmentItemRequestBuilder) ToDeleteRequ return requestInfo, nil } // ToGetRequestInformation represents the app roles a user has been granted for an application. Supports $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAppRoleAssignmentsAppRoleAssignmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAppRoleAssignmentsAppRoleAssignmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -139,6 +144,7 @@ func (m *ItemAppRoleAssignmentsAppRoleAssignmentItemRequestBuilder) ToGetRequest return requestInfo, nil } // ToPatchRequestInformation update the navigation property appRoleAssignments in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAppRoleAssignmentsAppRoleAssignmentItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AppRoleAssignmentable, requestConfiguration *ItemAppRoleAssignmentsAppRoleAssignmentItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -154,6 +160,7 @@ func (m *ItemAppRoleAssignmentsAppRoleAssignmentItemRequestBuilder) ToPatchReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAppRoleAssignmentsAppRoleAssignmentItemRequestBuilder when successful func (m *ItemAppRoleAssignmentsAppRoleAssignmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemAppRoleAssignmentsAppRoleAssignmentItemRequestBuilder) { return NewItemAppRoleAssignmentsAppRoleAssignmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_app_role_assignments_count_request_builder.go b/users/item_app_role_assignments_count_request_builder.go index 24d0f1987fa..a82c36bff6a 100644 --- a/users/item_app_role_assignments_count_request_builder.go +++ b/users/item_app_role_assignments_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemAppRoleAssignmentsCountRequestBuilder(rawUrl string, requestAdapter return NewItemAppRoleAssignmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAppRoleAssignmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAppRoleAssignmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemAppRoleAssignmentsCountRequestBuilder) Get(ctx context.Context, req return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAppRoleAssignmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAppRoleAssignmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemAppRoleAssignmentsCountRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAppRoleAssignmentsCountRequestBuilder when successful func (m *ItemAppRoleAssignmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemAppRoleAssignmentsCountRequestBuilder) { return NewItemAppRoleAssignmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_app_role_assignments_request_builder.go b/users/item_app_role_assignments_request_builder.go index 2d9e72ff6a2..99fc5e29320 100644 --- a/users/item_app_role_assignments_request_builder.go +++ b/users/item_app_role_assignments_request_builder.go @@ -47,6 +47,7 @@ type ItemAppRoleAssignmentsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAppRoleAssignmentId provides operations to manage the appRoleAssignments property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAppRoleAssignmentsAppRoleAssignmentItemRequestBuilder when successful func (m *ItemAppRoleAssignmentsRequestBuilder) ByAppRoleAssignmentId(appRoleAssignmentId string)(*ItemAppRoleAssignmentsAppRoleAssignmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemAppRoleAssignmentsRequestBuilder) Count()(*ItemAppRoleAssignmentsCo return NewItemAppRoleAssignmentsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get retrieve the list of appRoleAssignments that a user has been granted. This operation also returns app role assignments granted to groups that the user is a direct member of. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AppRoleAssignmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -99,7 +101,8 @@ func (m *ItemAppRoleAssignmentsRequestBuilder) Get(ctx context.Context, requestC } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AppRoleAssignmentCollectionResponseable), nil } -// Post use this API to assign an app role to a user. To grant an app role assignment to a user, you need three identifiers: +// Post use this API to assign an app role to a user, creating an appRoleAssignment object. To grant an app role assignment to a user, you need three identifiers: +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AppRoleAssignmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -123,6 +126,7 @@ func (m *ItemAppRoleAssignmentsRequestBuilder) Post(ctx context.Context, body ie return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AppRoleAssignmentable), nil } // ToGetRequestInformation retrieve the list of appRoleAssignments that a user has been granted. This operation also returns app role assignments granted to groups that the user is a direct member of. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAppRoleAssignmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAppRoleAssignmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,7 +140,8 @@ func (m *ItemAppRoleAssignmentsRequestBuilder) ToGetRequestInformation(ctx conte requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPostRequestInformation use this API to assign an app role to a user. To grant an app role assignment to a user, you need three identifiers: +// ToPostRequestInformation use this API to assign an app role to a user, creating an appRoleAssignment object. To grant an app role assignment to a user, you need three identifiers: +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAppRoleAssignmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AppRoleAssignmentable, requestConfiguration *ItemAppRoleAssignmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -152,6 +157,7 @@ func (m *ItemAppRoleAssignmentsRequestBuilder) ToPostRequestInformation(ctx cont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAppRoleAssignmentsRequestBuilder when successful func (m *ItemAppRoleAssignmentsRequestBuilder) WithUrl(rawUrl string)(*ItemAppRoleAssignmentsRequestBuilder) { return NewItemAppRoleAssignmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_approvals_approval_item_request_builder.go b/users/item_approvals_approval_item_request_builder.go index de19f1e24fd..56415bcd27e 100644 --- a/users/item_approvals_approval_item_request_builder.go +++ b/users/item_approvals_approval_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemApprovalsApprovalItemRequestBuilder(rawUrl string, requestAdapter i2 return NewItemApprovalsApprovalItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property approvals for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemApprovalsApprovalItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemApprovalsApprovalItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemApprovalsApprovalItemRequestBuilder) Delete(ctx context.Context, re return nil } // Get get approvals from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Approvalable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemApprovalsApprovalItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemApprovalsApprovalItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Approvalable, error) { @@ -91,6 +93,7 @@ func (m *ItemApprovalsApprovalItemRequestBuilder) Get(ctx context.Context, reque return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Approvalable), nil } // Patch update the navigation property approvals in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Approvalable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemApprovalsApprovalItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Approvalable, requestConfiguration *ItemApprovalsApprovalItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Approvalable, error) { @@ -116,6 +119,7 @@ func (m *ItemApprovalsApprovalItemRequestBuilder) Steps()(*ItemApprovalsItemStep return NewItemApprovalsItemStepsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property approvals for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemApprovalsApprovalItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemApprovalsApprovalItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -127,6 +131,7 @@ func (m *ItemApprovalsApprovalItemRequestBuilder) ToDeleteRequestInformation(ctx return requestInfo, nil } // ToGetRequestInformation get approvals from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemApprovalsApprovalItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemApprovalsApprovalItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,6 +146,7 @@ func (m *ItemApprovalsApprovalItemRequestBuilder) ToGetRequestInformation(ctx co return requestInfo, nil } // ToPatchRequestInformation update the navigation property approvals in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemApprovalsApprovalItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Approvalable, requestConfiguration *ItemApprovalsApprovalItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +162,7 @@ func (m *ItemApprovalsApprovalItemRequestBuilder) ToPatchRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemApprovalsApprovalItemRequestBuilder when successful func (m *ItemApprovalsApprovalItemRequestBuilder) WithUrl(rawUrl string)(*ItemApprovalsApprovalItemRequestBuilder) { return NewItemApprovalsApprovalItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_approvals_count_request_builder.go b/users/item_approvals_count_request_builder.go index 94ee03ffb0c..e225e578dd4 100644 --- a/users/item_approvals_count_request_builder.go +++ b/users/item_approvals_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemApprovalsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f return NewItemApprovalsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemApprovalsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemApprovalsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemApprovalsCountRequestBuilder) Get(ctx context.Context, requestConfi return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemApprovalsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemApprovalsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemApprovalsCountRequestBuilder) ToGetRequestInformation(ctx context.C return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemApprovalsCountRequestBuilder when successful func (m *ItemApprovalsCountRequestBuilder) WithUrl(rawUrl string)(*ItemApprovalsCountRequestBuilder) { return NewItemApprovalsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_approvals_filter_by_current_user_with_on_request_builder.go b/users/item_approvals_filter_by_current_user_with_on_request_builder.go index 26546ea7eb0..a20f4f915a3 100644 --- a/users/item_approvals_filter_by_current_user_with_on_request_builder.go +++ b/users/item_approvals_filter_by_current_user_with_on_request_builder.go @@ -79,6 +79,7 @@ func (m *ItemApprovalsFilterByCurrentUserWithOnRequestBuilder) Get(ctx context.C return res.(ItemApprovalsFilterByCurrentUserWithOnResponseable), nil } // GetAsFilterByCurrentUserWithOnGetResponse in Microsoft Entra entitlement management, return a collection of access package assignment approvals. The objects returned are those that are in scope for approval by the calling user. In PIM for groups, return a collection of assignment approvals. The objects returned are those that are in scope for approval by the calling user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemApprovalsFilterByCurrentUserWithOnGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -102,6 +103,7 @@ func (m *ItemApprovalsFilterByCurrentUserWithOnRequestBuilder) GetAsFilterByCurr return res.(ItemApprovalsFilterByCurrentUserWithOnGetResponseable), nil } // ToGetRequestInformation in Microsoft Entra entitlement management, return a collection of access package assignment approvals. The objects returned are those that are in scope for approval by the calling user. In PIM for groups, return a collection of assignment approvals. The objects returned are those that are in scope for approval by the calling user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemApprovalsFilterByCurrentUserWithOnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemApprovalsFilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -116,6 +118,7 @@ func (m *ItemApprovalsFilterByCurrentUserWithOnRequestBuilder) ToGetRequestInfor return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemApprovalsFilterByCurrentUserWithOnRequestBuilder when successful func (m *ItemApprovalsFilterByCurrentUserWithOnRequestBuilder) WithUrl(rawUrl string)(*ItemApprovalsFilterByCurrentUserWithOnRequestBuilder) { return NewItemApprovalsFilterByCurrentUserWithOnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_approvals_item_steps_approval_step_item_request_builder.go b/users/item_approvals_item_steps_approval_step_item_request_builder.go index 89e2b8f830b..dac68f387ca 100644 --- a/users/item_approvals_item_steps_approval_step_item_request_builder.go +++ b/users/item_approvals_item_steps_approval_step_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemApprovalsItemStepsApprovalStepItemRequestBuilder(rawUrl string, requ return NewItemApprovalsItemStepsApprovalStepItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property steps for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemApprovalsItemStepsApprovalStepItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemApprovalsItemStepsApprovalStepItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemApprovalsItemStepsApprovalStepItemRequestBuilder) Delete(ctx contex return nil } // Get used to represent the decision associated with a single step in the approval process configured in approvalStage. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ApprovalStepable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemApprovalsItemStepsApprovalStepItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemApprovalsItemStepsApprovalStepItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalStepable, error) { @@ -91,6 +93,7 @@ func (m *ItemApprovalsItemStepsApprovalStepItemRequestBuilder) Get(ctx context.C return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalStepable), nil } // Patch update the navigation property steps in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ApprovalStepable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemApprovalsItemStepsApprovalStepItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalStepable, requestConfiguration *ItemApprovalsItemStepsApprovalStepItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalStepable, error) { @@ -111,6 +114,7 @@ func (m *ItemApprovalsItemStepsApprovalStepItemRequestBuilder) Patch(ctx context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalStepable), nil } // ToDeleteRequestInformation delete navigation property steps for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemApprovalsItemStepsApprovalStepItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemApprovalsItemStepsApprovalStepItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemApprovalsItemStepsApprovalStepItemRequestBuilder) ToDeleteRequestIn return requestInfo, nil } // ToGetRequestInformation used to represent the decision associated with a single step in the approval process configured in approvalStage. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemApprovalsItemStepsApprovalStepItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemApprovalsItemStepsApprovalStepItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemApprovalsItemStepsApprovalStepItemRequestBuilder) ToGetRequestInfor return requestInfo, nil } // ToPatchRequestInformation update the navigation property steps in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemApprovalsItemStepsApprovalStepItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalStepable, requestConfiguration *ItemApprovalsItemStepsApprovalStepItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemApprovalsItemStepsApprovalStepItemRequestBuilder) ToPatchRequestInf return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemApprovalsItemStepsApprovalStepItemRequestBuilder when successful func (m *ItemApprovalsItemStepsApprovalStepItemRequestBuilder) WithUrl(rawUrl string)(*ItemApprovalsItemStepsApprovalStepItemRequestBuilder) { return NewItemApprovalsItemStepsApprovalStepItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_approvals_item_steps_count_request_builder.go b/users/item_approvals_item_steps_count_request_builder.go index 3bbae1c35fa..55ce975db0e 100644 --- a/users/item_approvals_item_steps_count_request_builder.go +++ b/users/item_approvals_item_steps_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemApprovalsItemStepsCountRequestBuilder(rawUrl string, requestAdapter return NewItemApprovalsItemStepsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemApprovalsItemStepsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemApprovalsItemStepsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemApprovalsItemStepsCountRequestBuilder) Get(ctx context.Context, req return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemApprovalsItemStepsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemApprovalsItemStepsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemApprovalsItemStepsCountRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemApprovalsItemStepsCountRequestBuilder when successful func (m *ItemApprovalsItemStepsCountRequestBuilder) WithUrl(rawUrl string)(*ItemApprovalsItemStepsCountRequestBuilder) { return NewItemApprovalsItemStepsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_approvals_item_steps_request_builder.go b/users/item_approvals_item_steps_request_builder.go index eb8527ab316..09c85ea0eee 100644 --- a/users/item_approvals_item_steps_request_builder.go +++ b/users/item_approvals_item_steps_request_builder.go @@ -47,6 +47,7 @@ type ItemApprovalsItemStepsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByApprovalStepId provides operations to manage the steps property of the microsoft.graph.approval entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemApprovalsItemStepsApprovalStepItemRequestBuilder when successful func (m *ItemApprovalsItemStepsRequestBuilder) ByApprovalStepId(approvalStepId string)(*ItemApprovalsItemStepsApprovalStepItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemApprovalsItemStepsRequestBuilder) Count()(*ItemApprovalsItemStepsCo return NewItemApprovalsItemStepsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get used to represent the decision associated with a single step in the approval process configured in approvalStage. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ApprovalStepCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemApprovalsItemStepsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemApprovalsItemStepsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalStepCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemApprovalsItemStepsRequestBuilder) Get(ctx context.Context, requestC return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalStepCollectionResponseable), nil } // Post create new navigation property to steps for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ApprovalStepable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemApprovalsItemStepsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalStepable, requestConfiguration *ItemApprovalsItemStepsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalStepable, error) { @@ -117,6 +120,7 @@ func (m *ItemApprovalsItemStepsRequestBuilder) Post(ctx context.Context, body ie return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalStepable), nil } // ToGetRequestInformation used to represent the decision associated with a single step in the approval process configured in approvalStage. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemApprovalsItemStepsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemApprovalsItemStepsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemApprovalsItemStepsRequestBuilder) ToGetRequestInformation(ctx conte return requestInfo, nil } // ToPostRequestInformation create new navigation property to steps for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemApprovalsItemStepsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalStepable, requestConfiguration *ItemApprovalsItemStepsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemApprovalsItemStepsRequestBuilder) ToPostRequestInformation(ctx cont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemApprovalsItemStepsRequestBuilder when successful func (m *ItemApprovalsItemStepsRequestBuilder) WithUrl(rawUrl string)(*ItemApprovalsItemStepsRequestBuilder) { return NewItemApprovalsItemStepsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_approvals_request_builder.go b/users/item_approvals_request_builder.go index 7ed18ec1985..93dc5583e17 100644 --- a/users/item_approvals_request_builder.go +++ b/users/item_approvals_request_builder.go @@ -47,6 +47,7 @@ type ItemApprovalsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByApprovalId provides operations to manage the approvals property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemApprovalsApprovalItemRequestBuilder when successful func (m *ItemApprovalsRequestBuilder) ByApprovalId(approvalId string)(*ItemApprovalsApprovalItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,11 +78,13 @@ func (m *ItemApprovalsRequestBuilder) Count()(*ItemApprovalsCountRequestBuilder) return NewItemApprovalsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // FilterByCurrentUserWithOn provides operations to call the filterByCurrentUser method. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemApprovalsFilterByCurrentUserWithOnRequestBuilder when successful func (m *ItemApprovalsRequestBuilder) FilterByCurrentUserWithOn(on *string)(*ItemApprovalsFilterByCurrentUserWithOnRequestBuilder) { return NewItemApprovalsFilterByCurrentUserWithOnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, on) } // Get get approvals from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ApprovalCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemApprovalsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemApprovalsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalCollectionResponseable, error) { @@ -102,6 +105,7 @@ func (m *ItemApprovalsRequestBuilder) Get(ctx context.Context, requestConfigurat return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApprovalCollectionResponseable), nil } // Post create new navigation property to approvals for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Approvalable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemApprovalsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Approvalable, requestConfiguration *ItemApprovalsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Approvalable, error) { @@ -122,6 +126,7 @@ func (m *ItemApprovalsRequestBuilder) Post(ctx context.Context, body ie233ee762e return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Approvalable), nil } // ToGetRequestInformation get approvals from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemApprovalsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemApprovalsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemApprovalsRequestBuilder) ToGetRequestInformation(ctx context.Contex return requestInfo, nil } // ToPostRequestInformation create new navigation property to approvals for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemApprovalsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Approvalable, requestConfiguration *ItemApprovalsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemApprovalsRequestBuilder) ToPostRequestInformation(ctx context.Conte return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemApprovalsRequestBuilder when successful func (m *ItemApprovalsRequestBuilder) WithUrl(rawUrl string)(*ItemApprovalsRequestBuilder) { return NewItemApprovalsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_assign_license_request_builder.go b/users/item_assign_license_request_builder.go index 0ac23e032a9..a1967b1304f 100644 --- a/users/item_assign_license_request_builder.go +++ b/users/item_assign_license_request_builder.go @@ -32,6 +32,7 @@ func NewItemAssignLicenseRequestBuilder(rawUrl string, requestAdapter i2ae4187f7 return NewItemAssignLicenseRequestBuilderInternal(urlParams, requestAdapter) } // 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. To get the subscriptions available in the directory, perform a GET subscribedSkus request. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemAssignLicenseRequestBuilder) Post(ctx context.Context, body ItemAss return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable), nil } // 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. To get the subscriptions available in the directory, perform a GET subscribedSkus request. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // 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) @@ -70,6 +72,7 @@ func (m *ItemAssignLicenseRequestBuilder) ToPostRequestInformation(ctx context.C return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAssignLicenseRequestBuilder when successful func (m *ItemAssignLicenseRequestBuilder) WithUrl(rawUrl string)(*ItemAssignLicenseRequestBuilder) { return NewItemAssignLicenseRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_authentication_email_methods_count_request_builder.go b/users/item_authentication_email_methods_count_request_builder.go index 82ec0b1d830..00ddf126546 100644 --- a/users/item_authentication_email_methods_count_request_builder.go +++ b/users/item_authentication_email_methods_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemAuthenticationEmailMethodsCountRequestBuilder(rawUrl string, request return NewItemAuthenticationEmailMethodsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAuthenticationEmailMethodsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAuthenticationEmailMethodsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemAuthenticationEmailMethodsCountRequestBuilder) Get(ctx context.Cont return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationEmailMethodsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationEmailMethodsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemAuthenticationEmailMethodsCountRequestBuilder) ToGetRequestInformat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationEmailMethodsCountRequestBuilder when successful func (m *ItemAuthenticationEmailMethodsCountRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationEmailMethodsCountRequestBuilder) { return NewItemAuthenticationEmailMethodsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_authentication_email_methods_email_authentication_method_item_request_builder.go b/users/item_authentication_email_methods_email_authentication_method_item_request_builder.go index b0164628388..f97642d08ae 100644 --- a/users/item_authentication_email_methods_email_authentication_method_item_request_builder.go +++ b/users/item_authentication_email_methods_email_authentication_method_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemAuthenticationEmailMethodsEmailAuthenticationMethodItemRequestBuilde return NewItemAuthenticationEmailMethodsEmailAuthenticationMethodItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete deletes a user's email Authentication Method object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -74,6 +75,7 @@ func (m *ItemAuthenticationEmailMethodsEmailAuthenticationMethodItemRequestBuild return nil } // Get represents the email addresses registered to a user for authentication. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EmailAuthenticationMethodable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAuthenticationEmailMethodsEmailAuthenticationMethodItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAuthenticationEmailMethodsEmailAuthenticationMethodItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EmailAuthenticationMethodable, error) { @@ -94,6 +96,7 @@ func (m *ItemAuthenticationEmailMethodsEmailAuthenticationMethodItemRequestBuild return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EmailAuthenticationMethodable), nil } // Patch update a user's email address associated with an email Authentication Method object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EmailAuthenticationMethodable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -117,6 +120,7 @@ func (m *ItemAuthenticationEmailMethodsEmailAuthenticationMethodItemRequestBuild return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EmailAuthenticationMethodable), nil } // ToDeleteRequestInformation deletes a user's email Authentication Method object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationEmailMethodsEmailAuthenticationMethodItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationEmailMethodsEmailAuthenticationMethodItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -128,6 +132,7 @@ func (m *ItemAuthenticationEmailMethodsEmailAuthenticationMethodItemRequestBuild return requestInfo, nil } // ToGetRequestInformation represents the email addresses registered to a user for authentication. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationEmailMethodsEmailAuthenticationMethodItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationEmailMethodsEmailAuthenticationMethodItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -142,6 +147,7 @@ func (m *ItemAuthenticationEmailMethodsEmailAuthenticationMethodItemRequestBuild return requestInfo, nil } // ToPatchRequestInformation update a user's email address associated with an email Authentication Method object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationEmailMethodsEmailAuthenticationMethodItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EmailAuthenticationMethodable, requestConfiguration *ItemAuthenticationEmailMethodsEmailAuthenticationMethodItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -157,6 +163,7 @@ func (m *ItemAuthenticationEmailMethodsEmailAuthenticationMethodItemRequestBuild return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationEmailMethodsEmailAuthenticationMethodItemRequestBuilder when successful func (m *ItemAuthenticationEmailMethodsEmailAuthenticationMethodItemRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationEmailMethodsEmailAuthenticationMethodItemRequestBuilder) { return NewItemAuthenticationEmailMethodsEmailAuthenticationMethodItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_authentication_email_methods_request_builder.go b/users/item_authentication_email_methods_request_builder.go index c9a42a9d01c..4e58a3ff178 100644 --- a/users/item_authentication_email_methods_request_builder.go +++ b/users/item_authentication_email_methods_request_builder.go @@ -47,6 +47,7 @@ type ItemAuthenticationEmailMethodsRequestBuilderPostRequestConfiguration struct Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByEmailAuthenticationMethodId provides operations to manage the emailMethods property of the microsoft.graph.authentication entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationEmailMethodsEmailAuthenticationMethodItemRequestBuilder when successful func (m *ItemAuthenticationEmailMethodsRequestBuilder) ByEmailAuthenticationMethodId(emailAuthenticationMethodId string)(*ItemAuthenticationEmailMethodsEmailAuthenticationMethodItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemAuthenticationEmailMethodsRequestBuilder) Count()(*ItemAuthenticati return NewItemAuthenticationEmailMethodsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get represents the email addresses registered to a user for authentication. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EmailAuthenticationMethodCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAuthenticationEmailMethodsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAuthenticationEmailMethodsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EmailAuthenticationMethodCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemAuthenticationEmailMethodsRequestBuilder) Get(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EmailAuthenticationMethodCollectionResponseable), nil } // Post set a user's emailAuthenticationMethod object. Email authentication is a self-service password reset method. A user may only have one email authentication method. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EmailAuthenticationMethodable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -120,6 +123,7 @@ func (m *ItemAuthenticationEmailMethodsRequestBuilder) Post(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EmailAuthenticationMethodable), nil } // ToGetRequestInformation represents the email addresses registered to a user for authentication. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationEmailMethodsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationEmailMethodsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -134,6 +138,7 @@ func (m *ItemAuthenticationEmailMethodsRequestBuilder) ToGetRequestInformation(c return requestInfo, nil } // ToPostRequestInformation set a user's emailAuthenticationMethod object. Email authentication is a self-service password reset method. A user may only have one email authentication method. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationEmailMethodsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EmailAuthenticationMethodable, requestConfiguration *ItemAuthenticationEmailMethodsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -149,6 +154,7 @@ func (m *ItemAuthenticationEmailMethodsRequestBuilder) ToPostRequestInformation( return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationEmailMethodsRequestBuilder when successful func (m *ItemAuthenticationEmailMethodsRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationEmailMethodsRequestBuilder) { return NewItemAuthenticationEmailMethodsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_authentication_fido2_methods_count_request_builder.go b/users/item_authentication_fido2_methods_count_request_builder.go index 694c5b1a6e4..1fe462d690c 100644 --- a/users/item_authentication_fido2_methods_count_request_builder.go +++ b/users/item_authentication_fido2_methods_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemAuthenticationFido2MethodsCountRequestBuilder(rawUrl string, request return NewItemAuthenticationFido2MethodsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAuthenticationFido2MethodsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAuthenticationFido2MethodsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemAuthenticationFido2MethodsCountRequestBuilder) Get(ctx context.Cont return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationFido2MethodsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationFido2MethodsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemAuthenticationFido2MethodsCountRequestBuilder) ToGetRequestInformat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationFido2MethodsCountRequestBuilder when successful func (m *ItemAuthenticationFido2MethodsCountRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationFido2MethodsCountRequestBuilder) { return NewItemAuthenticationFido2MethodsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_authentication_fido2_methods_creation_options_with_challenge_timeout_in_minutes_request_builder.go b/users/item_authentication_fido2_methods_creation_options_with_challenge_timeout_in_minutes_request_builder.go index 70be6c3a872..5fe2345334b 100644 --- a/users/item_authentication_fido2_methods_creation_options_with_challenge_timeout_in_minutes_request_builder.go +++ b/users/item_authentication_fido2_methods_creation_options_with_challenge_timeout_in_minutes_request_builder.go @@ -39,6 +39,7 @@ func NewItemAuthenticationFido2MethodsCreationOptionsWithChallengeTimeoutInMinut return NewItemAuthenticationFido2MethodsCreationOptionsWithChallengeTimeoutInMinutesRequestBuilderInternal(urlParams, requestAdapter) } // Get retrieve creation options required to generate and register a Microsoft Entra ID-compatible passkey. Self-service operations aren't supported. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a WebauthnCredentialCreationOptionsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -62,6 +63,7 @@ func (m *ItemAuthenticationFido2MethodsCreationOptionsWithChallengeTimeoutInMinu return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WebauthnCredentialCreationOptionsable), nil } // ToGetRequestInformation retrieve creation options required to generate and register a Microsoft Entra ID-compatible passkey. Self-service operations aren't supported. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationFido2MethodsCreationOptionsWithChallengeTimeoutInMinutesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationFido2MethodsCreationOptionsWithChallengeTimeoutInMinutesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -76,6 +78,7 @@ func (m *ItemAuthenticationFido2MethodsCreationOptionsWithChallengeTimeoutInMinu return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationFido2MethodsCreationOptionsWithChallengeTimeoutInMinutesRequestBuilder when successful func (m *ItemAuthenticationFido2MethodsCreationOptionsWithChallengeTimeoutInMinutesRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationFido2MethodsCreationOptionsWithChallengeTimeoutInMinutesRequestBuilder) { return NewItemAuthenticationFido2MethodsCreationOptionsWithChallengeTimeoutInMinutesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_authentication_fido2_methods_fido2_authentication_method_item_request_builder.go b/users/item_authentication_fido2_methods_fido2_authentication_method_item_request_builder.go index c5d52ae8711..9c5c4970e67 100644 --- a/users/item_authentication_fido2_methods_fido2_authentication_method_item_request_builder.go +++ b/users/item_authentication_fido2_methods_fido2_authentication_method_item_request_builder.go @@ -48,6 +48,7 @@ func NewItemAuthenticationFido2MethodsFido2AuthenticationMethodItemRequestBuilde return NewItemAuthenticationFido2MethodsFido2AuthenticationMethodItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete deletes a user's FIDO2 Security Key Authentication Method object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -67,6 +68,7 @@ func (m *ItemAuthenticationFido2MethodsFido2AuthenticationMethodItemRequestBuild return nil } // Get represents the FIDO2 security keys registered to a user for authentication. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Fido2AuthenticationMethodable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAuthenticationFido2MethodsFido2AuthenticationMethodItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAuthenticationFido2MethodsFido2AuthenticationMethodItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Fido2AuthenticationMethodable, error) { @@ -87,6 +89,7 @@ func (m *ItemAuthenticationFido2MethodsFido2AuthenticationMethodItemRequestBuild return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Fido2AuthenticationMethodable), nil } // ToDeleteRequestInformation deletes a user's FIDO2 Security Key Authentication Method object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationFido2MethodsFido2AuthenticationMethodItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationFido2MethodsFido2AuthenticationMethodItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -98,6 +101,7 @@ func (m *ItemAuthenticationFido2MethodsFido2AuthenticationMethodItemRequestBuild return requestInfo, nil } // ToGetRequestInformation represents the FIDO2 security keys registered to a user for authentication. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationFido2MethodsFido2AuthenticationMethodItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationFido2MethodsFido2AuthenticationMethodItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -112,6 +116,7 @@ func (m *ItemAuthenticationFido2MethodsFido2AuthenticationMethodItemRequestBuild return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationFido2MethodsFido2AuthenticationMethodItemRequestBuilder when successful func (m *ItemAuthenticationFido2MethodsFido2AuthenticationMethodItemRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationFido2MethodsFido2AuthenticationMethodItemRequestBuilder) { return NewItemAuthenticationFido2MethodsFido2AuthenticationMethodItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_authentication_fido2_methods_request_builder.go b/users/item_authentication_fido2_methods_request_builder.go index da5ebd72f2b..c888a6cb171 100644 --- a/users/item_authentication_fido2_methods_request_builder.go +++ b/users/item_authentication_fido2_methods_request_builder.go @@ -40,6 +40,7 @@ type ItemAuthenticationFido2MethodsRequestBuilderGetRequestConfiguration struct QueryParameters *ItemAuthenticationFido2MethodsRequestBuilderGetQueryParameters } // ByFido2AuthenticationMethodId provides operations to manage the fido2Methods property of the microsoft.graph.authentication entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationFido2MethodsFido2AuthenticationMethodItemRequestBuilder when successful func (m *ItemAuthenticationFido2MethodsRequestBuilder) ByFido2AuthenticationMethodId(fido2AuthenticationMethodId string)(*ItemAuthenticationFido2MethodsFido2AuthenticationMethodItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -75,6 +76,7 @@ func (m *ItemAuthenticationFido2MethodsRequestBuilder) CreationOptionsWithChalle return NewItemAuthenticationFido2MethodsCreationOptionsWithChallengeTimeoutInMinutesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get represents the FIDO2 security keys registered to a user for authentication. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Fido2AuthenticationMethodCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAuthenticationFido2MethodsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAuthenticationFido2MethodsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Fido2AuthenticationMethodCollectionResponseable, error) { @@ -95,6 +97,7 @@ func (m *ItemAuthenticationFido2MethodsRequestBuilder) Get(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Fido2AuthenticationMethodCollectionResponseable), nil } // ToGetRequestInformation represents the FIDO2 security keys registered to a user for authentication. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationFido2MethodsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationFido2MethodsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +112,7 @@ func (m *ItemAuthenticationFido2MethodsRequestBuilder) ToGetRequestInformation(c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationFido2MethodsRequestBuilder when successful func (m *ItemAuthenticationFido2MethodsRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationFido2MethodsRequestBuilder) { return NewItemAuthenticationFido2MethodsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_authentication_methods_authentication_method_item_request_builder.go b/users/item_authentication_methods_authentication_method_item_request_builder.go index fb190f9552b..7c939a63f85 100644 --- a/users/item_authentication_methods_authentication_method_item_request_builder.go +++ b/users/item_authentication_methods_authentication_method_item_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemAuthenticationMethodsAuthenticationMethodItemRequestBuilder) Enable return NewItemAuthenticationMethodsItemEnableSmsSignInRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get represents all authentication methods registered to a user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AuthenticationMethodable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAuthenticationMethodsAuthenticationMethodItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAuthenticationMethodsAuthenticationMethodItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AuthenticationMethodable, error) { @@ -78,6 +79,7 @@ func (m *ItemAuthenticationMethodsAuthenticationMethodItemRequestBuilder) Get(ct return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AuthenticationMethodable), nil } // Patch update the navigation property methods in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AuthenticationMethodable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAuthenticationMethodsAuthenticationMethodItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AuthenticationMethodable, requestConfiguration *ItemAuthenticationMethodsAuthenticationMethodItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AuthenticationMethodable, error) { @@ -103,6 +105,7 @@ func (m *ItemAuthenticationMethodsAuthenticationMethodItemRequestBuilder) ResetP return NewItemAuthenticationMethodsItemResetPasswordRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation represents all authentication methods registered to a user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationMethodsAuthenticationMethodItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationMethodsAuthenticationMethodItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +120,7 @@ func (m *ItemAuthenticationMethodsAuthenticationMethodItemRequestBuilder) ToGetR return requestInfo, nil } // ToPatchRequestInformation update the navigation property methods in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationMethodsAuthenticationMethodItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AuthenticationMethodable, requestConfiguration *ItemAuthenticationMethodsAuthenticationMethodItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -132,6 +136,7 @@ func (m *ItemAuthenticationMethodsAuthenticationMethodItemRequestBuilder) ToPatc return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationMethodsAuthenticationMethodItemRequestBuilder when successful func (m *ItemAuthenticationMethodsAuthenticationMethodItemRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationMethodsAuthenticationMethodItemRequestBuilder) { return NewItemAuthenticationMethodsAuthenticationMethodItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_authentication_methods_count_request_builder.go b/users/item_authentication_methods_count_request_builder.go index b3d6d5d30e1..6295ef0425f 100644 --- a/users/item_authentication_methods_count_request_builder.go +++ b/users/item_authentication_methods_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemAuthenticationMethodsCountRequestBuilder(rawUrl string, requestAdapt return NewItemAuthenticationMethodsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAuthenticationMethodsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAuthenticationMethodsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemAuthenticationMethodsCountRequestBuilder) Get(ctx context.Context, return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationMethodsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationMethodsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemAuthenticationMethodsCountRequestBuilder) ToGetRequestInformation(c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationMethodsCountRequestBuilder when successful func (m *ItemAuthenticationMethodsCountRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationMethodsCountRequestBuilder) { return NewItemAuthenticationMethodsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_authentication_methods_item_disable_sms_sign_in_request_builder.go b/users/item_authentication_methods_item_disable_sms_sign_in_request_builder.go index b3ea9aca25b..3f786d4d98b 100644 --- a/users/item_authentication_methods_item_disable_sms_sign_in_request_builder.go +++ b/users/item_authentication_methods_item_disable_sms_sign_in_request_builder.go @@ -31,6 +31,7 @@ func NewItemAuthenticationMethodsItemDisableSmsSignInRequestBuilder(rawUrl strin return NewItemAuthenticationMethodsItemDisableSmsSignInRequestBuilderInternal(urlParams, requestAdapter) } // Post invoke action disableSmsSignIn +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAuthenticationMethodsItemDisableSmsSignInRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemAuthenticationMethodsItemDisableSmsSignInRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemAuthenticationMethodsItemDisableSmsSignInRequestBuilder) Post(ctx c return nil } // ToPostRequestInformation invoke action disableSmsSignIn +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationMethodsItemDisableSmsSignInRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationMethodsItemDisableSmsSignInRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -58,6 +60,7 @@ func (m *ItemAuthenticationMethodsItemDisableSmsSignInRequestBuilder) ToPostRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationMethodsItemDisableSmsSignInRequestBuilder when successful func (m *ItemAuthenticationMethodsItemDisableSmsSignInRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationMethodsItemDisableSmsSignInRequestBuilder) { return NewItemAuthenticationMethodsItemDisableSmsSignInRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_authentication_methods_item_enable_sms_sign_in_request_builder.go b/users/item_authentication_methods_item_enable_sms_sign_in_request_builder.go index 0a829527cbb..437c6d9b631 100644 --- a/users/item_authentication_methods_item_enable_sms_sign_in_request_builder.go +++ b/users/item_authentication_methods_item_enable_sms_sign_in_request_builder.go @@ -31,6 +31,7 @@ func NewItemAuthenticationMethodsItemEnableSmsSignInRequestBuilder(rawUrl string return NewItemAuthenticationMethodsItemEnableSmsSignInRequestBuilderInternal(urlParams, requestAdapter) } // Post invoke action enableSmsSignIn +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAuthenticationMethodsItemEnableSmsSignInRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemAuthenticationMethodsItemEnableSmsSignInRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemAuthenticationMethodsItemEnableSmsSignInRequestBuilder) Post(ctx co return nil } // ToPostRequestInformation invoke action enableSmsSignIn +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationMethodsItemEnableSmsSignInRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationMethodsItemEnableSmsSignInRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -58,6 +60,7 @@ func (m *ItemAuthenticationMethodsItemEnableSmsSignInRequestBuilder) ToPostReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationMethodsItemEnableSmsSignInRequestBuilder when successful func (m *ItemAuthenticationMethodsItemEnableSmsSignInRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationMethodsItemEnableSmsSignInRequestBuilder) { return NewItemAuthenticationMethodsItemEnableSmsSignInRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); 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 f7f2a6ae9b5..ecb72e73b0e 100644 --- a/users/item_authentication_methods_item_reset_password_request_builder.go +++ b/users/item_authentication_methods_item_reset_password_request_builder.go @@ -32,6 +32,7 @@ func NewItemAuthenticationMethodsItemResetPasswordRequestBuilder(rawUrl string, return NewItemAuthenticationMethodsItemResetPasswordRequestBuilderInternal(urlParams, requestAdapter) } // Post initiate a reset for the password associated with 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 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 will return a Location header with a link where the caller can periodically check for the status of the reset operation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PasswordResetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemAuthenticationMethodsItemResetPasswordRequestBuilder) Post(ctx cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PasswordResetResponseable), nil } // ToPostRequestInformation initiate a reset for the password associated with 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 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 will return a Location header with a link where the caller can periodically check for the status of the reset operation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // 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) @@ -70,6 +72,7 @@ func (m *ItemAuthenticationMethodsItemResetPasswordRequestBuilder) ToPostRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationMethodsItemResetPasswordRequestBuilder when successful func (m *ItemAuthenticationMethodsItemResetPasswordRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationMethodsItemResetPasswordRequestBuilder) { return NewItemAuthenticationMethodsItemResetPasswordRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_authentication_methods_request_builder.go b/users/item_authentication_methods_request_builder.go index ca62aeeb253..3ecce16c432 100644 --- a/users/item_authentication_methods_request_builder.go +++ b/users/item_authentication_methods_request_builder.go @@ -47,6 +47,7 @@ type ItemAuthenticationMethodsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAuthenticationMethodId provides operations to manage the methods property of the microsoft.graph.authentication entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationMethodsAuthenticationMethodItemRequestBuilder when successful func (m *ItemAuthenticationMethodsRequestBuilder) ByAuthenticationMethodId(authenticationMethodId string)(*ItemAuthenticationMethodsAuthenticationMethodItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemAuthenticationMethodsRequestBuilder) Count()(*ItemAuthenticationMet return NewItemAuthenticationMethodsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get represents all authentication methods registered to a user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AuthenticationMethodCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAuthenticationMethodsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAuthenticationMethodsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AuthenticationMethodCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemAuthenticationMethodsRequestBuilder) Get(ctx context.Context, reque return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AuthenticationMethodCollectionResponseable), nil } // Post create new navigation property to methods for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AuthenticationMethodable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAuthenticationMethodsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AuthenticationMethodable, requestConfiguration *ItemAuthenticationMethodsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AuthenticationMethodable, error) { @@ -117,6 +120,7 @@ func (m *ItemAuthenticationMethodsRequestBuilder) Post(ctx context.Context, body return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AuthenticationMethodable), nil } // ToGetRequestInformation represents all authentication methods registered to a user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationMethodsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationMethodsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemAuthenticationMethodsRequestBuilder) ToGetRequestInformation(ctx co return requestInfo, nil } // ToPostRequestInformation create new navigation property to methods for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationMethodsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AuthenticationMethodable, requestConfiguration *ItemAuthenticationMethodsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemAuthenticationMethodsRequestBuilder) ToPostRequestInformation(ctx c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationMethodsRequestBuilder when successful func (m *ItemAuthenticationMethodsRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationMethodsRequestBuilder) { return NewItemAuthenticationMethodsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_authentication_microsoft_authenticator_methods_count_request_builder.go b/users/item_authentication_microsoft_authenticator_methods_count_request_builder.go index e940914e23a..61d230d9b5f 100644 --- a/users/item_authentication_microsoft_authenticator_methods_count_request_builder.go +++ b/users/item_authentication_microsoft_authenticator_methods_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemAuthenticationMicrosoftAuthenticatorMethodsCountRequestBuilder(rawUr return NewItemAuthenticationMicrosoftAuthenticatorMethodsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAuthenticationMicrosoftAuthenticatorMethodsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAuthenticationMicrosoftAuthenticatorMethodsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemAuthenticationMicrosoftAuthenticatorMethodsCountRequestBuilder) Get return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationMicrosoftAuthenticatorMethodsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationMicrosoftAuthenticatorMethodsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemAuthenticationMicrosoftAuthenticatorMethodsCountRequestBuilder) ToG return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationMicrosoftAuthenticatorMethodsCountRequestBuilder when successful func (m *ItemAuthenticationMicrosoftAuthenticatorMethodsCountRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationMicrosoftAuthenticatorMethodsCountRequestBuilder) { return NewItemAuthenticationMicrosoftAuthenticatorMethodsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_authentication_microsoft_authenticator_methods_item_device_request_builder.go b/users/item_authentication_microsoft_authenticator_methods_item_device_request_builder.go index 3b7eef7a617..a27aebae37f 100644 --- a/users/item_authentication_microsoft_authenticator_methods_item_device_request_builder.go +++ b/users/item_authentication_microsoft_authenticator_methods_item_device_request_builder.go @@ -41,6 +41,7 @@ func NewItemAuthenticationMicrosoftAuthenticatorMethodsItemDeviceRequestBuilder( return NewItemAuthenticationMicrosoftAuthenticatorMethodsItemDeviceRequestBuilderInternal(urlParams, requestAdapter) } // Get the registered device on which Microsoft Authenticator resides. This property is null if the device isn't registered for passwordless Phone Sign-In. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Deviceable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAuthenticationMicrosoftAuthenticatorMethodsItemDeviceRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAuthenticationMicrosoftAuthenticatorMethodsItemDeviceRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Deviceable, error) { @@ -61,6 +62,7 @@ func (m *ItemAuthenticationMicrosoftAuthenticatorMethodsItemDeviceRequestBuilder return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Deviceable), nil } // ToGetRequestInformation the registered device on which Microsoft Authenticator resides. This property is null if the device isn't registered for passwordless Phone Sign-In. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationMicrosoftAuthenticatorMethodsItemDeviceRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationMicrosoftAuthenticatorMethodsItemDeviceRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemAuthenticationMicrosoftAuthenticatorMethodsItemDeviceRequestBuilder return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationMicrosoftAuthenticatorMethodsItemDeviceRequestBuilder when successful func (m *ItemAuthenticationMicrosoftAuthenticatorMethodsItemDeviceRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationMicrosoftAuthenticatorMethodsItemDeviceRequestBuilder) { return NewItemAuthenticationMicrosoftAuthenticatorMethodsItemDeviceRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_authentication_microsoft_authenticator_methods_request_builder.go b/users/item_authentication_microsoft_authenticator_methods_request_builder.go index 71495d5b8b7..f799bb2dda7 100644 --- a/users/item_authentication_microsoft_authenticator_methods_request_builder.go +++ b/users/item_authentication_microsoft_authenticator_methods_request_builder.go @@ -40,6 +40,7 @@ type ItemAuthenticationMicrosoftAuthenticatorMethodsRequestBuilderGetRequestConf QueryParameters *ItemAuthenticationMicrosoftAuthenticatorMethodsRequestBuilderGetQueryParameters } // ByMicrosoftAuthenticatorAuthenticationMethodId provides operations to manage the microsoftAuthenticatorMethods property of the microsoft.graph.authentication entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationMicrosoftAuthenticatorMethodsMicrosoftAuthenticatorAuthenticationMethodItemRequestBuilder when successful func (m *ItemAuthenticationMicrosoftAuthenticatorMethodsRequestBuilder) ByMicrosoftAuthenticatorAuthenticationMethodId(microsoftAuthenticatorAuthenticationMethodId string)(*ItemAuthenticationMicrosoftAuthenticatorMethodsMicrosoftAuthenticatorAuthenticationMethodItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -70,6 +71,7 @@ func (m *ItemAuthenticationMicrosoftAuthenticatorMethodsRequestBuilder) Count()( return NewItemAuthenticationMicrosoftAuthenticatorMethodsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get a list of the microsoftAuthenticatorAuthenticationMethod objects and their properties. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MicrosoftAuthenticatorAuthenticationMethodCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -93,6 +95,7 @@ func (m *ItemAuthenticationMicrosoftAuthenticatorMethodsRequestBuilder) Get(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MicrosoftAuthenticatorAuthenticationMethodCollectionResponseable), nil } // ToGetRequestInformation get a list of the microsoftAuthenticatorAuthenticationMethod objects and their properties. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationMicrosoftAuthenticatorMethodsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationMicrosoftAuthenticatorMethodsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -107,6 +110,7 @@ func (m *ItemAuthenticationMicrosoftAuthenticatorMethodsRequestBuilder) ToGetReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationMicrosoftAuthenticatorMethodsRequestBuilder when successful func (m *ItemAuthenticationMicrosoftAuthenticatorMethodsRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationMicrosoftAuthenticatorMethodsRequestBuilder) { return NewItemAuthenticationMicrosoftAuthenticatorMethodsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_authentication_operations_count_request_builder.go b/users/item_authentication_operations_count_request_builder.go index d48ba97215f..c1e6e2280ef 100644 --- a/users/item_authentication_operations_count_request_builder.go +++ b/users/item_authentication_operations_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemAuthenticationOperationsCountRequestBuilder(rawUrl string, requestAd return NewItemAuthenticationOperationsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAuthenticationOperationsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAuthenticationOperationsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemAuthenticationOperationsCountRequestBuilder) Get(ctx context.Contex return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationOperationsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationOperationsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemAuthenticationOperationsCountRequestBuilder) ToGetRequestInformatio return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationOperationsCountRequestBuilder when successful func (m *ItemAuthenticationOperationsCountRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationOperationsCountRequestBuilder) { return NewItemAuthenticationOperationsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); 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 def84627854..d0ecabf3717 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 @@ -55,6 +55,7 @@ func NewItemAuthenticationOperationsLongRunningOperationItemRequestBuilder(rawUr return NewItemAuthenticationOperationsLongRunningOperationItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property operations for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAuthenticationOperationsLongRunningOperationItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemAuthenticationOperationsLongRunningOperationItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemAuthenticationOperationsLongRunningOperationItemRequestBuilder) Del return nil } // 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a LongRunningOperationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -94,6 +96,7 @@ func (m *ItemAuthenticationOperationsLongRunningOperationItemRequestBuilder) Get return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LongRunningOperationable), nil } // Patch update the navigation property operations in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a LongRunningOperationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAuthenticationOperationsLongRunningOperationItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LongRunningOperationable, requestConfiguration *ItemAuthenticationOperationsLongRunningOperationItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LongRunningOperationable, error) { @@ -114,6 +117,7 @@ func (m *ItemAuthenticationOperationsLongRunningOperationItemRequestBuilder) Pat return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LongRunningOperationable), nil } // ToDeleteRequestInformation delete navigation property operations for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationOperationsLongRunningOperationItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationOperationsLongRunningOperationItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -125,6 +129,7 @@ func (m *ItemAuthenticationOperationsLongRunningOperationItemRequestBuilder) ToD return requestInfo, nil } // 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // 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) @@ -139,6 +144,7 @@ func (m *ItemAuthenticationOperationsLongRunningOperationItemRequestBuilder) ToG return requestInfo, nil } // ToPatchRequestInformation update the navigation property operations in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationOperationsLongRunningOperationItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LongRunningOperationable, requestConfiguration *ItemAuthenticationOperationsLongRunningOperationItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -154,6 +160,7 @@ func (m *ItemAuthenticationOperationsLongRunningOperationItemRequestBuilder) ToP return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationOperationsLongRunningOperationItemRequestBuilder when successful func (m *ItemAuthenticationOperationsLongRunningOperationItemRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationOperationsLongRunningOperationItemRequestBuilder) { return NewItemAuthenticationOperationsLongRunningOperationItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_authentication_operations_request_builder.go b/users/item_authentication_operations_request_builder.go index 1cc8a27d7d9..7d2e27be5d9 100644 --- a/users/item_authentication_operations_request_builder.go +++ b/users/item_authentication_operations_request_builder.go @@ -47,6 +47,7 @@ type ItemAuthenticationOperationsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByLongRunningOperationId provides operations to manage the operations property of the microsoft.graph.authentication entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationOperationsLongRunningOperationItemRequestBuilder when successful func (m *ItemAuthenticationOperationsRequestBuilder) ByLongRunningOperationId(longRunningOperationId string)(*ItemAuthenticationOperationsLongRunningOperationItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemAuthenticationOperationsRequestBuilder) Count()(*ItemAuthentication return NewItemAuthenticationOperationsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // 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)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LongRunningOperationCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemAuthenticationOperationsRequestBuilder) Get(ctx context.Context, re return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LongRunningOperationCollectionResponseable), nil } // Post create new navigation property to operations for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a LongRunningOperationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAuthenticationOperationsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LongRunningOperationable, requestConfiguration *ItemAuthenticationOperationsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LongRunningOperationable, error) { @@ -117,6 +120,7 @@ func (m *ItemAuthenticationOperationsRequestBuilder) Post(ctx context.Context, b return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LongRunningOperationable), nil } // 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // 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) @@ -131,6 +135,7 @@ func (m *ItemAuthenticationOperationsRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // ToPostRequestInformation create new navigation property to operations for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationOperationsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LongRunningOperationable, requestConfiguration *ItemAuthenticationOperationsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemAuthenticationOperationsRequestBuilder) ToPostRequestInformation(ct return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationOperationsRequestBuilder when successful func (m *ItemAuthenticationOperationsRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationOperationsRequestBuilder) { return NewItemAuthenticationOperationsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_authentication_password_methods_count_request_builder.go b/users/item_authentication_password_methods_count_request_builder.go index 0ec03b771ab..9ff7effbe11 100644 --- a/users/item_authentication_password_methods_count_request_builder.go +++ b/users/item_authentication_password_methods_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemAuthenticationPasswordMethodsCountRequestBuilder(rawUrl string, requ return NewItemAuthenticationPasswordMethodsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAuthenticationPasswordMethodsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAuthenticationPasswordMethodsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemAuthenticationPasswordMethodsCountRequestBuilder) Get(ctx context.C return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationPasswordMethodsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationPasswordMethodsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemAuthenticationPasswordMethodsCountRequestBuilder) ToGetRequestInfor return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationPasswordMethodsCountRequestBuilder when successful func (m *ItemAuthenticationPasswordMethodsCountRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationPasswordMethodsCountRequestBuilder) { return NewItemAuthenticationPasswordMethodsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_authentication_password_methods_password_authentication_method_item_request_builder.go b/users/item_authentication_password_methods_password_authentication_method_item_request_builder.go index e738eef4d71..d882a6f7df9 100644 --- a/users/item_authentication_password_methods_password_authentication_method_item_request_builder.go +++ b/users/item_authentication_password_methods_password_authentication_method_item_request_builder.go @@ -41,6 +41,7 @@ func NewItemAuthenticationPasswordMethodsPasswordAuthenticationMethodItemRequest return NewItemAuthenticationPasswordMethodsPasswordAuthenticationMethodItemRequestBuilderInternal(urlParams, requestAdapter) } // Get represents the details of the password authentication method registered to a user for authentication. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PasswordAuthenticationMethodable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAuthenticationPasswordMethodsPasswordAuthenticationMethodItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAuthenticationPasswordMethodsPasswordAuthenticationMethodItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PasswordAuthenticationMethodable, error) { @@ -61,6 +62,7 @@ func (m *ItemAuthenticationPasswordMethodsPasswordAuthenticationMethodItemReques return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PasswordAuthenticationMethodable), nil } // ToGetRequestInformation represents the details of the password authentication method registered to a user for authentication. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationPasswordMethodsPasswordAuthenticationMethodItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationPasswordMethodsPasswordAuthenticationMethodItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemAuthenticationPasswordMethodsPasswordAuthenticationMethodItemReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationPasswordMethodsPasswordAuthenticationMethodItemRequestBuilder when successful func (m *ItemAuthenticationPasswordMethodsPasswordAuthenticationMethodItemRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationPasswordMethodsPasswordAuthenticationMethodItemRequestBuilder) { return NewItemAuthenticationPasswordMethodsPasswordAuthenticationMethodItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_authentication_password_methods_request_builder.go b/users/item_authentication_password_methods_request_builder.go index ec042f85c96..4de0ae4a55b 100644 --- a/users/item_authentication_password_methods_request_builder.go +++ b/users/item_authentication_password_methods_request_builder.go @@ -47,6 +47,7 @@ type ItemAuthenticationPasswordMethodsRequestBuilderPostRequestConfiguration str Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByPasswordAuthenticationMethodId provides operations to manage the passwordMethods property of the microsoft.graph.authentication entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationPasswordMethodsPasswordAuthenticationMethodItemRequestBuilder when successful func (m *ItemAuthenticationPasswordMethodsRequestBuilder) ByPasswordAuthenticationMethodId(passwordAuthenticationMethodId string)(*ItemAuthenticationPasswordMethodsPasswordAuthenticationMethodItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemAuthenticationPasswordMethodsRequestBuilder) Count()(*ItemAuthentic return NewItemAuthenticationPasswordMethodsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get represents the details of the password authentication method registered to a user for authentication. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PasswordAuthenticationMethodCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAuthenticationPasswordMethodsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAuthenticationPasswordMethodsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PasswordAuthenticationMethodCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemAuthenticationPasswordMethodsRequestBuilder) Get(ctx context.Contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PasswordAuthenticationMethodCollectionResponseable), nil } // Post create new navigation property to passwordMethods for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PasswordAuthenticationMethodable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAuthenticationPasswordMethodsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PasswordAuthenticationMethodable, requestConfiguration *ItemAuthenticationPasswordMethodsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PasswordAuthenticationMethodable, error) { @@ -117,6 +120,7 @@ func (m *ItemAuthenticationPasswordMethodsRequestBuilder) Post(ctx context.Conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PasswordAuthenticationMethodable), nil } // ToGetRequestInformation represents the details of the password authentication method registered to a user for authentication. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationPasswordMethodsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationPasswordMethodsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemAuthenticationPasswordMethodsRequestBuilder) ToGetRequestInformatio return requestInfo, nil } // ToPostRequestInformation create new navigation property to passwordMethods for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationPasswordMethodsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PasswordAuthenticationMethodable, requestConfiguration *ItemAuthenticationPasswordMethodsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemAuthenticationPasswordMethodsRequestBuilder) ToPostRequestInformati return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationPasswordMethodsRequestBuilder when successful func (m *ItemAuthenticationPasswordMethodsRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationPasswordMethodsRequestBuilder) { return NewItemAuthenticationPasswordMethodsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_authentication_passwordless_microsoft_authenticator_methods_count_request_builder.go b/users/item_authentication_passwordless_microsoft_authenticator_methods_count_request_builder.go index 204df526fa0..b71888a542e 100644 --- a/users/item_authentication_passwordless_microsoft_authenticator_methods_count_request_builder.go +++ b/users/item_authentication_passwordless_microsoft_authenticator_methods_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsCountRequestB return NewItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsCountRequest return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsCountRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsCountRequestBuilder when successful func (m *ItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsCountRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsCountRequestBuilder) { return NewItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_authentication_passwordless_microsoft_authenticator_methods_item_device_request_builder.go b/users/item_authentication_passwordless_microsoft_authenticator_methods_item_device_request_builder.go index 9bd3eaaf1a8..d675ce4cce2 100644 --- a/users/item_authentication_passwordless_microsoft_authenticator_methods_item_device_request_builder.go +++ b/users/item_authentication_passwordless_microsoft_authenticator_methods_item_device_request_builder.go @@ -41,6 +41,7 @@ func NewItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsItemDeviceReq return NewItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsItemDeviceRequestBuilderInternal(urlParams, requestAdapter) } // Get get device from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Deviceable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsItemDeviceRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsItemDeviceRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Deviceable, error) { @@ -61,6 +62,7 @@ func (m *ItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsItemDeviceRe return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Deviceable), nil } // ToGetRequestInformation get device from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsItemDeviceRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsItemDeviceRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsItemDeviceRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsItemDeviceRequestBuilder when successful func (m *ItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsItemDeviceRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsItemDeviceRequestBuilder) { return NewItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsItemDeviceRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_authentication_passwordless_microsoft_authenticator_methods_request_builder.go b/users/item_authentication_passwordless_microsoft_authenticator_methods_request_builder.go index e2a7babd4a5..8d5b58178ed 100644 --- a/users/item_authentication_passwordless_microsoft_authenticator_methods_request_builder.go +++ b/users/item_authentication_passwordless_microsoft_authenticator_methods_request_builder.go @@ -40,6 +40,7 @@ type ItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsRequestBuilderGe QueryParameters *ItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsRequestBuilderGetQueryParameters } // ByPasswordlessMicrosoftAuthenticatorAuthenticationMethodId provides operations to manage the passwordlessMicrosoftAuthenticatorMethods property of the microsoft.graph.authentication entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsPasswordlessMicrosoftAuthenticatorAuthenticationMethodItemRequestBuilder when successful func (m *ItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsRequestBuilder) ByPasswordlessMicrosoftAuthenticatorAuthenticationMethodId(passwordlessMicrosoftAuthenticatorAuthenticationMethodId string)(*ItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsPasswordlessMicrosoftAuthenticatorAuthenticationMethodItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -70,6 +71,7 @@ func (m *ItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsRequestBuild return NewItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get represents the Microsoft Authenticator Passwordless Phone Sign-in methods registered to a user for authentication. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PasswordlessMicrosoftAuthenticatorAuthenticationMethodCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PasswordlessMicrosoftAuthenticatorAuthenticationMethodCollectionResponseable, error) { @@ -90,6 +92,7 @@ func (m *ItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsRequestBuild return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PasswordlessMicrosoftAuthenticatorAuthenticationMethodCollectionResponseable), nil } // ToGetRequestInformation represents the Microsoft Authenticator Passwordless Phone Sign-in methods registered to a user for authentication. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -104,6 +107,7 @@ func (m *ItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsRequestBuild return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsRequestBuilder when successful func (m *ItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsRequestBuilder) { return NewItemAuthenticationPasswordlessMicrosoftAuthenticatorMethodsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_authentication_phone_methods_count_request_builder.go b/users/item_authentication_phone_methods_count_request_builder.go index be6be413630..f6eb1d72861 100644 --- a/users/item_authentication_phone_methods_count_request_builder.go +++ b/users/item_authentication_phone_methods_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemAuthenticationPhoneMethodsCountRequestBuilder(rawUrl string, request return NewItemAuthenticationPhoneMethodsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAuthenticationPhoneMethodsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAuthenticationPhoneMethodsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemAuthenticationPhoneMethodsCountRequestBuilder) Get(ctx context.Cont return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationPhoneMethodsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationPhoneMethodsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemAuthenticationPhoneMethodsCountRequestBuilder) ToGetRequestInformat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationPhoneMethodsCountRequestBuilder when successful func (m *ItemAuthenticationPhoneMethodsCountRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationPhoneMethodsCountRequestBuilder) { return NewItemAuthenticationPhoneMethodsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_authentication_phone_methods_phone_authentication_method_item_request_builder.go b/users/item_authentication_phone_methods_phone_authentication_method_item_request_builder.go index 5d5a845d547..d037c0f20f8 100644 --- a/users/item_authentication_phone_methods_phone_authentication_method_item_request_builder.go +++ b/users/item_authentication_phone_methods_phone_authentication_method_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemAuthenticationPhoneMethodsPhoneAuthenticationMethodItemRequestBuilde return NewItemAuthenticationPhoneMethodsPhoneAuthenticationMethodItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property phoneMethods for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAuthenticationPhoneMethodsPhoneAuthenticationMethodItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemAuthenticationPhoneMethodsPhoneAuthenticationMethodItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemAuthenticationPhoneMethodsPhoneAuthenticationMethodItemRequestBuild return nil } // Get represents the phone registered to a user for authentication. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PhoneAuthenticationMethodable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAuthenticationPhoneMethodsPhoneAuthenticationMethodItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAuthenticationPhoneMethodsPhoneAuthenticationMethodItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PhoneAuthenticationMethodable, error) { @@ -91,6 +93,7 @@ func (m *ItemAuthenticationPhoneMethodsPhoneAuthenticationMethodItemRequestBuild return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PhoneAuthenticationMethodable), nil } // Patch update the phone number associated with a phone authentication method. You can't change a phone's type. To change a phone's type, add a new number of the desired type and then delete the object with the original type. If a user is enabled by policy to use SMS to sign in and the mobile number is changed, the system attempts to register the number for use in that system. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PhoneAuthenticationMethodable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -114,6 +117,7 @@ func (m *ItemAuthenticationPhoneMethodsPhoneAuthenticationMethodItemRequestBuild return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PhoneAuthenticationMethodable), nil } // ToDeleteRequestInformation delete navigation property phoneMethods for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationPhoneMethodsPhoneAuthenticationMethodItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationPhoneMethodsPhoneAuthenticationMethodItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -125,6 +129,7 @@ func (m *ItemAuthenticationPhoneMethodsPhoneAuthenticationMethodItemRequestBuild return requestInfo, nil } // ToGetRequestInformation represents the phone registered to a user for authentication. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationPhoneMethodsPhoneAuthenticationMethodItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationPhoneMethodsPhoneAuthenticationMethodItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -139,6 +144,7 @@ func (m *ItemAuthenticationPhoneMethodsPhoneAuthenticationMethodItemRequestBuild return requestInfo, nil } // ToPatchRequestInformation update the phone number associated with a phone authentication method. You can't change a phone's type. To change a phone's type, add a new number of the desired type and then delete the object with the original type. If a user is enabled by policy to use SMS to sign in and the mobile number is changed, the system attempts to register the number for use in that system. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationPhoneMethodsPhoneAuthenticationMethodItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PhoneAuthenticationMethodable, requestConfiguration *ItemAuthenticationPhoneMethodsPhoneAuthenticationMethodItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -154,6 +160,7 @@ func (m *ItemAuthenticationPhoneMethodsPhoneAuthenticationMethodItemRequestBuild return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationPhoneMethodsPhoneAuthenticationMethodItemRequestBuilder when successful func (m *ItemAuthenticationPhoneMethodsPhoneAuthenticationMethodItemRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationPhoneMethodsPhoneAuthenticationMethodItemRequestBuilder) { return NewItemAuthenticationPhoneMethodsPhoneAuthenticationMethodItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_authentication_phone_methods_request_builder.go b/users/item_authentication_phone_methods_request_builder.go index 99470e10919..5deb6815113 100644 --- a/users/item_authentication_phone_methods_request_builder.go +++ b/users/item_authentication_phone_methods_request_builder.go @@ -47,6 +47,7 @@ type ItemAuthenticationPhoneMethodsRequestBuilderPostRequestConfiguration struct Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByPhoneAuthenticationMethodId provides operations to manage the phoneMethods property of the microsoft.graph.authentication entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationPhoneMethodsPhoneAuthenticationMethodItemRequestBuilder when successful func (m *ItemAuthenticationPhoneMethodsRequestBuilder) ByPhoneAuthenticationMethodId(phoneAuthenticationMethodId string)(*ItemAuthenticationPhoneMethodsPhoneAuthenticationMethodItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemAuthenticationPhoneMethodsRequestBuilder) Count()(*ItemAuthenticati return NewItemAuthenticationPhoneMethodsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get represents the phone registered to a user for authentication. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PhoneAuthenticationMethodCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAuthenticationPhoneMethodsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAuthenticationPhoneMethodsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PhoneAuthenticationMethodCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemAuthenticationPhoneMethodsRequestBuilder) Get(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PhoneAuthenticationMethodCollectionResponseable), nil } // Post add a new phone authentication method. A user may only have one phone of each type, captured in the phoneType property. This means, for example, adding a mobile phone to a user with a preexisting mobile phone will fail. Additionally, a user must always have a mobile phone before adding an alternateMobile phone. Adding a phone number makes it available for use in both Azure multifactor authentication (MFA) and self-service password reset (SSPR), if enabled. Additionally, if a user is enabled by policy to use SMS sign-in and a mobile number is added, the system attempts to register the number for use in that system. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PhoneAuthenticationMethodable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -120,6 +123,7 @@ func (m *ItemAuthenticationPhoneMethodsRequestBuilder) Post(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PhoneAuthenticationMethodable), nil } // ToGetRequestInformation represents the phone registered to a user for authentication. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationPhoneMethodsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationPhoneMethodsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -134,6 +138,7 @@ func (m *ItemAuthenticationPhoneMethodsRequestBuilder) ToGetRequestInformation(c return requestInfo, nil } // ToPostRequestInformation add a new phone authentication method. A user may only have one phone of each type, captured in the phoneType property. This means, for example, adding a mobile phone to a user with a preexisting mobile phone will fail. Additionally, a user must always have a mobile phone before adding an alternateMobile phone. Adding a phone number makes it available for use in both Azure multifactor authentication (MFA) and self-service password reset (SSPR), if enabled. Additionally, if a user is enabled by policy to use SMS sign-in and a mobile number is added, the system attempts to register the number for use in that system. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationPhoneMethodsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PhoneAuthenticationMethodable, requestConfiguration *ItemAuthenticationPhoneMethodsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -149,6 +154,7 @@ func (m *ItemAuthenticationPhoneMethodsRequestBuilder) ToPostRequestInformation( return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationPhoneMethodsRequestBuilder when successful func (m *ItemAuthenticationPhoneMethodsRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationPhoneMethodsRequestBuilder) { return NewItemAuthenticationPhoneMethodsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_authentication_platform_credential_methods_count_request_builder.go b/users/item_authentication_platform_credential_methods_count_request_builder.go index 568360811d1..03440f87376 100644 --- a/users/item_authentication_platform_credential_methods_count_request_builder.go +++ b/users/item_authentication_platform_credential_methods_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemAuthenticationPlatformCredentialMethodsCountRequestBuilder(rawUrl st return NewItemAuthenticationPlatformCredentialMethodsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAuthenticationPlatformCredentialMethodsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAuthenticationPlatformCredentialMethodsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemAuthenticationPlatformCredentialMethodsCountRequestBuilder) Get(ctx return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationPlatformCredentialMethodsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationPlatformCredentialMethodsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemAuthenticationPlatformCredentialMethodsCountRequestBuilder) ToGetRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationPlatformCredentialMethodsCountRequestBuilder when successful func (m *ItemAuthenticationPlatformCredentialMethodsCountRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationPlatformCredentialMethodsCountRequestBuilder) { return NewItemAuthenticationPlatformCredentialMethodsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_authentication_platform_credential_methods_item_device_request_builder.go b/users/item_authentication_platform_credential_methods_item_device_request_builder.go index f73ba569f86..d907095d55f 100644 --- a/users/item_authentication_platform_credential_methods_item_device_request_builder.go +++ b/users/item_authentication_platform_credential_methods_item_device_request_builder.go @@ -41,6 +41,7 @@ func NewItemAuthenticationPlatformCredentialMethodsItemDeviceRequestBuilder(rawU return NewItemAuthenticationPlatformCredentialMethodsItemDeviceRequestBuilderInternal(urlParams, requestAdapter) } // Get the registered device on which this Platform Credential resides. Supports $expand. When you get a user's Platform Credential registration information, this property is returned only on a single GET and when you specify ?$expand. For example, GET /users/admin@contoso.com/authentication/platformCredentialAuthenticationMethod/_jpuR-TGZtk6aQCLF3BQjA2?$expand=device. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Deviceable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAuthenticationPlatformCredentialMethodsItemDeviceRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAuthenticationPlatformCredentialMethodsItemDeviceRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Deviceable, error) { @@ -61,6 +62,7 @@ func (m *ItemAuthenticationPlatformCredentialMethodsItemDeviceRequestBuilder) Ge return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Deviceable), nil } // ToGetRequestInformation the registered device on which this Platform Credential resides. Supports $expand. When you get a user's Platform Credential registration information, this property is returned only on a single GET and when you specify ?$expand. For example, GET /users/admin@contoso.com/authentication/platformCredentialAuthenticationMethod/_jpuR-TGZtk6aQCLF3BQjA2?$expand=device. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationPlatformCredentialMethodsItemDeviceRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationPlatformCredentialMethodsItemDeviceRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemAuthenticationPlatformCredentialMethodsItemDeviceRequestBuilder) To return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationPlatformCredentialMethodsItemDeviceRequestBuilder when successful func (m *ItemAuthenticationPlatformCredentialMethodsItemDeviceRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationPlatformCredentialMethodsItemDeviceRequestBuilder) { return NewItemAuthenticationPlatformCredentialMethodsItemDeviceRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_authentication_platform_credential_methods_request_builder.go b/users/item_authentication_platform_credential_methods_request_builder.go index 10787e565ad..09f0328f970 100644 --- a/users/item_authentication_platform_credential_methods_request_builder.go +++ b/users/item_authentication_platform_credential_methods_request_builder.go @@ -40,6 +40,7 @@ type ItemAuthenticationPlatformCredentialMethodsRequestBuilderGetRequestConfigur QueryParameters *ItemAuthenticationPlatformCredentialMethodsRequestBuilderGetQueryParameters } // ByPlatformCredentialAuthenticationMethodId provides operations to manage the platformCredentialMethods property of the microsoft.graph.authentication entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationPlatformCredentialMethodsPlatformCredentialAuthenticationMethodItemRequestBuilder when successful func (m *ItemAuthenticationPlatformCredentialMethodsRequestBuilder) ByPlatformCredentialAuthenticationMethodId(platformCredentialAuthenticationMethodId string)(*ItemAuthenticationPlatformCredentialMethodsPlatformCredentialAuthenticationMethodItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -70,6 +71,7 @@ func (m *ItemAuthenticationPlatformCredentialMethodsRequestBuilder) Count()(*Ite return NewItemAuthenticationPlatformCredentialMethodsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get platformCredentialMethods from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlatformCredentialAuthenticationMethodCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAuthenticationPlatformCredentialMethodsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAuthenticationPlatformCredentialMethodsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlatformCredentialAuthenticationMethodCollectionResponseable, error) { @@ -90,6 +92,7 @@ func (m *ItemAuthenticationPlatformCredentialMethodsRequestBuilder) Get(ctx cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlatformCredentialAuthenticationMethodCollectionResponseable), nil } // ToGetRequestInformation get platformCredentialMethods from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationPlatformCredentialMethodsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationPlatformCredentialMethodsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -104,6 +107,7 @@ func (m *ItemAuthenticationPlatformCredentialMethodsRequestBuilder) ToGetRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationPlatformCredentialMethodsRequestBuilder when successful func (m *ItemAuthenticationPlatformCredentialMethodsRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationPlatformCredentialMethodsRequestBuilder) { return NewItemAuthenticationPlatformCredentialMethodsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_authentication_request_builder.go b/users/item_authentication_request_builder.go index cd4da170f29..2ad221cfbb7 100644 --- a/users/item_authentication_request_builder.go +++ b/users/item_authentication_request_builder.go @@ -55,6 +55,7 @@ func NewItemAuthenticationRequestBuilder(rawUrl string, requestAdapter i2ae4187f return NewItemAuthenticationRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property authentication for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAuthenticationRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemAuthenticationRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -81,6 +82,7 @@ func (m *ItemAuthenticationRequestBuilder) Fido2Methods()(*ItemAuthenticationFid return NewItemAuthenticationFido2MethodsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the authentication methods that are supported for the user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Authenticationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAuthenticationRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAuthenticationRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Authenticationable, error) { @@ -126,6 +128,7 @@ func (m *ItemAuthenticationRequestBuilder) PasswordMethods()(*ItemAuthentication return NewItemAuthenticationPasswordMethodsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property authentication in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Authenticationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAuthenticationRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Authenticationable, requestConfiguration *ItemAuthenticationRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Authenticationable, error) { @@ -171,6 +174,7 @@ func (m *ItemAuthenticationRequestBuilder) TemporaryAccessPassMethods()(*ItemAut return NewItemAuthenticationTemporaryAccessPassMethodsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property authentication for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -182,6 +186,7 @@ func (m *ItemAuthenticationRequestBuilder) ToDeleteRequestInformation(ctx contex return requestInfo, nil } // ToGetRequestInformation the authentication methods that are supported for the user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -196,6 +201,7 @@ func (m *ItemAuthenticationRequestBuilder) ToGetRequestInformation(ctx context.C return requestInfo, nil } // ToPatchRequestInformation update the navigation property authentication in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Authenticationable, requestConfiguration *ItemAuthenticationRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -216,6 +222,7 @@ func (m *ItemAuthenticationRequestBuilder) WindowsHelloForBusinessMethods()(*Ite return NewItemAuthenticationWindowsHelloForBusinessMethodsRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationRequestBuilder when successful func (m *ItemAuthenticationRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationRequestBuilder) { return NewItemAuthenticationRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_authentication_sign_in_preferences_request_builder.go b/users/item_authentication_sign_in_preferences_request_builder.go index e6f1951f0d1..fa9047901ab 100644 --- a/users/item_authentication_sign_in_preferences_request_builder.go +++ b/users/item_authentication_sign_in_preferences_request_builder.go @@ -48,6 +48,7 @@ func NewItemAuthenticationSignInPreferencesRequestBuilder(rawUrl string, request return NewItemAuthenticationSignInPreferencesRequestBuilderInternal(urlParams, requestAdapter) } // Get read the properties of a user's authentication states. Use this API to retrieve the following information: +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SignInPreferencesable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -71,6 +72,7 @@ func (m *ItemAuthenticationSignInPreferencesRequestBuilder) Get(ctx context.Cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SignInPreferencesable), nil } // Patch update the properties of a user's authentication method states. Use this API to update the following information: +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SignInPreferencesable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -94,6 +96,7 @@ func (m *ItemAuthenticationSignInPreferencesRequestBuilder) Patch(ctx context.Co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SignInPreferencesable), nil } // ToGetRequestInformation read the properties of a user's authentication states. Use this API to retrieve the following information: +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationSignInPreferencesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationSignInPreferencesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -108,6 +111,7 @@ func (m *ItemAuthenticationSignInPreferencesRequestBuilder) ToGetRequestInformat return requestInfo, nil } // ToPatchRequestInformation update the properties of a user's authentication method states. Use this API to update the following information: +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationSignInPreferencesRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SignInPreferencesable, requestConfiguration *ItemAuthenticationSignInPreferencesRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -123,6 +127,7 @@ func (m *ItemAuthenticationSignInPreferencesRequestBuilder) ToPatchRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationSignInPreferencesRequestBuilder when successful func (m *ItemAuthenticationSignInPreferencesRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationSignInPreferencesRequestBuilder) { return NewItemAuthenticationSignInPreferencesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_authentication_software_oath_methods_count_request_builder.go b/users/item_authentication_software_oath_methods_count_request_builder.go index 786957f4733..c8a6c0de70f 100644 --- a/users/item_authentication_software_oath_methods_count_request_builder.go +++ b/users/item_authentication_software_oath_methods_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemAuthenticationSoftwareOathMethodsCountRequestBuilder(rawUrl string, return NewItemAuthenticationSoftwareOathMethodsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAuthenticationSoftwareOathMethodsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAuthenticationSoftwareOathMethodsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemAuthenticationSoftwareOathMethodsCountRequestBuilder) Get(ctx conte return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationSoftwareOathMethodsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationSoftwareOathMethodsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemAuthenticationSoftwareOathMethodsCountRequestBuilder) ToGetRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationSoftwareOathMethodsCountRequestBuilder when successful func (m *ItemAuthenticationSoftwareOathMethodsCountRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationSoftwareOathMethodsCountRequestBuilder) { return NewItemAuthenticationSoftwareOathMethodsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_authentication_software_oath_methods_request_builder.go b/users/item_authentication_software_oath_methods_request_builder.go index e59c6feea9f..6bb444fedd8 100644 --- a/users/item_authentication_software_oath_methods_request_builder.go +++ b/users/item_authentication_software_oath_methods_request_builder.go @@ -40,6 +40,7 @@ type ItemAuthenticationSoftwareOathMethodsRequestBuilderGetRequestConfiguration QueryParameters *ItemAuthenticationSoftwareOathMethodsRequestBuilderGetQueryParameters } // BySoftwareOathAuthenticationMethodId provides operations to manage the softwareOathMethods property of the microsoft.graph.authentication entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationSoftwareOathMethodsSoftwareOathAuthenticationMethodItemRequestBuilder when successful func (m *ItemAuthenticationSoftwareOathMethodsRequestBuilder) BySoftwareOathAuthenticationMethodId(softwareOathAuthenticationMethodId string)(*ItemAuthenticationSoftwareOathMethodsSoftwareOathAuthenticationMethodItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -70,6 +71,7 @@ func (m *ItemAuthenticationSoftwareOathMethodsRequestBuilder) Count()(*ItemAuthe return NewItemAuthenticationSoftwareOathMethodsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the software OATH time-based one-time password (TOTP) applications registered to a user for authentication. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SoftwareOathAuthenticationMethodCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAuthenticationSoftwareOathMethodsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAuthenticationSoftwareOathMethodsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SoftwareOathAuthenticationMethodCollectionResponseable, error) { @@ -90,6 +92,7 @@ func (m *ItemAuthenticationSoftwareOathMethodsRequestBuilder) Get(ctx context.Co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SoftwareOathAuthenticationMethodCollectionResponseable), nil } // ToGetRequestInformation the software OATH time-based one-time password (TOTP) applications registered to a user for authentication. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationSoftwareOathMethodsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationSoftwareOathMethodsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -104,6 +107,7 @@ func (m *ItemAuthenticationSoftwareOathMethodsRequestBuilder) ToGetRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationSoftwareOathMethodsRequestBuilder when successful func (m *ItemAuthenticationSoftwareOathMethodsRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationSoftwareOathMethodsRequestBuilder) { return NewItemAuthenticationSoftwareOathMethodsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_authentication_software_oath_methods_software_oath_authentication_method_item_request_builder.go b/users/item_authentication_software_oath_methods_software_oath_authentication_method_item_request_builder.go index a5fb53fc477..fac36a89d20 100644 --- a/users/item_authentication_software_oath_methods_software_oath_authentication_method_item_request_builder.go +++ b/users/item_authentication_software_oath_methods_software_oath_authentication_method_item_request_builder.go @@ -48,6 +48,7 @@ func NewItemAuthenticationSoftwareOathMethodsSoftwareOathAuthenticationMethodIte return NewItemAuthenticationSoftwareOathMethodsSoftwareOathAuthenticationMethodItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete a user's Software OATH token authentication method object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -67,6 +68,7 @@ func (m *ItemAuthenticationSoftwareOathMethodsSoftwareOathAuthenticationMethodIt return nil } // Get the software OATH time-based one-time password (TOTP) applications registered to a user for authentication. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SoftwareOathAuthenticationMethodable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAuthenticationSoftwareOathMethodsSoftwareOathAuthenticationMethodItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAuthenticationSoftwareOathMethodsSoftwareOathAuthenticationMethodItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SoftwareOathAuthenticationMethodable, error) { @@ -87,6 +89,7 @@ func (m *ItemAuthenticationSoftwareOathMethodsSoftwareOathAuthenticationMethodIt return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SoftwareOathAuthenticationMethodable), nil } // ToDeleteRequestInformation delete a user's Software OATH token authentication method object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationSoftwareOathMethodsSoftwareOathAuthenticationMethodItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationSoftwareOathMethodsSoftwareOathAuthenticationMethodItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -98,6 +101,7 @@ func (m *ItemAuthenticationSoftwareOathMethodsSoftwareOathAuthenticationMethodIt return requestInfo, nil } // ToGetRequestInformation the software OATH time-based one-time password (TOTP) applications registered to a user for authentication. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationSoftwareOathMethodsSoftwareOathAuthenticationMethodItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationSoftwareOathMethodsSoftwareOathAuthenticationMethodItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -112,6 +116,7 @@ func (m *ItemAuthenticationSoftwareOathMethodsSoftwareOathAuthenticationMethodIt return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationSoftwareOathMethodsSoftwareOathAuthenticationMethodItemRequestBuilder when successful func (m *ItemAuthenticationSoftwareOathMethodsSoftwareOathAuthenticationMethodItemRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationSoftwareOathMethodsSoftwareOathAuthenticationMethodItemRequestBuilder) { return NewItemAuthenticationSoftwareOathMethodsSoftwareOathAuthenticationMethodItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_authentication_temporary_access_pass_methods_count_request_builder.go b/users/item_authentication_temporary_access_pass_methods_count_request_builder.go index df1249f6a28..57e45d0198d 100644 --- a/users/item_authentication_temporary_access_pass_methods_count_request_builder.go +++ b/users/item_authentication_temporary_access_pass_methods_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemAuthenticationTemporaryAccessPassMethodsCountRequestBuilder(rawUrl s return NewItemAuthenticationTemporaryAccessPassMethodsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAuthenticationTemporaryAccessPassMethodsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAuthenticationTemporaryAccessPassMethodsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemAuthenticationTemporaryAccessPassMethodsCountRequestBuilder) Get(ct return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationTemporaryAccessPassMethodsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationTemporaryAccessPassMethodsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemAuthenticationTemporaryAccessPassMethodsCountRequestBuilder) ToGetR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationTemporaryAccessPassMethodsCountRequestBuilder when successful func (m *ItemAuthenticationTemporaryAccessPassMethodsCountRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationTemporaryAccessPassMethodsCountRequestBuilder) { return NewItemAuthenticationTemporaryAccessPassMethodsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_authentication_temporary_access_pass_methods_request_builder.go b/users/item_authentication_temporary_access_pass_methods_request_builder.go index 7104bd80fef..ddc79556101 100644 --- a/users/item_authentication_temporary_access_pass_methods_request_builder.go +++ b/users/item_authentication_temporary_access_pass_methods_request_builder.go @@ -47,6 +47,7 @@ type ItemAuthenticationTemporaryAccessPassMethodsRequestBuilderPostRequestConfig Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByTemporaryAccessPassAuthenticationMethodId provides operations to manage the temporaryAccessPassMethods property of the microsoft.graph.authentication entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationTemporaryAccessPassMethodsTemporaryAccessPassAuthenticationMethodItemRequestBuilder when successful func (m *ItemAuthenticationTemporaryAccessPassMethodsRequestBuilder) ByTemporaryAccessPassAuthenticationMethodId(temporaryAccessPassAuthenticationMethodId string)(*ItemAuthenticationTemporaryAccessPassMethodsTemporaryAccessPassAuthenticationMethodItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemAuthenticationTemporaryAccessPassMethodsRequestBuilder) Count()(*It return NewItemAuthenticationTemporaryAccessPassMethodsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get retrieve a list of a user's temporaryAccessPassAuthenticationMethod objects and their properties. This API will only return a single object in the collection as a user can have only one Temporary Access Pass (TAP) method. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a TemporaryAccessPassAuthenticationMethodCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -100,6 +102,7 @@ func (m *ItemAuthenticationTemporaryAccessPassMethodsRequestBuilder) Get(ctx con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TemporaryAccessPassAuthenticationMethodCollectionResponseable), nil } // Post create a new temporaryAccessPassAuthenticationMethod object on a user. A user can only have one Temporary Access Pass that's usable within its specified lifetime. If the user requires a new Temporary Access Pass while the current Temporary Access Pass is valid, the admin can create a new Temporary Access Pass for the user, the previous Temporary Access Pass will be deleted, and a new Temporary Access Pass will be created. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a TemporaryAccessPassAuthenticationMethodable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -123,6 +126,7 @@ func (m *ItemAuthenticationTemporaryAccessPassMethodsRequestBuilder) Post(ctx co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TemporaryAccessPassAuthenticationMethodable), nil } // ToGetRequestInformation retrieve a list of a user's temporaryAccessPassAuthenticationMethod objects and their properties. This API will only return a single object in the collection as a user can have only one Temporary Access Pass (TAP) method. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationTemporaryAccessPassMethodsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationTemporaryAccessPassMethodsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -137,6 +141,7 @@ func (m *ItemAuthenticationTemporaryAccessPassMethodsRequestBuilder) ToGetReques return requestInfo, nil } // ToPostRequestInformation create a new temporaryAccessPassAuthenticationMethod object on a user. A user can only have one Temporary Access Pass that's usable within its specified lifetime. If the user requires a new Temporary Access Pass while the current Temporary Access Pass is valid, the admin can create a new Temporary Access Pass for the user, the previous Temporary Access Pass will be deleted, and a new Temporary Access Pass will be created. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationTemporaryAccessPassMethodsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TemporaryAccessPassAuthenticationMethodable, requestConfiguration *ItemAuthenticationTemporaryAccessPassMethodsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -152,6 +157,7 @@ func (m *ItemAuthenticationTemporaryAccessPassMethodsRequestBuilder) ToPostReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationTemporaryAccessPassMethodsRequestBuilder when successful func (m *ItemAuthenticationTemporaryAccessPassMethodsRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationTemporaryAccessPassMethodsRequestBuilder) { return NewItemAuthenticationTemporaryAccessPassMethodsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_authentication_windows_hello_for_business_methods_count_request_builder.go b/users/item_authentication_windows_hello_for_business_methods_count_request_builder.go index f5ad0cf742d..5238b61ade9 100644 --- a/users/item_authentication_windows_hello_for_business_methods_count_request_builder.go +++ b/users/item_authentication_windows_hello_for_business_methods_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemAuthenticationWindowsHelloForBusinessMethodsCountRequestBuilder(rawU return NewItemAuthenticationWindowsHelloForBusinessMethodsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAuthenticationWindowsHelloForBusinessMethodsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAuthenticationWindowsHelloForBusinessMethodsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemAuthenticationWindowsHelloForBusinessMethodsCountRequestBuilder) Ge return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationWindowsHelloForBusinessMethodsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationWindowsHelloForBusinessMethodsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemAuthenticationWindowsHelloForBusinessMethodsCountRequestBuilder) To return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationWindowsHelloForBusinessMethodsCountRequestBuilder when successful func (m *ItemAuthenticationWindowsHelloForBusinessMethodsCountRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationWindowsHelloForBusinessMethodsCountRequestBuilder) { return NewItemAuthenticationWindowsHelloForBusinessMethodsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_authentication_windows_hello_for_business_methods_item_device_request_builder.go b/users/item_authentication_windows_hello_for_business_methods_item_device_request_builder.go index b32e35011f5..a0f0f54bb23 100644 --- a/users/item_authentication_windows_hello_for_business_methods_item_device_request_builder.go +++ b/users/item_authentication_windows_hello_for_business_methods_item_device_request_builder.go @@ -41,6 +41,7 @@ func NewItemAuthenticationWindowsHelloForBusinessMethodsItemDeviceRequestBuilder return NewItemAuthenticationWindowsHelloForBusinessMethodsItemDeviceRequestBuilderInternal(urlParams, requestAdapter) } // Get the registered device on which this Windows Hello for Business key resides. Supports $expand. When you get a user's Windows Hello for Business registration information, this property is returned only on a single GET and when you specify ?$expand. For example, GET /users/admin@contoso.com/authentication/windowsHelloForBusinessMethods/_jpuR-TGZtk6aQCLF3BQjA2?$expand=device. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Deviceable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemAuthenticationWindowsHelloForBusinessMethodsItemDeviceRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemAuthenticationWindowsHelloForBusinessMethodsItemDeviceRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Deviceable, error) { @@ -61,6 +62,7 @@ func (m *ItemAuthenticationWindowsHelloForBusinessMethodsItemDeviceRequestBuilde return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Deviceable), nil } // ToGetRequestInformation the registered device on which this Windows Hello for Business key resides. Supports $expand. When you get a user's Windows Hello for Business registration information, this property is returned only on a single GET and when you specify ?$expand. For example, GET /users/admin@contoso.com/authentication/windowsHelloForBusinessMethods/_jpuR-TGZtk6aQCLF3BQjA2?$expand=device. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationWindowsHelloForBusinessMethodsItemDeviceRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationWindowsHelloForBusinessMethodsItemDeviceRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemAuthenticationWindowsHelloForBusinessMethodsItemDeviceRequestBuilde return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationWindowsHelloForBusinessMethodsItemDeviceRequestBuilder when successful func (m *ItemAuthenticationWindowsHelloForBusinessMethodsItemDeviceRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationWindowsHelloForBusinessMethodsItemDeviceRequestBuilder) { return NewItemAuthenticationWindowsHelloForBusinessMethodsItemDeviceRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_authentication_windows_hello_for_business_methods_request_builder.go b/users/item_authentication_windows_hello_for_business_methods_request_builder.go index 54892286490..e2da1ae97be 100644 --- a/users/item_authentication_windows_hello_for_business_methods_request_builder.go +++ b/users/item_authentication_windows_hello_for_business_methods_request_builder.go @@ -40,6 +40,7 @@ type ItemAuthenticationWindowsHelloForBusinessMethodsRequestBuilderGetRequestCon QueryParameters *ItemAuthenticationWindowsHelloForBusinessMethodsRequestBuilderGetQueryParameters } // ByWindowsHelloForBusinessAuthenticationMethodId provides operations to manage the windowsHelloForBusinessMethods property of the microsoft.graph.authentication entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationWindowsHelloForBusinessMethodsWindowsHelloForBusinessAuthenticationMethodItemRequestBuilder when successful func (m *ItemAuthenticationWindowsHelloForBusinessMethodsRequestBuilder) ByWindowsHelloForBusinessAuthenticationMethodId(windowsHelloForBusinessAuthenticationMethodId string)(*ItemAuthenticationWindowsHelloForBusinessMethodsWindowsHelloForBusinessAuthenticationMethodItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -70,6 +71,7 @@ func (m *ItemAuthenticationWindowsHelloForBusinessMethodsRequestBuilder) Count() return NewItemAuthenticationWindowsHelloForBusinessMethodsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get a list of the windowsHelloForBusinessAuthenticationMethod objects and their properties. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a WindowsHelloForBusinessAuthenticationMethodCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -93,6 +95,7 @@ func (m *ItemAuthenticationWindowsHelloForBusinessMethodsRequestBuilder) Get(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsHelloForBusinessAuthenticationMethodCollectionResponseable), nil } // ToGetRequestInformation get a list of the windowsHelloForBusinessAuthenticationMethod objects and their properties. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemAuthenticationWindowsHelloForBusinessMethodsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemAuthenticationWindowsHelloForBusinessMethodsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -107,6 +110,7 @@ func (m *ItemAuthenticationWindowsHelloForBusinessMethodsRequestBuilder) ToGetRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAuthenticationWindowsHelloForBusinessMethodsRequestBuilder when successful func (m *ItemAuthenticationWindowsHelloForBusinessMethodsRequestBuilder) WithUrl(rawUrl string)(*ItemAuthenticationWindowsHelloForBusinessMethodsRequestBuilder) { return NewItemAuthenticationWindowsHelloForBusinessMethodsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_allowed_calendar_sharing_roles_with_user_request_builder.go b/users/item_calendar_allowed_calendar_sharing_roles_with_user_request_builder.go index 6eb072f60dd..1a77d8344f7 100644 --- a/users/item_calendar_allowed_calendar_sharing_roles_with_user_request_builder.go +++ b/users/item_calendar_allowed_calendar_sharing_roles_with_user_request_builder.go @@ -70,6 +70,7 @@ func (m *ItemCalendarAllowedCalendarSharingRolesWithUserRequestBuilder) Get(ctx return res.(ItemCalendarAllowedCalendarSharingRolesWithUserResponseable), nil } // GetAsAllowedCalendarSharingRolesWithUserGetResponse invoke function allowedCalendarSharingRoles +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCalendarAllowedCalendarSharingRolesWithUserGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarAllowedCalendarSharingRolesWithUserRequestBuilder) GetAsAllowedCalendarSharingRolesWithUserGetResponse(ctx context.Context, requestConfiguration *ItemCalendarAllowedCalendarSharingRolesWithUserRequestBuilderGetRequestConfiguration)(ItemCalendarAllowedCalendarSharingRolesWithUserGetResponseable, error) { @@ -90,6 +91,7 @@ func (m *ItemCalendarAllowedCalendarSharingRolesWithUserRequestBuilder) GetAsAll return res.(ItemCalendarAllowedCalendarSharingRolesWithUserGetResponseable), nil } // ToGetRequestInformation invoke function allowedCalendarSharingRoles +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarAllowedCalendarSharingRolesWithUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarAllowedCalendarSharingRolesWithUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -104,6 +106,7 @@ func (m *ItemCalendarAllowedCalendarSharingRolesWithUserRequestBuilder) ToGetReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarAllowedCalendarSharingRolesWithUserRequestBuilder when successful func (m *ItemCalendarAllowedCalendarSharingRolesWithUserRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarAllowedCalendarSharingRolesWithUserRequestBuilder) { return NewItemCalendarAllowedCalendarSharingRolesWithUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_permissions_calendar_permission_item_request_builder.go b/users/item_calendar_calendar_permissions_calendar_permission_item_request_builder.go index eeb486f0cc1..d64e4947e91 100644 --- a/users/item_calendar_calendar_permissions_calendar_permission_item_request_builder.go +++ b/users/item_calendar_calendar_permissions_calendar_permission_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemCalendarCalendarPermissionsCalendarPermissionItemRequestBuilder(rawU return NewItemCalendarCalendarPermissionsCalendarPermissionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete calendarPermission. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -74,6 +75,7 @@ func (m *ItemCalendarCalendarPermissionsCalendarPermissionItemRequestBuilder) De return nil } // Get get the specified permissions object of a user or group calendar that has been shared. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a CalendarPermissionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -97,6 +99,7 @@ func (m *ItemCalendarCalendarPermissionsCalendarPermissionItemRequestBuilder) Ge return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarPermissionable), nil } // Patch update the permissions assigned to an existing share recipient or delegate, through the corresponding calendarPermission object for a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a CalendarPermissionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -120,6 +123,7 @@ func (m *ItemCalendarCalendarPermissionsCalendarPermissionItemRequestBuilder) Pa return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarPermissionable), nil } // ToDeleteRequestInformation delete calendarPermission. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarPermissionsCalendarPermissionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarPermissionsCalendarPermissionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemCalendarCalendarPermissionsCalendarPermissionItemRequestBuilder) To return requestInfo, nil } // ToGetRequestInformation get the specified permissions object of a user or group calendar that has been shared. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarPermissionsCalendarPermissionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarPermissionsCalendarPermissionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -145,6 +150,7 @@ func (m *ItemCalendarCalendarPermissionsCalendarPermissionItemRequestBuilder) To return requestInfo, nil } // ToPatchRequestInformation update the permissions assigned to an existing share recipient or delegate, through the corresponding calendarPermission object for a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarPermissionsCalendarPermissionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarPermissionable, requestConfiguration *ItemCalendarCalendarPermissionsCalendarPermissionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -160,6 +166,7 @@ func (m *ItemCalendarCalendarPermissionsCalendarPermissionItemRequestBuilder) To return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarPermissionsCalendarPermissionItemRequestBuilder when successful func (m *ItemCalendarCalendarPermissionsCalendarPermissionItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarPermissionsCalendarPermissionItemRequestBuilder) { return NewItemCalendarCalendarPermissionsCalendarPermissionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_permissions_count_request_builder.go b/users/item_calendar_calendar_permissions_count_request_builder.go index 26e05fb386d..f87071f9644 100644 --- a/users/item_calendar_calendar_permissions_count_request_builder.go +++ b/users/item_calendar_calendar_permissions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarCalendarPermissionsCountRequestBuilder(rawUrl string, reques return NewItemCalendarCalendarPermissionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarPermissionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarPermissionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarCalendarPermissionsCountRequestBuilder) Get(ctx context.Con return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarPermissionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarPermissionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarCalendarPermissionsCountRequestBuilder) ToGetRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarPermissionsCountRequestBuilder when successful func (m *ItemCalendarCalendarPermissionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarPermissionsCountRequestBuilder) { return NewItemCalendarCalendarPermissionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_permissions_request_builder.go b/users/item_calendar_calendar_permissions_request_builder.go index 486de8d04ba..cb937aa126d 100644 --- a/users/item_calendar_calendar_permissions_request_builder.go +++ b/users/item_calendar_calendar_permissions_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarCalendarPermissionsRequestBuilderPostRequestConfiguration struc Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByCalendarPermissionId provides operations to manage the calendarPermissions property of the microsoft.graph.calendar entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarPermissionsCalendarPermissionItemRequestBuilder when successful func (m *ItemCalendarCalendarPermissionsRequestBuilder) ByCalendarPermissionId(calendarPermissionId string)(*ItemCalendarCalendarPermissionsCalendarPermissionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemCalendarCalendarPermissionsRequestBuilder) Count()(*ItemCalendarCal return NewItemCalendarCalendarPermissionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get the specified permissions object of a user or group calendar that has been shared. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a CalendarPermissionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarPermissionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarPermissionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarPermissionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemCalendarCalendarPermissionsRequestBuilder) Get(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarPermissionCollectionResponseable), nil } // Post create a calendarPermission resource to specify the identity and role of the user with whom the specified calendar is being shared or delegated. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a CalendarPermissionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -120,6 +123,7 @@ func (m *ItemCalendarCalendarPermissionsRequestBuilder) Post(ctx context.Context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarPermissionable), nil } // ToGetRequestInformation get the specified permissions object of a user or group calendar that has been shared. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarPermissionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarPermissionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -134,6 +138,7 @@ func (m *ItemCalendarCalendarPermissionsRequestBuilder) ToGetRequestInformation( return requestInfo, nil } // ToPostRequestInformation create a calendarPermission resource to specify the identity and role of the user with whom the specified calendar is being shared or delegated. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarPermissionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarPermissionable, requestConfiguration *ItemCalendarCalendarPermissionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -149,6 +154,7 @@ func (m *ItemCalendarCalendarPermissionsRequestBuilder) ToPostRequestInformation return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarPermissionsRequestBuilder when successful func (m *ItemCalendarCalendarPermissionsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarPermissionsRequestBuilder) { return NewItemCalendarCalendarPermissionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_count_request_builder.go b/users/item_calendar_calendar_view_count_request_builder.go index 52d49e204c7..0a81758bca5 100644 --- a/users/item_calendar_calendar_view_count_request_builder.go +++ b/users/item_calendar_calendar_view_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarCalendarViewCountRequestBuilder(rawUrl string, requestAdapte return NewItemCalendarCalendarViewCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarCalendarViewCountRequestBuilder) Get(ctx context.Context, r return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarCalendarViewCountRequestBuilder) ToGetRequestInformation(ct return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewCountRequestBuilder when successful func (m *ItemCalendarCalendarViewCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewCountRequestBuilder) { return NewItemCalendarCalendarViewCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_delta_request_builder.go b/users/item_calendar_calendar_view_delta_request_builder.go index 6a9cbe88c4a..1c45e850fbd 100644 --- a/users/item_calendar_calendar_view_delta_request_builder.go +++ b/users/item_calendar_calendar_view_delta_request_builder.go @@ -80,6 +80,7 @@ func (m *ItemCalendarCalendarViewDeltaRequestBuilder) Get(ctx context.Context, r return res.(ItemCalendarCalendarViewDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCalendarCalendarViewDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -103,6 +104,7 @@ func (m *ItemCalendarCalendarViewDeltaRequestBuilder) GetAsDeltaGetResponse(ctx return res.(ItemCalendarCalendarViewDeltaGetResponseable), nil } // ToGetRequestInformation get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +119,7 @@ func (m *ItemCalendarCalendarViewDeltaRequestBuilder) ToGetRequestInformation(ct return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewDeltaRequestBuilder when successful func (m *ItemCalendarCalendarViewDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewDeltaRequestBuilder) { return NewItemCalendarCalendarViewDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_event_item_request_builder.go b/users/item_calendar_calendar_view_event_item_request_builder.go index f0b122a6939..8858b472f88 100644 --- a/users/item_calendar_calendar_view_event_item_request_builder.go +++ b/users/item_calendar_calendar_view_event_item_request_builder.go @@ -90,6 +90,7 @@ func (m *ItemCalendarCalendarViewEventItemRequestBuilder) Forward()(*ItemCalenda return NewItemCalendarCalendarViewItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the calendar view for the calendar. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -114,6 +115,11 @@ func (m *ItemCalendarCalendarViewEventItemRequestBuilder) Get(ctx context.Contex func (m *ItemCalendarCalendarViewEventItemRequestBuilder) Instances()(*ItemCalendarCalendarViewItemInstancesRequestBuilder) { return NewItemCalendarCalendarViewItemInstancesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarCalendarViewItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarCalendarViewEventItemRequestBuilder) PermanentDelete()(*ItemCalendarCalendarViewItemPermanentDeleteRequestBuilder) { + return NewItemCalendarCalendarViewItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarCalendarViewItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarCalendarViewEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarCalendarViewItemSnoozeReminderRequestBuilder) { @@ -125,6 +131,7 @@ func (m *ItemCalendarCalendarViewEventItemRequestBuilder) TentativelyAccept()(*I return NewItemCalendarCalendarViewItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation the calendar view for the calendar. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -139,6 +146,7 @@ func (m *ItemCalendarCalendarViewEventItemRequestBuilder) ToGetRequestInformatio return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewEventItemRequestBuilder when successful func (m *ItemCalendarCalendarViewEventItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewEventItemRequestBuilder) { return NewItemCalendarCalendarViewEventItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_accept_request_builder.go b/users/item_calendar_calendar_view_item_accept_request_builder.go index fcfc35d60bc..b7e0caef43c 100644 --- a/users/item_calendar_calendar_view_item_accept_request_builder.go +++ b/users/item_calendar_calendar_view_item_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarCalendarViewItemAcceptRequestBuilder(rawUrl string, requestA return NewItemCalendarCalendarViewItemAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarCalendarViewItemAcceptRequestBuilder) Post(ctx context.Cont return nil } // ToPostRequestInformation accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarCalendarViewItemAcceptPostRequestBodyable, requestConfiguration *ItemCalendarCalendarViewItemAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarCalendarViewItemAcceptRequestBuilder) ToPostRequestInformat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemAcceptRequestBuilder when successful func (m *ItemCalendarCalendarViewItemAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemAcceptRequestBuilder) { return NewItemCalendarCalendarViewItemAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_attachments_attachment_item_request_builder.go b/users/item_calendar_calendar_view_item_attachments_attachment_item_request_builder.go index 3220ff0e03b..9b93c13e073 100644 --- a/users/item_calendar_calendar_view_item_attachments_attachment_item_request_builder.go +++ b/users/item_calendar_calendar_view_item_attachments_attachment_item_request_builder.go @@ -48,6 +48,7 @@ func NewItemCalendarCalendarViewItemAttachmentsAttachmentItemRequestBuilder(rawU return NewItemCalendarCalendarViewItemAttachmentsAttachmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,6 +65,7 @@ func (m *ItemCalendarCalendarViewItemAttachmentsAttachmentItemRequestBuilder) De return nil } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -84,6 +86,7 @@ func (m *ItemCalendarCalendarViewItemAttachmentsAttachmentItemRequestBuilder) Ge return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToDeleteRequestInformation delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +98,7 @@ func (m *ItemCalendarCalendarViewItemAttachmentsAttachmentItemRequestBuilder) To return requestInfo, nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +113,7 @@ func (m *ItemCalendarCalendarViewItemAttachmentsAttachmentItemRequestBuilder) To return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarCalendarViewItemAttachmentsAttachmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemAttachmentsAttachmentItemRequestBuilder) { return NewItemCalendarCalendarViewItemAttachmentsAttachmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_attachments_count_request_builder.go b/users/item_calendar_calendar_view_item_attachments_count_request_builder.go index 049b55e0f53..b785f72cac9 100644 --- a/users/item_calendar_calendar_view_item_attachments_count_request_builder.go +++ b/users/item_calendar_calendar_view_item_attachments_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarCalendarViewItemAttachmentsCountRequestBuilder(rawUrl string return NewItemCalendarCalendarViewItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarCalendarViewItemAttachmentsCountRequestBuilder) Get(ctx con return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarCalendarViewItemAttachmentsCountRequestBuilder) ToGetReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemAttachmentsCountRequestBuilder when successful func (m *ItemCalendarCalendarViewItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemAttachmentsCountRequestBuilder) { return NewItemCalendarCalendarViewItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_attachments_create_upload_session_request_builder.go b/users/item_calendar_calendar_view_item_attachments_create_upload_session_request_builder.go index 31dcb3759e1..f264fc2d84e 100644 --- a/users/item_calendar_calendar_view_item_attachments_create_upload_session_request_builder.go +++ b/users/item_calendar_calendar_view_item_attachments_create_upload_session_request_builder.go @@ -32,6 +32,7 @@ func NewItemCalendarCalendarViewItemAttachmentsCreateUploadSessionRequestBuilder return NewItemCalendarCalendarViewItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemCalendarCalendarViewItemAttachmentsCreateUploadSessionRequestBuilde return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarCalendarViewItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemCalendarCalendarViewItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemCalendarCalendarViewItemAttachmentsCreateUploadSessionRequestBuilde return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemCalendarCalendarViewItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemCalendarCalendarViewItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_attachments_request_builder.go b/users/item_calendar_calendar_view_item_attachments_request_builder.go index 80d4fad2305..0e602d91156 100644 --- a/users/item_calendar_calendar_view_item_attachments_request_builder.go +++ b/users/item_calendar_calendar_view_item_attachments_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarCalendarViewItemAttachmentsRequestBuilderPostRequestConfigurati Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentId provides operations to manage the attachments property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarCalendarViewItemAttachmentsRequestBuilder) ByAttachmentId(attachmentId string)(*ItemCalendarCalendarViewItemAttachmentsAttachmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemCalendarCalendarViewItemAttachmentsRequestBuilder) CreateUploadSess return NewItemCalendarCalendarViewItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemCalendarCalendarViewItemAttachmentsRequestBuilder) Get(ctx context. return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } // Post create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -122,6 +125,7 @@ func (m *ItemCalendarCalendarViewItemAttachmentsRequestBuilder) Post(ctx context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemCalendarCalendarViewItemAttachmentsRequestBuilder) ToGetRequestInfo return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemCalendarCalendarViewItemAttachmentsRequestBuilder) ToPostRequestInf return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemAttachmentsRequestBuilder when successful func (m *ItemCalendarCalendarViewItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemAttachmentsRequestBuilder) { return NewItemCalendarCalendarViewItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_calendar_request_builder.go b/users/item_calendar_calendar_view_item_calendar_request_builder.go index 3ed6b0f7199..cec0df95ed9 100644 --- a/users/item_calendar_calendar_view_item_calendar_request_builder.go +++ b/users/item_calendar_calendar_view_item_calendar_request_builder.go @@ -41,6 +41,7 @@ func NewItemCalendarCalendarViewItemCalendarRequestBuilder(rawUrl string, reques return NewItemCalendarCalendarViewItemCalendarRequestBuilderInternal(urlParams, requestAdapter) } // Get the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemCalendarRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemCalendarRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -61,6 +62,7 @@ func (m *ItemCalendarCalendarViewItemCalendarRequestBuilder) Get(ctx context.Con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable), nil } // ToGetRequestInformation the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemCalendarRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemCalendarRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemCalendarCalendarViewItemCalendarRequestBuilder) ToGetRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemCalendarRequestBuilder when successful func (m *ItemCalendarCalendarViewItemCalendarRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemCalendarRequestBuilder) { return NewItemCalendarCalendarViewItemCalendarRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_cancel_request_builder.go b/users/item_calendar_calendar_view_item_cancel_request_builder.go index 915ec74878e..f519b9c4507 100644 --- a/users/item_calendar_calendar_view_item_cancel_request_builder.go +++ b/users/item_calendar_calendar_view_item_cancel_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarCalendarViewItemCancelRequestBuilder(rawUrl string, requestA return NewItemCalendarCalendarViewItemCancelRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarCalendarViewItemCancelRequestBuilder) Post(ctx context.Cont return nil } // ToPostRequestInformation this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarCalendarViewItemCancelPostRequestBodyable, requestConfiguration *ItemCalendarCalendarViewItemCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarCalendarViewItemCancelRequestBuilder) ToPostRequestInformat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemCancelRequestBuilder when successful func (m *ItemCalendarCalendarViewItemCancelRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemCancelRequestBuilder) { return NewItemCalendarCalendarViewItemCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_decline_request_builder.go b/users/item_calendar_calendar_view_item_decline_request_builder.go index 9996ee76088..64956c6a813 100644 --- a/users/item_calendar_calendar_view_item_decline_request_builder.go +++ b/users/item_calendar_calendar_view_item_decline_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarCalendarViewItemDeclineRequestBuilder(rawUrl string, request return NewItemCalendarCalendarViewItemDeclineRequestBuilderInternal(urlParams, requestAdapter) } // Post decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarCalendarViewItemDeclineRequestBuilder) Post(ctx context.Con return nil } // ToPostRequestInformation decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemDeclineRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarCalendarViewItemDeclinePostRequestBodyable, requestConfiguration *ItemCalendarCalendarViewItemDeclineRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarCalendarViewItemDeclineRequestBuilder) ToPostRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemDeclineRequestBuilder when successful func (m *ItemCalendarCalendarViewItemDeclineRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemDeclineRequestBuilder) { return NewItemCalendarCalendarViewItemDeclineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_dismiss_reminder_request_builder.go b/users/item_calendar_calendar_view_item_dismiss_reminder_request_builder.go index f072ee041e7..351186fe589 100644 --- a/users/item_calendar_calendar_view_item_dismiss_reminder_request_builder.go +++ b/users/item_calendar_calendar_view_item_dismiss_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarCalendarViewItemDismissReminderRequestBuilder(rawUrl string, return NewItemCalendarCalendarViewItemDismissReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarCalendarViewItemDismissReminderRequestBuilder) Post(ctx con return nil } // ToPostRequestInformation dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemDismissReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemDismissReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemCalendarCalendarViewItemDismissReminderRequestBuilder) ToPostReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemDismissReminderRequestBuilder when successful func (m *ItemCalendarCalendarViewItemDismissReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemDismissReminderRequestBuilder) { return NewItemCalendarCalendarViewItemDismissReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_exception_occurrences_count_request_builder.go b/users/item_calendar_calendar_view_item_exception_occurrences_count_request_builder.go index 8e682a5c094..e054faa3196 100644 --- a/users/item_calendar_calendar_view_item_exception_occurrences_count_request_builder.go +++ b/users/item_calendar_calendar_view_item_exception_occurrences_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarCalendarViewItemExceptionOccurrencesCountRequestBuilder(rawU return NewItemCalendarCalendarViewItemExceptionOccurrencesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemExceptionOccurrencesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesCountRequestBuilder) Ge return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesCountRequestBuilder) To return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesCountRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemExceptionOccurrencesCountRequestBuilder) { return NewItemCalendarCalendarViewItemExceptionOccurrencesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_exception_occurrences_delta_request_builder.go b/users/item_calendar_calendar_view_item_exception_occurrences_delta_request_builder.go index 1272da56fc0..8ab2524323d 100644 --- a/users/item_calendar_calendar_view_item_exception_occurrences_delta_request_builder.go +++ b/users/item_calendar_calendar_view_item_exception_occurrences_delta_request_builder.go @@ -80,6 +80,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesDeltaRequestBuilder) Ge return res.(ItemCalendarCalendarViewItemExceptionOccurrencesDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCalendarCalendarViewItemExceptionOccurrencesDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -103,6 +104,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesDeltaRequestBuilder) Ge return res.(ItemCalendarCalendarViewItemExceptionOccurrencesDeltaGetResponseable), nil } // ToGetRequestInformation get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +119,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesDeltaRequestBuilder) To return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesDeltaRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemExceptionOccurrencesDeltaRequestBuilder) { return NewItemCalendarCalendarViewItemExceptionOccurrencesDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_exception_occurrences_event_item_request_builder.go b/users/item_calendar_calendar_view_item_exception_occurrences_event_item_request_builder.go index 8a49c74e99f..8f5e196a7b1 100644 --- a/users/item_calendar_calendar_view_item_exception_occurrences_event_item_request_builder.go +++ b/users/item_calendar_calendar_view_item_exception_occurrences_event_item_request_builder.go @@ -81,6 +81,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesEventItemRequestBuilder return NewItemCalendarCalendarViewItemExceptionOccurrencesItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemExceptionOccurrencesEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -105,6 +106,11 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesEventItemRequestBuilder func (m *ItemCalendarCalendarViewItemExceptionOccurrencesEventItemRequestBuilder) Instances()(*ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder) { return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarCalendarViewItemExceptionOccurrencesEventItemRequestBuilder) PermanentDelete()(*ItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarCalendarViewItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) { @@ -116,6 +122,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesEventItemRequestBuilder return NewItemCalendarCalendarViewItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -130,6 +137,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesEventItemRequestBuilder return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesEventItemRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesEventItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemExceptionOccurrencesEventItemRequestBuilder) { return NewItemCalendarCalendarViewItemExceptionOccurrencesEventItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_exception_occurrences_item_accept_request_builder.go b/users/item_calendar_calendar_view_item_exception_occurrences_item_accept_request_builder.go index 10190c2082d..2597287387e 100644 --- a/users/item_calendar_calendar_view_item_exception_occurrences_item_accept_request_builder.go +++ b/users/item_calendar_calendar_view_item_exception_occurrences_item_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarCalendarViewItemExceptionOccurrencesItemAcceptRequestBuilder return NewItemCalendarCalendarViewItemExceptionOccurrencesItemAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAcceptRequestBuilde return nil } // ToPostRequestInformation accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarCalendarViewItemExceptionOccurrencesItemAcceptPostRequestBodyable, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAcceptRequestBuilde return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemAcceptRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemAcceptRequestBuilder) { return NewItemCalendarCalendarViewItemExceptionOccurrencesItemAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_exception_occurrences_item_attachments_count_request_builder.go b/users/item_calendar_calendar_view_item_exception_occurrences_item_attachments_count_request_builder.go index 3ca675a205c..aa7262577f8 100644 --- a/users/item_calendar_calendar_view_item_exception_occurrences_item_attachments_count_request_builder.go +++ b/users/item_calendar_calendar_view_item_exception_occurrences_item_attachments_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsCountRequ return NewItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsCountReq return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsCountReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsCountRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) { return NewItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_exception_occurrences_item_attachments_request_builder.go b/users/item_calendar_calendar_view_item_exception_occurrences_item_attachments_request_builder.go index 7c3a57ee7b0..16066de2570 100644 --- a/users/item_calendar_calendar_view_item_exception_occurrences_item_attachments_request_builder.go +++ b/users/item_calendar_calendar_view_item_exception_occurrences_item_attachments_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuild Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentId provides operations to manage the attachments property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) ByAttachmentId(attachmentId string)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsRequestB return NewItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsRequestB return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } // Post create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -122,6 +125,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsRequestB return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsRequestB return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsRequestB return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) { return NewItemCalendarCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_exception_occurrences_item_calendar_request_builder.go b/users/item_calendar_calendar_view_item_exception_occurrences_item_calendar_request_builder.go index 10525d8e470..5f0ecc0c687 100644 --- a/users/item_calendar_calendar_view_item_exception_occurrences_item_calendar_request_builder.go +++ b/users/item_calendar_calendar_view_item_exception_occurrences_item_calendar_request_builder.go @@ -41,6 +41,7 @@ func NewItemCalendarCalendarViewItemExceptionOccurrencesItemCalendarRequestBuild return NewItemCalendarCalendarViewItemExceptionOccurrencesItemCalendarRequestBuilderInternal(urlParams, requestAdapter) } // Get the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemCalendarRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemCalendarRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -61,6 +62,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemCalendarRequestBuil return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable), nil } // ToGetRequestInformation the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemCalendarRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemCalendarRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemCalendarRequestBuil return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemCalendarRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemCalendarRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemCalendarRequestBuilder) { return NewItemCalendarCalendarViewItemExceptionOccurrencesItemCalendarRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_exception_occurrences_item_cancel_request_builder.go b/users/item_calendar_calendar_view_item_exception_occurrences_item_cancel_request_builder.go index bfce070ecf2..0f0b7ce5ee9 100644 --- a/users/item_calendar_calendar_view_item_exception_occurrences_item_cancel_request_builder.go +++ b/users/item_calendar_calendar_view_item_exception_occurrences_item_cancel_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarCalendarViewItemExceptionOccurrencesItemCancelRequestBuilder return NewItemCalendarCalendarViewItemExceptionOccurrencesItemCancelRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemCancelRequestBuilde return nil } // ToPostRequestInformation this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarCalendarViewItemExceptionOccurrencesItemCancelPostRequestBodyable, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemCancelRequestBuilde return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemCancelRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemCancelRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemCancelRequestBuilder) { return NewItemCalendarCalendarViewItemExceptionOccurrencesItemCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_exception_occurrences_item_decline_request_builder.go b/users/item_calendar_calendar_view_item_exception_occurrences_item_decline_request_builder.go index 9fa3543e48c..3fe4e525a98 100644 --- a/users/item_calendar_calendar_view_item_exception_occurrences_item_decline_request_builder.go +++ b/users/item_calendar_calendar_view_item_exception_occurrences_item_decline_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarCalendarViewItemExceptionOccurrencesItemDeclineRequestBuilde return NewItemCalendarCalendarViewItemExceptionOccurrencesItemDeclineRequestBuilderInternal(urlParams, requestAdapter) } // Post decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemDeclineRequestBuild return nil } // ToPostRequestInformation decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemDeclineRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarCalendarViewItemExceptionOccurrencesItemDeclinePostRequestBodyable, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemDeclineRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemDeclineRequestBuild return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemDeclineRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemDeclineRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemDeclineRequestBuilder) { return NewItemCalendarCalendarViewItemExceptionOccurrencesItemDeclineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_exception_occurrences_item_dismiss_reminder_request_builder.go b/users/item_calendar_calendar_view_item_exception_occurrences_item_dismiss_reminder_request_builder.go index bc0b0e0e6fa..1ac0efad3cd 100644 --- a/users/item_calendar_calendar_view_item_exception_occurrences_item_dismiss_reminder_request_builder.go +++ b/users/item_calendar_calendar_view_item_exception_occurrences_item_dismiss_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarCalendarViewItemExceptionOccurrencesItemDismissReminderReque return NewItemCalendarCalendarViewItemExceptionOccurrencesItemDismissReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemDismissReminderRequ return nil } // ToPostRequestInformation dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemDismissReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemDismissReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemDismissReminderRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemDismissReminderRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemDismissReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemDismissReminderRequestBuilder) { return NewItemCalendarCalendarViewItemExceptionOccurrencesItemDismissReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_exception_occurrences_item_extensions_count_request_builder.go b/users/item_calendar_calendar_view_item_exception_occurrences_item_extensions_count_request_builder.go index a67c5977b3c..8d831c4366b 100644 --- a/users/item_calendar_calendar_view_item_exception_occurrences_item_extensions_count_request_builder.go +++ b/users/item_calendar_calendar_view_item_exception_occurrences_item_extensions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsCountReque return NewItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsCountRequ return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsCountRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsCountRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsCountRequestBuilder) { return NewItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_exception_occurrences_item_extensions_request_builder.go b/users/item_calendar_calendar_view_item_exception_occurrences_item_extensions_request_builder.go index e9bec9d1c6e..9ffd7e0ab7e 100644 --- a/users/item_calendar_calendar_view_item_exception_occurrences_item_extensions_request_builder.go +++ b/users/item_calendar_calendar_view_item_exception_occurrences_item_extensions_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilde Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsRequestBu return NewItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsRequestBu return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsRequestBu return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsRequestBu return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsRequestBu return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder) { return NewItemCalendarCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_exception_occurrences_item_forward_request_builder.go b/users/item_calendar_calendar_view_item_exception_occurrences_item_forward_request_builder.go index 95f2c3fdb8c..fe467f53506 100644 --- a/users/item_calendar_calendar_view_item_exception_occurrences_item_forward_request_builder.go +++ b/users/item_calendar_calendar_view_item_exception_occurrences_item_forward_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarCalendarViewItemExceptionOccurrencesItemForwardRequestBuilde return NewItemCalendarCalendarViewItemExceptionOccurrencesItemForwardRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemForwardRequestBuild return nil } // ToPostRequestInformation this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemForwardRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarCalendarViewItemExceptionOccurrencesItemForwardPostRequestBodyable, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemForwardRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemForwardRequestBuild return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemForwardRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemForwardRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemForwardRequestBuilder) { return NewItemCalendarCalendarViewItemExceptionOccurrencesItemForwardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_count_request_builder.go b/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_count_request_builder.go index 20ff0114f33..3e716b81a6d 100644 --- a/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_count_request_builder.go +++ b/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesCountReques return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesCountReque return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesCountReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesCountRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesCountRequestBuilder) { return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_delta_request_builder.go b/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_delta_request_builder.go index 83ff2856c3a..194729f749f 100644 --- a/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_delta_request_builder.go +++ b/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_delta_request_builder.go @@ -80,6 +80,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesDeltaReque return res.(ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -103,6 +104,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesDeltaReque return res.(ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesDeltaGetResponseable), nil } // ToGetRequestInformation get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +119,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesDeltaReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesDeltaRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesDeltaRequestBuilder) { return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_event_item_request_builder.go b/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_event_item_request_builder.go index 1a3259c0ef4..a4f98891448 100644 --- a/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_event_item_request_builder.go +++ b/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_event_item_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetQueryParameters struct { // The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 EndDateTime *string `uriparametername:"endDateTime"` @@ -84,7 +84,8 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesEventItemR func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) Forward()(*ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder) { return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -104,6 +105,11 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesEventItemR } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) PermanentDelete()(*ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder) { @@ -114,7 +120,8 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesEventItemR func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) TentativelyAccept()(*ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -129,6 +136,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesEventItemR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) { return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_item_accept_request_builder.go b/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_item_accept_request_builder.go index d6994d6d72c..c68ea34b07a 100644 --- a/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_item_accept_request_builder.go +++ b/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_item_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAcceptR return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAccept return nil } // ToPostRequestInformation accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAcceptPostRequestBodyable, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAccept return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilder) { return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_item_calendar_request_builder.go b/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_item_calendar_request_builder.go index 26653b89e8a..3ed84e59898 100644 --- a/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_item_calendar_request_builder.go +++ b/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_item_calendar_request_builder.go @@ -41,6 +41,7 @@ func NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemCalenda return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilderInternal(urlParams, requestAdapter) } // Get the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -61,6 +62,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemCalend return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable), nil } // ToGetRequestInformation the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemCalend return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder) { return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_item_cancel_request_builder.go b/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_item_cancel_request_builder.go index c4dc6ca0b17..9ae92ac3de1 100644 --- a/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_item_cancel_request_builder.go +++ b/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_item_cancel_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemCancelR return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemCancelRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemCancel return nil } // ToPostRequestInformation this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemCancelPostRequestBodyable, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemCancel return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemCancelRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemCancelRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemCancelRequestBuilder) { return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_item_decline_request_builder.go b/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_item_decline_request_builder.go index 838a2490a95..7ea27b908ef 100644 --- a/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_item_decline_request_builder.go +++ b/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_item_decline_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemDecline return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilderInternal(urlParams, requestAdapter) } // Post decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemDeclin return nil } // ToPostRequestInformation decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemDeclinePostRequestBodyable, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemDeclin return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilder) { return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_item_forward_request_builder.go b/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_item_forward_request_builder.go index f8a3882dc44..da8fae2a331 100644 --- a/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_item_forward_request_builder.go +++ b/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_item_forward_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemForward return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemForwardRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemForwar return nil } // ToPostRequestInformation this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemForwardPostRequestBodyable, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemForwardRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemForwar return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder) { return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_request_builder.go b/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_request_builder.go index 19992113beb..ef02867b901 100644 --- a/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_request_builder.go +++ b/users/item_calendar_calendar_view_item_exception_occurrences_item_instances_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -44,6 +44,7 @@ type ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder QueryParameters *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilderGetQueryParameters } // ByEventId2 provides operations to manage the instances property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder) ByEventId2(eventId2 string)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -78,7 +79,8 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesRequestBui func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder) Delta()(*ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesDeltaRequestBuilder) { return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -98,7 +100,8 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesRequestBui } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,6 +116,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesRequestBui return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder) { return NewItemCalendarCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_exception_occurrences_item_permanent_delete_request_builder.go b/users/item_calendar_calendar_view_item_exception_occurrences_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..bea7631952b --- /dev/null +++ b/users/item_calendar_calendar_view_item_exception_occurrences_item_permanent_delete_request_builder.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView/{event%2Did}/exceptionOccurrences/{event%2Did1}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_calendar_calendar_view_item_exception_occurrences_item_snooze_reminder_request_builder.go b/users/item_calendar_calendar_view_item_exception_occurrences_item_snooze_reminder_request_builder.go index 78a49d42227..62d94701e77 100644 --- a/users/item_calendar_calendar_view_item_exception_occurrences_item_snooze_reminder_request_builder.go +++ b/users/item_calendar_calendar_view_item_exception_occurrences_item_snooze_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarCalendarViewItemExceptionOccurrencesItemSnoozeReminderReques return NewItemCalendarCalendarViewItemExceptionOccurrencesItemSnoozeReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemSnoozeReminderReque return nil } // ToPostRequestInformation postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarCalendarViewItemExceptionOccurrencesItemSnoozeReminderPostRequestBodyable, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemSnoozeReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemSnoozeReminderReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) { return NewItemCalendarCalendarViewItemExceptionOccurrencesItemSnoozeReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_exception_occurrences_item_tentatively_accept_request_builder.go b/users/item_calendar_calendar_view_item_exception_occurrences_item_tentatively_accept_request_builder.go index af4b925ccfe..090091171c8 100644 --- a/users/item_calendar_calendar_view_item_exception_occurrences_item_tentatively_accept_request_builder.go +++ b/users/item_calendar_calendar_view_item_exception_occurrences_item_tentatively_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarCalendarViewItemExceptionOccurrencesItemTentativelyAcceptReq return NewItemCalendarCalendarViewItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemTentativelyAcceptRe return nil } // ToPostRequestInformation tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarCalendarViewItemExceptionOccurrencesItemTentativelyAcceptPostRequestBodyable, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemTentativelyAcceptRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarCalendarViewItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_exception_occurrences_request_builder.go b/users/item_calendar_calendar_view_item_exception_occurrences_request_builder.go index d200711c021..1d6130a6d9f 100644 --- a/users/item_calendar_calendar_view_item_exception_occurrences_request_builder.go +++ b/users/item_calendar_calendar_view_item_exception_occurrences_request_builder.go @@ -40,6 +40,7 @@ type ItemCalendarCalendarViewItemExceptionOccurrencesRequestBuilderGetRequestCon QueryParameters *ItemCalendarCalendarViewItemExceptionOccurrencesRequestBuilderGetQueryParameters } // ByEventId1 provides operations to manage the exceptionOccurrences property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesEventItemRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesRequestBuilder) ByEventId1(eventId1 string)(*ItemCalendarCalendarViewItemExceptionOccurrencesEventItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -75,6 +76,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesRequestBuilder) Delta() return NewItemCalendarCalendarViewItemExceptionOccurrencesDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemExceptionOccurrencesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -95,6 +97,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesRequestBuilder) Get(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } // ToGetRequestInformation get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExceptionOccurrencesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +112,7 @@ func (m *ItemCalendarCalendarViewItemExceptionOccurrencesRequestBuilder) ToGetRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExceptionOccurrencesRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExceptionOccurrencesRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemExceptionOccurrencesRequestBuilder) { return NewItemCalendarCalendarViewItemExceptionOccurrencesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_extensions_count_request_builder.go b/users/item_calendar_calendar_view_item_extensions_count_request_builder.go index ad089c7ba2a..9efb0042c4c 100644 --- a/users/item_calendar_calendar_view_item_extensions_count_request_builder.go +++ b/users/item_calendar_calendar_view_item_extensions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarCalendarViewItemExtensionsCountRequestBuilder(rawUrl string, return NewItemCalendarCalendarViewItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarCalendarViewItemExtensionsCountRequestBuilder) Get(ctx cont return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarCalendarViewItemExtensionsCountRequestBuilder) ToGetRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExtensionsCountRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemExtensionsCountRequestBuilder) { return NewItemCalendarCalendarViewItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_extensions_extension_item_request_builder.go b/users/item_calendar_calendar_view_item_extensions_extension_item_request_builder.go index da8022668fc..d9191219a57 100644 --- a/users/item_calendar_calendar_view_item_extensions_extension_item_request_builder.go +++ b/users/item_calendar_calendar_view_item_extensions_extension_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemCalendarCalendarViewItemExtensionsExtensionItemRequestBuilder(rawUrl return NewItemCalendarCalendarViewItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemCalendarCalendarViewItemExtensionsExtensionItemRequestBuilder) Dele return nil } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemCalendarCalendarViewItemExtensionsExtensionItemRequestBuilder) Get( return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarCalendarViewItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemCalendarCalendarViewItemExtensionsExtensionItemRequestBuilder) Patc return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemCalendarCalendarViewItemExtensionsExtensionItemRequestBuilder) ToDe return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemCalendarCalendarViewItemExtensionsExtensionItemRequestBuilder) ToGe return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarCalendarViewItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemCalendarCalendarViewItemExtensionsExtensionItemRequestBuilder) ToPa return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemExtensionsExtensionItemRequestBuilder) { return NewItemCalendarCalendarViewItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_extensions_request_builder.go b/users/item_calendar_calendar_view_item_extensions_request_builder.go index 2f2f4653aa8..129eecb28e3 100644 --- a/users/item_calendar_calendar_view_item_extensions_request_builder.go +++ b/users/item_calendar_calendar_view_item_extensions_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarCalendarViewItemExtensionsRequestBuilderPostRequestConfiguratio Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemCalendarCalendarViewItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemCalendarCalendarViewItemExtensionsRequestBuilder) Count()(*ItemCale return NewItemCalendarCalendarViewItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemCalendarCalendarViewItemExtensionsRequestBuilder) Get(ctx context.C return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarCalendarViewItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemCalendarCalendarViewItemExtensionsRequestBuilder) Post(ctx context. return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemCalendarCalendarViewItemExtensionsRequestBuilder) ToGetRequestInfor return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarCalendarViewItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemCalendarCalendarViewItemExtensionsRequestBuilder) ToPostRequestInfo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemExtensionsRequestBuilder when successful func (m *ItemCalendarCalendarViewItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemExtensionsRequestBuilder) { return NewItemCalendarCalendarViewItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_forward_request_builder.go b/users/item_calendar_calendar_view_item_forward_request_builder.go index 57e0e3a027b..0e264c4ec83 100644 --- a/users/item_calendar_calendar_view_item_forward_request_builder.go +++ b/users/item_calendar_calendar_view_item_forward_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarCalendarViewItemForwardRequestBuilder(rawUrl string, request return NewItemCalendarCalendarViewItemForwardRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarCalendarViewItemForwardRequestBuilder) Post(ctx context.Con return nil } // ToPostRequestInformation this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemForwardRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarCalendarViewItemForwardPostRequestBodyable, requestConfiguration *ItemCalendarCalendarViewItemForwardRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarCalendarViewItemForwardRequestBuilder) ToPostRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemForwardRequestBuilder when successful func (m *ItemCalendarCalendarViewItemForwardRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemForwardRequestBuilder) { return NewItemCalendarCalendarViewItemForwardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_instances_count_request_builder.go b/users/item_calendar_calendar_view_item_instances_count_request_builder.go index 7ae278c52da..8fbf03de945 100644 --- a/users/item_calendar_calendar_view_item_instances_count_request_builder.go +++ b/users/item_calendar_calendar_view_item_instances_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarCalendarViewItemInstancesCountRequestBuilder(rawUrl string, return NewItemCalendarCalendarViewItemInstancesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemInstancesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarCalendarViewItemInstancesCountRequestBuilder) Get(ctx conte return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarCalendarViewItemInstancesCountRequestBuilder) ToGetRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemInstancesCountRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemInstancesCountRequestBuilder) { return NewItemCalendarCalendarViewItemInstancesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_instances_delta_request_builder.go b/users/item_calendar_calendar_view_item_instances_delta_request_builder.go index 04ea3f008e5..80c03347252 100644 --- a/users/item_calendar_calendar_view_item_instances_delta_request_builder.go +++ b/users/item_calendar_calendar_view_item_instances_delta_request_builder.go @@ -80,6 +80,7 @@ func (m *ItemCalendarCalendarViewItemInstancesDeltaRequestBuilder) Get(ctx conte return res.(ItemCalendarCalendarViewItemInstancesDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCalendarCalendarViewItemInstancesDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -103,6 +104,7 @@ func (m *ItemCalendarCalendarViewItemInstancesDeltaRequestBuilder) GetAsDeltaGet return res.(ItemCalendarCalendarViewItemInstancesDeltaGetResponseable), nil } // ToGetRequestInformation get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +119,7 @@ func (m *ItemCalendarCalendarViewItemInstancesDeltaRequestBuilder) ToGetRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemInstancesDeltaRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemInstancesDeltaRequestBuilder) { return NewItemCalendarCalendarViewItemInstancesDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_instances_event_item_request_builder.go b/users/item_calendar_calendar_view_item_instances_event_item_request_builder.go index e4337436626..f64355da669 100644 --- a/users/item_calendar_calendar_view_item_instances_event_item_request_builder.go +++ b/users/item_calendar_calendar_view_item_instances_event_item_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemCalendarCalendarViewItemInstancesEventItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemCalendarCalendarViewItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemCalendarCalendarViewItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemCalendarCalendarViewItemInstancesEventItemRequestBuilderGetQueryParameters struct { // The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 EndDateTime *string `uriparametername:"endDateTime"` @@ -89,7 +89,8 @@ func (m *ItemCalendarCalendarViewItemInstancesEventItemRequestBuilder) Extension func (m *ItemCalendarCalendarViewItemInstancesEventItemRequestBuilder) Forward()(*ItemCalendarCalendarViewItemInstancesItemForwardRequestBuilder) { return NewItemCalendarCalendarViewItemInstancesItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemInstancesEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -109,6 +110,11 @@ func (m *ItemCalendarCalendarViewItemInstancesEventItemRequestBuilder) Get(ctx c } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarCalendarViewItemInstancesEventItemRequestBuilder) PermanentDelete()(*ItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarCalendarViewItemInstancesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarCalendarViewItemInstancesItemSnoozeReminderRequestBuilder) { @@ -119,7 +125,8 @@ func (m *ItemCalendarCalendarViewItemInstancesEventItemRequestBuilder) SnoozeRem func (m *ItemCalendarCalendarViewItemInstancesEventItemRequestBuilder) TentativelyAccept()(*ItemCalendarCalendarViewItemInstancesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarCalendarViewItemInstancesItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -134,6 +141,7 @@ func (m *ItemCalendarCalendarViewItemInstancesEventItemRequestBuilder) ToGetRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemInstancesEventItemRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesEventItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemInstancesEventItemRequestBuilder) { return NewItemCalendarCalendarViewItemInstancesEventItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_instances_item_accept_request_builder.go b/users/item_calendar_calendar_view_item_instances_item_accept_request_builder.go index d20af6c4955..1288594f554 100644 --- a/users/item_calendar_calendar_view_item_instances_item_accept_request_builder.go +++ b/users/item_calendar_calendar_view_item_instances_item_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarCalendarViewItemInstancesItemAcceptRequestBuilder(rawUrl str return NewItemCalendarCalendarViewItemInstancesItemAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemAcceptRequestBuilder) Post(ctx return nil } // ToPostRequestInformation accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesItemAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarCalendarViewItemInstancesItemAcceptPostRequestBodyable, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemAcceptRequestBuilder) ToPostRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemInstancesItemAcceptRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesItemAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemInstancesItemAcceptRequestBuilder) { return NewItemCalendarCalendarViewItemInstancesItemAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_instances_item_attachments_attachment_item_request_builder.go b/users/item_calendar_calendar_view_item_instances_item_attachments_attachment_item_request_builder.go index efadf7238de..f7b078a2fe4 100644 --- a/users/item_calendar_calendar_view_item_instances_item_attachments_attachment_item_request_builder.go +++ b/users/item_calendar_calendar_view_item_instances_item_attachments_attachment_item_request_builder.go @@ -48,6 +48,7 @@ func NewItemCalendarCalendarViewItemInstancesItemAttachmentsAttachmentItemReques return NewItemCalendarCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,6 +65,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsAttachmentItemReque return nil } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -84,6 +86,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsAttachmentItemReque return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToDeleteRequestInformation delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +98,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsAttachmentItemReque return requestInfo, nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +113,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsAttachmentItemReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilder) { return NewItemCalendarCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_instances_item_attachments_count_request_builder.go b/users/item_calendar_calendar_view_item_instances_item_attachments_count_request_builder.go index 4fbc28957c3..e6c4572a2de 100644 --- a/users/item_calendar_calendar_view_item_instances_item_attachments_count_request_builder.go +++ b/users/item_calendar_calendar_view_item_instances_item_attachments_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarCalendarViewItemInstancesItemAttachmentsCountRequestBuilder( return NewItemCalendarCalendarViewItemInstancesItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsCountRequestBuilder return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsCountRequestBuilder return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemInstancesItemAttachmentsCountRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemInstancesItemAttachmentsCountRequestBuilder) { return NewItemCalendarCalendarViewItemInstancesItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_instances_item_attachments_create_upload_session_request_builder.go b/users/item_calendar_calendar_view_item_instances_item_attachments_create_upload_session_request_builder.go index 6f08d4fe30c..df492613ade 100644 --- a/users/item_calendar_calendar_view_item_instances_item_attachments_create_upload_session_request_builder.go +++ b/users/item_calendar_calendar_view_item_instances_item_attachments_create_upload_session_request_builder.go @@ -32,6 +32,7 @@ func NewItemCalendarCalendarViewItemInstancesItemAttachmentsCreateUploadSessionR return NewItemCalendarCalendarViewItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsCreateUploadSession return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarCalendarViewItemInstancesItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsCreateUploadSession return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemCalendarCalendarViewItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_instances_item_attachments_request_builder.go b/users/item_calendar_calendar_view_item_instances_item_attachments_request_builder.go index fdf986f51c0..3dc907301d2 100644 --- a/users/item_calendar_calendar_view_item_instances_item_attachments_request_builder.go +++ b/users/item_calendar_calendar_view_item_instances_item_attachments_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarCalendarViewItemInstancesItemAttachmentsRequestBuilderPostReque Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentId provides operations to manage the attachments property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsRequestBuilder) ByAttachmentId(attachmentId string)(*ItemCalendarCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsRequestBuilder) Cre return NewItemCalendarCalendarViewItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsRequestBuilder) Get return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } // Post create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -122,6 +125,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsRequestBuilder) Pos return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsRequestBuilder) ToG return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsRequestBuilder) ToP return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemInstancesItemAttachmentsRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemInstancesItemAttachmentsRequestBuilder) { return NewItemCalendarCalendarViewItemInstancesItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_instances_item_calendar_request_builder.go b/users/item_calendar_calendar_view_item_instances_item_calendar_request_builder.go index a12e03178e9..4b6285348e8 100644 --- a/users/item_calendar_calendar_view_item_instances_item_calendar_request_builder.go +++ b/users/item_calendar_calendar_view_item_instances_item_calendar_request_builder.go @@ -41,6 +41,7 @@ func NewItemCalendarCalendarViewItemInstancesItemCalendarRequestBuilder(rawUrl s return NewItemCalendarCalendarViewItemInstancesItemCalendarRequestBuilderInternal(urlParams, requestAdapter) } // Get the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemInstancesItemCalendarRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemCalendarRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -61,6 +62,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemCalendarRequestBuilder) Get(ct return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable), nil } // ToGetRequestInformation the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesItemCalendarRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemCalendarRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemCalendarRequestBuilder) ToGetR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemInstancesItemCalendarRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesItemCalendarRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemInstancesItemCalendarRequestBuilder) { return NewItemCalendarCalendarViewItemInstancesItemCalendarRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_instances_item_cancel_request_builder.go b/users/item_calendar_calendar_view_item_instances_item_cancel_request_builder.go index 8a477372857..e4bc6be5043 100644 --- a/users/item_calendar_calendar_view_item_instances_item_cancel_request_builder.go +++ b/users/item_calendar_calendar_view_item_instances_item_cancel_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarCalendarViewItemInstancesItemCancelRequestBuilder(rawUrl str return NewItemCalendarCalendarViewItemInstancesItemCancelRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemCancelRequestBuilder) Post(ctx return nil } // ToPostRequestInformation this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesItemCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarCalendarViewItemInstancesItemCancelPostRequestBodyable, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemCancelRequestBuilder) ToPostRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemInstancesItemCancelRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesItemCancelRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemInstancesItemCancelRequestBuilder) { return NewItemCalendarCalendarViewItemInstancesItemCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_instances_item_decline_request_builder.go b/users/item_calendar_calendar_view_item_instances_item_decline_request_builder.go index 7f1ceacd5f7..fba0462d392 100644 --- a/users/item_calendar_calendar_view_item_instances_item_decline_request_builder.go +++ b/users/item_calendar_calendar_view_item_instances_item_decline_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarCalendarViewItemInstancesItemDeclineRequestBuilder(rawUrl st return NewItemCalendarCalendarViewItemInstancesItemDeclineRequestBuilderInternal(urlParams, requestAdapter) } // Post decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemDeclineRequestBuilder) Post(ct return nil } // ToPostRequestInformation decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesItemDeclineRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarCalendarViewItemInstancesItemDeclinePostRequestBodyable, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemDeclineRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemDeclineRequestBuilder) ToPostR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemInstancesItemDeclineRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesItemDeclineRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemInstancesItemDeclineRequestBuilder) { return NewItemCalendarCalendarViewItemInstancesItemDeclineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_instances_item_dismiss_reminder_request_builder.go b/users/item_calendar_calendar_view_item_instances_item_dismiss_reminder_request_builder.go index 75a9605e983..5c5f977b691 100644 --- a/users/item_calendar_calendar_view_item_instances_item_dismiss_reminder_request_builder.go +++ b/users/item_calendar_calendar_view_item_instances_item_dismiss_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarCalendarViewItemInstancesItemDismissReminderRequestBuilder(r return NewItemCalendarCalendarViewItemInstancesItemDismissReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemDismissReminderRequestBuilder) return nil } // ToPostRequestInformation dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesItemDismissReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemDismissReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemDismissReminderRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemInstancesItemDismissReminderRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesItemDismissReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemInstancesItemDismissReminderRequestBuilder) { return NewItemCalendarCalendarViewItemInstancesItemDismissReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_count_request_builder.go b/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_count_request_builder.go index 106664c4dbb..85a0e23a9f9 100644 --- a/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_count_request_builder.go +++ b/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesCountReques return NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesCountReque return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesCountReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesCountRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesCountRequestBuilder) { return NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_delta_request_builder.go b/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_delta_request_builder.go index 9aea59e7138..fbf29bde98c 100644 --- a/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_delta_request_builder.go +++ b/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_delta_request_builder.go @@ -80,6 +80,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesDeltaReque return res.(ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -103,6 +104,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesDeltaReque return res.(ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesDeltaGetResponseable), nil } // ToGetRequestInformation get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +119,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesDeltaReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesDeltaRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesDeltaRequestBuilder) { return NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_event_item_request_builder.go b/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_event_item_request_builder.go index 40df1f577eb..2bea32f21fc 100644 --- a/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_event_item_request_builder.go +++ b/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_event_item_request_builder.go @@ -81,6 +81,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesEventItemR return NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -100,6 +101,11 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesEventItemR } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) PermanentDelete()(*ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) { @@ -111,6 +117,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesEventItemR return NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -125,6 +132,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesEventItemR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) { return NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_item_accept_request_builder.go b/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_item_accept_request_builder.go index 4ebdc14e8d6..8f27656c4a9 100644 --- a/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_item_accept_request_builder.go +++ b/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_item_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAcceptR return NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAccept return nil } // ToPostRequestInformation accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAcceptPostRequestBodyable, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAccept return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilder) { return NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_item_calendar_request_builder.go b/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_item_calendar_request_builder.go index 83ecd5403a4..9f3f69b0880 100644 --- a/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_item_calendar_request_builder.go +++ b/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_item_calendar_request_builder.go @@ -41,6 +41,7 @@ func NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemCalenda return NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilderInternal(urlParams, requestAdapter) } // Get the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -61,6 +62,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemCalend return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable), nil } // ToGetRequestInformation the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemCalend return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder) { return NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_item_cancel_request_builder.go b/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_item_cancel_request_builder.go index 2d57fb08b18..5a2a6a04c06 100644 --- a/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_item_cancel_request_builder.go +++ b/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_item_cancel_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemCancelR return NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemCancelRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemCancel return nil } // ToPostRequestInformation this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemCancelPostRequestBodyable, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemCancel return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemCancelRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemCancelRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemCancelRequestBuilder) { return NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_item_decline_request_builder.go b/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_item_decline_request_builder.go index 16302a3a3a0..6617beab18a 100644 --- a/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_item_decline_request_builder.go +++ b/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_item_decline_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemDecline return NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilderInternal(urlParams, requestAdapter) } // Post decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemDeclin return nil } // ToPostRequestInformation decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemDeclinePostRequestBodyable, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemDeclin return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilder) { return NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_item_forward_request_builder.go b/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_item_forward_request_builder.go index 7d379fb98ec..63cd51dd7b2 100644 --- a/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_item_forward_request_builder.go +++ b/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_item_forward_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemForward return NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemForwardRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemForwar return nil } // ToPostRequestInformation this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemForwardRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemForwardPostRequestBodyable, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemForwardRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemForwar return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemForwardRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemForwardRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemForwardRequestBuilder) { return NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesItemForwardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_request_builder.go b/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_request_builder.go index 989c9349f0e..a11a8fde81b 100644 --- a/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_request_builder.go +++ b/users/item_calendar_calendar_view_item_instances_item_exception_occurrences_request_builder.go @@ -40,6 +40,7 @@ type ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesRequestBuilder QueryParameters *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesRequestBuilderGetQueryParameters } // ByEventId2 provides operations to manage the exceptionOccurrences property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesRequestBuilder) ByEventId2(eventId2 string)(*ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -75,6 +76,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesRequestBui return NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -95,6 +97,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesRequestBui return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } // ToGetRequestInformation get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +112,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesRequestBui return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesRequestBuilder) { return NewItemCalendarCalendarViewItemInstancesItemExceptionOccurrencesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_instances_item_extensions_count_request_builder.go b/users/item_calendar_calendar_view_item_instances_item_extensions_count_request_builder.go index 1c65939aaa0..4793a1d0e12 100644 --- a/users/item_calendar_calendar_view_item_instances_item_extensions_count_request_builder.go +++ b/users/item_calendar_calendar_view_item_instances_item_extensions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarCalendarViewItemInstancesItemExtensionsCountRequestBuilder(r return NewItemCalendarCalendarViewItemInstancesItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemInstancesItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExtensionsCountRequestBuilder) return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExtensionsCountRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemInstancesItemExtensionsCountRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemInstancesItemExtensionsCountRequestBuilder) { return NewItemCalendarCalendarViewItemInstancesItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_instances_item_extensions_extension_item_request_builder.go b/users/item_calendar_calendar_view_item_instances_item_extensions_extension_item_request_builder.go index 7aac5165fbc..669d143c3ac 100644 --- a/users/item_calendar_calendar_view_item_instances_item_extensions_extension_item_request_builder.go +++ b/users/item_calendar_calendar_view_item_instances_item_extensions_extension_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemCalendarCalendarViewItemInstancesItemExtensionsExtensionItemRequestB return NewItemCalendarCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExtensionsExtensionItemRequest return nil } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExtensionsExtensionItemRequest return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExtensionsExtensionItemRequest return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExtensionsExtensionItemRequest return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExtensionsExtensionItemRequest return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExtensionsExtensionItemRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder) { return NewItemCalendarCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_instances_item_extensions_request_builder.go b/users/item_calendar_calendar_view_item_instances_item_extensions_request_builder.go index 23e2ad7318a..a9a5cba5f1a 100644 --- a/users/item_calendar_calendar_view_item_instances_item_extensions_request_builder.go +++ b/users/item_calendar_calendar_view_item_instances_item_extensions_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarCalendarViewItemInstancesItemExtensionsRequestBuilderPostReques Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemCalendarCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExtensionsRequestBuilder) Coun return NewItemCalendarCalendarViewItemInstancesItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemInstancesItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExtensionsRequestBuilder) Get( return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemInstancesItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExtensionsRequestBuilder) Post return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExtensionsRequestBuilder) ToGe return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemExtensionsRequestBuilder) ToPo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemInstancesItemExtensionsRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemInstancesItemExtensionsRequestBuilder) { return NewItemCalendarCalendarViewItemInstancesItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_instances_item_forward_request_builder.go b/users/item_calendar_calendar_view_item_instances_item_forward_request_builder.go index 36761402aca..6e6fd7341c8 100644 --- a/users/item_calendar_calendar_view_item_instances_item_forward_request_builder.go +++ b/users/item_calendar_calendar_view_item_instances_item_forward_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarCalendarViewItemInstancesItemForwardRequestBuilder(rawUrl st return NewItemCalendarCalendarViewItemInstancesItemForwardRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemForwardRequestBuilder) Post(ct return nil } // ToPostRequestInformation this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesItemForwardRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarCalendarViewItemInstancesItemForwardPostRequestBodyable, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemForwardRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemForwardRequestBuilder) ToPostR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemInstancesItemForwardRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesItemForwardRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemInstancesItemForwardRequestBuilder) { return NewItemCalendarCalendarViewItemInstancesItemForwardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_instances_item_permanent_delete_request_builder.go b/users/item_calendar_calendar_view_item_instances_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..772b447d9e0 --- /dev/null +++ b/users/item_calendar_calendar_view_item_instances_item_permanent_delete_request_builder.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarCalendarViewItemInstancesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_calendar_calendar_view_item_instances_item_snooze_reminder_request_builder.go b/users/item_calendar_calendar_view_item_instances_item_snooze_reminder_request_builder.go index 568ff299980..a833e67e31b 100644 --- a/users/item_calendar_calendar_view_item_instances_item_snooze_reminder_request_builder.go +++ b/users/item_calendar_calendar_view_item_instances_item_snooze_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarCalendarViewItemInstancesItemSnoozeReminderRequestBuilder(ra return NewItemCalendarCalendarViewItemInstancesItemSnoozeReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemSnoozeReminderRequestBuilder) return nil } // ToPostRequestInformation postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesItemSnoozeReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarCalendarViewItemInstancesItemSnoozeReminderPostRequestBodyable, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemSnoozeReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemSnoozeReminderRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemInstancesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesItemSnoozeReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemInstancesItemSnoozeReminderRequestBuilder) { return NewItemCalendarCalendarViewItemInstancesItemSnoozeReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_instances_item_tentatively_accept_request_builder.go b/users/item_calendar_calendar_view_item_instances_item_tentatively_accept_request_builder.go index 1b7933a8643..3f44b14c152 100644 --- a/users/item_calendar_calendar_view_item_instances_item_tentatively_accept_request_builder.go +++ b/users/item_calendar_calendar_view_item_instances_item_tentatively_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarCalendarViewItemInstancesItemTentativelyAcceptRequestBuilder return NewItemCalendarCalendarViewItemInstancesItemTentativelyAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemTentativelyAcceptRequestBuilde return nil } // ToPostRequestInformation tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesItemTentativelyAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarCalendarViewItemInstancesItemTentativelyAcceptPostRequestBodyable, requestConfiguration *ItemCalendarCalendarViewItemInstancesItemTentativelyAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarCalendarViewItemInstancesItemTentativelyAcceptRequestBuilde return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemInstancesItemTentativelyAcceptRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesItemTentativelyAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemInstancesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarCalendarViewItemInstancesItemTentativelyAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_instances_request_builder.go b/users/item_calendar_calendar_view_item_instances_request_builder.go index 6bcae332d00..8b7f6cd2555 100644 --- a/users/item_calendar_calendar_view_item_instances_request_builder.go +++ b/users/item_calendar_calendar_view_item_instances_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemCalendarCalendarViewItemInstancesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemCalendarCalendarViewItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemCalendarCalendarViewItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemCalendarCalendarViewItemInstancesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -44,6 +44,7 @@ type ItemCalendarCalendarViewItemInstancesRequestBuilderGetRequestConfiguration QueryParameters *ItemCalendarCalendarViewItemInstancesRequestBuilderGetQueryParameters } // ByEventId1 provides operations to manage the instances property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemInstancesEventItemRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesRequestBuilder) ByEventId1(eventId1 string)(*ItemCalendarCalendarViewItemInstancesEventItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -78,7 +79,8 @@ func (m *ItemCalendarCalendarViewItemInstancesRequestBuilder) Count()(*ItemCalen func (m *ItemCalendarCalendarViewItemInstancesRequestBuilder) Delta()(*ItemCalendarCalendarViewItemInstancesDeltaRequestBuilder) { return NewItemCalendarCalendarViewItemInstancesDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewItemInstancesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -98,7 +100,8 @@ func (m *ItemCalendarCalendarViewItemInstancesRequestBuilder) Get(ctx context.Co } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemInstancesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemInstancesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,6 +116,7 @@ func (m *ItemCalendarCalendarViewItemInstancesRequestBuilder) ToGetRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemInstancesRequestBuilder when successful func (m *ItemCalendarCalendarViewItemInstancesRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemInstancesRequestBuilder) { return NewItemCalendarCalendarViewItemInstancesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_permanent_delete_request_builder.go b/users/item_calendar_calendar_view_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..e3a0fc8c45a --- /dev/null +++ b/users/item_calendar_calendar_view_item_permanent_delete_request_builder.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarCalendarViewItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarCalendarViewItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarCalendarViewItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarCalendarViewItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarCalendarViewItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarCalendarViewItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarCalendarViewItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarCalendarViewItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarCalendarViewItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView/{event%2Did}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarCalendarViewItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarCalendarViewItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarCalendarViewItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarCalendarViewItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarCalendarViewItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarCalendarViewItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemCalendarCalendarViewItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemCalendarCalendarViewItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarCalendarViewItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemPermanentDeleteRequestBuilder) { + return NewItemCalendarCalendarViewItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_calendar_calendar_view_item_snooze_reminder_request_builder.go b/users/item_calendar_calendar_view_item_snooze_reminder_request_builder.go index 5618ffe36f7..9990779d507 100644 --- a/users/item_calendar_calendar_view_item_snooze_reminder_request_builder.go +++ b/users/item_calendar_calendar_view_item_snooze_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarCalendarViewItemSnoozeReminderRequestBuilder(rawUrl string, return NewItemCalendarCalendarViewItemSnoozeReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarCalendarViewItemSnoozeReminderRequestBuilder) Post(ctx cont return nil } // ToPostRequestInformation postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemSnoozeReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarCalendarViewItemSnoozeReminderPostRequestBodyable, requestConfiguration *ItemCalendarCalendarViewItemSnoozeReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarCalendarViewItemSnoozeReminderRequestBuilder) ToPostRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarCalendarViewItemSnoozeReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemSnoozeReminderRequestBuilder) { return NewItemCalendarCalendarViewItemSnoozeReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_item_tentatively_accept_request_builder.go b/users/item_calendar_calendar_view_item_tentatively_accept_request_builder.go index 1e56fbb575e..a5c2606ca24 100644 --- a/users/item_calendar_calendar_view_item_tentatively_accept_request_builder.go +++ b/users/item_calendar_calendar_view_item_tentatively_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarCalendarViewItemTentativelyAcceptRequestBuilder(rawUrl strin return NewItemCalendarCalendarViewItemTentativelyAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarCalendarViewItemTentativelyAcceptRequestBuilder) Post(ctx c return nil } // ToPostRequestInformation tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewItemTentativelyAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarCalendarViewItemTentativelyAcceptPostRequestBodyable, requestConfiguration *ItemCalendarCalendarViewItemTentativelyAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarCalendarViewItemTentativelyAcceptRequestBuilder) ToPostRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewItemTentativelyAcceptRequestBuilder when successful func (m *ItemCalendarCalendarViewItemTentativelyAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewItemTentativelyAcceptRequestBuilder) { return NewItemCalendarCalendarViewItemTentativelyAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_calendar_view_request_builder.go b/users/item_calendar_calendar_view_request_builder.go index 54de1bf0e3e..47fb4e4f033 100644 --- a/users/item_calendar_calendar_view_request_builder.go +++ b/users/item_calendar_calendar_view_request_builder.go @@ -44,6 +44,7 @@ type ItemCalendarCalendarViewRequestBuilderGetRequestConfiguration struct { QueryParameters *ItemCalendarCalendarViewRequestBuilderGetQueryParameters } // ByEventId provides operations to manage the calendarView property of the microsoft.graph.calendar entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewEventItemRequestBuilder when successful func (m *ItemCalendarCalendarViewRequestBuilder) ByEventId(eventId string)(*ItemCalendarCalendarViewEventItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -79,6 +80,7 @@ func (m *ItemCalendarCalendarViewRequestBuilder) Delta()(*ItemCalendarCalendarVi return NewItemCalendarCalendarViewDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the calendar view for the calendar. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarCalendarViewRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -99,6 +101,7 @@ func (m *ItemCalendarCalendarViewRequestBuilder) Get(ctx context.Context, reques return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } // ToGetRequestInformation the calendar view for the calendar. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarCalendarViewRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarCalendarViewRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,6 +116,7 @@ func (m *ItemCalendarCalendarViewRequestBuilder) ToGetRequestInformation(ctx con return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarCalendarViewRequestBuilder when successful func (m *ItemCalendarCalendarViewRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarCalendarViewRequestBuilder) { return NewItemCalendarCalendarViewRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_count_request_builder.go b/users/item_calendar_events_count_request_builder.go index c3f2432fab2..5ec024c8e6d 100644 --- a/users/item_calendar_events_count_request_builder.go +++ b/users/item_calendar_events_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarEventsCountRequestBuilder(rawUrl string, requestAdapter i2ae return NewItemCalendarEventsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarEventsCountRequestBuilder) Get(ctx context.Context, request return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarEventsCountRequestBuilder) ToGetRequestInformation(ctx cont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsCountRequestBuilder when successful func (m *ItemCalendarEventsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsCountRequestBuilder) { return NewItemCalendarEventsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_delta_request_builder.go b/users/item_calendar_events_delta_request_builder.go index 5dbccbcc9a5..9484d112cb0 100644 --- a/users/item_calendar_events_delta_request_builder.go +++ b/users/item_calendar_events_delta_request_builder.go @@ -80,6 +80,7 @@ func (m *ItemCalendarEventsDeltaRequestBuilder) Get(ctx context.Context, request return res.(ItemCalendarEventsDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCalendarEventsDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -103,6 +104,7 @@ func (m *ItemCalendarEventsDeltaRequestBuilder) GetAsDeltaGetResponse(ctx contex return res.(ItemCalendarEventsDeltaGetResponseable), nil } // ToGetRequestInformation get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +119,7 @@ func (m *ItemCalendarEventsDeltaRequestBuilder) ToGetRequestInformation(ctx cont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsDeltaRequestBuilder when successful func (m *ItemCalendarEventsDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsDeltaRequestBuilder) { return NewItemCalendarEventsDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_event_item_request_builder.go b/users/item_calendar_events_event_item_request_builder.go index 49c01b725ab..91251da06c6 100644 --- a/users/item_calendar_events_event_item_request_builder.go +++ b/users/item_calendar_events_event_item_request_builder.go @@ -80,6 +80,7 @@ func (m *ItemCalendarEventsEventItemRequestBuilder) Decline()(*ItemCalendarEvent return NewItemCalendarEventsItemDeclineRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Delete delete navigation property events for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsEventItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarEventsEventItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -116,6 +117,7 @@ func (m *ItemCalendarEventsEventItemRequestBuilder) Forward()(*ItemCalendarEvent return NewItemCalendarEventsItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the events in the calendar. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -141,6 +143,7 @@ func (m *ItemCalendarEventsEventItemRequestBuilder) Instances()(*ItemCalendarEve return NewItemCalendarEventsItemInstancesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property events in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsEventItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, requestConfiguration *ItemCalendarEventsEventItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -160,6 +163,11 @@ func (m *ItemCalendarEventsEventItemRequestBuilder) Patch(ctx context.Context, b } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarEventsItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarEventsEventItemRequestBuilder) PermanentDelete()(*ItemCalendarEventsItemPermanentDeleteRequestBuilder) { + return NewItemCalendarEventsItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarEventsItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarEventsEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarEventsItemSnoozeReminderRequestBuilder) { @@ -171,6 +179,7 @@ func (m *ItemCalendarEventsEventItemRequestBuilder) TentativelyAccept()(*ItemCal return NewItemCalendarEventsItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property events for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsEventItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsEventItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -182,6 +191,7 @@ func (m *ItemCalendarEventsEventItemRequestBuilder) ToDeleteRequestInformation(c return requestInfo, nil } // ToGetRequestInformation the events in the calendar. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -196,6 +206,7 @@ func (m *ItemCalendarEventsEventItemRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // ToPatchRequestInformation update the navigation property events in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsEventItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, requestConfiguration *ItemCalendarEventsEventItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -211,6 +222,7 @@ func (m *ItemCalendarEventsEventItemRequestBuilder) ToPatchRequestInformation(ct return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsEventItemRequestBuilder when successful func (m *ItemCalendarEventsEventItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsEventItemRequestBuilder) { return NewItemCalendarEventsEventItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_accept_request_builder.go b/users/item_calendar_events_item_accept_request_builder.go index dd7adffb443..c1984c3f756 100644 --- a/users/item_calendar_events_item_accept_request_builder.go +++ b/users/item_calendar_events_item_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarEventsItemAcceptRequestBuilder(rawUrl string, requestAdapter return NewItemCalendarEventsItemAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarEventsItemAcceptRequestBuilder) Post(ctx context.Context, b return nil } // ToPostRequestInformation accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarEventsItemAcceptPostRequestBodyable, requestConfiguration *ItemCalendarEventsItemAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarEventsItemAcceptRequestBuilder) ToPostRequestInformation(ct return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemAcceptRequestBuilder when successful func (m *ItemCalendarEventsItemAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemAcceptRequestBuilder) { return NewItemCalendarEventsItemAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_attachments_attachment_item_request_builder.go b/users/item_calendar_events_item_attachments_attachment_item_request_builder.go index f20da7876f1..59c18563f96 100644 --- a/users/item_calendar_events_item_attachments_attachment_item_request_builder.go +++ b/users/item_calendar_events_item_attachments_attachment_item_request_builder.go @@ -48,6 +48,7 @@ func NewItemCalendarEventsItemAttachmentsAttachmentItemRequestBuilder(rawUrl str return NewItemCalendarEventsItemAttachmentsAttachmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarEventsItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,6 +65,7 @@ func (m *ItemCalendarEventsItemAttachmentsAttachmentItemRequestBuilder) Delete(c return nil } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -84,6 +86,7 @@ func (m *ItemCalendarEventsItemAttachmentsAttachmentItemRequestBuilder) Get(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToDeleteRequestInformation delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +98,7 @@ func (m *ItemCalendarEventsItemAttachmentsAttachmentItemRequestBuilder) ToDelete return requestInfo, nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +113,7 @@ func (m *ItemCalendarEventsItemAttachmentsAttachmentItemRequestBuilder) ToGetReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarEventsItemAttachmentsAttachmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemAttachmentsAttachmentItemRequestBuilder) { return NewItemCalendarEventsItemAttachmentsAttachmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_attachments_count_request_builder.go b/users/item_calendar_events_item_attachments_count_request_builder.go index 22b2511b70c..fa406ea0d93 100644 --- a/users/item_calendar_events_item_attachments_count_request_builder.go +++ b/users/item_calendar_events_item_attachments_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarEventsItemAttachmentsCountRequestBuilder(rawUrl string, requ return NewItemCalendarEventsItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarEventsItemAttachmentsCountRequestBuilder) Get(ctx context.C return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarEventsItemAttachmentsCountRequestBuilder) ToGetRequestInfor return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemAttachmentsCountRequestBuilder when successful func (m *ItemCalendarEventsItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemAttachmentsCountRequestBuilder) { return NewItemCalendarEventsItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_attachments_create_upload_session_request_builder.go b/users/item_calendar_events_item_attachments_create_upload_session_request_builder.go index 6cce7bfcc63..046b2d5ae4c 100644 --- a/users/item_calendar_events_item_attachments_create_upload_session_request_builder.go +++ b/users/item_calendar_events_item_attachments_create_upload_session_request_builder.go @@ -32,6 +32,7 @@ func NewItemCalendarEventsItemAttachmentsCreateUploadSessionRequestBuilder(rawUr return NewItemCalendarEventsItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemCalendarEventsItemAttachmentsCreateUploadSessionRequestBuilder) Pos return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarEventsItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemCalendarEventsItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemCalendarEventsItemAttachmentsCreateUploadSessionRequestBuilder) ToP return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemCalendarEventsItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemCalendarEventsItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_attachments_request_builder.go b/users/item_calendar_events_item_attachments_request_builder.go index 3e8a3346e4b..00a91823f78 100644 --- a/users/item_calendar_events_item_attachments_request_builder.go +++ b/users/item_calendar_events_item_attachments_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarEventsItemAttachmentsRequestBuilderPostRequestConfiguration str Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentId provides operations to manage the attachments property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarEventsItemAttachmentsRequestBuilder) ByAttachmentId(attachmentId string)(*ItemCalendarEventsItemAttachmentsAttachmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemCalendarEventsItemAttachmentsRequestBuilder) CreateUploadSession()( return NewItemCalendarEventsItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemCalendarEventsItemAttachmentsRequestBuilder) Get(ctx context.Contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } // Post create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -122,6 +125,7 @@ func (m *ItemCalendarEventsItemAttachmentsRequestBuilder) Post(ctx context.Conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemCalendarEventsItemAttachmentsRequestBuilder) ToGetRequestInformatio return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemCalendarEventsItemAttachmentsRequestBuilder) ToPostRequestInformati return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemAttachmentsRequestBuilder when successful func (m *ItemCalendarEventsItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemAttachmentsRequestBuilder) { return NewItemCalendarEventsItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_calendar_request_builder.go b/users/item_calendar_events_item_calendar_request_builder.go index 57f3a8e710a..bbfecc31ad3 100644 --- a/users/item_calendar_events_item_calendar_request_builder.go +++ b/users/item_calendar_events_item_calendar_request_builder.go @@ -41,6 +41,7 @@ func NewItemCalendarEventsItemCalendarRequestBuilder(rawUrl string, requestAdapt return NewItemCalendarEventsItemCalendarRequestBuilderInternal(urlParams, requestAdapter) } // Get the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemCalendarRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemCalendarRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -61,6 +62,7 @@ func (m *ItemCalendarEventsItemCalendarRequestBuilder) Get(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable), nil } // ToGetRequestInformation the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemCalendarRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemCalendarRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemCalendarEventsItemCalendarRequestBuilder) ToGetRequestInformation(c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemCalendarRequestBuilder when successful func (m *ItemCalendarEventsItemCalendarRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemCalendarRequestBuilder) { return NewItemCalendarEventsItemCalendarRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_cancel_request_builder.go b/users/item_calendar_events_item_cancel_request_builder.go index 31ad84d63d5..70e73c5a08f 100644 --- a/users/item_calendar_events_item_cancel_request_builder.go +++ b/users/item_calendar_events_item_cancel_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarEventsItemCancelRequestBuilder(rawUrl string, requestAdapter return NewItemCalendarEventsItemCancelRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarEventsItemCancelRequestBuilder) Post(ctx context.Context, b return nil } // ToPostRequestInformation this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarEventsItemCancelPostRequestBodyable, requestConfiguration *ItemCalendarEventsItemCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarEventsItemCancelRequestBuilder) ToPostRequestInformation(ct return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemCancelRequestBuilder when successful func (m *ItemCalendarEventsItemCancelRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemCancelRequestBuilder) { return NewItemCalendarEventsItemCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_decline_request_builder.go b/users/item_calendar_events_item_decline_request_builder.go index a37317a4c6a..6bb61e98a7f 100644 --- a/users/item_calendar_events_item_decline_request_builder.go +++ b/users/item_calendar_events_item_decline_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarEventsItemDeclineRequestBuilder(rawUrl string, requestAdapte return NewItemCalendarEventsItemDeclineRequestBuilderInternal(urlParams, requestAdapter) } // Post decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarEventsItemDeclineRequestBuilder) Post(ctx context.Context, return nil } // ToPostRequestInformation decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemDeclineRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarEventsItemDeclinePostRequestBodyable, requestConfiguration *ItemCalendarEventsItemDeclineRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarEventsItemDeclineRequestBuilder) ToPostRequestInformation(c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemDeclineRequestBuilder when successful func (m *ItemCalendarEventsItemDeclineRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemDeclineRequestBuilder) { return NewItemCalendarEventsItemDeclineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_dismiss_reminder_request_builder.go b/users/item_calendar_events_item_dismiss_reminder_request_builder.go index 49f9a00d786..9279d9ebe39 100644 --- a/users/item_calendar_events_item_dismiss_reminder_request_builder.go +++ b/users/item_calendar_events_item_dismiss_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarEventsItemDismissReminderRequestBuilder(rawUrl string, reque return NewItemCalendarEventsItemDismissReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarEventsItemDismissReminderRequestBuilder) Post(ctx context.C return nil } // ToPostRequestInformation dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemDismissReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemDismissReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemCalendarEventsItemDismissReminderRequestBuilder) ToPostRequestInfor return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemDismissReminderRequestBuilder when successful func (m *ItemCalendarEventsItemDismissReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemDismissReminderRequestBuilder) { return NewItemCalendarEventsItemDismissReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_exception_occurrences_count_request_builder.go b/users/item_calendar_events_item_exception_occurrences_count_request_builder.go index 776fd945ffa..d5b4b1b5f43 100644 --- a/users/item_calendar_events_item_exception_occurrences_count_request_builder.go +++ b/users/item_calendar_events_item_exception_occurrences_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarEventsItemExceptionOccurrencesCountRequestBuilder(rawUrl str return NewItemCalendarEventsItemExceptionOccurrencesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemExceptionOccurrencesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesCountRequestBuilder) Get(ctx return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesCountRequestBuilder) ToGetReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExceptionOccurrencesCountRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemExceptionOccurrencesCountRequestBuilder) { return NewItemCalendarEventsItemExceptionOccurrencesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_exception_occurrences_delta_request_builder.go b/users/item_calendar_events_item_exception_occurrences_delta_request_builder.go index 0f7eb65c151..2614ca0e9f5 100644 --- a/users/item_calendar_events_item_exception_occurrences_delta_request_builder.go +++ b/users/item_calendar_events_item_exception_occurrences_delta_request_builder.go @@ -80,6 +80,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesDeltaRequestBuilder) Get(ctx return res.(ItemCalendarEventsItemExceptionOccurrencesDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCalendarEventsItemExceptionOccurrencesDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -103,6 +104,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesDeltaRequestBuilder) GetAsDel return res.(ItemCalendarEventsItemExceptionOccurrencesDeltaGetResponseable), nil } // ToGetRequestInformation get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +119,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesDeltaRequestBuilder) ToGetReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExceptionOccurrencesDeltaRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemExceptionOccurrencesDeltaRequestBuilder) { return NewItemCalendarEventsItemExceptionOccurrencesDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_exception_occurrences_event_item_request_builder.go b/users/item_calendar_events_item_exception_occurrences_event_item_request_builder.go index 348f83f90d9..6f8b01d8bd0 100644 --- a/users/item_calendar_events_item_exception_occurrences_event_item_request_builder.go +++ b/users/item_calendar_events_item_exception_occurrences_event_item_request_builder.go @@ -81,6 +81,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesEventItemRequestBuilder) Forw return NewItemCalendarEventsItemExceptionOccurrencesItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemExceptionOccurrencesEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -105,6 +106,11 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesEventItemRequestBuilder) Get( func (m *ItemCalendarEventsItemExceptionOccurrencesEventItemRequestBuilder) Instances()(*ItemCalendarEventsItemExceptionOccurrencesItemInstancesRequestBuilder) { return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarEventsItemExceptionOccurrencesEventItemRequestBuilder) PermanentDelete()(*ItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarEventsItemExceptionOccurrencesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarEventsItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) { @@ -116,6 +122,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesEventItemRequestBuilder) Tent return NewItemCalendarEventsItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -130,6 +137,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesEventItemRequestBuilder) ToGe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExceptionOccurrencesEventItemRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesEventItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemExceptionOccurrencesEventItemRequestBuilder) { return NewItemCalendarEventsItemExceptionOccurrencesEventItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_exception_occurrences_item_accept_request_builder.go b/users/item_calendar_events_item_exception_occurrences_item_accept_request_builder.go index 865f0b25f35..40114eb18ac 100644 --- a/users/item_calendar_events_item_exception_occurrences_item_accept_request_builder.go +++ b/users/item_calendar_events_item_exception_occurrences_item_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarEventsItemExceptionOccurrencesItemAcceptRequestBuilder(rawUr return NewItemCalendarEventsItemExceptionOccurrencesItemAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemAcceptRequestBuilder) Pos return nil } // ToPostRequestInformation accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarEventsItemExceptionOccurrencesItemAcceptPostRequestBodyable, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemAcceptRequestBuilder) ToP return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExceptionOccurrencesItemAcceptRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemExceptionOccurrencesItemAcceptRequestBuilder) { return NewItemCalendarEventsItemExceptionOccurrencesItemAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_exception_occurrences_item_attachments_attachment_item_request_builder.go b/users/item_calendar_events_item_exception_occurrences_item_attachments_attachment_item_request_builder.go index f9110395ae9..e606639613f 100644 --- a/users/item_calendar_events_item_exception_occurrences_item_attachments_attachment_item_request_builder.go +++ b/users/item_calendar_events_item_exception_occurrences_item_attachments_attachment_item_request_builder.go @@ -48,6 +48,7 @@ func NewItemCalendarEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemR return NewItemCalendarEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,6 +65,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsAttachmentItem return nil } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -84,6 +86,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsAttachmentItem return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToDeleteRequestInformation delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +98,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsAttachmentItem return requestInfo, nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +113,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsAttachmentItem return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) { return NewItemCalendarEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_exception_occurrences_item_attachments_count_request_builder.go b/users/item_calendar_events_item_exception_occurrences_item_attachments_count_request_builder.go index 645fa27666e..573cf8ca6b1 100644 --- a/users/item_calendar_events_item_exception_occurrences_item_attachments_count_request_builder.go +++ b/users/item_calendar_events_item_exception_occurrences_item_attachments_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarEventsItemExceptionOccurrencesItemAttachmentsCountRequestBui return NewItemCalendarEventsItemExceptionOccurrencesItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsCountRequestBu return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsCountRequestBu return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsCountRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) { return NewItemCalendarEventsItemExceptionOccurrencesItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_exception_occurrences_item_attachments_request_builder.go b/users/item_calendar_events_item_exception_occurrences_item_attachments_request_builder.go index 552c7f1d902..6939eea334f 100644 --- a/users/item_calendar_events_item_exception_occurrences_item_attachments_request_builder.go +++ b/users/item_calendar_events_item_exception_occurrences_item_attachments_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsRequestBuilderPost Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentId provides operations to manage the attachments property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) ByAttachmentId(attachmentId string)(*ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder return NewItemCalendarEventsItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } // Post create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -122,6 +125,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) { return NewItemCalendarEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_exception_occurrences_item_calendar_request_builder.go b/users/item_calendar_events_item_exception_occurrences_item_calendar_request_builder.go index f1365c964a4..a67db1ba46f 100644 --- a/users/item_calendar_events_item_exception_occurrences_item_calendar_request_builder.go +++ b/users/item_calendar_events_item_exception_occurrences_item_calendar_request_builder.go @@ -41,6 +41,7 @@ func NewItemCalendarEventsItemExceptionOccurrencesItemCalendarRequestBuilder(raw return NewItemCalendarEventsItemExceptionOccurrencesItemCalendarRequestBuilderInternal(urlParams, requestAdapter) } // Get the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemExceptionOccurrencesItemCalendarRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemCalendarRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -61,6 +62,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemCalendarRequestBuilder) G return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable), nil } // ToGetRequestInformation the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemCalendarRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemCalendarRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemCalendarRequestBuilder) T return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExceptionOccurrencesItemCalendarRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemCalendarRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemExceptionOccurrencesItemCalendarRequestBuilder) { return NewItemCalendarEventsItemExceptionOccurrencesItemCalendarRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_exception_occurrences_item_cancel_request_builder.go b/users/item_calendar_events_item_exception_occurrences_item_cancel_request_builder.go index 7bb6b966d6f..a0c8e7b1e5b 100644 --- a/users/item_calendar_events_item_exception_occurrences_item_cancel_request_builder.go +++ b/users/item_calendar_events_item_exception_occurrences_item_cancel_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarEventsItemExceptionOccurrencesItemCancelRequestBuilder(rawUr return NewItemCalendarEventsItemExceptionOccurrencesItemCancelRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemCancelRequestBuilder) Pos return nil } // ToPostRequestInformation this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarEventsItemExceptionOccurrencesItemCancelPostRequestBodyable, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemCancelRequestBuilder) ToP return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExceptionOccurrencesItemCancelRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemCancelRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemExceptionOccurrencesItemCancelRequestBuilder) { return NewItemCalendarEventsItemExceptionOccurrencesItemCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_exception_occurrences_item_decline_request_builder.go b/users/item_calendar_events_item_exception_occurrences_item_decline_request_builder.go index 8d4d84ee1d0..82a14d2271d 100644 --- a/users/item_calendar_events_item_exception_occurrences_item_decline_request_builder.go +++ b/users/item_calendar_events_item_exception_occurrences_item_decline_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarEventsItemExceptionOccurrencesItemDeclineRequestBuilder(rawU return NewItemCalendarEventsItemExceptionOccurrencesItemDeclineRequestBuilderInternal(urlParams, requestAdapter) } // Post decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemDeclineRequestBuilder) Po return nil } // ToPostRequestInformation decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemDeclineRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarEventsItemExceptionOccurrencesItemDeclinePostRequestBodyable, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemDeclineRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemDeclineRequestBuilder) To return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExceptionOccurrencesItemDeclineRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemDeclineRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemExceptionOccurrencesItemDeclineRequestBuilder) { return NewItemCalendarEventsItemExceptionOccurrencesItemDeclineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_exception_occurrences_item_dismiss_reminder_request_builder.go b/users/item_calendar_events_item_exception_occurrences_item_dismiss_reminder_request_builder.go index 0304dce6798..e603057d7c8 100644 --- a/users/item_calendar_events_item_exception_occurrences_item_dismiss_reminder_request_builder.go +++ b/users/item_calendar_events_item_exception_occurrences_item_dismiss_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarEventsItemExceptionOccurrencesItemDismissReminderRequestBuil return NewItemCalendarEventsItemExceptionOccurrencesItemDismissReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemDismissReminderRequestBui return nil } // ToPostRequestInformation dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemDismissReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemDismissReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemDismissReminderRequestBui return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExceptionOccurrencesItemDismissReminderRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemDismissReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemExceptionOccurrencesItemDismissReminderRequestBuilder) { return NewItemCalendarEventsItemExceptionOccurrencesItemDismissReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_exception_occurrences_item_extensions_count_request_builder.go b/users/item_calendar_events_item_exception_occurrences_item_extensions_count_request_builder.go index 6ec500f9068..64d49e18471 100644 --- a/users/item_calendar_events_item_exception_occurrences_item_extensions_count_request_builder.go +++ b/users/item_calendar_events_item_exception_occurrences_item_extensions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarEventsItemExceptionOccurrencesItemExtensionsCountRequestBuil return NewItemCalendarEventsItemExceptionOccurrencesItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsCountRequestBui return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsCountRequestBui return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsCountRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemExceptionOccurrencesItemExtensionsCountRequestBuilder) { return NewItemCalendarEventsItemExceptionOccurrencesItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_exception_occurrences_item_extensions_extension_item_request_builder.go b/users/item_calendar_events_item_exception_occurrences_item_extensions_extension_item_request_builder.go index 5fffaae2711..22d00c24661 100644 --- a/users/item_calendar_events_item_exception_occurrences_item_extensions_extension_item_request_builder.go +++ b/users/item_calendar_events_item_exception_occurrences_item_extensions_extension_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemCalendarEventsItemExceptionOccurrencesItemExtensionsExtensionItemReq return NewItemCalendarEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsExtensionItemRe return nil } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsExtensionItemRe return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsExtensionItemRe return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsExtensionItemRe return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsExtensionItemRe return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsExtensionItemRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) { return NewItemCalendarEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_exception_occurrences_item_extensions_request_builder.go b/users/item_calendar_events_item_exception_occurrences_item_extensions_request_builder.go index f98123eaf6a..2f58cc0989c 100644 --- a/users/item_calendar_events_item_exception_occurrences_item_extensions_request_builder.go +++ b/users/item_calendar_events_item_exception_occurrences_item_extensions_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarEventsItemExceptionOccurrencesItemExtensionsRequestBuilderPostR Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemCalendarEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) return NewItemCalendarEventsItemExceptionOccurrencesItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) { return NewItemCalendarEventsItemExceptionOccurrencesItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_exception_occurrences_item_forward_request_builder.go b/users/item_calendar_events_item_exception_occurrences_item_forward_request_builder.go index 27dcf72a4d5..97fa480fa0a 100644 --- a/users/item_calendar_events_item_exception_occurrences_item_forward_request_builder.go +++ b/users/item_calendar_events_item_exception_occurrences_item_forward_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarEventsItemExceptionOccurrencesItemForwardRequestBuilder(rawU return NewItemCalendarEventsItemExceptionOccurrencesItemForwardRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemForwardRequestBuilder) Po return nil } // ToPostRequestInformation this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemForwardRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarEventsItemExceptionOccurrencesItemForwardPostRequestBodyable, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemForwardRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemForwardRequestBuilder) To return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExceptionOccurrencesItemForwardRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemForwardRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemExceptionOccurrencesItemForwardRequestBuilder) { return NewItemCalendarEventsItemExceptionOccurrencesItemForwardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_exception_occurrences_item_instances_count_request_builder.go b/users/item_calendar_events_item_exception_occurrences_item_instances_count_request_builder.go index de759f52881..0bc7f067f6e 100644 --- a/users/item_calendar_events_item_exception_occurrences_item_instances_count_request_builder.go +++ b/users/item_calendar_events_item_exception_occurrences_item_instances_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarEventsItemExceptionOccurrencesItemInstancesCountRequestBuild return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesCountRequestBuil return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesCountRequestBuil return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExceptionOccurrencesItemInstancesCountRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemExceptionOccurrencesItemInstancesCountRequestBuilder) { return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_exception_occurrences_item_instances_delta_request_builder.go b/users/item_calendar_events_item_exception_occurrences_item_instances_delta_request_builder.go index a1c8b46f39e..73b6264b306 100644 --- a/users/item_calendar_events_item_exception_occurrences_item_instances_delta_request_builder.go +++ b/users/item_calendar_events_item_exception_occurrences_item_instances_delta_request_builder.go @@ -80,6 +80,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesDeltaRequestBuil return res.(ItemCalendarEventsItemExceptionOccurrencesItemInstancesDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCalendarEventsItemExceptionOccurrencesItemInstancesDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -103,6 +104,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesDeltaRequestBuil return res.(ItemCalendarEventsItemExceptionOccurrencesItemInstancesDeltaGetResponseable), nil } // ToGetRequestInformation get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +119,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesDeltaRequestBuil return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExceptionOccurrencesItemInstancesDeltaRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemExceptionOccurrencesItemInstancesDeltaRequestBuilder) { return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_exception_occurrences_item_instances_event_item_request_builder.go b/users/item_calendar_events_item_exception_occurrences_item_instances_event_item_request_builder.go index b3f5f88cca4..49f2befb838 100644 --- a/users/item_calendar_events_item_exception_occurrences_item_instances_event_item_request_builder.go +++ b/users/item_calendar_events_item_exception_occurrences_item_instances_event_item_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemCalendarEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemCalendarEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemCalendarEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemCalendarEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetQueryParameters struct { // The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 EndDateTime *string `uriparametername:"endDateTime"` @@ -84,7 +84,8 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesEventItemRequest func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) Forward()(*ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder) { return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -104,6 +105,11 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesEventItemRequest } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) PermanentDelete()(*ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder) { @@ -114,7 +120,8 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesEventItemRequest func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) TentativelyAccept()(*ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -129,6 +136,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesEventItemRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) { return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_exception_occurrences_item_instances_item_accept_request_builder.go b/users/item_calendar_events_item_exception_occurrences_item_instances_item_accept_request_builder.go index 1533af4b0e6..24cc4dce884 100644 --- a/users/item_calendar_events_item_exception_occurrences_item_instances_item_accept_request_builder.go +++ b/users/item_calendar_events_item_exception_occurrences_item_instances_item_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAcceptRequest return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAcceptReques return nil } // ToPostRequestInformation accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAcceptPostRequestBodyable, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAcceptReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilder) { return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go b/users/item_calendar_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go index e05596d640e..dcac4d28f7f 100644 --- a/users/item_calendar_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go +++ b/users/item_calendar_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsReque Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentId provides operations to manage the attachments property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ByAttachmentId(attachmentId string)(*ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsR return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsR return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } // Post create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -122,6 +125,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsR return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsR return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) { return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_exception_occurrences_item_instances_item_calendar_request_builder.go b/users/item_calendar_events_item_exception_occurrences_item_instances_item_calendar_request_builder.go index cb9808b2cb9..8e5a46b0076 100644 --- a/users/item_calendar_events_item_exception_occurrences_item_instances_item_calendar_request_builder.go +++ b/users/item_calendar_events_item_exception_occurrences_item_instances_item_calendar_request_builder.go @@ -41,6 +41,7 @@ func NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemCalendarReque return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilderInternal(urlParams, requestAdapter) } // Get the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -61,6 +62,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemCalendarRequ return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable), nil } // ToGetRequestInformation the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemCalendarRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder) { return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_exception_occurrences_item_instances_item_cancel_request_builder.go b/users/item_calendar_events_item_exception_occurrences_item_instances_item_cancel_request_builder.go index eeb76d8004e..c889c64775d 100644 --- a/users/item_calendar_events_item_exception_occurrences_item_instances_item_cancel_request_builder.go +++ b/users/item_calendar_events_item_exception_occurrences_item_instances_item_cancel_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemCancelRequest return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemCancelRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemCancelReques return nil } // ToPostRequestInformation this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemCancelPostRequestBodyable, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemCancelReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemCancelRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemCancelRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemCancelRequestBuilder) { return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_exception_occurrences_item_instances_item_decline_request_builder.go b/users/item_calendar_events_item_exception_occurrences_item_instances_item_decline_request_builder.go index dd839197188..66f6041c0f3 100644 --- a/users/item_calendar_events_item_exception_occurrences_item_instances_item_decline_request_builder.go +++ b/users/item_calendar_events_item_exception_occurrences_item_instances_item_decline_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemDeclineReques return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilderInternal(urlParams, requestAdapter) } // Post decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemDeclineReque return nil } // ToPostRequestInformation decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemDeclinePostRequestBodyable, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemDeclineReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilder) { return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_exception_occurrences_item_instances_item_dismiss_reminder_request_builder.go b/users/item_calendar_events_item_exception_occurrences_item_instances_item_dismiss_reminder_request_builder.go index 38cef9fb262..0b5b353cfe2 100644 --- a/users/item_calendar_events_item_exception_occurrences_item_instances_item_dismiss_reminder_request_builder.go +++ b/users/item_calendar_events_item_exception_occurrences_item_instances_item_dismiss_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemDismissRemind return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemDismissRemin return nil } // ToPostRequestInformation dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemDismissRemin return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilder) { return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_exception_occurrences_item_instances_item_extensions_count_request_builder.go b/users/item_calendar_events_item_exception_occurrences_item_instances_item_extensions_count_request_builder.go index 4de5dd7ba9b..59df699e905 100644 --- a/users/item_calendar_events_item_exception_occurrences_item_instances_item_extensions_count_request_builder.go +++ b/users/item_calendar_events_item_exception_occurrences_item_instances_item_extensions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsCou return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsCo return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsCo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder) { return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_exception_occurrences_item_instances_item_extensions_request_builder.go b/users/item_calendar_events_item_exception_occurrences_item_instances_item_extensions_request_builder.go index 09474fa1c08..44912d7047b 100644 --- a/users/item_calendar_events_item_exception_occurrences_item_instances_item_extensions_request_builder.go +++ b/users/item_calendar_events_item_exception_occurrences_item_instances_item_extensions_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsReques Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsRe return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsRe return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsRe return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsRe return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) { return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_exception_occurrences_item_instances_item_forward_request_builder.go b/users/item_calendar_events_item_exception_occurrences_item_instances_item_forward_request_builder.go index 7892d618643..6b029120002 100644 --- a/users/item_calendar_events_item_exception_occurrences_item_instances_item_forward_request_builder.go +++ b/users/item_calendar_events_item_exception_occurrences_item_instances_item_forward_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemForwardReques return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemForwardRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemForwardReque return nil } // ToPostRequestInformation this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemForwardPostRequestBodyable, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemForwardRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemForwardReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder) { return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_exception_occurrences_item_instances_item_permanent_delete_request_builder.go b/users/item_calendar_events_item_exception_occurrences_item_instances_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..f602830c9a4 --- /dev/null +++ b/users/item_calendar_events_item_exception_occurrences_item_instances_item_permanent_delete_request_builder.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/exceptionOccurrences/{event%2Did1}/instances/{event%2Did2}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_calendar_events_item_exception_occurrences_item_instances_item_snooze_reminder_request_builder.go b/users/item_calendar_events_item_exception_occurrences_item_instances_item_snooze_reminder_request_builder.go index 81a30557ca3..4d98ff6a922 100644 --- a/users/item_calendar_events_item_exception_occurrences_item_instances_item_snooze_reminder_request_builder.go +++ b/users/item_calendar_events_item_exception_occurrences_item_instances_item_snooze_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminde return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemSnoozeRemind return nil } // ToPostRequestInformation postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderPostRequestBodyable, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemSnoozeRemind return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder) { return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_exception_occurrences_item_instances_request_builder.go b/users/item_calendar_events_item_exception_occurrences_item_instances_request_builder.go index 39d23b53f09..09a1ea9bf50 100644 --- a/users/item_calendar_events_item_exception_occurrences_item_instances_request_builder.go +++ b/users/item_calendar_events_item_exception_occurrences_item_instances_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemCalendarEventsItemExceptionOccurrencesItemInstancesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemCalendarEventsItemExceptionOccurrencesItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemCalendarEventsItemExceptionOccurrencesItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemCalendarEventsItemExceptionOccurrencesItemInstancesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -44,6 +44,7 @@ type ItemCalendarEventsItemExceptionOccurrencesItemInstancesRequestBuilderGetReq QueryParameters *ItemCalendarEventsItemExceptionOccurrencesItemInstancesRequestBuilderGetQueryParameters } // ByEventId2 provides operations to manage the instances property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesRequestBuilder) ByEventId2(eventId2 string)(*ItemCalendarEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -78,7 +79,8 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesRequestBuilder) func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesRequestBuilder) Delta()(*ItemCalendarEventsItemExceptionOccurrencesItemInstancesDeltaRequestBuilder) { return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -98,7 +100,8 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesRequestBuilder) } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemInstancesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,6 +116,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExceptionOccurrencesItemInstancesRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemInstancesRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemExceptionOccurrencesItemInstancesRequestBuilder) { return NewItemCalendarEventsItemExceptionOccurrencesItemInstancesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_exception_occurrences_item_permanent_delete_request_builder.go b/users/item_calendar_events_item_exception_occurrences_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..bce767f3528 --- /dev/null +++ b/users/item_calendar_events_item_exception_occurrences_item_permanent_delete_request_builder.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/exceptionOccurrences/{event%2Did1}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_calendar_events_item_exception_occurrences_item_snooze_reminder_request_builder.go b/users/item_calendar_events_item_exception_occurrences_item_snooze_reminder_request_builder.go index fada856ebda..235ec0e0b05 100644 --- a/users/item_calendar_events_item_exception_occurrences_item_snooze_reminder_request_builder.go +++ b/users/item_calendar_events_item_exception_occurrences_item_snooze_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarEventsItemExceptionOccurrencesItemSnoozeReminderRequestBuild return NewItemCalendarEventsItemExceptionOccurrencesItemSnoozeReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemSnoozeReminderRequestBuil return nil } // ToPostRequestInformation postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarEventsItemExceptionOccurrencesItemSnoozeReminderPostRequestBodyable, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemSnoozeReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemSnoozeReminderRequestBuil return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExceptionOccurrencesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) { return NewItemCalendarEventsItemExceptionOccurrencesItemSnoozeReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_exception_occurrences_item_tentatively_accept_request_builder.go b/users/item_calendar_events_item_exception_occurrences_item_tentatively_accept_request_builder.go index 4a1e2062d54..369026a3002 100644 --- a/users/item_calendar_events_item_exception_occurrences_item_tentatively_accept_request_builder.go +++ b/users/item_calendar_events_item_exception_occurrences_item_tentatively_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarEventsItemExceptionOccurrencesItemTentativelyAcceptRequestBu return NewItemCalendarEventsItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemTentativelyAcceptRequestB return nil } // ToPostRequestInformation tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarEventsItemExceptionOccurrencesItemTentativelyAcceptPostRequestBodyable, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesItemTentativelyAcceptRequestB return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarEventsItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_exception_occurrences_request_builder.go b/users/item_calendar_events_item_exception_occurrences_request_builder.go index 4ad26340074..5f034200bba 100644 --- a/users/item_calendar_events_item_exception_occurrences_request_builder.go +++ b/users/item_calendar_events_item_exception_occurrences_request_builder.go @@ -40,6 +40,7 @@ type ItemCalendarEventsItemExceptionOccurrencesRequestBuilderGetRequestConfigura QueryParameters *ItemCalendarEventsItemExceptionOccurrencesRequestBuilderGetQueryParameters } // ByEventId1 provides operations to manage the exceptionOccurrences property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExceptionOccurrencesEventItemRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesRequestBuilder) ByEventId1(eventId1 string)(*ItemCalendarEventsItemExceptionOccurrencesEventItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -75,6 +76,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesRequestBuilder) Delta()(*Item return NewItemCalendarEventsItemExceptionOccurrencesDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemExceptionOccurrencesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -95,6 +97,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesRequestBuilder) Get(ctx conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } // ToGetRequestInformation get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExceptionOccurrencesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExceptionOccurrencesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +112,7 @@ func (m *ItemCalendarEventsItemExceptionOccurrencesRequestBuilder) ToGetRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExceptionOccurrencesRequestBuilder when successful func (m *ItemCalendarEventsItemExceptionOccurrencesRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemExceptionOccurrencesRequestBuilder) { return NewItemCalendarEventsItemExceptionOccurrencesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_extensions_count_request_builder.go b/users/item_calendar_events_item_extensions_count_request_builder.go index 02560773cd1..279e98e0011 100644 --- a/users/item_calendar_events_item_extensions_count_request_builder.go +++ b/users/item_calendar_events_item_extensions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarEventsItemExtensionsCountRequestBuilder(rawUrl string, reque return NewItemCalendarEventsItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarEventsItemExtensionsCountRequestBuilder) Get(ctx context.Co return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarEventsItemExtensionsCountRequestBuilder) ToGetRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExtensionsCountRequestBuilder when successful func (m *ItemCalendarEventsItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemExtensionsCountRequestBuilder) { return NewItemCalendarEventsItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_extensions_extension_item_request_builder.go b/users/item_calendar_events_item_extensions_extension_item_request_builder.go index 091598ff0bc..2f88ef15c85 100644 --- a/users/item_calendar_events_item_extensions_extension_item_request_builder.go +++ b/users/item_calendar_events_item_extensions_extension_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemCalendarEventsItemExtensionsExtensionItemRequestBuilder(rawUrl strin return NewItemCalendarEventsItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemCalendarEventsItemExtensionsExtensionItemRequestBuilder) Delete(ctx return nil } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemCalendarEventsItemExtensionsExtensionItemRequestBuilder) Get(ctx co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarEventsItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemCalendarEventsItemExtensionsExtensionItemRequestBuilder) Patch(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemCalendarEventsItemExtensionsExtensionItemRequestBuilder) ToDeleteRe return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemCalendarEventsItemExtensionsExtensionItemRequestBuilder) ToGetReque return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarEventsItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemCalendarEventsItemExtensionsExtensionItemRequestBuilder) ToPatchReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarEventsItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemExtensionsExtensionItemRequestBuilder) { return NewItemCalendarEventsItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_extensions_request_builder.go b/users/item_calendar_events_item_extensions_request_builder.go index e2a98069d49..931e9961e60 100644 --- a/users/item_calendar_events_item_extensions_request_builder.go +++ b/users/item_calendar_events_item_extensions_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarEventsItemExtensionsRequestBuilderPostRequestConfiguration stru Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarEventsItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemCalendarEventsItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemCalendarEventsItemExtensionsRequestBuilder) Count()(*ItemCalendarEv return NewItemCalendarEventsItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemCalendarEventsItemExtensionsRequestBuilder) Get(ctx context.Context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarEventsItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemCalendarEventsItemExtensionsRequestBuilder) Post(ctx context.Contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemCalendarEventsItemExtensionsRequestBuilder) ToGetRequestInformation return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarEventsItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemCalendarEventsItemExtensionsRequestBuilder) ToPostRequestInformatio return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemExtensionsRequestBuilder when successful func (m *ItemCalendarEventsItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemExtensionsRequestBuilder) { return NewItemCalendarEventsItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_forward_request_builder.go b/users/item_calendar_events_item_forward_request_builder.go index e2dd66fbfd5..8e527ccca38 100644 --- a/users/item_calendar_events_item_forward_request_builder.go +++ b/users/item_calendar_events_item_forward_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarEventsItemForwardRequestBuilder(rawUrl string, requestAdapte return NewItemCalendarEventsItemForwardRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarEventsItemForwardRequestBuilder) Post(ctx context.Context, return nil } // ToPostRequestInformation this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemForwardRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarEventsItemForwardPostRequestBodyable, requestConfiguration *ItemCalendarEventsItemForwardRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarEventsItemForwardRequestBuilder) ToPostRequestInformation(c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemForwardRequestBuilder when successful func (m *ItemCalendarEventsItemForwardRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemForwardRequestBuilder) { return NewItemCalendarEventsItemForwardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_instances_count_request_builder.go b/users/item_calendar_events_item_instances_count_request_builder.go index 1f0d8585676..40bc04a6826 100644 --- a/users/item_calendar_events_item_instances_count_request_builder.go +++ b/users/item_calendar_events_item_instances_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarEventsItemInstancesCountRequestBuilder(rawUrl string, reques return NewItemCalendarEventsItemInstancesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemInstancesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarEventsItemInstancesCountRequestBuilder) Get(ctx context.Con return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarEventsItemInstancesCountRequestBuilder) ToGetRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemInstancesCountRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemInstancesCountRequestBuilder) { return NewItemCalendarEventsItemInstancesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_instances_delta_request_builder.go b/users/item_calendar_events_item_instances_delta_request_builder.go index edb35f20bab..a9c56fb1c7f 100644 --- a/users/item_calendar_events_item_instances_delta_request_builder.go +++ b/users/item_calendar_events_item_instances_delta_request_builder.go @@ -80,6 +80,7 @@ func (m *ItemCalendarEventsItemInstancesDeltaRequestBuilder) Get(ctx context.Con return res.(ItemCalendarEventsItemInstancesDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCalendarEventsItemInstancesDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -103,6 +104,7 @@ func (m *ItemCalendarEventsItemInstancesDeltaRequestBuilder) GetAsDeltaGetRespon return res.(ItemCalendarEventsItemInstancesDeltaGetResponseable), nil } // ToGetRequestInformation get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +119,7 @@ func (m *ItemCalendarEventsItemInstancesDeltaRequestBuilder) ToGetRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemInstancesDeltaRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemInstancesDeltaRequestBuilder) { return NewItemCalendarEventsItemInstancesDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_instances_event_item_request_builder.go b/users/item_calendar_events_item_instances_event_item_request_builder.go index bb8749692fa..48ed1c0cd4c 100644 --- a/users/item_calendar_events_item_instances_event_item_request_builder.go +++ b/users/item_calendar_events_item_instances_event_item_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemCalendarEventsItemInstancesEventItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemCalendarEventsItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemCalendarEventsItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemCalendarEventsItemInstancesEventItemRequestBuilderGetQueryParameters struct { // The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 EndDateTime *string `uriparametername:"endDateTime"` @@ -89,7 +89,8 @@ func (m *ItemCalendarEventsItemInstancesEventItemRequestBuilder) Extensions()(*I func (m *ItemCalendarEventsItemInstancesEventItemRequestBuilder) Forward()(*ItemCalendarEventsItemInstancesItemForwardRequestBuilder) { return NewItemCalendarEventsItemInstancesItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemInstancesEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -109,6 +110,11 @@ func (m *ItemCalendarEventsItemInstancesEventItemRequestBuilder) Get(ctx context } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarEventsItemInstancesEventItemRequestBuilder) PermanentDelete()(*ItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarEventsItemInstancesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarEventsItemInstancesItemSnoozeReminderRequestBuilder) { @@ -119,7 +125,8 @@ func (m *ItemCalendarEventsItemInstancesEventItemRequestBuilder) SnoozeReminder( func (m *ItemCalendarEventsItemInstancesEventItemRequestBuilder) TentativelyAccept()(*ItemCalendarEventsItemInstancesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarEventsItemInstancesItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -134,6 +141,7 @@ func (m *ItemCalendarEventsItemInstancesEventItemRequestBuilder) ToGetRequestInf return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemInstancesEventItemRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesEventItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemInstancesEventItemRequestBuilder) { return NewItemCalendarEventsItemInstancesEventItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_instances_item_accept_request_builder.go b/users/item_calendar_events_item_instances_item_accept_request_builder.go index fede64786b4..beeab3b7de2 100644 --- a/users/item_calendar_events_item_instances_item_accept_request_builder.go +++ b/users/item_calendar_events_item_instances_item_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarEventsItemInstancesItemAcceptRequestBuilder(rawUrl string, r return NewItemCalendarEventsItemInstancesItemAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarEventsItemInstancesItemAcceptRequestBuilder) Post(ctx conte return nil } // ToPostRequestInformation accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesItemAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarEventsItemInstancesItemAcceptPostRequestBodyable, requestConfiguration *ItemCalendarEventsItemInstancesItemAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarEventsItemInstancesItemAcceptRequestBuilder) ToPostRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemInstancesItemAcceptRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesItemAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemInstancesItemAcceptRequestBuilder) { return NewItemCalendarEventsItemInstancesItemAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_instances_item_attachments_attachment_item_request_builder.go b/users/item_calendar_events_item_instances_item_attachments_attachment_item_request_builder.go index 8cc925c95d0..20a8b3bede5 100644 --- a/users/item_calendar_events_item_instances_item_attachments_attachment_item_request_builder.go +++ b/users/item_calendar_events_item_instances_item_attachments_attachment_item_request_builder.go @@ -48,6 +48,7 @@ func NewItemCalendarEventsItemInstancesItemAttachmentsAttachmentItemRequestBuild return NewItemCalendarEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,6 +65,7 @@ func (m *ItemCalendarEventsItemInstancesItemAttachmentsAttachmentItemRequestBuil return nil } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -84,6 +86,7 @@ func (m *ItemCalendarEventsItemInstancesItemAttachmentsAttachmentItemRequestBuil return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToDeleteRequestInformation delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +98,7 @@ func (m *ItemCalendarEventsItemInstancesItemAttachmentsAttachmentItemRequestBuil return requestInfo, nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +113,7 @@ func (m *ItemCalendarEventsItemInstancesItemAttachmentsAttachmentItemRequestBuil return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilder) { return NewItemCalendarEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_instances_item_attachments_count_request_builder.go b/users/item_calendar_events_item_instances_item_attachments_count_request_builder.go index 147965bac54..db74c1413e2 100644 --- a/users/item_calendar_events_item_instances_item_attachments_count_request_builder.go +++ b/users/item_calendar_events_item_instances_item_attachments_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarEventsItemInstancesItemAttachmentsCountRequestBuilder(rawUrl return NewItemCalendarEventsItemInstancesItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemInstancesItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarEventsItemInstancesItemAttachmentsCountRequestBuilder) Get( return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarEventsItemInstancesItemAttachmentsCountRequestBuilder) ToGe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemInstancesItemAttachmentsCountRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemInstancesItemAttachmentsCountRequestBuilder) { return NewItemCalendarEventsItemInstancesItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_instances_item_attachments_create_upload_session_request_builder.go b/users/item_calendar_events_item_instances_item_attachments_create_upload_session_request_builder.go index 8601549d502..35d8fbf0907 100644 --- a/users/item_calendar_events_item_instances_item_attachments_create_upload_session_request_builder.go +++ b/users/item_calendar_events_item_instances_item_attachments_create_upload_session_request_builder.go @@ -32,6 +32,7 @@ func NewItemCalendarEventsItemInstancesItemAttachmentsCreateUploadSessionRequest return NewItemCalendarEventsItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemCalendarEventsItemInstancesItemAttachmentsCreateUploadSessionReques return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarEventsItemInstancesItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemCalendarEventsItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemCalendarEventsItemInstancesItemAttachmentsCreateUploadSessionReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemCalendarEventsItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_instances_item_attachments_request_builder.go b/users/item_calendar_events_item_instances_item_attachments_request_builder.go index 095097332fa..3542cfb5d71 100644 --- a/users/item_calendar_events_item_instances_item_attachments_request_builder.go +++ b/users/item_calendar_events_item_instances_item_attachments_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarEventsItemInstancesItemAttachmentsRequestBuilderPostRequestConf Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentId provides operations to manage the attachments property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesItemAttachmentsRequestBuilder) ByAttachmentId(attachmentId string)(*ItemCalendarEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemCalendarEventsItemInstancesItemAttachmentsRequestBuilder) CreateUpl return NewItemCalendarEventsItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemInstancesItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemCalendarEventsItemInstancesItemAttachmentsRequestBuilder) Get(ctx c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } // Post create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -122,6 +125,7 @@ func (m *ItemCalendarEventsItemInstancesItemAttachmentsRequestBuilder) Post(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemCalendarEventsItemInstancesItemAttachmentsRequestBuilder) ToGetRequ return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemCalendarEventsItemInstancesItemAttachmentsRequestBuilder) ToPostReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemInstancesItemAttachmentsRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemInstancesItemAttachmentsRequestBuilder) { return NewItemCalendarEventsItemInstancesItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_instances_item_calendar_request_builder.go b/users/item_calendar_events_item_instances_item_calendar_request_builder.go index 9ca11a4ae40..101fc26b550 100644 --- a/users/item_calendar_events_item_instances_item_calendar_request_builder.go +++ b/users/item_calendar_events_item_instances_item_calendar_request_builder.go @@ -41,6 +41,7 @@ func NewItemCalendarEventsItemInstancesItemCalendarRequestBuilder(rawUrl string, return NewItemCalendarEventsItemInstancesItemCalendarRequestBuilderInternal(urlParams, requestAdapter) } // Get the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemInstancesItemCalendarRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemCalendarRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -61,6 +62,7 @@ func (m *ItemCalendarEventsItemInstancesItemCalendarRequestBuilder) Get(ctx cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable), nil } // ToGetRequestInformation the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesItemCalendarRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemCalendarRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemCalendarEventsItemInstancesItemCalendarRequestBuilder) ToGetRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemInstancesItemCalendarRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesItemCalendarRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemInstancesItemCalendarRequestBuilder) { return NewItemCalendarEventsItemInstancesItemCalendarRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_instances_item_cancel_request_builder.go b/users/item_calendar_events_item_instances_item_cancel_request_builder.go index 2ea47f81e80..ef7859782ab 100644 --- a/users/item_calendar_events_item_instances_item_cancel_request_builder.go +++ b/users/item_calendar_events_item_instances_item_cancel_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarEventsItemInstancesItemCancelRequestBuilder(rawUrl string, r return NewItemCalendarEventsItemInstancesItemCancelRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarEventsItemInstancesItemCancelRequestBuilder) Post(ctx conte return nil } // ToPostRequestInformation this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesItemCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarEventsItemInstancesItemCancelPostRequestBodyable, requestConfiguration *ItemCalendarEventsItemInstancesItemCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarEventsItemInstancesItemCancelRequestBuilder) ToPostRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemInstancesItemCancelRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesItemCancelRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemInstancesItemCancelRequestBuilder) { return NewItemCalendarEventsItemInstancesItemCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_instances_item_decline_request_builder.go b/users/item_calendar_events_item_instances_item_decline_request_builder.go index 483e911cd50..d080945a970 100644 --- a/users/item_calendar_events_item_instances_item_decline_request_builder.go +++ b/users/item_calendar_events_item_instances_item_decline_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarEventsItemInstancesItemDeclineRequestBuilder(rawUrl string, return NewItemCalendarEventsItemInstancesItemDeclineRequestBuilderInternal(urlParams, requestAdapter) } // Post decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarEventsItemInstancesItemDeclineRequestBuilder) Post(ctx cont return nil } // ToPostRequestInformation decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesItemDeclineRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarEventsItemInstancesItemDeclinePostRequestBodyable, requestConfiguration *ItemCalendarEventsItemInstancesItemDeclineRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarEventsItemInstancesItemDeclineRequestBuilder) ToPostRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemInstancesItemDeclineRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesItemDeclineRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemInstancesItemDeclineRequestBuilder) { return NewItemCalendarEventsItemInstancesItemDeclineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_instances_item_dismiss_reminder_request_builder.go b/users/item_calendar_events_item_instances_item_dismiss_reminder_request_builder.go index f18d8ecbcc2..aa4031b2af9 100644 --- a/users/item_calendar_events_item_instances_item_dismiss_reminder_request_builder.go +++ b/users/item_calendar_events_item_instances_item_dismiss_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarEventsItemInstancesItemDismissReminderRequestBuilder(rawUrl return NewItemCalendarEventsItemInstancesItemDismissReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarEventsItemInstancesItemDismissReminderRequestBuilder) Post( return nil } // ToPostRequestInformation dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesItemDismissReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemDismissReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemCalendarEventsItemInstancesItemDismissReminderRequestBuilder) ToPos return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemInstancesItemDismissReminderRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesItemDismissReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemInstancesItemDismissReminderRequestBuilder) { return NewItemCalendarEventsItemInstancesItemDismissReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_instances_item_exception_occurrences_count_request_builder.go b/users/item_calendar_events_item_instances_item_exception_occurrences_count_request_builder.go index 4c41e18917f..f518f300fd7 100644 --- a/users/item_calendar_events_item_instances_item_exception_occurrences_count_request_builder.go +++ b/users/item_calendar_events_item_instances_item_exception_occurrences_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarEventsItemInstancesItemExceptionOccurrencesCountRequestBuild return NewItemCalendarEventsItemInstancesItemExceptionOccurrencesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesCountRequestBuil return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesCountRequestBuil return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemInstancesItemExceptionOccurrencesCountRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemInstancesItemExceptionOccurrencesCountRequestBuilder) { return NewItemCalendarEventsItemInstancesItemExceptionOccurrencesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_instances_item_exception_occurrences_delta_request_builder.go b/users/item_calendar_events_item_instances_item_exception_occurrences_delta_request_builder.go index 13979860bbc..e3845d693e3 100644 --- a/users/item_calendar_events_item_instances_item_exception_occurrences_delta_request_builder.go +++ b/users/item_calendar_events_item_instances_item_exception_occurrences_delta_request_builder.go @@ -80,6 +80,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesDeltaRequestBuil return res.(ItemCalendarEventsItemInstancesItemExceptionOccurrencesDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCalendarEventsItemInstancesItemExceptionOccurrencesDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -103,6 +104,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesDeltaRequestBuil return res.(ItemCalendarEventsItemInstancesItemExceptionOccurrencesDeltaGetResponseable), nil } // ToGetRequestInformation get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +119,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesDeltaRequestBuil return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemInstancesItemExceptionOccurrencesDeltaRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemInstancesItemExceptionOccurrencesDeltaRequestBuilder) { return NewItemCalendarEventsItemInstancesItemExceptionOccurrencesDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_instances_item_exception_occurrences_event_item_request_builder.go b/users/item_calendar_events_item_instances_item_exception_occurrences_event_item_request_builder.go index d5ede52c9be..8fdb41578c2 100644 --- a/users/item_calendar_events_item_instances_item_exception_occurrences_event_item_request_builder.go +++ b/users/item_calendar_events_item_instances_item_exception_occurrences_event_item_request_builder.go @@ -81,6 +81,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesEventItemRequest return NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -100,6 +101,11 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesEventItemRequest } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) PermanentDelete()(*ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) { @@ -111,6 +117,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesEventItemRequest return NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -125,6 +132,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesEventItemRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) { return NewItemCalendarEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_instances_item_exception_occurrences_item_accept_request_builder.go b/users/item_calendar_events_item_instances_item_exception_occurrences_item_accept_request_builder.go index fc1a63c8098..234e2c30bc0 100644 --- a/users/item_calendar_events_item_instances_item_exception_occurrences_item_accept_request_builder.go +++ b/users/item_calendar_events_item_instances_item_exception_occurrences_item_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAcceptRequest return NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAcceptReques return nil } // ToPostRequestInformation accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAcceptPostRequestBodyable, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAcceptReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilder) { return NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go b/users/item_calendar_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go index e33a9193f17..dcd919346a6 100644 --- a/users/item_calendar_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go +++ b/users/item_calendar_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsReque Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentId provides operations to manage the attachments property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ByAttachmentId(attachmentId string)(*ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsR return NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsR return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } // Post create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -122,6 +125,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsR return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsR return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) { return NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_instances_item_exception_occurrences_item_calendar_request_builder.go b/users/item_calendar_events_item_instances_item_exception_occurrences_item_calendar_request_builder.go index f47c6f52088..ccfca4de266 100644 --- a/users/item_calendar_events_item_instances_item_exception_occurrences_item_calendar_request_builder.go +++ b/users/item_calendar_events_item_instances_item_exception_occurrences_item_calendar_request_builder.go @@ -41,6 +41,7 @@ func NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemCalendarReque return NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilderInternal(urlParams, requestAdapter) } // Get the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -61,6 +62,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemCalendarRequ return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable), nil } // ToGetRequestInformation the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemCalendarRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder) { return NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_instances_item_exception_occurrences_item_cancel_request_builder.go b/users/item_calendar_events_item_instances_item_exception_occurrences_item_cancel_request_builder.go index eff4420e189..9d2bfdeb916 100644 --- a/users/item_calendar_events_item_instances_item_exception_occurrences_item_cancel_request_builder.go +++ b/users/item_calendar_events_item_instances_item_exception_occurrences_item_cancel_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemCancelRequest return NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemCancelRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemCancelReques return nil } // ToPostRequestInformation this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemCancelPostRequestBodyable, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemCancelReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemCancelRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemCancelRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemCancelRequestBuilder) { return NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_instances_item_exception_occurrences_item_decline_request_builder.go b/users/item_calendar_events_item_instances_item_exception_occurrences_item_decline_request_builder.go index 268c28fe2a8..b5478f14df6 100644 --- a/users/item_calendar_events_item_instances_item_exception_occurrences_item_decline_request_builder.go +++ b/users/item_calendar_events_item_instances_item_exception_occurrences_item_decline_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemDeclineReques return NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilderInternal(urlParams, requestAdapter) } // Post decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemDeclineReque return nil } // ToPostRequestInformation decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemDeclinePostRequestBodyable, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemDeclineReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilder) { return NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_instances_item_exception_occurrences_item_dismiss_reminder_request_builder.go b/users/item_calendar_events_item_instances_item_exception_occurrences_item_dismiss_reminder_request_builder.go index 43664512ef9..d5c0655e08c 100644 --- a/users/item_calendar_events_item_instances_item_exception_occurrences_item_dismiss_reminder_request_builder.go +++ b/users/item_calendar_events_item_instances_item_exception_occurrences_item_dismiss_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemDismissRemind return NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemDismissRemin return nil } // ToPostRequestInformation dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemDismissRemin return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilder) { return NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_instances_item_exception_occurrences_item_extensions_count_request_builder.go b/users/item_calendar_events_item_instances_item_exception_occurrences_item_extensions_count_request_builder.go index 817277be3c3..587598d6d58 100644 --- a/users/item_calendar_events_item_instances_item_exception_occurrences_item_extensions_count_request_builder.go +++ b/users/item_calendar_events_item_instances_item_exception_occurrences_item_extensions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsCou return NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsCo return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsCo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder) { return NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_instances_item_exception_occurrences_item_extensions_request_builder.go b/users/item_calendar_events_item_instances_item_exception_occurrences_item_extensions_request_builder.go index f17413aaf93..e25b4741e8e 100644 --- a/users/item_calendar_events_item_instances_item_exception_occurrences_item_extensions_request_builder.go +++ b/users/item_calendar_events_item_instances_item_exception_occurrences_item_extensions_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsReques Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsRe return NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsRe return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsRe return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsRe return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) { return NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_instances_item_exception_occurrences_item_forward_request_builder.go b/users/item_calendar_events_item_instances_item_exception_occurrences_item_forward_request_builder.go index cb1bd7a90ce..3e70ee3fcfe 100644 --- a/users/item_calendar_events_item_instances_item_exception_occurrences_item_forward_request_builder.go +++ b/users/item_calendar_events_item_instances_item_exception_occurrences_item_forward_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemForwardReques return NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemForwardRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemForwardReque return nil } // ToPostRequestInformation this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemForwardRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemForwardPostRequestBodyable, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemForwardRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemForwardReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemForwardRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemForwardRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemForwardRequestBuilder) { return NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemForwardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_instances_item_exception_occurrences_item_permanent_delete_request_builder.go b/users/item_calendar_events_item_instances_item_exception_occurrences_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..55af6684141 --- /dev/null +++ b/users/item_calendar_events_item_instances_item_exception_occurrences_item_permanent_delete_request_builder.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/exceptionOccurrences/{event%2Did2}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_calendar_events_item_instances_item_exception_occurrences_item_snooze_reminder_request_builder.go b/users/item_calendar_events_item_instances_item_exception_occurrences_item_snooze_reminder_request_builder.go index 641b57e6f8a..8c676c26cac 100644 --- a/users/item_calendar_events_item_instances_item_exception_occurrences_item_snooze_reminder_request_builder.go +++ b/users/item_calendar_events_item_instances_item_exception_occurrences_item_snooze_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminde return NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemSnoozeRemind return nil } // ToPostRequestInformation postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderPostRequestBodyable, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemSnoozeRemind return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) { return NewItemCalendarEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_instances_item_exception_occurrences_request_builder.go b/users/item_calendar_events_item_instances_item_exception_occurrences_request_builder.go index 81a9e8a72fc..34619dd7db2 100644 --- a/users/item_calendar_events_item_instances_item_exception_occurrences_request_builder.go +++ b/users/item_calendar_events_item_instances_item_exception_occurrences_request_builder.go @@ -40,6 +40,7 @@ type ItemCalendarEventsItemInstancesItemExceptionOccurrencesRequestBuilderGetReq QueryParameters *ItemCalendarEventsItemInstancesItemExceptionOccurrencesRequestBuilderGetQueryParameters } // ByEventId2 provides operations to manage the exceptionOccurrences property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesRequestBuilder) ByEventId2(eventId2 string)(*ItemCalendarEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -75,6 +76,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesRequestBuilder) return NewItemCalendarEventsItemInstancesItemExceptionOccurrencesDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -95,6 +97,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } // ToGetRequestInformation get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemExceptionOccurrencesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +112,7 @@ func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemInstancesItemExceptionOccurrencesRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesItemExceptionOccurrencesRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemInstancesItemExceptionOccurrencesRequestBuilder) { return NewItemCalendarEventsItemInstancesItemExceptionOccurrencesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_instances_item_extensions_count_request_builder.go b/users/item_calendar_events_item_instances_item_extensions_count_request_builder.go index 64d9b384e0f..ea6afad5cf7 100644 --- a/users/item_calendar_events_item_instances_item_extensions_count_request_builder.go +++ b/users/item_calendar_events_item_instances_item_extensions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarEventsItemInstancesItemExtensionsCountRequestBuilder(rawUrl return NewItemCalendarEventsItemInstancesItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemInstancesItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarEventsItemInstancesItemExtensionsCountRequestBuilder) Get(c return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarEventsItemInstancesItemExtensionsCountRequestBuilder) ToGet return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemInstancesItemExtensionsCountRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemInstancesItemExtensionsCountRequestBuilder) { return NewItemCalendarEventsItemInstancesItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_instances_item_extensions_extension_item_request_builder.go b/users/item_calendar_events_item_instances_item_extensions_extension_item_request_builder.go index faf49a29c9d..db073dd1ade 100644 --- a/users/item_calendar_events_item_instances_item_extensions_extension_item_request_builder.go +++ b/users/item_calendar_events_item_instances_item_extensions_extension_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemCalendarEventsItemInstancesItemExtensionsExtensionItemRequestBuilder return NewItemCalendarEventsItemInstancesItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemInstancesItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemCalendarEventsItemInstancesItemExtensionsExtensionItemRequestBuilde return nil } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemInstancesItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemCalendarEventsItemInstancesItemExtensionsExtensionItemRequestBuilde return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemInstancesItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarEventsItemInstancesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemCalendarEventsItemInstancesItemExtensionsExtensionItemRequestBuilde return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemCalendarEventsItemInstancesItemExtensionsExtensionItemRequestBuilde return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemCalendarEventsItemInstancesItemExtensionsExtensionItemRequestBuilde return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarEventsItemInstancesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemCalendarEventsItemInstancesItemExtensionsExtensionItemRequestBuilde return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemInstancesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemInstancesItemExtensionsExtensionItemRequestBuilder) { return NewItemCalendarEventsItemInstancesItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_instances_item_extensions_request_builder.go b/users/item_calendar_events_item_instances_item_extensions_request_builder.go index c15a3303de0..e965a85fd8a 100644 --- a/users/item_calendar_events_item_instances_item_extensions_request_builder.go +++ b/users/item_calendar_events_item_instances_item_extensions_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarEventsItemInstancesItemExtensionsRequestBuilderPostRequestConfi Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemInstancesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemCalendarEventsItemInstancesItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemCalendarEventsItemInstancesItemExtensionsRequestBuilder) Count()(*I return NewItemCalendarEventsItemInstancesItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemInstancesItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemCalendarEventsItemInstancesItemExtensionsRequestBuilder) Get(ctx co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemInstancesItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarEventsItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemCalendarEventsItemInstancesItemExtensionsRequestBuilder) Post(ctx c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemCalendarEventsItemInstancesItemExtensionsRequestBuilder) ToGetReque return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarEventsItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemCalendarEventsItemInstancesItemExtensionsRequestBuilder) ToPostRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemInstancesItemExtensionsRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemInstancesItemExtensionsRequestBuilder) { return NewItemCalendarEventsItemInstancesItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_instances_item_forward_request_builder.go b/users/item_calendar_events_item_instances_item_forward_request_builder.go index 0d0475e3ed4..e418374c4ae 100644 --- a/users/item_calendar_events_item_instances_item_forward_request_builder.go +++ b/users/item_calendar_events_item_instances_item_forward_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarEventsItemInstancesItemForwardRequestBuilder(rawUrl string, return NewItemCalendarEventsItemInstancesItemForwardRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarEventsItemInstancesItemForwardRequestBuilder) Post(ctx cont return nil } // ToPostRequestInformation this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesItemForwardRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarEventsItemInstancesItemForwardPostRequestBodyable, requestConfiguration *ItemCalendarEventsItemInstancesItemForwardRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarEventsItemInstancesItemForwardRequestBuilder) ToPostRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemInstancesItemForwardRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesItemForwardRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemInstancesItemForwardRequestBuilder) { return NewItemCalendarEventsItemInstancesItemForwardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_instances_item_permanent_delete_request_builder.go b/users/item_calendar_events_item_instances_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..b436d50f0b5 --- /dev/null +++ b/users/item_calendar_events_item_instances_item_permanent_delete_request_builder.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/instances/{event%2Did1}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarEventsItemInstancesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_calendar_events_item_instances_item_snooze_reminder_request_builder.go b/users/item_calendar_events_item_instances_item_snooze_reminder_request_builder.go index bb65bf6d7a0..cfb25ccf394 100644 --- a/users/item_calendar_events_item_instances_item_snooze_reminder_request_builder.go +++ b/users/item_calendar_events_item_instances_item_snooze_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarEventsItemInstancesItemSnoozeReminderRequestBuilder(rawUrl s return NewItemCalendarEventsItemInstancesItemSnoozeReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarEventsItemInstancesItemSnoozeReminderRequestBuilder) Post(c return nil } // ToPostRequestInformation postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesItemSnoozeReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarEventsItemInstancesItemSnoozeReminderPostRequestBodyable, requestConfiguration *ItemCalendarEventsItemInstancesItemSnoozeReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarEventsItemInstancesItemSnoozeReminderRequestBuilder) ToPost return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemInstancesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesItemSnoozeReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemInstancesItemSnoozeReminderRequestBuilder) { return NewItemCalendarEventsItemInstancesItemSnoozeReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_instances_item_tentatively_accept_request_builder.go b/users/item_calendar_events_item_instances_item_tentatively_accept_request_builder.go index 4ef5cade2f9..be02e9aec49 100644 --- a/users/item_calendar_events_item_instances_item_tentatively_accept_request_builder.go +++ b/users/item_calendar_events_item_instances_item_tentatively_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarEventsItemInstancesItemTentativelyAcceptRequestBuilder(rawUr return NewItemCalendarEventsItemInstancesItemTentativelyAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarEventsItemInstancesItemTentativelyAcceptRequestBuilder) Pos return nil } // ToPostRequestInformation tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesItemTentativelyAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarEventsItemInstancesItemTentativelyAcceptPostRequestBodyable, requestConfiguration *ItemCalendarEventsItemInstancesItemTentativelyAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarEventsItemInstancesItemTentativelyAcceptRequestBuilder) ToP return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemInstancesItemTentativelyAcceptRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesItemTentativelyAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemInstancesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarEventsItemInstancesItemTentativelyAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_instances_request_builder.go b/users/item_calendar_events_item_instances_request_builder.go index d08128f6555..481684535ac 100644 --- a/users/item_calendar_events_item_instances_request_builder.go +++ b/users/item_calendar_events_item_instances_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemCalendarEventsItemInstancesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemCalendarEventsItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemCalendarEventsItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemCalendarEventsItemInstancesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -44,6 +44,7 @@ type ItemCalendarEventsItemInstancesRequestBuilderGetRequestConfiguration struct QueryParameters *ItemCalendarEventsItemInstancesRequestBuilderGetQueryParameters } // ByEventId1 provides operations to manage the instances property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemInstancesEventItemRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesRequestBuilder) ByEventId1(eventId1 string)(*ItemCalendarEventsItemInstancesEventItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -78,7 +79,8 @@ func (m *ItemCalendarEventsItemInstancesRequestBuilder) Count()(*ItemCalendarEve func (m *ItemCalendarEventsItemInstancesRequestBuilder) Delta()(*ItemCalendarEventsItemInstancesDeltaRequestBuilder) { return NewItemCalendarEventsItemInstancesDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsItemInstancesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -98,7 +100,8 @@ func (m *ItemCalendarEventsItemInstancesRequestBuilder) Get(ctx context.Context, } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemInstancesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemInstancesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,6 +116,7 @@ func (m *ItemCalendarEventsItemInstancesRequestBuilder) ToGetRequestInformation( return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemInstancesRequestBuilder when successful func (m *ItemCalendarEventsItemInstancesRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemInstancesRequestBuilder) { return NewItemCalendarEventsItemInstancesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_permanent_delete_request_builder.go b/users/item_calendar_events_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..74719e5ed30 --- /dev/null +++ b/users/item_calendar_events_item_permanent_delete_request_builder.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarEventsItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarEventsItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarEventsItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarEventsItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarEventsItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarEventsItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarEventsItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarEventsItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarEventsItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarEventsItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarEventsItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarEventsItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarEventsItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarEventsItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarEventsItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarEventsItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemCalendarEventsItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemCalendarEventsItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarEventsItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemPermanentDeleteRequestBuilder) { + return NewItemCalendarEventsItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_calendar_events_item_snooze_reminder_request_builder.go b/users/item_calendar_events_item_snooze_reminder_request_builder.go index f10eb39e912..e9b9ab6b8db 100644 --- a/users/item_calendar_events_item_snooze_reminder_request_builder.go +++ b/users/item_calendar_events_item_snooze_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarEventsItemSnoozeReminderRequestBuilder(rawUrl string, reques return NewItemCalendarEventsItemSnoozeReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarEventsItemSnoozeReminderRequestBuilder) Post(ctx context.Co return nil } // ToPostRequestInformation postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemSnoozeReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarEventsItemSnoozeReminderPostRequestBodyable, requestConfiguration *ItemCalendarEventsItemSnoozeReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarEventsItemSnoozeReminderRequestBuilder) ToPostRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarEventsItemSnoozeReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemSnoozeReminderRequestBuilder) { return NewItemCalendarEventsItemSnoozeReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_item_tentatively_accept_request_builder.go b/users/item_calendar_events_item_tentatively_accept_request_builder.go index 069239b8135..ad3fda00a10 100644 --- a/users/item_calendar_events_item_tentatively_accept_request_builder.go +++ b/users/item_calendar_events_item_tentatively_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarEventsItemTentativelyAcceptRequestBuilder(rawUrl string, req return NewItemCalendarEventsItemTentativelyAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarEventsItemTentativelyAcceptRequestBuilder) Post(ctx context return nil } // ToPostRequestInformation tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsItemTentativelyAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarEventsItemTentativelyAcceptPostRequestBodyable, requestConfiguration *ItemCalendarEventsItemTentativelyAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarEventsItemTentativelyAcceptRequestBuilder) ToPostRequestInf return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsItemTentativelyAcceptRequestBuilder when successful func (m *ItemCalendarEventsItemTentativelyAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsItemTentativelyAcceptRequestBuilder) { return NewItemCalendarEventsItemTentativelyAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_events_request_builder.go b/users/item_calendar_events_request_builder.go index 20de702a265..8ba14c60a5a 100644 --- a/users/item_calendar_events_request_builder.go +++ b/users/item_calendar_events_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarEventsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByEventId provides operations to manage the events property of the microsoft.graph.calendar entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsEventItemRequestBuilder when successful func (m *ItemCalendarEventsRequestBuilder) ByEventId(eventId string)(*ItemCalendarEventsEventItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemCalendarEventsRequestBuilder) Delta()(*ItemCalendarEventsDeltaReque return NewItemCalendarEventsDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the events in the calendar. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarEventsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemCalendarEventsRequestBuilder) Get(ctx context.Context, requestConfi return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } // Post create new navigation property to events for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarEventsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, requestConfiguration *ItemCalendarEventsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -122,6 +125,7 @@ func (m *ItemCalendarEventsRequestBuilder) Post(ctx context.Context, body ie233e return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable), nil } // ToGetRequestInformation the events in the calendar. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarEventsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemCalendarEventsRequestBuilder) ToGetRequestInformation(ctx context.C return requestInfo, nil } // ToPostRequestInformation create new navigation property to events for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarEventsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, requestConfiguration *ItemCalendarEventsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemCalendarEventsRequestBuilder) ToPostRequestInformation(ctx context. return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarEventsRequestBuilder when successful func (m *ItemCalendarEventsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarEventsRequestBuilder) { return NewItemCalendarEventsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_get_schedule_request_builder.go b/users/item_calendar_get_schedule_request_builder.go index 4d50cd7d496..08d2df181e7 100644 --- a/users/item_calendar_get_schedule_request_builder.go +++ b/users/item_calendar_get_schedule_request_builder.go @@ -55,6 +55,7 @@ func (m *ItemCalendarGetScheduleRequestBuilder) Post(ctx context.Context, body I return res.(ItemCalendarGetScheduleResponseable), nil } // PostAsGetSchedulePostResponse get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCalendarGetSchedulePostResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -78,6 +79,7 @@ func (m *ItemCalendarGetScheduleRequestBuilder) PostAsGetSchedulePostResponse(ct return res.(ItemCalendarGetSchedulePostResponseable), nil } // ToPostRequestInformation get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGetScheduleRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGetSchedulePostRequestBodyable, requestConfiguration *ItemCalendarGetScheduleRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -93,6 +95,7 @@ func (m *ItemCalendarGetScheduleRequestBuilder) ToPostRequestInformation(ctx con return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGetScheduleRequestBuilder when successful func (m *ItemCalendarGetScheduleRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGetScheduleRequestBuilder) { return NewItemCalendarGetScheduleRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_calendar_group_item_request_builder.go b/users/item_calendar_groups_calendar_group_item_request_builder.go index eef9c557317..12603d94263 100644 --- a/users/item_calendar_groups_calendar_group_item_request_builder.go +++ b/users/item_calendar_groups_calendar_group_item_request_builder.go @@ -60,6 +60,7 @@ func NewItemCalendarGroupsCalendarGroupItemRequestBuilder(rawUrl string, request return NewItemCalendarGroupsCalendarGroupItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property calendarGroups for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsCalendarGroupItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarGroupsCalendarGroupItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -76,6 +77,7 @@ func (m *ItemCalendarGroupsCalendarGroupItemRequestBuilder) Delete(ctx context.C return nil } // Get the user's calendar groups. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a CalendarGroupable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsCalendarGroupItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsCalendarGroupItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarGroupable, error) { @@ -96,6 +98,7 @@ func (m *ItemCalendarGroupsCalendarGroupItemRequestBuilder) Get(ctx context.Cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarGroupable), nil } // Patch update the navigation property calendarGroups in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a CalendarGroupable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsCalendarGroupItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarGroupable, requestConfiguration *ItemCalendarGroupsCalendarGroupItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarGroupable, error) { @@ -116,6 +119,7 @@ func (m *ItemCalendarGroupsCalendarGroupItemRequestBuilder) Patch(ctx context.Co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarGroupable), nil } // ToDeleteRequestInformation delete navigation property calendarGroups for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsCalendarGroupItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsCalendarGroupItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -127,6 +131,7 @@ func (m *ItemCalendarGroupsCalendarGroupItemRequestBuilder) ToDeleteRequestInfor return requestInfo, nil } // ToGetRequestInformation the user's calendar groups. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsCalendarGroupItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsCalendarGroupItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,6 +146,7 @@ func (m *ItemCalendarGroupsCalendarGroupItemRequestBuilder) ToGetRequestInformat return requestInfo, nil } // ToPatchRequestInformation update the navigation property calendarGroups in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsCalendarGroupItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarGroupable, requestConfiguration *ItemCalendarGroupsCalendarGroupItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +162,7 @@ func (m *ItemCalendarGroupsCalendarGroupItemRequestBuilder) ToPatchRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsCalendarGroupItemRequestBuilder when successful func (m *ItemCalendarGroupsCalendarGroupItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsCalendarGroupItemRequestBuilder) { return NewItemCalendarGroupsCalendarGroupItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_count_request_builder.go b/users/item_calendar_groups_count_request_builder.go index 14dcd063542..325ae110909 100644 --- a/users/item_calendar_groups_count_request_builder.go +++ b/users/item_calendar_groups_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarGroupsCountRequestBuilder(rawUrl string, requestAdapter i2ae return NewItemCalendarGroupsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarGroupsCountRequestBuilder) Get(ctx context.Context, request return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarGroupsCountRequestBuilder) ToGetRequestInformation(ctx cont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsCountRequestBuilder when successful func (m *ItemCalendarGroupsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsCountRequestBuilder) { return NewItemCalendarGroupsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_calendar_item_request_builder.go b/users/item_calendar_groups_item_calendars_calendar_item_request_builder.go index c6c981e3fcd..5ef8c6305ab 100644 --- a/users/item_calendar_groups_item_calendars_calendar_item_request_builder.go +++ b/users/item_calendar_groups_item_calendars_calendar_item_request_builder.go @@ -42,6 +42,7 @@ type ItemCalendarGroupsItemCalendarsCalendarItemRequestBuilderPatchRequestConfig Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // AllowedCalendarSharingRolesWithUser provides operations to call the allowedCalendarSharingRoles method. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemAllowedCalendarSharingRolesWithUserRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsCalendarItemRequestBuilder) AllowedCalendarSharingRolesWithUser(user *string)(*ItemCalendarGroupsItemCalendarsItemAllowedCalendarSharingRolesWithUserRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemAllowedCalendarSharingRolesWithUserRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, user) @@ -70,6 +71,7 @@ func NewItemCalendarGroupsItemCalendarsCalendarItemRequestBuilder(rawUrl string, return NewItemCalendarGroupsItemCalendarsCalendarItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property calendars for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsCalendarItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsCalendarItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -91,6 +93,7 @@ func (m *ItemCalendarGroupsItemCalendarsCalendarItemRequestBuilder) Events()(*It return NewItemCalendarGroupsItemCalendarsItemEventsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the calendars in the calendar group. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsCalendarItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsCalendarItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -116,6 +119,7 @@ func (m *ItemCalendarGroupsItemCalendarsCalendarItemRequestBuilder) GetSchedule( return NewItemCalendarGroupsItemCalendarsItemGetScheduleRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property calendars in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsCalendarItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, requestConfiguration *ItemCalendarGroupsItemCalendarsCalendarItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -135,7 +139,13 @@ func (m *ItemCalendarGroupsItemCalendarsCalendarItemRequestBuilder) Patch(ctx co } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarGroupsItemCalendarsItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarGroupsItemCalendarsCalendarItemRequestBuilder) PermanentDelete()(*ItemCalendarGroupsItemCalendarsItemPermanentDeleteRequestBuilder) { + return NewItemCalendarGroupsItemCalendarsItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToDeleteRequestInformation delete navigation property calendars for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsCalendarItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsCalendarItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -147,6 +157,7 @@ func (m *ItemCalendarGroupsItemCalendarsCalendarItemRequestBuilder) ToDeleteRequ return requestInfo, nil } // ToGetRequestInformation the calendars in the calendar group. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsCalendarItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsCalendarItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -161,6 +172,7 @@ func (m *ItemCalendarGroupsItemCalendarsCalendarItemRequestBuilder) ToGetRequest return requestInfo, nil } // ToPatchRequestInformation update the navigation property calendars in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsCalendarItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, requestConfiguration *ItemCalendarGroupsItemCalendarsCalendarItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -176,6 +188,7 @@ func (m *ItemCalendarGroupsItemCalendarsCalendarItemRequestBuilder) ToPatchReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsCalendarItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsCalendarItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsCalendarItemRequestBuilder) { return NewItemCalendarGroupsItemCalendarsCalendarItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_count_request_builder.go b/users/item_calendar_groups_item_calendars_count_request_builder.go index a9ab82fce28..9e3911722aa 100644 --- a/users/item_calendar_groups_item_calendars_count_request_builder.go +++ b/users/item_calendar_groups_item_calendars_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarGroupsItemCalendarsCountRequestBuilder(rawUrl string, reques return NewItemCalendarGroupsItemCalendarsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarGroupsItemCalendarsCountRequestBuilder) Get(ctx context.Con return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarGroupsItemCalendarsCountRequestBuilder) ToGetRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsCountRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsCountRequestBuilder) { return NewItemCalendarGroupsItemCalendarsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_allowed_calendar_sharing_roles_with_user_request_builder.go b/users/item_calendar_groups_item_calendars_item_allowed_calendar_sharing_roles_with_user_request_builder.go index 183109719a0..d1fd351bc68 100644 --- a/users/item_calendar_groups_item_calendars_item_allowed_calendar_sharing_roles_with_user_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_allowed_calendar_sharing_roles_with_user_request_builder.go @@ -70,6 +70,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemAllowedCalendarSharingRolesWithUserR return res.(ItemCalendarGroupsItemCalendarsItemAllowedCalendarSharingRolesWithUserResponseable), nil } // GetAsAllowedCalendarSharingRolesWithUserGetResponse invoke function allowedCalendarSharingRoles +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCalendarGroupsItemCalendarsItemAllowedCalendarSharingRolesWithUserGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemAllowedCalendarSharingRolesWithUserRequestBuilder) GetAsAllowedCalendarSharingRolesWithUserGetResponse(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemAllowedCalendarSharingRolesWithUserRequestBuilderGetRequestConfiguration)(ItemCalendarGroupsItemCalendarsItemAllowedCalendarSharingRolesWithUserGetResponseable, error) { @@ -90,6 +91,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemAllowedCalendarSharingRolesWithUserR return res.(ItemCalendarGroupsItemCalendarsItemAllowedCalendarSharingRolesWithUserGetResponseable), nil } // ToGetRequestInformation invoke function allowedCalendarSharingRoles +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemAllowedCalendarSharingRolesWithUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemAllowedCalendarSharingRolesWithUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -104,6 +106,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemAllowedCalendarSharingRolesWithUserR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemAllowedCalendarSharingRolesWithUserRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemAllowedCalendarSharingRolesWithUserRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemAllowedCalendarSharingRolesWithUserRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemAllowedCalendarSharingRolesWithUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_calendar_permissions_count_request_builder.go b/users/item_calendar_groups_item_calendars_item_calendar_permissions_count_request_builder.go index 6d6c14102c8..2390c122d93 100644 --- a/users/item_calendar_groups_item_calendars_item_calendar_permissions_count_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_calendar_permissions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarPermissionsCountRequestBuilde return NewItemCalendarGroupsItemCalendarsItemCalendarPermissionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarPermissionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarPermissionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarPermissionsCountRequestBuild return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarPermissionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarPermissionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarPermissionsCountRequestBuild return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarPermissionsCountRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarPermissionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarPermissionsCountRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarPermissionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_calendar_permissions_request_builder.go b/users/item_calendar_groups_item_calendars_item_calendar_permissions_request_builder.go index 55970472398..82a97e21af8 100644 --- a/users/item_calendar_groups_item_calendars_item_calendar_permissions_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_calendar_permissions_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarGroupsItemCalendarsItemCalendarPermissionsRequestBuilderPostReq Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByCalendarPermissionId provides operations to manage the calendarPermissions property of the microsoft.graph.calendar entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarPermissionsCalendarPermissionItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarPermissionsRequestBuilder) ByCalendarPermissionId(calendarPermissionId string)(*ItemCalendarGroupsItemCalendarsItemCalendarPermissionsCalendarPermissionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarPermissionsRequestBuilder) C return NewItemCalendarGroupsItemCalendarsItemCalendarPermissionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the permissions of the users with whom the calendar is shared. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a CalendarPermissionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarPermissionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarPermissionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarPermissionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarPermissionsRequestBuilder) G return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarPermissionCollectionResponseable), nil } // Post create new navigation property to calendarPermissions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a CalendarPermissionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarPermissionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarPermissionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarPermissionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarPermissionable, error) { @@ -117,6 +120,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarPermissionsRequestBuilder) P return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarPermissionable), nil } // ToGetRequestInformation the permissions of the users with whom the calendar is shared. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarPermissionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarPermissionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarPermissionsRequestBuilder) T return requestInfo, nil } // ToPostRequestInformation create new navigation property to calendarPermissions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarPermissionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarPermissionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarPermissionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarPermissionsRequestBuilder) T return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarPermissionsRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarPermissionsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarPermissionsRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarPermissionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_calendar_view_count_request_builder.go b/users/item_calendar_groups_item_calendars_item_calendar_view_count_request_builder.go index ec0252aaa8a..013d8e5e11d 100644 --- a/users/item_calendar_groups_item_calendars_item_calendar_view_count_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_calendar_view_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewCountRequestBuilder(rawUr return NewItemCalendarGroupsItemCalendarsItemCalendarViewCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewCountRequestBuilder) Get return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewCountRequestBuilder) ToG return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewCountRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewCountRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_calendar_view_delta_request_builder.go b/users/item_calendar_groups_item_calendars_item_calendar_view_delta_request_builder.go index 3801e303520..14b0251d23f 100644 --- a/users/item_calendar_groups_item_calendars_item_calendar_view_delta_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_calendar_view_delta_request_builder.go @@ -80,6 +80,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewDeltaRequestBuilder) Get return res.(ItemCalendarGroupsItemCalendarsItemCalendarViewDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCalendarGroupsItemCalendarsItemCalendarViewDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -103,6 +104,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewDeltaRequestBuilder) Get return res.(ItemCalendarGroupsItemCalendarsItemCalendarViewDeltaGetResponseable), nil } // ToGetRequestInformation get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +119,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewDeltaRequestBuilder) ToG return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewDeltaRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewDeltaRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_calendar_view_event_item_request_builder.go b/users/item_calendar_groups_item_calendars_item_calendar_view_event_item_request_builder.go index 90b5f14cc36..92aeadbc2b5 100644 --- a/users/item_calendar_groups_item_calendars_item_calendar_view_event_item_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_calendar_view_event_item_request_builder.go @@ -90,6 +90,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewEventItemRequestBuilder) return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the calendar view for the calendar. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -114,6 +115,11 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewEventItemRequestBuilder) func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewEventItemRequestBuilder) Instances()(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewEventItemRequestBuilder) PermanentDelete()(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilder) { + return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemSnoozeReminderRequestBuilder) { @@ -125,6 +131,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewEventItemRequestBuilder) return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation the calendar view for the calendar. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -139,6 +146,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewEventItemRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewEventItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewEventItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewEventItemRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewEventItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_calendar_view_item_accept_request_builder.go b/users/item_calendar_groups_item_calendars_item_calendar_view_item_accept_request_builder.go index e574f19fbad..5122b4319d6 100644 --- a/users/item_calendar_groups_item_calendars_item_calendar_view_item_accept_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_calendar_view_item_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemAcceptRequestBuilder( return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAcceptRequestBuilder return nil } // ToPostRequestInformation accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemCalendarViewItemAcceptPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAcceptRequestBuilder return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAcceptRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemAcceptRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_calendar_view_item_attachments_count_request_builder.go b/users/item_calendar_groups_item_calendars_item_calendar_view_item_attachments_count_request_builder.go index 9d559ac3748..ab101b18b99 100644 --- a/users/item_calendar_groups_item_calendars_item_calendar_view_item_attachments_count_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_calendar_view_item_attachments_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsCountReque return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsCountRequ return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsCountRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsCountRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsCountRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_calendar_view_item_attachments_request_builder.go b/users/item_calendar_groups_item_calendars_item_calendar_view_item_attachments_request_builder.go index 79274e659ce..f4550c8acea 100644 --- a/users/item_calendar_groups_item_calendars_item_calendar_view_item_attachments_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_calendar_view_item_attachments_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsRequestBuilde Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentId provides operations to manage the attachments property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsRequestBuilder) ByAttachmentId(attachmentId string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsAttachmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsRequestBu return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsRequestBu return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } // Post create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -122,6 +125,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsRequestBu return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsRequestBu return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsRequestBu return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_calendar_view_item_calendar_request_builder.go b/users/item_calendar_groups_item_calendars_item_calendar_view_item_calendar_request_builder.go index 7162fd72b45..46d0b87071c 100644 --- a/users/item_calendar_groups_item_calendars_item_calendar_view_item_calendar_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_calendar_view_item_calendar_request_builder.go @@ -41,6 +41,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemCalendarRequestBuilde return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemCalendarRequestBuilderInternal(urlParams, requestAdapter) } // Get the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemCalendarRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemCalendarRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -61,6 +62,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemCalendarRequestBuild return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable), nil } // ToGetRequestInformation the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemCalendarRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemCalendarRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemCalendarRequestBuild return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemCalendarRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemCalendarRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemCalendarRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemCalendarRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_calendar_view_item_cancel_request_builder.go b/users/item_calendar_groups_item_calendars_item_calendar_view_item_cancel_request_builder.go index c2f837560ae..372e23ed526 100644 --- a/users/item_calendar_groups_item_calendars_item_calendar_view_item_cancel_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_calendar_view_item_cancel_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemCancelRequestBuilder( return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemCancelRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemCancelRequestBuilder return nil } // ToPostRequestInformation this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemCalendarViewItemCancelPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemCancelRequestBuilder return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemCancelRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemCancelRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemCancelRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_calendar_view_item_decline_request_builder.go b/users/item_calendar_groups_item_calendars_item_calendar_view_item_decline_request_builder.go index b91aea0d88a..af2b9694ea6 100644 --- a/users/item_calendar_groups_item_calendars_item_calendar_view_item_decline_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_calendar_view_item_decline_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemDeclineRequestBuilder return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemDeclineRequestBuilderInternal(urlParams, requestAdapter) } // Post decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemDeclineRequestBuilde return nil } // ToPostRequestInformation decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemDeclineRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemCalendarViewItemDeclinePostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemDeclineRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemDeclineRequestBuilde return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemDeclineRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemDeclineRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemDeclineRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemDeclineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_calendar_view_item_dismiss_reminder_request_builder.go b/users/item_calendar_groups_item_calendars_item_calendar_view_item_dismiss_reminder_request_builder.go index 969bea99e89..fccc99b9c52 100644 --- a/users/item_calendar_groups_item_calendars_item_calendar_view_item_dismiss_reminder_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_calendar_view_item_dismiss_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemDismissReminderReques return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemDismissReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemDismissReminderReque return nil } // ToPostRequestInformation dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemDismissReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemDismissReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemDismissReminderReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemDismissReminderRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemDismissReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemDismissReminderRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemDismissReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_calendar_view_item_exception_occurrences_request_builder.go b/users/item_calendar_groups_item_calendars_item_calendar_view_item_exception_occurrences_request_builder.go index 4aa4ddcbbb9..963cbbd8ee3 100644 --- a/users/item_calendar_groups_item_calendars_item_calendar_view_item_exception_occurrences_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_calendar_view_item_exception_occurrences_request_builder.go @@ -40,6 +40,7 @@ type ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesRequ QueryParameters *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesRequestBuilderGetQueryParameters } // ByEventId1 provides operations to manage the exceptionOccurrences property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesRequestBuilder) ByEventId1(eventId1 string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -75,6 +76,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -95,6 +97,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } // ToGetRequestInformation get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +112,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrences return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExceptionOccurrencesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_calendar_view_item_extensions_count_request_builder.go b/users/item_calendar_groups_item_calendars_item_calendar_view_item_extensions_count_request_builder.go index 6b3a72499e5..9f5df8a2945 100644 --- a/users/item_calendar_groups_item_calendars_item_calendar_view_item_extensions_count_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_calendar_view_item_extensions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsCountReques return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsCountReque return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsCountReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsCountRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsCountRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_calendar_view_item_extensions_request_builder.go b/users/item_calendar_groups_item_calendars_item_calendar_view_item_extensions_request_builder.go index 1ae958fff14..1adab2da918 100644 --- a/users/item_calendar_groups_item_calendars_item_calendar_view_item_extensions_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_calendar_view_item_extensions_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsRequestBuilder Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsRequestBui return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsRequestBui return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsRequestBui return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsRequestBui return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsRequestBui return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_calendar_view_item_forward_request_builder.go b/users/item_calendar_groups_item_calendars_item_calendar_view_item_forward_request_builder.go index b93f639bf8d..f2a8c710608 100644 --- a/users/item_calendar_groups_item_calendars_item_calendar_view_item_forward_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_calendar_view_item_forward_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemForwardRequestBuilder return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemForwardRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemForwardRequestBuilde return nil } // ToPostRequestInformation this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemForwardRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemCalendarViewItemForwardPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemForwardRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemForwardRequestBuilde return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemForwardRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemForwardRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemForwardRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemForwardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_count_request_builder.go b/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_count_request_builder.go index c4fddc80f12..61d8f05f1ac 100644 --- a/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_count_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesCountRequest return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesCountReques return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesCountReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesCountRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesCountRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_delta_request_builder.go b/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_delta_request_builder.go index cc3160bc1c8..a00b39d2ebe 100644 --- a/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_delta_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_delta_request_builder.go @@ -80,6 +80,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesDeltaReques return res.(ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -103,6 +104,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesDeltaReques return res.(ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesDeltaGetResponseable), nil } // ToGetRequestInformation get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +119,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesDeltaReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesDeltaRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesDeltaRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_event_item_request_builder.go b/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_event_item_request_builder.go index 1a8c511b267..a71d4279641 100644 --- a/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_event_item_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_event_item_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesEventItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesEventItemRequestBuilderGetQueryParameters struct { // The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 EndDateTime *string `uriparametername:"endDateTime"` @@ -89,7 +89,8 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesEventItemRe func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesEventItemRequestBuilder) Forward()(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemForwardRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -109,6 +110,11 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesEventItemRe } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesEventItemRequestBuilder) PermanentDelete()(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemSnoozeReminderRequestBuilder) { @@ -119,7 +125,8 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesEventItemRe func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesEventItemRequestBuilder) TentativelyAccept()(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -134,6 +141,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesEventItemRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesEventItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesEventItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesEventItemRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesEventItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_item_accept_request_builder.go b/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_item_accept_request_builder.go index 692010f74dc..f05b9ea88da 100644 --- a/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_item_accept_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_item_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAcceptRe return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAcceptR return nil } // ToPostRequestInformation accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAcceptPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAcceptR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAcceptRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAcceptRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_item_calendar_request_builder.go b/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_item_calendar_request_builder.go index 8f31e43a330..a98df02dc40 100644 --- a/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_item_calendar_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_item_calendar_request_builder.go @@ -41,6 +41,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemCalendar return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemCalendarRequestBuilderInternal(urlParams, requestAdapter) } // Get the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemCalendarRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemCalendarRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -61,6 +62,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemCalenda return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable), nil } // ToGetRequestInformation the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemCalendarRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemCalendarRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemCalenda return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemCalendarRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemCalendarRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemCalendarRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemCalendarRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_item_cancel_request_builder.go b/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_item_cancel_request_builder.go index a2a346759ed..be2a43a3717 100644 --- a/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_item_cancel_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_item_cancel_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemCancelRe return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemCancelRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemCancelR return nil } // ToPostRequestInformation this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemCancelPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemCancelR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemCancelRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemCancelRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemCancelRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_item_decline_request_builder.go b/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_item_decline_request_builder.go index 20c385a8301..058f0aa920b 100644 --- a/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_item_decline_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_item_decline_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemDeclineR return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemDeclineRequestBuilderInternal(urlParams, requestAdapter) } // Post decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemDecline return nil } // ToPostRequestInformation decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemDeclineRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemDeclinePostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemDeclineRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemDecline return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemDeclineRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemDeclineRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemDeclineRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemDeclineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_item_forward_request_builder.go b/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_item_forward_request_builder.go index 2fbf616f48b..2a03fa6b50a 100644 --- a/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_item_forward_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_item_forward_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemForwardR return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemForwardRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemForward return nil } // ToPostRequestInformation this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemForwardRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemForwardPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemForwardRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemForward return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemForwardRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemForwardRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemForwardRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesItemForwardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_request_builder.go b/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_request_builder.go index 5a8c488831d..1d1387fd494 100644 --- a/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_calendar_view_item_instances_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -44,6 +44,7 @@ type ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesRequestBuilderG QueryParameters *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesRequestBuilderGetQueryParameters } // ByEventId1 provides operations to manage the instances property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesEventItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesRequestBuilder) ByEventId1(eventId1 string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesEventItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -78,7 +79,8 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesRequestBuil func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesRequestBuilder) Delta()(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesDeltaRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -98,7 +100,8 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesRequestBuil } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,6 +116,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesRequestBuil return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemInstancesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_calendar_view_item_permanent_delete_request_builder.go b/users/item_calendar_groups_item_calendars_item_calendar_view_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..762621c7bca --- /dev/null +++ b/users/item_calendar_groups_item_calendars_item_calendar_view_item_permanent_delete_request_builder.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarGroupsItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarGroupsItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarGroupsItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarGroupsItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarGroupsItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarGroupsItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarGroupsItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarGroupsItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarGroupsItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilder) { + return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_calendar_groups_item_calendars_item_calendar_view_item_snooze_reminder_request_builder.go b/users/item_calendar_groups_item_calendars_item_calendar_view_item_snooze_reminder_request_builder.go index a69af337d8c..99aa059c427 100644 --- a/users/item_calendar_groups_item_calendars_item_calendar_view_item_snooze_reminder_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_calendar_view_item_snooze_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemSnoozeReminderRequest return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemSnoozeReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemSnoozeReminderReques return nil } // ToPostRequestInformation postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemSnoozeReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemCalendarViewItemSnoozeReminderPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemSnoozeReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemSnoozeReminderReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemSnoozeReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemSnoozeReminderRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemSnoozeReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_calendar_view_item_tentatively_accept_request_builder.go b/users/item_calendar_groups_item_calendars_item_calendar_view_item_tentatively_accept_request_builder.go index d3d7bd16b05..d1efb18f21a 100644 --- a/users/item_calendar_groups_item_calendars_item_calendar_view_item_tentatively_accept_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_calendar_view_item_tentatively_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemCalendarViewItemTentativelyAcceptRequ return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemTentativelyAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemTentativelyAcceptReq return nil } // ToPostRequestInformation tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemTentativelyAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemCalendarViewItemTentativelyAcceptPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewItemTentativelyAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemTentativelyAcceptReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewItemTentativelyAcceptRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewItemTentativelyAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewItemTentativelyAcceptRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewItemTentativelyAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_calendar_view_request_builder.go b/users/item_calendar_groups_item_calendars_item_calendar_view_request_builder.go index 0e59ef49070..7d428bd34f6 100644 --- a/users/item_calendar_groups_item_calendars_item_calendar_view_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_calendar_view_request_builder.go @@ -44,6 +44,7 @@ type ItemCalendarGroupsItemCalendarsItemCalendarViewRequestBuilderGetRequestConf QueryParameters *ItemCalendarGroupsItemCalendarsItemCalendarViewRequestBuilderGetQueryParameters } // ByEventId provides operations to manage the calendarView property of the microsoft.graph.calendar entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewEventItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewRequestBuilder) ByEventId(eventId string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewEventItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -79,6 +80,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewRequestBuilder) Delta()( return NewItemCalendarGroupsItemCalendarsItemCalendarViewDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the calendar view for the calendar. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -99,6 +101,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewRequestBuilder) Get(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } // ToGetRequestInformation the calendar view for the calendar. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemCalendarViewRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,6 +116,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewRequestBuilder) ToGetReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemCalendarViewRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemCalendarViewRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemCalendarViewRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemCalendarViewRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_events_count_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_count_request_builder.go index 5961adf2616..51e9419561e 100644 --- a/users/item_calendar_groups_item_calendars_item_events_count_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsCountRequestBuilder(rawUrl stri return NewItemCalendarGroupsItemCalendarsItemEventsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsCountRequestBuilder) Get(ctx c return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsCountRequestBuilder) ToGetRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsCountRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsCountRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_events_delta_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_delta_request_builder.go index 240e13568ff..8502a9b3d16 100644 --- a/users/item_calendar_groups_item_calendars_item_events_delta_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_delta_request_builder.go @@ -80,6 +80,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsDeltaRequestBuilder) Get(ctx c return res.(ItemCalendarGroupsItemCalendarsItemEventsDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCalendarGroupsItemCalendarsItemEventsDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -103,6 +104,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsDeltaRequestBuilder) GetAsDelt return res.(ItemCalendarGroupsItemCalendarsItemEventsDeltaGetResponseable), nil } // ToGetRequestInformation get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +119,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsDeltaRequestBuilder) ToGetRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsDeltaRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsDeltaRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_events_event_item_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_event_item_request_builder.go index c4b9cd45110..136b3084267 100644 --- a/users/item_calendar_groups_item_calendars_item_events_event_item_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_event_item_request_builder.go @@ -80,6 +80,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsEventItemRequestBuilder) Decli return NewItemCalendarGroupsItemCalendarsItemEventsItemDeclineRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Delete delete navigation property events for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsEventItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsEventItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -116,6 +117,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsEventItemRequestBuilder) Forwa return NewItemCalendarGroupsItemCalendarsItemEventsItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the events in the calendar. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -141,6 +143,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsEventItemRequestBuilder) Insta return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property events in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsEventItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsEventItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -160,6 +163,11 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsEventItemRequestBuilder) Patch } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarGroupsItemCalendarsItemEventsItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarGroupsItemCalendarsItemEventsEventItemRequestBuilder) PermanentDelete()(*ItemCalendarGroupsItemCalendarsItemEventsItemPermanentDeleteRequestBuilder) { + return NewItemCalendarGroupsItemCalendarsItemEventsItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarGroupsItemCalendarsItemEventsItemSnoozeReminderRequestBuilder) { @@ -171,6 +179,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsEventItemRequestBuilder) Tenta return NewItemCalendarGroupsItemCalendarsItemEventsItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property events for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsEventItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsEventItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -182,6 +191,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsEventItemRequestBuilder) ToDel return requestInfo, nil } // ToGetRequestInformation the events in the calendar. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -196,6 +206,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsEventItemRequestBuilder) ToGet return requestInfo, nil } // ToPatchRequestInformation update the navigation property events in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsEventItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsEventItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -211,6 +222,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsEventItemRequestBuilder) ToPat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsEventItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsEventItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsEventItemRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsEventItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_events_item_accept_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_accept_request_builder.go index 0e1d5eb0e09..7976e754e3a 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_accept_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemAcceptRequestBuilder(rawUrl return NewItemCalendarGroupsItemCalendarsItemEventsItemAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemAcceptRequestBuilder) Post return nil } // ToPostRequestInformation accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemEventsItemAcceptPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemAcceptRequestBuilder) ToPo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemAcceptRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemAcceptRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_events_item_attachments_attachment_item_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_attachments_attachment_item_request_builder.go index 3df7adde708..1ae8da8645f 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_attachments_attachment_item_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_attachments_attachment_item_request_builder.go @@ -48,6 +48,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsAttachmentItemRe return NewItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsAttachmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,6 +65,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsAttachmentItemR return nil } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -84,6 +86,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsAttachmentItemR return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToDeleteRequestInformation delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +98,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsAttachmentItemR return requestInfo, nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +113,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsAttachmentItemR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsAttachmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsAttachmentItemRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsAttachmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_events_item_attachments_count_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_attachments_count_request_builder.go index 1a4698cbba9..cdd416cb168 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_attachments_count_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_attachments_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsCountRequestBuil return NewItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsCountRequestBui return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsCountRequestBui return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsCountRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsCountRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_events_item_attachments_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_attachments_request_builder.go index 9f3f938cea8..4000572aa2d 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_attachments_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_attachments_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsRequestBuilderPostR Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentId provides operations to manage the attachments property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsRequestBuilder) ByAttachmentId(attachmentId string)(*ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsAttachmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsRequestBuilder) return NewItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } // Post create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -122,6 +125,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsRequestBuilder) return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_events_item_calendar_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_calendar_request_builder.go index 3fed1348b22..7cfebbb6fa0 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_calendar_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_calendar_request_builder.go @@ -41,6 +41,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemCalendarRequestBuilder(rawU return NewItemCalendarGroupsItemCalendarsItemEventsItemCalendarRequestBuilderInternal(urlParams, requestAdapter) } // Get the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemCalendarRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemCalendarRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -61,6 +62,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemCalendarRequestBuilder) Ge return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable), nil } // ToGetRequestInformation the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemCalendarRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemCalendarRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemCalendarRequestBuilder) To return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemCalendarRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemCalendarRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemCalendarRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemCalendarRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_events_item_cancel_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_cancel_request_builder.go index e67ab08819d..70ab354daae 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_cancel_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_cancel_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemCancelRequestBuilder(rawUrl return NewItemCalendarGroupsItemCalendarsItemEventsItemCancelRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemCancelRequestBuilder) Post return nil } // ToPostRequestInformation this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemEventsItemCancelPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemCancelRequestBuilder) ToPo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemCancelRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemCancelRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemCancelRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_events_item_decline_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_decline_request_builder.go index c779cc7f6ef..45292b9048c 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_decline_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_decline_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemDeclineRequestBuilder(rawUr return NewItemCalendarGroupsItemCalendarsItemEventsItemDeclineRequestBuilderInternal(urlParams, requestAdapter) } // Post decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemDeclineRequestBuilder) Pos return nil } // ToPostRequestInformation decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemDeclineRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemEventsItemDeclinePostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemDeclineRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemDeclineRequestBuilder) ToP return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemDeclineRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemDeclineRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemDeclineRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemDeclineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_events_item_dismiss_reminder_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_dismiss_reminder_request_builder.go index bf0e13ba3ef..31324e9a6aa 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_dismiss_reminder_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_dismiss_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemDismissReminderRequestBuild return NewItemCalendarGroupsItemCalendarsItemEventsItemDismissReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemDismissReminderRequestBuil return nil } // ToPostRequestInformation dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemDismissReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemDismissReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemDismissReminderRequestBuil return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemDismissReminderRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemDismissReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemDismissReminderRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemDismissReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_events_item_exception_occurrences_count_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_exception_occurrences_count_request_builder.go index 6b57040a074..69856bff069 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_exception_occurrences_count_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_exception_occurrences_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesCountRe return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesCountR return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesCountR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesCountRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesCountRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_events_item_exception_occurrences_delta_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_exception_occurrences_delta_request_builder.go index 4f5efce262b..fbdf8957a3e 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_exception_occurrences_delta_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_exception_occurrences_delta_request_builder.go @@ -80,6 +80,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesDeltaR return res.(ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -103,6 +104,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesDeltaR return res.(ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesDeltaGetResponseable), nil } // ToGetRequestInformation get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +119,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesDeltaR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesDeltaRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesDeltaRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_events_item_exception_occurrences_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_exception_occurrences_request_builder.go index 634ae0aaccf..f702364af17 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_exception_occurrences_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_exception_occurrences_request_builder.go @@ -40,6 +40,7 @@ type ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesRequestBui QueryParameters *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesRequestBuilderGetQueryParameters } // ByEventId1 provides operations to manage the exceptionOccurrences property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesEventItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesRequestBuilder) ByEventId1(eventId1 string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesEventItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -75,6 +76,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesReques return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -95,6 +97,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesReques return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } // ToGetRequestInformation get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +112,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemExceptionOccurrencesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_events_item_extensions_count_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_extensions_count_request_builder.go index a327ef505a9..0d9652d2c46 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_extensions_count_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_extensions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemExtensionsCountRequestBuild return NewItemCalendarGroupsItemCalendarsItemEventsItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsCountRequestBuil return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsCountRequestBuil return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsCountRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsCountRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_events_item_extensions_extension_item_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_extensions_extension_item_request_builder.go index 18fe07877bb..7b13305b9db 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_extensions_extension_item_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_extensions_extension_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemExtensionsExtensionItemRequ return NewItemCalendarGroupsItemCalendarsItemEventsItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsExtensionItemReq return nil } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsExtensionItemReq return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsExtensionItemReq return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsExtensionItemReq return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsExtensionItemReq return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsExtensionItemReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsExtensionItemRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_events_item_extensions_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_extensions_request_builder.go index b0d07631c1b..8cbb752c924 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_extensions_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_extensions_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsRequestBuilderPostRe Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsRequestBuilder) return NewItemCalendarGroupsItemCalendarsItemEventsItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsRequestBuilder) return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemExtensionsRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_events_item_forward_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_forward_request_builder.go index 8f8634c56d0..000493d880c 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_forward_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_forward_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemForwardRequestBuilder(rawUr return NewItemCalendarGroupsItemCalendarsItemEventsItemForwardRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemForwardRequestBuilder) Pos return nil } // ToPostRequestInformation this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemForwardRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemEventsItemForwardPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemForwardRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemForwardRequestBuilder) ToP return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemForwardRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemForwardRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemForwardRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemForwardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_events_item_instances_count_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_instances_count_request_builder.go index 37bf02a5cb4..a11453a7f93 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_instances_count_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_instances_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesCountRequestBuilde return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesCountRequestBuild return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesCountRequestBuild return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesCountRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesCountRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_events_item_instances_delta_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_instances_delta_request_builder.go index 6bd6ea4d0e7..2ad0d326c4a 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_instances_delta_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_instances_delta_request_builder.go @@ -80,6 +80,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesDeltaRequestBuild return res.(ItemCalendarGroupsItemCalendarsItemEventsItemInstancesDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCalendarGroupsItemCalendarsItemEventsItemInstancesDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -103,6 +104,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesDeltaRequestBuild return res.(ItemCalendarGroupsItemCalendarsItemEventsItemInstancesDeltaGetResponseable), nil } // ToGetRequestInformation get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +119,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesDeltaRequestBuild return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesDeltaRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesDeltaRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_events_item_instances_event_item_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_instances_event_item_request_builder.go index 39e491c5f5f..71bac889e69 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_instances_event_item_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_instances_event_item_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemCalendarGroupsItemCalendarsItemEventsItemInstancesEventItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemCalendarGroupsItemCalendarsItemEventsItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemCalendarGroupsItemCalendarsItemEventsItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemCalendarGroupsItemCalendarsItemEventsItemInstancesEventItemRequestBuilderGetQueryParameters struct { // The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 EndDateTime *string `uriparametername:"endDateTime"` @@ -89,7 +89,8 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesEventItemRequestB func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesEventItemRequestBuilder) Forward()(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemForwardRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -109,6 +110,11 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesEventItemRequestB } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesEventItemRequestBuilder) PermanentDelete()(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemSnoozeReminderRequestBuilder) { @@ -119,7 +125,8 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesEventItemRequestB func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesEventItemRequestBuilder) TentativelyAccept()(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -134,6 +141,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesEventItemRequestB return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesEventItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesEventItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesEventItemRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesEventItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_events_item_instances_item_accept_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_instances_item_accept_request_builder.go index e00e86d5b80..88f10009f96 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_instances_item_accept_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_instances_item_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAcceptRequestB return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAcceptRequest return nil } // ToPostRequestInformation accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAcceptPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAcceptRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAcceptRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAcceptRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_events_item_instances_item_attachments_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_instances_item_attachments_request_builder.go index 65dd6bee019..2600d00442a 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_instances_item_attachments_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_instances_item_attachments_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsReques Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentId provides operations to manage the attachments property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilder) ByAttachmentId(attachmentId string)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsRe return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsRe return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } // Post create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -122,6 +125,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsRe return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsRe return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_events_item_instances_item_calendar_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_instances_item_calendar_request_builder.go index 418cfac02fd..a9b2283436b 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_instances_item_calendar_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_instances_item_calendar_request_builder.go @@ -41,6 +41,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemCalendarReques return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemCalendarRequestBuilderInternal(urlParams, requestAdapter) } // Get the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemCalendarRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemCalendarRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -61,6 +62,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemCalendarReque return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable), nil } // ToGetRequestInformation the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemCalendarRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemCalendarRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemCalendarReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemCalendarRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemCalendarRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemCalendarRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemCalendarRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_events_item_instances_item_cancel_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_instances_item_cancel_request_builder.go index bb437ae9dc5..fca7eb90bab 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_instances_item_cancel_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_instances_item_cancel_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemCancelRequestB return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemCancelRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemCancelRequest return nil } // ToPostRequestInformation this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemCancelPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemCancelRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemCancelRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemCancelRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemCancelRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_events_item_instances_item_decline_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_instances_item_decline_request_builder.go index 7982bf541d1..334df883ec2 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_instances_item_decline_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_instances_item_decline_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemDeclineRequest return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemDeclineRequestBuilderInternal(urlParams, requestAdapter) } // Post decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemDeclineReques return nil } // ToPostRequestInformation decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemDeclineRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemDeclinePostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemDeclineRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemDeclineReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemDeclineRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemDeclineRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemDeclineRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemDeclineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_events_item_instances_item_dismiss_reminder_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_instances_item_dismiss_reminder_request_builder.go index 5755feb953a..4dac67a9a02 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_instances_item_dismiss_reminder_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_instances_item_dismiss_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemDismissReminde return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemDismissReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemDismissRemind return nil } // ToPostRequestInformation dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemDismissReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemDismissReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemDismissRemind return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemDismissReminderRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemDismissReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemDismissReminderRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemDismissReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_events_item_instances_item_extensions_count_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_instances_item_extensions_count_request_builder.go index 8fac4afc31c..6d2795c07f7 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_instances_item_extensions_count_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_instances_item_extensions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsCoun return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsCou return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsCou return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsCountRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsCountRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_events_item_instances_item_extensions_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_instances_item_extensions_request_builder.go index 32f89df4f12..23836aa1942 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_instances_item_extensions_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_instances_item_extensions_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsRequest Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsReq return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsReq return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsReq return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsReq return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_events_item_instances_item_forward_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_instances_item_forward_request_builder.go index 1815ae88ff5..1b3d4255b2a 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_instances_item_forward_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_instances_item_forward_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemForwardRequest return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemForwardRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemForwardReques return nil } // ToPostRequestInformation this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemForwardRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemForwardPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemForwardRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemForwardReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemForwardRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemForwardRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemForwardRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemForwardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_events_item_instances_item_permanent_delete_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_instances_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..6c0fc755e10 --- /dev/null +++ b/users/item_calendar_groups_item_calendars_item_events_item_instances_item_permanent_delete_request_builder.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_calendar_groups_item_calendars_item_events_item_instances_item_snooze_reminder_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_instances_item_snooze_reminder_request_builder.go index 20c8c184227..5f021dcd3eb 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_instances_item_snooze_reminder_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_instances_item_snooze_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemSnoozeReminder return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemSnoozeReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemSnoozeReminde return nil } // ToPostRequestInformation postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemSnoozeReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemSnoozeReminderPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemSnoozeReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemSnoozeReminde return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemSnoozeReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemSnoozeReminderRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesItemSnoozeReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_events_item_instances_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_instances_request_builder.go index 9bd8138b8bc..e4cddd9b8fd 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_instances_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_instances_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemCalendarGroupsItemCalendarsItemEventsItemInstancesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemCalendarGroupsItemCalendarsItemEventsItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemCalendarGroupsItemCalendarsItemEventsItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemCalendarGroupsItemCalendarsItemEventsItemInstancesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -44,6 +44,7 @@ type ItemCalendarGroupsItemCalendarsItemEventsItemInstancesRequestBuilderGetRequ QueryParameters *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesRequestBuilderGetQueryParameters } // ByEventId1 provides operations to manage the instances property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesEventItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesRequestBuilder) ByEventId1(eventId1 string)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesEventItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -78,7 +79,8 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesRequestBuilder) C func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesRequestBuilder) Delta()(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesDeltaRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -98,7 +100,8 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesRequestBuilder) G } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,6 +116,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesRequestBuilder) T return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemInstancesRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemInstancesRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemInstancesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_events_item_permanent_delete_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..04cfe0d02ff --- /dev/null +++ b/users/item_calendar_groups_item_calendars_item_events_item_permanent_delete_request_builder.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarGroupsItemCalendarsItemEventsItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarGroupsItemCalendarsItemEventsItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarGroupsItemCalendarsItemEventsItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarGroupsItemCalendarsItemEventsItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarGroupsItemCalendarsItemEventsItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarGroupsItemCalendarsItemEventsItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarGroupsItemCalendarsItemEventsItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarGroupsItemCalendarsItemEventsItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarGroupsItemCalendarsItemEventsItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarGroupsItemCalendarsItemEventsItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarGroupsItemCalendarsItemEventsItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarGroupsItemCalendarsItemEventsItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarGroupsItemCalendarsItemEventsItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarGroupsItemCalendarsItemEventsItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarGroupsItemCalendarsItemEventsItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemCalendarGroupsItemCalendarsItemEventsItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemCalendarGroupsItemCalendarsItemEventsItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarGroupsItemCalendarsItemEventsItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemPermanentDeleteRequestBuilder) { + return NewItemCalendarGroupsItemCalendarsItemEventsItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_calendar_groups_item_calendars_item_events_item_snooze_reminder_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_snooze_reminder_request_builder.go index ad73c8d9ff3..084964162f9 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_snooze_reminder_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_snooze_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemSnoozeReminderRequestBuilde return NewItemCalendarGroupsItemCalendarsItemEventsItemSnoozeReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemSnoozeReminderRequestBuild return nil } // ToPostRequestInformation postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemSnoozeReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemEventsItemSnoozeReminderPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemSnoozeReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemSnoozeReminderRequestBuild return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemSnoozeReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemSnoozeReminderRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemSnoozeReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_events_item_tentatively_accept_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_item_tentatively_accept_request_builder.go index 147b9d925f6..3937f0a789c 100644 --- a/users/item_calendar_groups_item_calendars_item_events_item_tentatively_accept_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_item_tentatively_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarGroupsItemCalendarsItemEventsItemTentativelyAcceptRequestBui return NewItemCalendarGroupsItemCalendarsItemEventsItemTentativelyAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemTentativelyAcceptRequestBu return nil } // ToPostRequestInformation tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemTentativelyAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemEventsItemTentativelyAcceptPostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsItemTentativelyAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsItemTentativelyAcceptRequestBu return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsItemTentativelyAcceptRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsItemTentativelyAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsItemTentativelyAcceptRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsItemTentativelyAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_events_request_builder.go b/users/item_calendar_groups_item_calendars_item_events_request_builder.go index b7d4ee582d9..066d3b2a79e 100644 --- a/users/item_calendar_groups_item_calendars_item_events_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_events_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarGroupsItemCalendarsItemEventsRequestBuilderPostRequestConfigura Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByEventId provides operations to manage the events property of the microsoft.graph.calendar entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsEventItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsRequestBuilder) ByEventId(eventId string)(*ItemCalendarGroupsItemCalendarsItemEventsEventItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsRequestBuilder) Delta()(*ItemC return NewItemCalendarGroupsItemCalendarsItemEventsDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the events in the calendar. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsRequestBuilder) Get(ctx contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } // Post create new navigation property to events for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsItemEventsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -122,6 +125,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsRequestBuilder) Post(ctx conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable), nil } // ToGetRequestInformation the events in the calendar. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsRequestBuilder) ToGetRequestIn return requestInfo, nil } // ToPostRequestInformation create new navigation property to events for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemEventsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemEventsRequestBuilder) ToPostRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemEventsRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemEventsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemEventsRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemEventsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_get_schedule_request_builder.go b/users/item_calendar_groups_item_calendars_item_get_schedule_request_builder.go index ba3f0076078..d155f3687fb 100644 --- a/users/item_calendar_groups_item_calendars_item_get_schedule_request_builder.go +++ b/users/item_calendar_groups_item_calendars_item_get_schedule_request_builder.go @@ -55,6 +55,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemGetScheduleRequestBuilder) Post(ctx return res.(ItemCalendarGroupsItemCalendarsItemGetScheduleResponseable), nil } // PostAsGetSchedulePostResponse get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCalendarGroupsItemCalendarsItemGetSchedulePostResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -78,6 +79,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemGetScheduleRequestBuilder) PostAsGet return res.(ItemCalendarGroupsItemCalendarsItemGetSchedulePostResponseable), nil } // ToPostRequestInformation get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsItemGetScheduleRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarGroupsItemCalendarsItemGetSchedulePostRequestBodyable, requestConfiguration *ItemCalendarGroupsItemCalendarsItemGetScheduleRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -93,6 +95,7 @@ func (m *ItemCalendarGroupsItemCalendarsItemGetScheduleRequestBuilder) ToPostReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsItemGetScheduleRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsItemGetScheduleRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemGetScheduleRequestBuilder) { return NewItemCalendarGroupsItemCalendarsItemGetScheduleRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_item_calendars_item_permanent_delete_request_builder.go b/users/item_calendar_groups_item_calendars_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..bd1fe58c3ef --- /dev/null +++ b/users/item_calendar_groups_item_calendars_item_permanent_delete_request_builder.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarGroupsItemCalendarsItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarGroupsItemCalendarsItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarGroupsItemCalendarsItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarGroupsItemCalendarsItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarGroupsItemCalendarsItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarGroupsItemCalendarsItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarGroupsItemCalendarsItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarGroupsItemCalendarsItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarGroupsItemCalendarsItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarGroupsItemCalendarsItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarGroupsItemCalendarsItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarGroupsItemCalendarsItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarGroupsItemCalendarsItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarGroupsItemCalendarsItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete a calendar folder and the events that it contains and remove them from the mailbox. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/calendar-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarGroupsItemCalendarsItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete a calendar folder and the events that it contains and remove them from the mailbox. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemCalendarGroupsItemCalendarsItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemCalendarGroupsItemCalendarsItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarGroupsItemCalendarsItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsItemPermanentDeleteRequestBuilder) { + return NewItemCalendarGroupsItemCalendarsItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_calendar_groups_item_calendars_request_builder.go b/users/item_calendar_groups_item_calendars_request_builder.go index 8b8f388eb15..deed9a9f9f4 100644 --- a/users/item_calendar_groups_item_calendars_request_builder.go +++ b/users/item_calendar_groups_item_calendars_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarGroupsItemCalendarsRequestBuilderPostRequestConfiguration struc Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByCalendarId provides operations to manage the calendars property of the microsoft.graph.calendarGroup entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsCalendarItemRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsRequestBuilder) ByCalendarId(calendarId string)(*ItemCalendarGroupsItemCalendarsCalendarItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemCalendarGroupsItemCalendarsRequestBuilder) Count()(*ItemCalendarGro return NewItemCalendarGroupsItemCalendarsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the calendars in the calendar group. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a CalendarCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemCalendarGroupsItemCalendarsRequestBuilder) Get(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarCollectionResponseable), nil } // Post create new navigation property to calendars for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsItemCalendarsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, requestConfiguration *ItemCalendarGroupsItemCalendarsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -117,6 +120,7 @@ func (m *ItemCalendarGroupsItemCalendarsRequestBuilder) Post(ctx context.Context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable), nil } // ToGetRequestInformation the calendars in the calendar group. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsItemCalendarsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemCalendarGroupsItemCalendarsRequestBuilder) ToGetRequestInformation( return requestInfo, nil } // ToPostRequestInformation create new navigation property to calendars for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsItemCalendarsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, requestConfiguration *ItemCalendarGroupsItemCalendarsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemCalendarGroupsItemCalendarsRequestBuilder) ToPostRequestInformation return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsItemCalendarsRequestBuilder when successful func (m *ItemCalendarGroupsItemCalendarsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsItemCalendarsRequestBuilder) { return NewItemCalendarGroupsItemCalendarsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_groups_request_builder.go b/users/item_calendar_groups_request_builder.go index 45a0157ef78..41e2025a234 100644 --- a/users/item_calendar_groups_request_builder.go +++ b/users/item_calendar_groups_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarGroupsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByCalendarGroupId provides operations to manage the calendarGroups property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsCalendarGroupItemRequestBuilder when successful func (m *ItemCalendarGroupsRequestBuilder) ByCalendarGroupId(calendarGroupId string)(*ItemCalendarGroupsCalendarGroupItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemCalendarGroupsRequestBuilder) Count()(*ItemCalendarGroupsCountReque return NewItemCalendarGroupsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the user's calendar groups. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a CalendarGroupCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarGroupsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarGroupCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemCalendarGroupsRequestBuilder) Get(ctx context.Context, requestConfi return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarGroupCollectionResponseable), nil } // Post create new navigation property to calendarGroups for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a CalendarGroupable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarGroupsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarGroupable, requestConfiguration *ItemCalendarGroupsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarGroupable, error) { @@ -117,6 +120,7 @@ func (m *ItemCalendarGroupsRequestBuilder) Post(ctx context.Context, body ie233e return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarGroupable), nil } // ToGetRequestInformation the user's calendar groups. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarGroupsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemCalendarGroupsRequestBuilder) ToGetRequestInformation(ctx context.C return requestInfo, nil } // ToPostRequestInformation create new navigation property to calendarGroups for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarGroupable, requestConfiguration *ItemCalendarGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemCalendarGroupsRequestBuilder) ToPostRequestInformation(ctx context. return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarGroupsRequestBuilder when successful func (m *ItemCalendarGroupsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarGroupsRequestBuilder) { return NewItemCalendarGroupsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_permanent_delete_request_builder.go b/users/item_calendar_permanent_delete_request_builder.go new file mode 100644 index 00000000000..4fd6f1a6a53 --- /dev/null +++ b/users/item_calendar_permanent_delete_request_builder.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarPermanentDeleteRequestBuilder) { + m := &ItemCalendarPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarPermanentDeleteRequestBuilder instantiates a new ItemCalendarPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete a calendar folder and the events that it contains and remove them from the mailbox. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/calendar-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete a calendar folder and the events that it contains and remove them from the mailbox. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemCalendarPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemCalendarPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarPermanentDeleteRequestBuilder) { + return NewItemCalendarPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_calendar_request_builder.go b/users/item_calendar_request_builder.go index eca9eaf225c..72ad4d742ff 100644 --- a/users/item_calendar_request_builder.go +++ b/users/item_calendar_request_builder.go @@ -35,6 +35,7 @@ type ItemCalendarRequestBuilderPatchRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // AllowedCalendarSharingRolesWithUser provides operations to call the allowedCalendarSharingRoles method. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarAllowedCalendarSharingRolesWithUserRequestBuilder when successful func (m *ItemCalendarRequestBuilder) AllowedCalendarSharingRolesWithUser(user *string)(*ItemCalendarAllowedCalendarSharingRolesWithUserRequestBuilder) { return NewItemCalendarAllowedCalendarSharingRolesWithUserRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, user) @@ -68,6 +69,7 @@ func (m *ItemCalendarRequestBuilder) Events()(*ItemCalendarEventsRequestBuilder) return NewItemCalendarEventsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the user's primary calendar. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -93,6 +95,7 @@ func (m *ItemCalendarRequestBuilder) GetSchedule()(*ItemCalendarGetScheduleReque return NewItemCalendarGetScheduleRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property calendar in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, requestConfiguration *ItemCalendarRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -112,7 +115,13 @@ func (m *ItemCalendarRequestBuilder) Patch(ctx context.Context, body ie233ee762e } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarRequestBuilder) PermanentDelete()(*ItemCalendarPermanentDeleteRequestBuilder) { + return NewItemCalendarPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToGetRequestInformation the user's primary calendar. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -127,6 +136,7 @@ func (m *ItemCalendarRequestBuilder) ToGetRequestInformation(ctx context.Context return requestInfo, nil } // ToPatchRequestInformation update the navigation property calendar in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, requestConfiguration *ItemCalendarRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -142,6 +152,7 @@ func (m *ItemCalendarRequestBuilder) ToPatchRequestInformation(ctx context.Conte return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarRequestBuilder when successful func (m *ItemCalendarRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarRequestBuilder) { return NewItemCalendarRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_count_request_builder.go b/users/item_calendar_view_count_request_builder.go index 0b0fa0b6d16..1e6fd196ccd 100644 --- a/users/item_calendar_view_count_request_builder.go +++ b/users/item_calendar_view_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarViewCountRequestBuilder(rawUrl string, requestAdapter i2ae41 return NewItemCalendarViewCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarViewCountRequestBuilder) Get(ctx context.Context, requestCo return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarViewCountRequestBuilder) ToGetRequestInformation(ctx contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewCountRequestBuilder when successful func (m *ItemCalendarViewCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewCountRequestBuilder) { return NewItemCalendarViewCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_delta_request_builder.go b/users/item_calendar_view_delta_request_builder.go index bfe1dc3cd92..30cc4c79ed1 100644 --- a/users/item_calendar_view_delta_request_builder.go +++ b/users/item_calendar_view_delta_request_builder.go @@ -80,6 +80,7 @@ func (m *ItemCalendarViewDeltaRequestBuilder) Get(ctx context.Context, requestCo return res.(ItemCalendarViewDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCalendarViewDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -103,6 +104,7 @@ func (m *ItemCalendarViewDeltaRequestBuilder) GetAsDeltaGetResponse(ctx context. return res.(ItemCalendarViewDeltaGetResponseable), nil } // ToGetRequestInformation get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +119,7 @@ func (m *ItemCalendarViewDeltaRequestBuilder) ToGetRequestInformation(ctx contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewDeltaRequestBuilder when successful func (m *ItemCalendarViewDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewDeltaRequestBuilder) { return NewItemCalendarViewDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_event_item_request_builder.go b/users/item_calendar_view_event_item_request_builder.go index 8a3d72f2de6..32cc74897d5 100644 --- a/users/item_calendar_view_event_item_request_builder.go +++ b/users/item_calendar_view_event_item_request_builder.go @@ -90,6 +90,7 @@ func (m *ItemCalendarViewEventItemRequestBuilder) Forward()(*ItemCalendarViewIte return NewItemCalendarViewItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the calendar view for the calendar. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -114,6 +115,11 @@ func (m *ItemCalendarViewEventItemRequestBuilder) Get(ctx context.Context, reque func (m *ItemCalendarViewEventItemRequestBuilder) Instances()(*ItemCalendarViewItemInstancesRequestBuilder) { return NewItemCalendarViewItemInstancesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarViewItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarViewEventItemRequestBuilder) PermanentDelete()(*ItemCalendarViewItemPermanentDeleteRequestBuilder) { + return NewItemCalendarViewItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarViewItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarViewEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarViewItemSnoozeReminderRequestBuilder) { @@ -125,6 +131,7 @@ func (m *ItemCalendarViewEventItemRequestBuilder) TentativelyAccept()(*ItemCalen return NewItemCalendarViewItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation the calendar view for the calendar. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -139,6 +146,7 @@ func (m *ItemCalendarViewEventItemRequestBuilder) ToGetRequestInformation(ctx co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewEventItemRequestBuilder when successful func (m *ItemCalendarViewEventItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewEventItemRequestBuilder) { return NewItemCalendarViewEventItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_accept_request_builder.go b/users/item_calendar_view_item_accept_request_builder.go index b06f807c7aa..c2f4503d7b1 100644 --- a/users/item_calendar_view_item_accept_request_builder.go +++ b/users/item_calendar_view_item_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarViewItemAcceptRequestBuilder(rawUrl string, requestAdapter i return NewItemCalendarViewItemAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarViewItemAcceptRequestBuilder) Post(ctx context.Context, bod return nil } // ToPostRequestInformation accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarViewItemAcceptPostRequestBodyable, requestConfiguration *ItemCalendarViewItemAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarViewItemAcceptRequestBuilder) ToPostRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemAcceptRequestBuilder when successful func (m *ItemCalendarViewItemAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemAcceptRequestBuilder) { return NewItemCalendarViewItemAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_attachments_attachment_item_request_builder.go b/users/item_calendar_view_item_attachments_attachment_item_request_builder.go index 1ed9c143835..f513c4fc44b 100644 --- a/users/item_calendar_view_item_attachments_attachment_item_request_builder.go +++ b/users/item_calendar_view_item_attachments_attachment_item_request_builder.go @@ -48,6 +48,7 @@ func NewItemCalendarViewItemAttachmentsAttachmentItemRequestBuilder(rawUrl strin return NewItemCalendarViewItemAttachmentsAttachmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarViewItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,6 +65,7 @@ func (m *ItemCalendarViewItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx return nil } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -84,6 +86,7 @@ func (m *ItemCalendarViewItemAttachmentsAttachmentItemRequestBuilder) Get(ctx co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToDeleteRequestInformation delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +98,7 @@ func (m *ItemCalendarViewItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRe return requestInfo, nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +113,7 @@ func (m *ItemCalendarViewItemAttachmentsAttachmentItemRequestBuilder) ToGetReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarViewItemAttachmentsAttachmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemAttachmentsAttachmentItemRequestBuilder) { return NewItemCalendarViewItemAttachmentsAttachmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_attachments_count_request_builder.go b/users/item_calendar_view_item_attachments_count_request_builder.go index 3aa40c70d72..5cfdb734f74 100644 --- a/users/item_calendar_view_item_attachments_count_request_builder.go +++ b/users/item_calendar_view_item_attachments_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarViewItemAttachmentsCountRequestBuilder(rawUrl string, reques return NewItemCalendarViewItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarViewItemAttachmentsCountRequestBuilder) Get(ctx context.Con return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarViewItemAttachmentsCountRequestBuilder) ToGetRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemAttachmentsCountRequestBuilder when successful func (m *ItemCalendarViewItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemAttachmentsCountRequestBuilder) { return NewItemCalendarViewItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_attachments_create_upload_session_request_builder.go b/users/item_calendar_view_item_attachments_create_upload_session_request_builder.go index ec6d2f79b66..d426f52b873 100644 --- a/users/item_calendar_view_item_attachments_create_upload_session_request_builder.go +++ b/users/item_calendar_view_item_attachments_create_upload_session_request_builder.go @@ -32,6 +32,7 @@ func NewItemCalendarViewItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl return NewItemCalendarViewItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemCalendarViewItemAttachmentsCreateUploadSessionRequestBuilder) Post( return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarViewItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemCalendarViewItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemCalendarViewItemAttachmentsCreateUploadSessionRequestBuilder) ToPos return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemCalendarViewItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemCalendarViewItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_attachments_request_builder.go b/users/item_calendar_view_item_attachments_request_builder.go index 83c70fa4074..76789b37d1a 100644 --- a/users/item_calendar_view_item_attachments_request_builder.go +++ b/users/item_calendar_view_item_attachments_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarViewItemAttachmentsRequestBuilderPostRequestConfiguration struc Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentId provides operations to manage the attachments property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarViewItemAttachmentsRequestBuilder) ByAttachmentId(attachmentId string)(*ItemCalendarViewItemAttachmentsAttachmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemCalendarViewItemAttachmentsRequestBuilder) CreateUploadSession()(*I return NewItemCalendarViewItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemCalendarViewItemAttachmentsRequestBuilder) Get(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } // Post create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -122,6 +125,7 @@ func (m *ItemCalendarViewItemAttachmentsRequestBuilder) Post(ctx context.Context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemCalendarViewItemAttachmentsRequestBuilder) ToGetRequestInformation( return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemCalendarViewItemAttachmentsRequestBuilder) ToPostRequestInformation return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemAttachmentsRequestBuilder when successful func (m *ItemCalendarViewItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemAttachmentsRequestBuilder) { return NewItemCalendarViewItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_calendar_request_builder.go b/users/item_calendar_view_item_calendar_request_builder.go index fa83a6a5806..86bd04884ce 100644 --- a/users/item_calendar_view_item_calendar_request_builder.go +++ b/users/item_calendar_view_item_calendar_request_builder.go @@ -41,6 +41,7 @@ func NewItemCalendarViewItemCalendarRequestBuilder(rawUrl string, requestAdapter return NewItemCalendarViewItemCalendarRequestBuilderInternal(urlParams, requestAdapter) } // Get the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemCalendarRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemCalendarRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -61,6 +62,7 @@ func (m *ItemCalendarViewItemCalendarRequestBuilder) Get(ctx context.Context, re return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable), nil } // ToGetRequestInformation the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemCalendarRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemCalendarRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemCalendarViewItemCalendarRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemCalendarRequestBuilder when successful func (m *ItemCalendarViewItemCalendarRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemCalendarRequestBuilder) { return NewItemCalendarViewItemCalendarRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_cancel_request_builder.go b/users/item_calendar_view_item_cancel_request_builder.go index c8649d55950..4ba9c72f031 100644 --- a/users/item_calendar_view_item_cancel_request_builder.go +++ b/users/item_calendar_view_item_cancel_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarViewItemCancelRequestBuilder(rawUrl string, requestAdapter i return NewItemCalendarViewItemCancelRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarViewItemCancelRequestBuilder) Post(ctx context.Context, bod return nil } // ToPostRequestInformation this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarViewItemCancelPostRequestBodyable, requestConfiguration *ItemCalendarViewItemCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarViewItemCancelRequestBuilder) ToPostRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemCancelRequestBuilder when successful func (m *ItemCalendarViewItemCancelRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemCancelRequestBuilder) { return NewItemCalendarViewItemCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_decline_request_builder.go b/users/item_calendar_view_item_decline_request_builder.go index 027e8d717b3..30b591acec2 100644 --- a/users/item_calendar_view_item_decline_request_builder.go +++ b/users/item_calendar_view_item_decline_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarViewItemDeclineRequestBuilder(rawUrl string, requestAdapter return NewItemCalendarViewItemDeclineRequestBuilderInternal(urlParams, requestAdapter) } // Post decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarViewItemDeclineRequestBuilder) Post(ctx context.Context, bo return nil } // ToPostRequestInformation decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemDeclineRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarViewItemDeclinePostRequestBodyable, requestConfiguration *ItemCalendarViewItemDeclineRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarViewItemDeclineRequestBuilder) ToPostRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemDeclineRequestBuilder when successful func (m *ItemCalendarViewItemDeclineRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemDeclineRequestBuilder) { return NewItemCalendarViewItemDeclineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_dismiss_reminder_request_builder.go b/users/item_calendar_view_item_dismiss_reminder_request_builder.go index 578d7b00b7b..d77ec178f42 100644 --- a/users/item_calendar_view_item_dismiss_reminder_request_builder.go +++ b/users/item_calendar_view_item_dismiss_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarViewItemDismissReminderRequestBuilder(rawUrl string, request return NewItemCalendarViewItemDismissReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarViewItemDismissReminderRequestBuilder) Post(ctx context.Con return nil } // ToPostRequestInformation dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemDismissReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemDismissReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemCalendarViewItemDismissReminderRequestBuilder) ToPostRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemDismissReminderRequestBuilder when successful func (m *ItemCalendarViewItemDismissReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemDismissReminderRequestBuilder) { return NewItemCalendarViewItemDismissReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_exception_occurrences_count_request_builder.go b/users/item_calendar_view_item_exception_occurrences_count_request_builder.go index 3d3993c40cb..4268e87e7be 100644 --- a/users/item_calendar_view_item_exception_occurrences_count_request_builder.go +++ b/users/item_calendar_view_item_exception_occurrences_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarViewItemExceptionOccurrencesCountRequestBuilder(rawUrl strin return NewItemCalendarViewItemExceptionOccurrencesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemExceptionOccurrencesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesCountRequestBuilder) Get(ctx co return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesCountRequestBuilder) ToGetReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExceptionOccurrencesCountRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemExceptionOccurrencesCountRequestBuilder) { return NewItemCalendarViewItemExceptionOccurrencesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_exception_occurrences_delta_request_builder.go b/users/item_calendar_view_item_exception_occurrences_delta_request_builder.go index ba1cfd333c8..7c6201393aa 100644 --- a/users/item_calendar_view_item_exception_occurrences_delta_request_builder.go +++ b/users/item_calendar_view_item_exception_occurrences_delta_request_builder.go @@ -80,6 +80,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesDeltaRequestBuilder) Get(ctx co return res.(ItemCalendarViewItemExceptionOccurrencesDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCalendarViewItemExceptionOccurrencesDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -103,6 +104,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesDeltaRequestBuilder) GetAsDelta return res.(ItemCalendarViewItemExceptionOccurrencesDeltaGetResponseable), nil } // ToGetRequestInformation get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +119,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesDeltaRequestBuilder) ToGetReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExceptionOccurrencesDeltaRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemExceptionOccurrencesDeltaRequestBuilder) { return NewItemCalendarViewItemExceptionOccurrencesDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_exception_occurrences_event_item_request_builder.go b/users/item_calendar_view_item_exception_occurrences_event_item_request_builder.go index cd773fb1d63..40c9e4c9757 100644 --- a/users/item_calendar_view_item_exception_occurrences_event_item_request_builder.go +++ b/users/item_calendar_view_item_exception_occurrences_event_item_request_builder.go @@ -81,6 +81,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilder) Forwar return NewItemCalendarViewItemExceptionOccurrencesItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -105,6 +106,11 @@ func (m *ItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilder) Get(ct func (m *ItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilder) Instances()(*ItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder) { return NewItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilder) PermanentDelete()(*ItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarViewItemExceptionOccurrencesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarViewItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) { @@ -116,6 +122,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilder) Tentat return NewItemCalendarViewItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -130,6 +137,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilder) ToGetR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilder) { return NewItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_exception_occurrences_item_accept_request_builder.go b/users/item_calendar_view_item_exception_occurrences_item_accept_request_builder.go index 76b01d111ed..f551fbbe1e2 100644 --- a/users/item_calendar_view_item_exception_occurrences_item_accept_request_builder.go +++ b/users/item_calendar_view_item_exception_occurrences_item_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarViewItemExceptionOccurrencesItemAcceptRequestBuilder(rawUrl return NewItemCalendarViewItemExceptionOccurrencesItemAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemAcceptRequestBuilder) Post( return nil } // ToPostRequestInformation accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarViewItemExceptionOccurrencesItemAcceptPostRequestBodyable, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemAcceptRequestBuilder) ToPos return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExceptionOccurrencesItemAcceptRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemExceptionOccurrencesItemAcceptRequestBuilder) { return NewItemCalendarViewItemExceptionOccurrencesItemAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_exception_occurrences_item_attachments_attachment_item_request_builder.go b/users/item_calendar_view_item_exception_occurrences_item_attachments_attachment_item_request_builder.go index c55e34a4ebd..c6b219f5b4a 100644 --- a/users/item_calendar_view_item_exception_occurrences_item_attachments_attachment_item_request_builder.go +++ b/users/item_calendar_view_item_exception_occurrences_item_attachments_attachment_item_request_builder.go @@ -48,6 +48,7 @@ func NewItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemReq return NewItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,6 +65,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRe return nil } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -84,6 +86,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRe return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToDeleteRequestInformation delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +98,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRe return requestInfo, nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +113,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) { return NewItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_exception_occurrences_item_attachments_count_request_builder.go b/users/item_calendar_view_item_exception_occurrences_item_attachments_count_request_builder.go index 5a760c18715..49e007c8805 100644 --- a/users/item_calendar_view_item_exception_occurrences_item_attachments_count_request_builder.go +++ b/users/item_calendar_view_item_exception_occurrences_item_attachments_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarViewItemExceptionOccurrencesItemAttachmentsCountRequestBuild return NewItemCalendarViewItemExceptionOccurrencesItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsCountRequestBuil return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsCountRequestBuil return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsCountRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) { return NewItemCalendarViewItemExceptionOccurrencesItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_exception_occurrences_item_attachments_create_upload_session_request_builder.go b/users/item_calendar_view_item_exception_occurrences_item_attachments_create_upload_session_request_builder.go index 7d752a946af..448a3412310 100644 --- a/users/item_calendar_view_item_exception_occurrences_item_attachments_create_upload_session_request_builder.go +++ b/users/item_calendar_view_item_exception_occurrences_item_attachments_create_upload_session_request_builder.go @@ -32,6 +32,7 @@ func NewItemCalendarViewItemExceptionOccurrencesItemAttachmentsCreateUploadSessi return NewItemCalendarViewItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsCreateUploadSess return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarViewItemExceptionOccurrencesItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsCreateUploadSess return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemCalendarViewItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_exception_occurrences_item_attachments_request_builder.go b/users/item_calendar_view_item_exception_occurrences_item_attachments_request_builder.go index 260cd03187d..885421e656d 100644 --- a/users/item_calendar_view_item_exception_occurrences_item_attachments_request_builder.go +++ b/users/item_calendar_view_item_exception_occurrences_item_attachments_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRe Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentId provides operations to manage the attachments property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) ByAttachmentId(attachmentId string)(*ItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) return NewItemCalendarViewItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } // Post create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -122,6 +125,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) { return NewItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_exception_occurrences_item_calendar_request_builder.go b/users/item_calendar_view_item_exception_occurrences_item_calendar_request_builder.go index 2441b5e1f66..415bfde82fc 100644 --- a/users/item_calendar_view_item_exception_occurrences_item_calendar_request_builder.go +++ b/users/item_calendar_view_item_exception_occurrences_item_calendar_request_builder.go @@ -41,6 +41,7 @@ func NewItemCalendarViewItemExceptionOccurrencesItemCalendarRequestBuilder(rawUr return NewItemCalendarViewItemExceptionOccurrencesItemCalendarRequestBuilderInternal(urlParams, requestAdapter) } // Get the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemExceptionOccurrencesItemCalendarRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemCalendarRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -61,6 +62,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemCalendarRequestBuilder) Get return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable), nil } // ToGetRequestInformation the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemCalendarRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemCalendarRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemCalendarRequestBuilder) ToG return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExceptionOccurrencesItemCalendarRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemCalendarRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemExceptionOccurrencesItemCalendarRequestBuilder) { return NewItemCalendarViewItemExceptionOccurrencesItemCalendarRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_exception_occurrences_item_cancel_request_builder.go b/users/item_calendar_view_item_exception_occurrences_item_cancel_request_builder.go index fc4aac09631..80f63e8d895 100644 --- a/users/item_calendar_view_item_exception_occurrences_item_cancel_request_builder.go +++ b/users/item_calendar_view_item_exception_occurrences_item_cancel_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarViewItemExceptionOccurrencesItemCancelRequestBuilder(rawUrl return NewItemCalendarViewItemExceptionOccurrencesItemCancelRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemCancelRequestBuilder) Post( return nil } // ToPostRequestInformation this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarViewItemExceptionOccurrencesItemCancelPostRequestBodyable, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemCancelRequestBuilder) ToPos return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExceptionOccurrencesItemCancelRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemCancelRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemExceptionOccurrencesItemCancelRequestBuilder) { return NewItemCalendarViewItemExceptionOccurrencesItemCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_exception_occurrences_item_decline_request_builder.go b/users/item_calendar_view_item_exception_occurrences_item_decline_request_builder.go index 63c95380dc3..beef0c0d21a 100644 --- a/users/item_calendar_view_item_exception_occurrences_item_decline_request_builder.go +++ b/users/item_calendar_view_item_exception_occurrences_item_decline_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarViewItemExceptionOccurrencesItemDeclineRequestBuilder(rawUrl return NewItemCalendarViewItemExceptionOccurrencesItemDeclineRequestBuilderInternal(urlParams, requestAdapter) } // Post decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemDeclineRequestBuilder) Post return nil } // ToPostRequestInformation decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemDeclineRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarViewItemExceptionOccurrencesItemDeclinePostRequestBodyable, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemDeclineRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemDeclineRequestBuilder) ToPo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExceptionOccurrencesItemDeclineRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemDeclineRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemExceptionOccurrencesItemDeclineRequestBuilder) { return NewItemCalendarViewItemExceptionOccurrencesItemDeclineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_exception_occurrences_item_dismiss_reminder_request_builder.go b/users/item_calendar_view_item_exception_occurrences_item_dismiss_reminder_request_builder.go index 2cc269029e4..006a3997a9c 100644 --- a/users/item_calendar_view_item_exception_occurrences_item_dismiss_reminder_request_builder.go +++ b/users/item_calendar_view_item_exception_occurrences_item_dismiss_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarViewItemExceptionOccurrencesItemDismissReminderRequestBuilde return NewItemCalendarViewItemExceptionOccurrencesItemDismissReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemDismissReminderRequestBuild return nil } // ToPostRequestInformation dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemDismissReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemDismissReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemDismissReminderRequestBuild return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExceptionOccurrencesItemDismissReminderRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemDismissReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemExceptionOccurrencesItemDismissReminderRequestBuilder) { return NewItemCalendarViewItemExceptionOccurrencesItemDismissReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_exception_occurrences_item_extensions_count_request_builder.go b/users/item_calendar_view_item_exception_occurrences_item_extensions_count_request_builder.go index 9fb62ad866c..309319a4467 100644 --- a/users/item_calendar_view_item_exception_occurrences_item_extensions_count_request_builder.go +++ b/users/item_calendar_view_item_exception_occurrences_item_extensions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarViewItemExceptionOccurrencesItemExtensionsCountRequestBuilde return NewItemCalendarViewItemExceptionOccurrencesItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemExceptionOccurrencesItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemExtensionsCountRequestBuild return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemExtensionsCountRequestBuild return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExceptionOccurrencesItemExtensionsCountRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemExceptionOccurrencesItemExtensionsCountRequestBuilder) { return NewItemCalendarViewItemExceptionOccurrencesItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_exception_occurrences_item_extensions_extension_item_request_builder.go b/users/item_calendar_view_item_exception_occurrences_item_extensions_extension_item_request_builder.go index baa446c4bb0..4d0cdc9f5e1 100644 --- a/users/item_calendar_view_item_exception_occurrences_item_extensions_extension_item_request_builder.go +++ b/users/item_calendar_view_item_exception_occurrences_item_extensions_extension_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemReque return NewItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequ return nil } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequ return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequ return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequ return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequ return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) { return NewItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_exception_occurrences_item_extensions_request_builder.go b/users/item_calendar_view_item_exception_occurrences_item_extensions_request_builder.go index 5fb462d24e4..38cad9f69f5 100644 --- a/users/item_calendar_view_item_exception_occurrences_item_extensions_request_builder.go +++ b/users/item_calendar_view_item_exception_occurrences_item_extensions_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilderPostReq Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder) C return NewItemCalendarViewItemExceptionOccurrencesItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder) G return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder) P return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder) T return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder) T return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder) { return NewItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_exception_occurrences_item_forward_request_builder.go b/users/item_calendar_view_item_exception_occurrences_item_forward_request_builder.go index aba71adcdbe..5b0c668e578 100644 --- a/users/item_calendar_view_item_exception_occurrences_item_forward_request_builder.go +++ b/users/item_calendar_view_item_exception_occurrences_item_forward_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarViewItemExceptionOccurrencesItemForwardRequestBuilder(rawUrl return NewItemCalendarViewItemExceptionOccurrencesItemForwardRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemForwardRequestBuilder) Post return nil } // ToPostRequestInformation this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemForwardRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarViewItemExceptionOccurrencesItemForwardPostRequestBodyable, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemForwardRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemForwardRequestBuilder) ToPo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExceptionOccurrencesItemForwardRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemForwardRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemExceptionOccurrencesItemForwardRequestBuilder) { return NewItemCalendarViewItemExceptionOccurrencesItemForwardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_exception_occurrences_item_instances_count_request_builder.go b/users/item_calendar_view_item_exception_occurrences_item_instances_count_request_builder.go index 1027508fc06..fc3f4d26572 100644 --- a/users/item_calendar_view_item_exception_occurrences_item_instances_count_request_builder.go +++ b/users/item_calendar_view_item_exception_occurrences_item_instances_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarViewItemExceptionOccurrencesItemInstancesCountRequestBuilder return NewItemCalendarViewItemExceptionOccurrencesItemInstancesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesCountRequestBuilde return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesCountRequestBuilde return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExceptionOccurrencesItemInstancesCountRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemExceptionOccurrencesItemInstancesCountRequestBuilder) { return NewItemCalendarViewItemExceptionOccurrencesItemInstancesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_exception_occurrences_item_instances_delta_request_builder.go b/users/item_calendar_view_item_exception_occurrences_item_instances_delta_request_builder.go index 97b19a4a8cb..ff662476e8c 100644 --- a/users/item_calendar_view_item_exception_occurrences_item_instances_delta_request_builder.go +++ b/users/item_calendar_view_item_exception_occurrences_item_instances_delta_request_builder.go @@ -80,6 +80,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesDeltaRequestBuilde return res.(ItemCalendarViewItemExceptionOccurrencesItemInstancesDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCalendarViewItemExceptionOccurrencesItemInstancesDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -103,6 +104,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesDeltaRequestBuilde return res.(ItemCalendarViewItemExceptionOccurrencesItemInstancesDeltaGetResponseable), nil } // ToGetRequestInformation get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +119,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesDeltaRequestBuilde return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExceptionOccurrencesItemInstancesDeltaRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemExceptionOccurrencesItemInstancesDeltaRequestBuilder) { return NewItemCalendarViewItemExceptionOccurrencesItemInstancesDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_exception_occurrences_item_instances_event_item_request_builder.go b/users/item_calendar_view_item_exception_occurrences_item_instances_event_item_request_builder.go index dedba639860..7a776f6437d 100644 --- a/users/item_calendar_view_item_exception_occurrences_item_instances_event_item_request_builder.go +++ b/users/item_calendar_view_item_exception_occurrences_item_instances_event_item_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetQueryParameters struct { // The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 EndDateTime *string `uriparametername:"endDateTime"` @@ -84,7 +84,8 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBu func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) Forward()(*ItemCalendarViewItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder) { return NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -104,6 +105,11 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBu } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) PermanentDelete()(*ItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder) { @@ -114,7 +120,8 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBu func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) TentativelyAccept()(*ItemCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -129,6 +136,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBu return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) { return NewItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_exception_occurrences_item_instances_item_accept_request_builder.go b/users/item_calendar_view_item_exception_occurrences_item_instances_item_accept_request_builder.go index 4fae79add1a..5ce00c48b98 100644 --- a/users/item_calendar_view_item_exception_occurrences_item_instances_item_accept_request_builder.go +++ b/users/item_calendar_view_item_exception_occurrences_item_instances_item_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemAcceptRequestBu return NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAcceptRequestB return nil } // ToPostRequestInformation accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAcceptPostRequestBodyable, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAcceptRequestB return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilder) { return NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_exception_occurrences_item_instances_item_attachments_count_request_builder.go b/users/item_calendar_view_item_exception_occurrences_item_instances_item_attachments_count_request_builder.go index 40b440a9f58..cd477d76584 100644 --- a/users/item_calendar_view_item_exception_occurrences_item_instances_item_attachments_count_request_builder.go +++ b/users/item_calendar_view_item_exception_occurrences_item_instances_item_attachments_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCoun return NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCou return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCou return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder) { return NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go b/users/item_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go index b3708b20bd2..cfe602a484a 100644 --- a/users/item_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go +++ b/users/item_calendar_view_item_exception_occurrences_item_instances_item_attachments_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequest Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentId provides operations to manage the attachments property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ByAttachmentId(attachmentId string)(*ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsReq return NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsReq return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } // Post create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -122,6 +125,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsReq return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsReq return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) { return NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_exception_occurrences_item_instances_item_calendar_request_builder.go b/users/item_calendar_view_item_exception_occurrences_item_instances_item_calendar_request_builder.go index 4a8f352311b..5e567cc945f 100644 --- a/users/item_calendar_view_item_exception_occurrences_item_instances_item_calendar_request_builder.go +++ b/users/item_calendar_view_item_exception_occurrences_item_instances_item_calendar_request_builder.go @@ -41,6 +41,7 @@ func NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemCalendarRequest return NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilderInternal(urlParams, requestAdapter) } // Get the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -61,6 +62,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemCalendarReques return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable), nil } // ToGetRequestInformation the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemCalendarReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder) { return NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_exception_occurrences_item_instances_item_cancel_request_builder.go b/users/item_calendar_view_item_exception_occurrences_item_instances_item_cancel_request_builder.go index 02151b5b79d..cdb26fcde81 100644 --- a/users/item_calendar_view_item_exception_occurrences_item_instances_item_cancel_request_builder.go +++ b/users/item_calendar_view_item_exception_occurrences_item_instances_item_cancel_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemCancelRequestBu return NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemCancelRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemCancelRequestB return nil } // ToPostRequestInformation this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarViewItemExceptionOccurrencesItemInstancesItemCancelPostRequestBodyable, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemCancelRequestB return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemCancelRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemCancelRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemExceptionOccurrencesItemInstancesItemCancelRequestBuilder) { return NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_exception_occurrences_item_instances_item_decline_request_builder.go b/users/item_calendar_view_item_exception_occurrences_item_instances_item_decline_request_builder.go index 9da5b13dae6..48b932d8357 100644 --- a/users/item_calendar_view_item_exception_occurrences_item_instances_item_decline_request_builder.go +++ b/users/item_calendar_view_item_exception_occurrences_item_instances_item_decline_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemDeclineRequestB return NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilderInternal(urlParams, requestAdapter) } // Post decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemDeclineRequest return nil } // ToPostRequestInformation decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarViewItemExceptionOccurrencesItemInstancesItemDeclinePostRequestBodyable, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemDeclineRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilder) { return NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_exception_occurrences_item_instances_item_dismiss_reminder_request_builder.go b/users/item_calendar_view_item_exception_occurrences_item_instances_item_dismiss_reminder_request_builder.go index 8c34963ac67..3b9886ed8fa 100644 --- a/users/item_calendar_view_item_exception_occurrences_item_instances_item_dismiss_reminder_request_builder.go +++ b/users/item_calendar_view_item_exception_occurrences_item_instances_item_dismiss_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemDismissReminder return NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemDismissReminde return nil } // ToPostRequestInformation dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemDismissReminde return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilder) { return NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_exception_occurrences_item_instances_item_extensions_count_request_builder.go b/users/item_calendar_view_item_exception_occurrences_item_instances_item_extensions_count_request_builder.go index d10bc9e4389..51c3997661a 100644 --- a/users/item_calendar_view_item_exception_occurrences_item_instances_item_extensions_count_request_builder.go +++ b/users/item_calendar_view_item_exception_occurrences_item_instances_item_extensions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsCount return NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsCoun return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsCoun return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder) { return NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_exception_occurrences_item_instances_item_extensions_request_builder.go b/users/item_calendar_view_item_exception_occurrences_item_instances_item_extensions_request_builder.go index 8c281deb665..6ea94082f06 100644 --- a/users/item_calendar_view_item_exception_occurrences_item_instances_item_extensions_request_builder.go +++ b/users/item_calendar_view_item_exception_occurrences_item_instances_item_extensions_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestB Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequ return NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequ return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequ return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequ return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) { return NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_exception_occurrences_item_instances_item_forward_request_builder.go b/users/item_calendar_view_item_exception_occurrences_item_instances_item_forward_request_builder.go index b00cb3cfbc7..c3966bc880b 100644 --- a/users/item_calendar_view_item_exception_occurrences_item_instances_item_forward_request_builder.go +++ b/users/item_calendar_view_item_exception_occurrences_item_instances_item_forward_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemForwardRequestB return NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemForwardRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemForwardRequest return nil } // ToPostRequestInformation this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarViewItemExceptionOccurrencesItemInstancesItemForwardPostRequestBodyable, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemForwardRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemForwardRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder) { return NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_exception_occurrences_item_instances_item_permanent_delete_request_builder.go b/users/item_calendar_view_item_exception_occurrences_item_instances_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..c8292800da8 --- /dev/null +++ b/users/item_calendar_view_item_exception_occurrences_item_instances_item_permanent_delete_request_builder.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView/{event%2Did}/exceptionOccurrences/{event%2Did1}/instances/{event%2Did2}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_calendar_view_item_exception_occurrences_item_instances_item_snooze_reminder_request_builder.go b/users/item_calendar_view_item_exception_occurrences_item_instances_item_snooze_reminder_request_builder.go index e0540e84290..80a9b391e6e 100644 --- a/users/item_calendar_view_item_exception_occurrences_item_instances_item_snooze_reminder_request_builder.go +++ b/users/item_calendar_view_item_exception_occurrences_item_instances_item_snooze_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminderR return NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminder return nil } // ToPostRequestInformation postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminderPostRequestBodyable, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminder return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder) { return NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_exception_occurrences_item_instances_item_tentatively_accept_request_builder.go b/users/item_calendar_view_item_exception_occurrences_item_instances_item_tentatively_accept_request_builder.go index 8188eb28118..1069f3b8ee4 100644 --- a/users/item_calendar_view_item_exception_occurrences_item_instances_item_tentatively_accept_request_builder.go +++ b/users/item_calendar_view_item_exception_occurrences_item_instances_item_tentatively_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcce return NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcc return nil } // ToPostRequestInformation tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcceptPostRequestBodyable, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcc return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarViewItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_exception_occurrences_item_instances_request_builder.go b/users/item_calendar_view_item_exception_occurrences_item_instances_request_builder.go index b0afb2f101b..1a6f3600171 100644 --- a/users/item_calendar_view_item_exception_occurrences_item_instances_request_builder.go +++ b/users/item_calendar_view_item_exception_occurrences_item_instances_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -44,6 +44,7 @@ type ItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilderGetReque QueryParameters *ItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilderGetQueryParameters } // ByEventId2 provides operations to manage the instances property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder) ByEventId2(eventId2 string)(*ItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -78,7 +79,8 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder) Co func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder) Delta()(*ItemCalendarViewItemExceptionOccurrencesItemInstancesDeltaRequestBuilder) { return NewItemCalendarViewItemExceptionOccurrencesItemInstancesDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -98,7 +100,8 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder) Ge } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,6 +116,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder) To return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder) { return NewItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_exception_occurrences_item_permanent_delete_request_builder.go b/users/item_calendar_view_item_exception_occurrences_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..2b5901d60ee --- /dev/null +++ b/users/item_calendar_view_item_exception_occurrences_item_permanent_delete_request_builder.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView/{event%2Did}/exceptionOccurrences/{event%2Did1}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_calendar_view_item_exception_occurrences_item_snooze_reminder_request_builder.go b/users/item_calendar_view_item_exception_occurrences_item_snooze_reminder_request_builder.go index fdc763d7dfd..7b616a378c7 100644 --- a/users/item_calendar_view_item_exception_occurrences_item_snooze_reminder_request_builder.go +++ b/users/item_calendar_view_item_exception_occurrences_item_snooze_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarViewItemExceptionOccurrencesItemSnoozeReminderRequestBuilder return NewItemCalendarViewItemExceptionOccurrencesItemSnoozeReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemSnoozeReminderRequestBuilde return nil } // ToPostRequestInformation postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarViewItemExceptionOccurrencesItemSnoozeReminderPostRequestBodyable, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemSnoozeReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemSnoozeReminderRequestBuilde return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExceptionOccurrencesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) { return NewItemCalendarViewItemExceptionOccurrencesItemSnoozeReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_exception_occurrences_item_tentatively_accept_request_builder.go b/users/item_calendar_view_item_exception_occurrences_item_tentatively_accept_request_builder.go index 82f4806b218..cfdbfbe5d8c 100644 --- a/users/item_calendar_view_item_exception_occurrences_item_tentatively_accept_request_builder.go +++ b/users/item_calendar_view_item_exception_occurrences_item_tentatively_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarViewItemExceptionOccurrencesItemTentativelyAcceptRequestBuil return NewItemCalendarViewItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemTentativelyAcceptRequestBui return nil } // ToPostRequestInformation tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarViewItemExceptionOccurrencesItemTentativelyAcceptPostRequestBodyable, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesItemTentativelyAcceptRequestBui return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarViewItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_exception_occurrences_request_builder.go b/users/item_calendar_view_item_exception_occurrences_request_builder.go index b8dc9469fef..943923d9eb5 100644 --- a/users/item_calendar_view_item_exception_occurrences_request_builder.go +++ b/users/item_calendar_view_item_exception_occurrences_request_builder.go @@ -40,6 +40,7 @@ type ItemCalendarViewItemExceptionOccurrencesRequestBuilderGetRequestConfigurati QueryParameters *ItemCalendarViewItemExceptionOccurrencesRequestBuilderGetQueryParameters } // ByEventId1 provides operations to manage the exceptionOccurrences property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesRequestBuilder) ByEventId1(eventId1 string)(*ItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -75,6 +76,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesRequestBuilder) Delta()(*ItemCa return NewItemCalendarViewItemExceptionOccurrencesDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemExceptionOccurrencesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -95,6 +97,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesRequestBuilder) Get(ctx context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } // ToGetRequestInformation get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExceptionOccurrencesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemExceptionOccurrencesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +112,7 @@ func (m *ItemCalendarViewItemExceptionOccurrencesRequestBuilder) ToGetRequestInf return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExceptionOccurrencesRequestBuilder when successful func (m *ItemCalendarViewItemExceptionOccurrencesRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemExceptionOccurrencesRequestBuilder) { return NewItemCalendarViewItemExceptionOccurrencesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_extensions_count_request_builder.go b/users/item_calendar_view_item_extensions_count_request_builder.go index 1a48c66d4b6..3323e6a7bf4 100644 --- a/users/item_calendar_view_item_extensions_count_request_builder.go +++ b/users/item_calendar_view_item_extensions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarViewItemExtensionsCountRequestBuilder(rawUrl string, request return NewItemCalendarViewItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarViewItemExtensionsCountRequestBuilder) Get(ctx context.Cont return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarViewItemExtensionsCountRequestBuilder) ToGetRequestInformat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExtensionsCountRequestBuilder when successful func (m *ItemCalendarViewItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemExtensionsCountRequestBuilder) { return NewItemCalendarViewItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_extensions_extension_item_request_builder.go b/users/item_calendar_view_item_extensions_extension_item_request_builder.go index d216b84d7aa..e21018c74d2 100644 --- a/users/item_calendar_view_item_extensions_extension_item_request_builder.go +++ b/users/item_calendar_view_item_extensions_extension_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemCalendarViewItemExtensionsExtensionItemRequestBuilder(rawUrl string, return NewItemCalendarViewItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarViewItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemCalendarViewItemExtensionsExtensionItemRequestBuilder) Delete(ctx c return nil } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemCalendarViewItemExtensionsExtensionItemRequestBuilder) Get(ctx cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarViewItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemCalendarViewItemExtensionsExtensionItemRequestBuilder) Patch(ctx co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemCalendarViewItemExtensionsExtensionItemRequestBuilder) ToDeleteRequ return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemCalendarViewItemExtensionsExtensionItemRequestBuilder) ToGetRequest return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarViewItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemCalendarViewItemExtensionsExtensionItemRequestBuilder) ToPatchReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarViewItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemExtensionsExtensionItemRequestBuilder) { return NewItemCalendarViewItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_extensions_request_builder.go b/users/item_calendar_view_item_extensions_request_builder.go index ae2572907fd..6935951aa4f 100644 --- a/users/item_calendar_view_item_extensions_request_builder.go +++ b/users/item_calendar_view_item_extensions_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarViewItemExtensionsRequestBuilderPostRequestConfiguration struct Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarViewItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemCalendarViewItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemCalendarViewItemExtensionsRequestBuilder) Count()(*ItemCalendarView return NewItemCalendarViewItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemCalendarViewItemExtensionsRequestBuilder) Get(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarViewItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemCalendarViewItemExtensionsRequestBuilder) Post(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemCalendarViewItemExtensionsRequestBuilder) ToGetRequestInformation(c return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarViewItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemCalendarViewItemExtensionsRequestBuilder) ToPostRequestInformation( return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemExtensionsRequestBuilder when successful func (m *ItemCalendarViewItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemExtensionsRequestBuilder) { return NewItemCalendarViewItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_forward_request_builder.go b/users/item_calendar_view_item_forward_request_builder.go index 83c1296a4eb..d0f43d4900c 100644 --- a/users/item_calendar_view_item_forward_request_builder.go +++ b/users/item_calendar_view_item_forward_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarViewItemForwardRequestBuilder(rawUrl string, requestAdapter return NewItemCalendarViewItemForwardRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarViewItemForwardRequestBuilder) Post(ctx context.Context, bo return nil } // ToPostRequestInformation this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemForwardRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarViewItemForwardPostRequestBodyable, requestConfiguration *ItemCalendarViewItemForwardRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarViewItemForwardRequestBuilder) ToPostRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemForwardRequestBuilder when successful func (m *ItemCalendarViewItemForwardRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemForwardRequestBuilder) { return NewItemCalendarViewItemForwardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_instances_count_request_builder.go b/users/item_calendar_view_item_instances_count_request_builder.go index 625f1340c8e..67c3d7e048e 100644 --- a/users/item_calendar_view_item_instances_count_request_builder.go +++ b/users/item_calendar_view_item_instances_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarViewItemInstancesCountRequestBuilder(rawUrl string, requestA return NewItemCalendarViewItemInstancesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemInstancesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarViewItemInstancesCountRequestBuilder) Get(ctx context.Conte return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarViewItemInstancesCountRequestBuilder) ToGetRequestInformati return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemInstancesCountRequestBuilder when successful func (m *ItemCalendarViewItemInstancesCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemInstancesCountRequestBuilder) { return NewItemCalendarViewItemInstancesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_instances_delta_request_builder.go b/users/item_calendar_view_item_instances_delta_request_builder.go index a92869cce3a..e56715f4b1b 100644 --- a/users/item_calendar_view_item_instances_delta_request_builder.go +++ b/users/item_calendar_view_item_instances_delta_request_builder.go @@ -80,6 +80,7 @@ func (m *ItemCalendarViewItemInstancesDeltaRequestBuilder) Get(ctx context.Conte return res.(ItemCalendarViewItemInstancesDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCalendarViewItemInstancesDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -103,6 +104,7 @@ func (m *ItemCalendarViewItemInstancesDeltaRequestBuilder) GetAsDeltaGetResponse return res.(ItemCalendarViewItemInstancesDeltaGetResponseable), nil } // ToGetRequestInformation get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +119,7 @@ func (m *ItemCalendarViewItemInstancesDeltaRequestBuilder) ToGetRequestInformati return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemInstancesDeltaRequestBuilder when successful func (m *ItemCalendarViewItemInstancesDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemInstancesDeltaRequestBuilder) { return NewItemCalendarViewItemInstancesDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_instances_event_item_request_builder.go b/users/item_calendar_view_item_instances_event_item_request_builder.go index 3ddcc4b9679..845edefb4d7 100644 --- a/users/item_calendar_view_item_instances_event_item_request_builder.go +++ b/users/item_calendar_view_item_instances_event_item_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemCalendarViewItemInstancesEventItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemCalendarViewItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemCalendarViewItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemCalendarViewItemInstancesEventItemRequestBuilderGetQueryParameters struct { // The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 EndDateTime *string `uriparametername:"endDateTime"` @@ -89,7 +89,8 @@ func (m *ItemCalendarViewItemInstancesEventItemRequestBuilder) Extensions()(*Ite func (m *ItemCalendarViewItemInstancesEventItemRequestBuilder) Forward()(*ItemCalendarViewItemInstancesItemForwardRequestBuilder) { return NewItemCalendarViewItemInstancesItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemInstancesEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -109,6 +110,11 @@ func (m *ItemCalendarViewItemInstancesEventItemRequestBuilder) Get(ctx context.C } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarViewItemInstancesEventItemRequestBuilder) PermanentDelete()(*ItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarViewItemInstancesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarViewItemInstancesEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarViewItemInstancesItemSnoozeReminderRequestBuilder) { @@ -119,7 +125,8 @@ func (m *ItemCalendarViewItemInstancesEventItemRequestBuilder) SnoozeReminder()( func (m *ItemCalendarViewItemInstancesEventItemRequestBuilder) TentativelyAccept()(*ItemCalendarViewItemInstancesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarViewItemInstancesItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -134,6 +141,7 @@ func (m *ItemCalendarViewItemInstancesEventItemRequestBuilder) ToGetRequestInfor return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemInstancesEventItemRequestBuilder when successful func (m *ItemCalendarViewItemInstancesEventItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemInstancesEventItemRequestBuilder) { return NewItemCalendarViewItemInstancesEventItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_instances_item_accept_request_builder.go b/users/item_calendar_view_item_instances_item_accept_request_builder.go index f025f2b1e86..3dda2a0626b 100644 --- a/users/item_calendar_view_item_instances_item_accept_request_builder.go +++ b/users/item_calendar_view_item_instances_item_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarViewItemInstancesItemAcceptRequestBuilder(rawUrl string, req return NewItemCalendarViewItemInstancesItemAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarViewItemInstancesItemAcceptRequestBuilder) Post(ctx context return nil } // ToPostRequestInformation accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesItemAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarViewItemInstancesItemAcceptPostRequestBodyable, requestConfiguration *ItemCalendarViewItemInstancesItemAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarViewItemInstancesItemAcceptRequestBuilder) ToPostRequestInf return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemInstancesItemAcceptRequestBuilder when successful func (m *ItemCalendarViewItemInstancesItemAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemInstancesItemAcceptRequestBuilder) { return NewItemCalendarViewItemInstancesItemAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_instances_item_attachments_attachment_item_request_builder.go b/users/item_calendar_view_item_instances_item_attachments_attachment_item_request_builder.go index ce9ec2c7e3b..01a5e8c0885 100644 --- a/users/item_calendar_view_item_instances_item_attachments_attachment_item_request_builder.go +++ b/users/item_calendar_view_item_instances_item_attachments_attachment_item_request_builder.go @@ -48,6 +48,7 @@ func NewItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilder return NewItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,6 +65,7 @@ func (m *ItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilde return nil } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -84,6 +86,7 @@ func (m *ItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilde return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToDeleteRequestInformation delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +98,7 @@ func (m *ItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilde return requestInfo, nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +113,7 @@ func (m *ItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilde return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilder) { return NewItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_instances_item_attachments_count_request_builder.go b/users/item_calendar_view_item_instances_item_attachments_count_request_builder.go index 69e3a751808..d318efdadd6 100644 --- a/users/item_calendar_view_item_instances_item_attachments_count_request_builder.go +++ b/users/item_calendar_view_item_instances_item_attachments_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarViewItemInstancesItemAttachmentsCountRequestBuilder(rawUrl s return NewItemCalendarViewItemInstancesItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemInstancesItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarViewItemInstancesItemAttachmentsCountRequestBuilder) Get(ct return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarViewItemInstancesItemAttachmentsCountRequestBuilder) ToGetR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemInstancesItemAttachmentsCountRequestBuilder when successful func (m *ItemCalendarViewItemInstancesItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemInstancesItemAttachmentsCountRequestBuilder) { return NewItemCalendarViewItemInstancesItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_instances_item_attachments_create_upload_session_request_builder.go b/users/item_calendar_view_item_instances_item_attachments_create_upload_session_request_builder.go index 8194345446f..8dd3b3c2362 100644 --- a/users/item_calendar_view_item_instances_item_attachments_create_upload_session_request_builder.go +++ b/users/item_calendar_view_item_instances_item_attachments_create_upload_session_request_builder.go @@ -32,6 +32,7 @@ func NewItemCalendarViewItemInstancesItemAttachmentsCreateUploadSessionRequestBu return NewItemCalendarViewItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemCalendarViewItemInstancesItemAttachmentsCreateUploadSessionRequestB return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarViewItemInstancesItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemCalendarViewItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemCalendarViewItemInstancesItemAttachmentsCreateUploadSessionRequestB return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemCalendarViewItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemCalendarViewItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_instances_item_attachments_request_builder.go b/users/item_calendar_view_item_instances_item_attachments_request_builder.go index cd74159e420..e23e1b91a78 100644 --- a/users/item_calendar_view_item_instances_item_attachments_request_builder.go +++ b/users/item_calendar_view_item_instances_item_attachments_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarViewItemInstancesItemAttachmentsRequestBuilderPostRequestConfig Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentId provides operations to manage the attachments property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) ByAttachmentId(attachmentId string)(*ItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) CreateUploa return NewItemCalendarViewItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) Get(ctx con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } // Post create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -122,6 +125,7 @@ func (m *ItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) Post(ctx co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) ToGetReques return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) ToPostReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemInstancesItemAttachmentsRequestBuilder when successful func (m *ItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) { return NewItemCalendarViewItemInstancesItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_instances_item_calendar_request_builder.go b/users/item_calendar_view_item_instances_item_calendar_request_builder.go index f56318ef743..ebd62c83bb3 100644 --- a/users/item_calendar_view_item_instances_item_calendar_request_builder.go +++ b/users/item_calendar_view_item_instances_item_calendar_request_builder.go @@ -41,6 +41,7 @@ func NewItemCalendarViewItemInstancesItemCalendarRequestBuilder(rawUrl string, r return NewItemCalendarViewItemInstancesItemCalendarRequestBuilderInternal(urlParams, requestAdapter) } // Get the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemInstancesItemCalendarRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemCalendarRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -61,6 +62,7 @@ func (m *ItemCalendarViewItemInstancesItemCalendarRequestBuilder) Get(ctx contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable), nil } // ToGetRequestInformation the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesItemCalendarRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemCalendarRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemCalendarViewItemInstancesItemCalendarRequestBuilder) ToGetRequestIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemInstancesItemCalendarRequestBuilder when successful func (m *ItemCalendarViewItemInstancesItemCalendarRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemInstancesItemCalendarRequestBuilder) { return NewItemCalendarViewItemInstancesItemCalendarRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_instances_item_cancel_request_builder.go b/users/item_calendar_view_item_instances_item_cancel_request_builder.go index ed10716d4ab..073f1c5c9d2 100644 --- a/users/item_calendar_view_item_instances_item_cancel_request_builder.go +++ b/users/item_calendar_view_item_instances_item_cancel_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarViewItemInstancesItemCancelRequestBuilder(rawUrl string, req return NewItemCalendarViewItemInstancesItemCancelRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarViewItemInstancesItemCancelRequestBuilder) Post(ctx context return nil } // ToPostRequestInformation this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesItemCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarViewItemInstancesItemCancelPostRequestBodyable, requestConfiguration *ItemCalendarViewItemInstancesItemCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarViewItemInstancesItemCancelRequestBuilder) ToPostRequestInf return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemInstancesItemCancelRequestBuilder when successful func (m *ItemCalendarViewItemInstancesItemCancelRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemInstancesItemCancelRequestBuilder) { return NewItemCalendarViewItemInstancesItemCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_instances_item_decline_request_builder.go b/users/item_calendar_view_item_instances_item_decline_request_builder.go index 0d72a180dd0..661348748cd 100644 --- a/users/item_calendar_view_item_instances_item_decline_request_builder.go +++ b/users/item_calendar_view_item_instances_item_decline_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarViewItemInstancesItemDeclineRequestBuilder(rawUrl string, re return NewItemCalendarViewItemInstancesItemDeclineRequestBuilderInternal(urlParams, requestAdapter) } // Post decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarViewItemInstancesItemDeclineRequestBuilder) Post(ctx contex return nil } // ToPostRequestInformation decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesItemDeclineRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarViewItemInstancesItemDeclinePostRequestBodyable, requestConfiguration *ItemCalendarViewItemInstancesItemDeclineRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarViewItemInstancesItemDeclineRequestBuilder) ToPostRequestIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemInstancesItemDeclineRequestBuilder when successful func (m *ItemCalendarViewItemInstancesItemDeclineRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemInstancesItemDeclineRequestBuilder) { return NewItemCalendarViewItemInstancesItemDeclineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_instances_item_dismiss_reminder_request_builder.go b/users/item_calendar_view_item_instances_item_dismiss_reminder_request_builder.go index 7b8efa19a95..83a3b20e34e 100644 --- a/users/item_calendar_view_item_instances_item_dismiss_reminder_request_builder.go +++ b/users/item_calendar_view_item_instances_item_dismiss_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarViewItemInstancesItemDismissReminderRequestBuilder(rawUrl st return NewItemCalendarViewItemInstancesItemDismissReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarViewItemInstancesItemDismissReminderRequestBuilder) Post(ct return nil } // ToPostRequestInformation dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesItemDismissReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemDismissReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemCalendarViewItemInstancesItemDismissReminderRequestBuilder) ToPostR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemInstancesItemDismissReminderRequestBuilder when successful func (m *ItemCalendarViewItemInstancesItemDismissReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemInstancesItemDismissReminderRequestBuilder) { return NewItemCalendarViewItemInstancesItemDismissReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_instances_item_exception_occurrences_count_request_builder.go b/users/item_calendar_view_item_instances_item_exception_occurrences_count_request_builder.go index 3097e2e3a18..366fd2ff168 100644 --- a/users/item_calendar_view_item_instances_item_exception_occurrences_count_request_builder.go +++ b/users/item_calendar_view_item_instances_item_exception_occurrences_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarViewItemInstancesItemExceptionOccurrencesCountRequestBuilder return NewItemCalendarViewItemInstancesItemExceptionOccurrencesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesCountRequestBuilde return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesCountRequestBuilde return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemInstancesItemExceptionOccurrencesCountRequestBuilder when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemInstancesItemExceptionOccurrencesCountRequestBuilder) { return NewItemCalendarViewItemInstancesItemExceptionOccurrencesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_instances_item_exception_occurrences_delta_request_builder.go b/users/item_calendar_view_item_instances_item_exception_occurrences_delta_request_builder.go index fdf07fb61b5..0812614f80b 100644 --- a/users/item_calendar_view_item_instances_item_exception_occurrences_delta_request_builder.go +++ b/users/item_calendar_view_item_instances_item_exception_occurrences_delta_request_builder.go @@ -80,6 +80,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesDeltaRequestBuilde return res.(ItemCalendarViewItemInstancesItemExceptionOccurrencesDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCalendarViewItemInstancesItemExceptionOccurrencesDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -103,6 +104,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesDeltaRequestBuilde return res.(ItemCalendarViewItemInstancesItemExceptionOccurrencesDeltaGetResponseable), nil } // ToGetRequestInformation get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +119,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesDeltaRequestBuilde return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemInstancesItemExceptionOccurrencesDeltaRequestBuilder when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemInstancesItemExceptionOccurrencesDeltaRequestBuilder) { return NewItemCalendarViewItemInstancesItemExceptionOccurrencesDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_instances_item_exception_occurrences_event_item_request_builder.go b/users/item_calendar_view_item_instances_item_exception_occurrences_event_item_request_builder.go index 609ff829544..69ce34ef9e9 100644 --- a/users/item_calendar_view_item_instances_item_exception_occurrences_event_item_request_builder.go +++ b/users/item_calendar_view_item_instances_item_exception_occurrences_event_item_request_builder.go @@ -81,6 +81,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBu return NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -100,6 +101,11 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBu } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) PermanentDelete()(*ItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) { @@ -111,6 +117,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBu return NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -125,6 +132,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBu return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilder when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) { return NewItemCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_instances_item_exception_occurrences_item_accept_request_builder.go b/users/item_calendar_view_item_instances_item_exception_occurrences_item_accept_request_builder.go index 0292fe81aa5..fa58550a368 100644 --- a/users/item_calendar_view_item_instances_item_exception_occurrences_item_accept_request_builder.go +++ b/users/item_calendar_view_item_instances_item_exception_occurrences_item_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemAcceptRequestBu return NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAcceptRequestB return nil } // ToPostRequestInformation accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAcceptPostRequestBodyable, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAcceptRequestB return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilder when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilder) { return NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_instances_item_exception_occurrences_item_attachments_count_request_builder.go b/users/item_calendar_view_item_instances_item_exception_occurrences_item_attachments_count_request_builder.go index 1817570770b..f6855199f68 100644 --- a/users/item_calendar_view_item_instances_item_exception_occurrences_item_attachments_count_request_builder.go +++ b/users/item_calendar_view_item_instances_item_exception_occurrences_item_attachments_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCoun return NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCou return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCou return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) { return NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go b/users/item_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go index eb43ff79b78..8d5fd1f7a2a 100644 --- a/users/item_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go +++ b/users/item_calendar_view_item_instances_item_exception_occurrences_item_attachments_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequest Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentId provides operations to manage the attachments property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ByAttachmentId(attachmentId string)(*ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsReq return NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsReq return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } // Post create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -122,6 +125,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsReq return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsReq return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) { return NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_instances_item_exception_occurrences_item_calendar_request_builder.go b/users/item_calendar_view_item_instances_item_exception_occurrences_item_calendar_request_builder.go index 37979259c7a..f50758ff36e 100644 --- a/users/item_calendar_view_item_instances_item_exception_occurrences_item_calendar_request_builder.go +++ b/users/item_calendar_view_item_instances_item_exception_occurrences_item_calendar_request_builder.go @@ -41,6 +41,7 @@ func NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemCalendarRequest return NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilderInternal(urlParams, requestAdapter) } // Get the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -61,6 +62,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemCalendarReques return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable), nil } // ToGetRequestInformation the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemCalendarReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder) { return NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_instances_item_exception_occurrences_item_cancel_request_builder.go b/users/item_calendar_view_item_instances_item_exception_occurrences_item_cancel_request_builder.go index 76c861a0a70..4beedefab1f 100644 --- a/users/item_calendar_view_item_instances_item_exception_occurrences_item_cancel_request_builder.go +++ b/users/item_calendar_view_item_instances_item_exception_occurrences_item_cancel_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemCancelRequestBu return NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemCancelRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemCancelRequestB return nil } // ToPostRequestInformation this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarViewItemInstancesItemExceptionOccurrencesItemCancelPostRequestBodyable, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemCancelRequestB return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemCancelRequestBuilder when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemCancelRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemInstancesItemExceptionOccurrencesItemCancelRequestBuilder) { return NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_instances_item_exception_occurrences_item_decline_request_builder.go b/users/item_calendar_view_item_instances_item_exception_occurrences_item_decline_request_builder.go index 4cd0567ec4d..432e53b6bde 100644 --- a/users/item_calendar_view_item_instances_item_exception_occurrences_item_decline_request_builder.go +++ b/users/item_calendar_view_item_instances_item_exception_occurrences_item_decline_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemDeclineRequestB return NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilderInternal(urlParams, requestAdapter) } // Post decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemDeclineRequest return nil } // ToPostRequestInformation decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarViewItemInstancesItemExceptionOccurrencesItemDeclinePostRequestBodyable, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemDeclineRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilder when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilder) { return NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_instances_item_exception_occurrences_item_dismiss_reminder_request_builder.go b/users/item_calendar_view_item_instances_item_exception_occurrences_item_dismiss_reminder_request_builder.go index 7d9c9c7b004..cbccf85d342 100644 --- a/users/item_calendar_view_item_instances_item_exception_occurrences_item_dismiss_reminder_request_builder.go +++ b/users/item_calendar_view_item_instances_item_exception_occurrences_item_dismiss_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemDismissReminder return NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemDismissReminde return nil } // ToPostRequestInformation dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemDismissReminde return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilder when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilder) { return NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_instances_item_exception_occurrences_item_extensions_count_request_builder.go b/users/item_calendar_view_item_instances_item_exception_occurrences_item_extensions_count_request_builder.go index 19f8ec5a638..7ed44d65722 100644 --- a/users/item_calendar_view_item_instances_item_exception_occurrences_item_extensions_count_request_builder.go +++ b/users/item_calendar_view_item_instances_item_exception_occurrences_item_extensions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsCount return NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsCoun return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsCoun return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder) { return NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_instances_item_exception_occurrences_item_extensions_request_builder.go b/users/item_calendar_view_item_instances_item_exception_occurrences_item_extensions_request_builder.go index cc3ece03a23..0f8347b7d28 100644 --- a/users/item_calendar_view_item_instances_item_exception_occurrences_item_extensions_request_builder.go +++ b/users/item_calendar_view_item_instances_item_exception_occurrences_item_extensions_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestB Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequ return NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequ return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequ return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequ return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) { return NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_instances_item_exception_occurrences_item_forward_request_builder.go b/users/item_calendar_view_item_instances_item_exception_occurrences_item_forward_request_builder.go index 51e24f08abe..afafb02069c 100644 --- a/users/item_calendar_view_item_instances_item_exception_occurrences_item_forward_request_builder.go +++ b/users/item_calendar_view_item_instances_item_exception_occurrences_item_forward_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemForwardRequestB return NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemForwardRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemForwardRequest return nil } // ToPostRequestInformation this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemForwardRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarViewItemInstancesItemExceptionOccurrencesItemForwardPostRequestBodyable, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemForwardRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemForwardRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemForwardRequestBuilder when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemForwardRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemInstancesItemExceptionOccurrencesItemForwardRequestBuilder) { return NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemForwardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_instances_item_exception_occurrences_item_permanent_delete_request_builder.go b/users/item_calendar_view_item_instances_item_exception_occurrences_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..f7450bc3321 --- /dev/null +++ b/users/item_calendar_view_item_instances_item_exception_occurrences_item_permanent_delete_request_builder.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/exceptionOccurrences/{event%2Did2}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_calendar_view_item_instances_item_exception_occurrences_item_snooze_reminder_request_builder.go b/users/item_calendar_view_item_instances_item_exception_occurrences_item_snooze_reminder_request_builder.go index 609feed932a..392553573ac 100644 --- a/users/item_calendar_view_item_instances_item_exception_occurrences_item_snooze_reminder_request_builder.go +++ b/users/item_calendar_view_item_instances_item_exception_occurrences_item_snooze_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminderR return NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminder return nil } // ToPostRequestInformation postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminderPostRequestBodyable, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminder return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) { return NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_instances_item_exception_occurrences_item_tentatively_accept_request_builder.go b/users/item_calendar_view_item_instances_item_exception_occurrences_item_tentatively_accept_request_builder.go index 6363d92c8dd..ae011844961 100644 --- a/users/item_calendar_view_item_instances_item_exception_occurrences_item_tentatively_accept_request_builder.go +++ b/users/item_calendar_view_item_instances_item_exception_occurrences_item_tentatively_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemTentativelyAcce return NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemTentativelyAcc return nil } // ToPostRequestInformation tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarViewItemInstancesItemExceptionOccurrencesItemTentativelyAcceptPostRequestBodyable, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemTentativelyAcc return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarViewItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_instances_item_exception_occurrences_request_builder.go b/users/item_calendar_view_item_instances_item_exception_occurrences_request_builder.go index ed6f7f503d6..77b19e56b68 100644 --- a/users/item_calendar_view_item_instances_item_exception_occurrences_request_builder.go +++ b/users/item_calendar_view_item_instances_item_exception_occurrences_request_builder.go @@ -40,6 +40,7 @@ type ItemCalendarViewItemInstancesItemExceptionOccurrencesRequestBuilderGetReque QueryParameters *ItemCalendarViewItemInstancesItemExceptionOccurrencesRequestBuilderGetQueryParameters } // ByEventId2 provides operations to manage the exceptionOccurrences property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilder when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesRequestBuilder) ByEventId2(eventId2 string)(*ItemCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -75,6 +76,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesRequestBuilder) De return NewItemCalendarViewItemInstancesItemExceptionOccurrencesDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -95,6 +97,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesRequestBuilder) Ge return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } // ToGetRequestInformation get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemExceptionOccurrencesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +112,7 @@ func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesRequestBuilder) To return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemInstancesItemExceptionOccurrencesRequestBuilder when successful func (m *ItemCalendarViewItemInstancesItemExceptionOccurrencesRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemInstancesItemExceptionOccurrencesRequestBuilder) { return NewItemCalendarViewItemInstancesItemExceptionOccurrencesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_instances_item_extensions_count_request_builder.go b/users/item_calendar_view_item_instances_item_extensions_count_request_builder.go index 9dbefec760f..328e7181b82 100644 --- a/users/item_calendar_view_item_instances_item_extensions_count_request_builder.go +++ b/users/item_calendar_view_item_instances_item_extensions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarViewItemInstancesItemExtensionsCountRequestBuilder(rawUrl st return NewItemCalendarViewItemInstancesItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemInstancesItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarViewItemInstancesItemExtensionsCountRequestBuilder) Get(ctx return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarViewItemInstancesItemExtensionsCountRequestBuilder) ToGetRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemInstancesItemExtensionsCountRequestBuilder when successful func (m *ItemCalendarViewItemInstancesItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemInstancesItemExtensionsCountRequestBuilder) { return NewItemCalendarViewItemInstancesItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_instances_item_extensions_extension_item_request_builder.go b/users/item_calendar_view_item_instances_item_extensions_extension_item_request_builder.go index 0efe09821e9..9d4044d49b3 100644 --- a/users/item_calendar_view_item_instances_item_extensions_extension_item_request_builder.go +++ b/users/item_calendar_view_item_instances_item_extensions_extension_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder(r return NewItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder) return nil } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder) return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder) return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder) { return NewItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_instances_item_extensions_request_builder.go b/users/item_calendar_view_item_instances_item_extensions_request_builder.go index 8caabf03742..7326fed9946 100644 --- a/users/item_calendar_view_item_instances_item_extensions_request_builder.go +++ b/users/item_calendar_view_item_instances_item_extensions_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarViewItemInstancesItemExtensionsRequestBuilderPostRequestConfigu Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarViewItemInstancesItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemCalendarViewItemInstancesItemExtensionsRequestBuilder) Count()(*Ite return NewItemCalendarViewItemInstancesItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemInstancesItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemCalendarViewItemInstancesItemExtensionsRequestBuilder) Get(ctx cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemInstancesItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarViewItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemCalendarViewItemInstancesItemExtensionsRequestBuilder) Post(ctx con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemCalendarViewItemInstancesItemExtensionsRequestBuilder) ToGetRequest return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarViewItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemCalendarViewItemInstancesItemExtensionsRequestBuilder) ToPostReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemInstancesItemExtensionsRequestBuilder when successful func (m *ItemCalendarViewItemInstancesItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemInstancesItemExtensionsRequestBuilder) { return NewItemCalendarViewItemInstancesItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_instances_item_forward_request_builder.go b/users/item_calendar_view_item_instances_item_forward_request_builder.go index 2bcc5f56291..f5871bb1cbf 100644 --- a/users/item_calendar_view_item_instances_item_forward_request_builder.go +++ b/users/item_calendar_view_item_instances_item_forward_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarViewItemInstancesItemForwardRequestBuilder(rawUrl string, re return NewItemCalendarViewItemInstancesItemForwardRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarViewItemInstancesItemForwardRequestBuilder) Post(ctx contex return nil } // ToPostRequestInformation this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesItemForwardRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarViewItemInstancesItemForwardPostRequestBodyable, requestConfiguration *ItemCalendarViewItemInstancesItemForwardRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarViewItemInstancesItemForwardRequestBuilder) ToPostRequestIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemInstancesItemForwardRequestBuilder when successful func (m *ItemCalendarViewItemInstancesItemForwardRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemInstancesItemForwardRequestBuilder) { return NewItemCalendarViewItemInstancesItemForwardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_instances_item_permanent_delete_request_builder.go b/users/item_calendar_view_item_instances_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..b2b81368022 --- /dev/null +++ b/users/item_calendar_view_item_instances_item_permanent_delete_request_builder.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_calendar_view_item_instances_item_snooze_reminder_request_builder.go b/users/item_calendar_view_item_instances_item_snooze_reminder_request_builder.go index 0173a7ac092..fd417191ef8 100644 --- a/users/item_calendar_view_item_instances_item_snooze_reminder_request_builder.go +++ b/users/item_calendar_view_item_instances_item_snooze_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarViewItemInstancesItemSnoozeReminderRequestBuilder(rawUrl str return NewItemCalendarViewItemInstancesItemSnoozeReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarViewItemInstancesItemSnoozeReminderRequestBuilder) Post(ctx return nil } // ToPostRequestInformation postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesItemSnoozeReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarViewItemInstancesItemSnoozeReminderPostRequestBodyable, requestConfiguration *ItemCalendarViewItemInstancesItemSnoozeReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarViewItemInstancesItemSnoozeReminderRequestBuilder) ToPostRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemInstancesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarViewItemInstancesItemSnoozeReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemInstancesItemSnoozeReminderRequestBuilder) { return NewItemCalendarViewItemInstancesItemSnoozeReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_instances_item_tentatively_accept_request_builder.go b/users/item_calendar_view_item_instances_item_tentatively_accept_request_builder.go index 99f01261696..75ba5104433 100644 --- a/users/item_calendar_view_item_instances_item_tentatively_accept_request_builder.go +++ b/users/item_calendar_view_item_instances_item_tentatively_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarViewItemInstancesItemTentativelyAcceptRequestBuilder(rawUrl return NewItemCalendarViewItemInstancesItemTentativelyAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarViewItemInstancesItemTentativelyAcceptRequestBuilder) Post( return nil } // ToPostRequestInformation tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesItemTentativelyAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarViewItemInstancesItemTentativelyAcceptPostRequestBodyable, requestConfiguration *ItemCalendarViewItemInstancesItemTentativelyAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarViewItemInstancesItemTentativelyAcceptRequestBuilder) ToPos return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemInstancesItemTentativelyAcceptRequestBuilder when successful func (m *ItemCalendarViewItemInstancesItemTentativelyAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemInstancesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarViewItemInstancesItemTentativelyAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_instances_request_builder.go b/users/item_calendar_view_item_instances_request_builder.go index 3ce6d22b5d7..e716c801ceb 100644 --- a/users/item_calendar_view_item_instances_request_builder.go +++ b/users/item_calendar_view_item_instances_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemCalendarViewItemInstancesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemCalendarViewItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemCalendarViewItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemCalendarViewItemInstancesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -44,6 +44,7 @@ type ItemCalendarViewItemInstancesRequestBuilderGetRequestConfiguration struct { QueryParameters *ItemCalendarViewItemInstancesRequestBuilderGetQueryParameters } // ByEventId1 provides operations to manage the instances property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemInstancesEventItemRequestBuilder when successful func (m *ItemCalendarViewItemInstancesRequestBuilder) ByEventId1(eventId1 string)(*ItemCalendarViewItemInstancesEventItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -78,7 +79,8 @@ func (m *ItemCalendarViewItemInstancesRequestBuilder) Count()(*ItemCalendarViewI func (m *ItemCalendarViewItemInstancesRequestBuilder) Delta()(*ItemCalendarViewItemInstancesDeltaRequestBuilder) { return NewItemCalendarViewItemInstancesDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewItemInstancesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -98,7 +100,8 @@ func (m *ItemCalendarViewItemInstancesRequestBuilder) Get(ctx context.Context, r } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemInstancesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemInstancesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,6 +116,7 @@ func (m *ItemCalendarViewItemInstancesRequestBuilder) ToGetRequestInformation(ct return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemInstancesRequestBuilder when successful func (m *ItemCalendarViewItemInstancesRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemInstancesRequestBuilder) { return NewItemCalendarViewItemInstancesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_permanent_delete_request_builder.go b/users/item_calendar_view_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..ab5b2ea41c2 --- /dev/null +++ b/users/item_calendar_view_item_permanent_delete_request_builder.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarViewItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarViewItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarViewItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarViewItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarViewItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarViewItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarViewItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarViewItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarViewItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView/{event%2Did}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarViewItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarViewItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarViewItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarViewItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarViewItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarViewItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarViewItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemCalendarViewItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemCalendarViewItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarViewItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemPermanentDeleteRequestBuilder) { + return NewItemCalendarViewItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_calendar_view_item_snooze_reminder_request_builder.go b/users/item_calendar_view_item_snooze_reminder_request_builder.go index 9a4a149e601..660d1fbae59 100644 --- a/users/item_calendar_view_item_snooze_reminder_request_builder.go +++ b/users/item_calendar_view_item_snooze_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarViewItemSnoozeReminderRequestBuilder(rawUrl string, requestA return NewItemCalendarViewItemSnoozeReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarViewItemSnoozeReminderRequestBuilder) Post(ctx context.Cont return nil } // ToPostRequestInformation postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemSnoozeReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarViewItemSnoozeReminderPostRequestBodyable, requestConfiguration *ItemCalendarViewItemSnoozeReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarViewItemSnoozeReminderRequestBuilder) ToPostRequestInformat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarViewItemSnoozeReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemSnoozeReminderRequestBuilder) { return NewItemCalendarViewItemSnoozeReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_item_tentatively_accept_request_builder.go b/users/item_calendar_view_item_tentatively_accept_request_builder.go index 2e7d974ca50..fcce328138a 100644 --- a/users/item_calendar_view_item_tentatively_accept_request_builder.go +++ b/users/item_calendar_view_item_tentatively_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarViewItemTentativelyAcceptRequestBuilder(rawUrl string, reque return NewItemCalendarViewItemTentativelyAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarViewItemTentativelyAcceptRequestBuilder) Post(ctx context.C return nil } // ToPostRequestInformation tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewItemTentativelyAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarViewItemTentativelyAcceptPostRequestBodyable, requestConfiguration *ItemCalendarViewItemTentativelyAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarViewItemTentativelyAcceptRequestBuilder) ToPostRequestInfor return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewItemTentativelyAcceptRequestBuilder when successful func (m *ItemCalendarViewItemTentativelyAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewItemTentativelyAcceptRequestBuilder) { return NewItemCalendarViewItemTentativelyAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendar_view_request_builder.go b/users/item_calendar_view_request_builder.go index 0fb00dd1536..5675f287e5b 100644 --- a/users/item_calendar_view_request_builder.go +++ b/users/item_calendar_view_request_builder.go @@ -44,6 +44,7 @@ type ItemCalendarViewRequestBuilderGetRequestConfiguration struct { QueryParameters *ItemCalendarViewRequestBuilderGetQueryParameters } // ByEventId provides operations to manage the calendarView property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewEventItemRequestBuilder when successful func (m *ItemCalendarViewRequestBuilder) ByEventId(eventId string)(*ItemCalendarViewEventItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -79,6 +80,7 @@ func (m *ItemCalendarViewRequestBuilder) Delta()(*ItemCalendarViewDeltaRequestBu return NewItemCalendarViewDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the calendar view for the calendar. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarViewRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarViewRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -99,6 +101,7 @@ func (m *ItemCalendarViewRequestBuilder) Get(ctx context.Context, requestConfigu return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } // ToGetRequestInformation the calendar view for the calendar. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarViewRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarViewRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,6 +116,7 @@ func (m *ItemCalendarViewRequestBuilder) ToGetRequestInformation(ctx context.Con return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarViewRequestBuilder when successful func (m *ItemCalendarViewRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarViewRequestBuilder) { return NewItemCalendarViewRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_calendar_item_request_builder.go b/users/item_calendars_calendar_item_request_builder.go index 6a904119bc9..7ae98d4711d 100644 --- a/users/item_calendars_calendar_item_request_builder.go +++ b/users/item_calendars_calendar_item_request_builder.go @@ -42,6 +42,7 @@ type ItemCalendarsCalendarItemRequestBuilderPatchRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // AllowedCalendarSharingRolesWithUser provides operations to call the allowedCalendarSharingRoles method. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemAllowedCalendarSharingRolesWithUserRequestBuilder when successful func (m *ItemCalendarsCalendarItemRequestBuilder) AllowedCalendarSharingRolesWithUser(user *string)(*ItemCalendarsItemAllowedCalendarSharingRolesWithUserRequestBuilder) { return NewItemCalendarsItemAllowedCalendarSharingRolesWithUserRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, user) @@ -70,6 +71,7 @@ func NewItemCalendarsCalendarItemRequestBuilder(rawUrl string, requestAdapter i2 return NewItemCalendarsCalendarItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property calendars for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsCalendarItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarsCalendarItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -91,6 +93,7 @@ func (m *ItemCalendarsCalendarItemRequestBuilder) Events()(*ItemCalendarsItemEve return NewItemCalendarsItemEventsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the user's calendars. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsCalendarItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsCalendarItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -116,6 +119,7 @@ func (m *ItemCalendarsCalendarItemRequestBuilder) GetSchedule()(*ItemCalendarsIt return NewItemCalendarsItemGetScheduleRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property calendars in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsCalendarItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, requestConfiguration *ItemCalendarsCalendarItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -135,7 +139,13 @@ func (m *ItemCalendarsCalendarItemRequestBuilder) Patch(ctx context.Context, bod } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarsItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarsCalendarItemRequestBuilder) PermanentDelete()(*ItemCalendarsItemPermanentDeleteRequestBuilder) { + return NewItemCalendarsItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToDeleteRequestInformation delete navigation property calendars for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsCalendarItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsCalendarItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -147,6 +157,7 @@ func (m *ItemCalendarsCalendarItemRequestBuilder) ToDeleteRequestInformation(ctx return requestInfo, nil } // ToGetRequestInformation the user's calendars. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsCalendarItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsCalendarItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -161,6 +172,7 @@ func (m *ItemCalendarsCalendarItemRequestBuilder) ToGetRequestInformation(ctx co return requestInfo, nil } // ToPatchRequestInformation update the navigation property calendars in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsCalendarItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, requestConfiguration *ItemCalendarsCalendarItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -176,6 +188,7 @@ func (m *ItemCalendarsCalendarItemRequestBuilder) ToPatchRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsCalendarItemRequestBuilder when successful func (m *ItemCalendarsCalendarItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsCalendarItemRequestBuilder) { return NewItemCalendarsCalendarItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_count_request_builder.go b/users/item_calendars_count_request_builder.go index 9e8f05d52a2..fd92b08f483 100644 --- a/users/item_calendars_count_request_builder.go +++ b/users/item_calendars_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f return NewItemCalendarsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarsCountRequestBuilder) Get(ctx context.Context, requestConfi return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarsCountRequestBuilder) ToGetRequestInformation(ctx context.C return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsCountRequestBuilder when successful func (m *ItemCalendarsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsCountRequestBuilder) { return NewItemCalendarsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_allowed_calendar_sharing_roles_with_user_request_builder.go b/users/item_calendars_item_allowed_calendar_sharing_roles_with_user_request_builder.go index 265d9d2a6bd..5274904bcf1 100644 --- a/users/item_calendars_item_allowed_calendar_sharing_roles_with_user_request_builder.go +++ b/users/item_calendars_item_allowed_calendar_sharing_roles_with_user_request_builder.go @@ -70,6 +70,7 @@ func (m *ItemCalendarsItemAllowedCalendarSharingRolesWithUserRequestBuilder) Get return res.(ItemCalendarsItemAllowedCalendarSharingRolesWithUserResponseable), nil } // GetAsAllowedCalendarSharingRolesWithUserGetResponse invoke function allowedCalendarSharingRoles +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCalendarsItemAllowedCalendarSharingRolesWithUserGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemAllowedCalendarSharingRolesWithUserRequestBuilder) GetAsAllowedCalendarSharingRolesWithUserGetResponse(ctx context.Context, requestConfiguration *ItemCalendarsItemAllowedCalendarSharingRolesWithUserRequestBuilderGetRequestConfiguration)(ItemCalendarsItemAllowedCalendarSharingRolesWithUserGetResponseable, error) { @@ -90,6 +91,7 @@ func (m *ItemCalendarsItemAllowedCalendarSharingRolesWithUserRequestBuilder) Get return res.(ItemCalendarsItemAllowedCalendarSharingRolesWithUserGetResponseable), nil } // ToGetRequestInformation invoke function allowedCalendarSharingRoles +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemAllowedCalendarSharingRolesWithUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemAllowedCalendarSharingRolesWithUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -104,6 +106,7 @@ func (m *ItemCalendarsItemAllowedCalendarSharingRolesWithUserRequestBuilder) ToG return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemAllowedCalendarSharingRolesWithUserRequestBuilder when successful func (m *ItemCalendarsItemAllowedCalendarSharingRolesWithUserRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemAllowedCalendarSharingRolesWithUserRequestBuilder) { return NewItemCalendarsItemAllowedCalendarSharingRolesWithUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_permissions_calendar_permission_item_request_builder.go b/users/item_calendars_item_calendar_permissions_calendar_permission_item_request_builder.go index 72849443af5..8787b7af39b 100644 --- a/users/item_calendars_item_calendar_permissions_calendar_permission_item_request_builder.go +++ b/users/item_calendars_item_calendar_permissions_calendar_permission_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemCalendarsItemCalendarPermissionsCalendarPermissionItemRequestBuilder return NewItemCalendarsItemCalendarPermissionsCalendarPermissionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property calendarPermissions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarPermissionsCalendarPermissionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarPermissionsCalendarPermissionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemCalendarsItemCalendarPermissionsCalendarPermissionItemRequestBuilde return nil } // Get the permissions of the users with whom the calendar is shared. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a CalendarPermissionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarPermissionsCalendarPermissionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarPermissionsCalendarPermissionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarPermissionable, error) { @@ -91,6 +93,7 @@ func (m *ItemCalendarsItemCalendarPermissionsCalendarPermissionItemRequestBuilde return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarPermissionable), nil } // Patch update the navigation property calendarPermissions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a CalendarPermissionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarPermissionsCalendarPermissionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarPermissionable, requestConfiguration *ItemCalendarsItemCalendarPermissionsCalendarPermissionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarPermissionable, error) { @@ -111,6 +114,7 @@ func (m *ItemCalendarsItemCalendarPermissionsCalendarPermissionItemRequestBuilde return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarPermissionable), nil } // ToDeleteRequestInformation delete navigation property calendarPermissions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarPermissionsCalendarPermissionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarPermissionsCalendarPermissionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemCalendarsItemCalendarPermissionsCalendarPermissionItemRequestBuilde return requestInfo, nil } // ToGetRequestInformation the permissions of the users with whom the calendar is shared. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarPermissionsCalendarPermissionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarPermissionsCalendarPermissionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemCalendarsItemCalendarPermissionsCalendarPermissionItemRequestBuilde return requestInfo, nil } // ToPatchRequestInformation update the navigation property calendarPermissions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarPermissionsCalendarPermissionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarPermissionable, requestConfiguration *ItemCalendarsItemCalendarPermissionsCalendarPermissionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemCalendarsItemCalendarPermissionsCalendarPermissionItemRequestBuilde return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarPermissionsCalendarPermissionItemRequestBuilder when successful func (m *ItemCalendarsItemCalendarPermissionsCalendarPermissionItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarPermissionsCalendarPermissionItemRequestBuilder) { return NewItemCalendarsItemCalendarPermissionsCalendarPermissionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_permissions_count_request_builder.go b/users/item_calendars_item_calendar_permissions_count_request_builder.go index c5013f9bbe6..194473984d1 100644 --- a/users/item_calendars_item_calendar_permissions_count_request_builder.go +++ b/users/item_calendars_item_calendar_permissions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarsItemCalendarPermissionsCountRequestBuilder(rawUrl string, r return NewItemCalendarsItemCalendarPermissionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarPermissionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarPermissionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarsItemCalendarPermissionsCountRequestBuilder) Get(ctx contex return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarPermissionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarPermissionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarsItemCalendarPermissionsCountRequestBuilder) ToGetRequestIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarPermissionsCountRequestBuilder when successful func (m *ItemCalendarsItemCalendarPermissionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarPermissionsCountRequestBuilder) { return NewItemCalendarsItemCalendarPermissionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_permissions_request_builder.go b/users/item_calendars_item_calendar_permissions_request_builder.go index 1587a04afba..3ae76e14f91 100644 --- a/users/item_calendars_item_calendar_permissions_request_builder.go +++ b/users/item_calendars_item_calendar_permissions_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarsItemCalendarPermissionsRequestBuilderPostRequestConfiguration Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByCalendarPermissionId provides operations to manage the calendarPermissions property of the microsoft.graph.calendar entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarPermissionsCalendarPermissionItemRequestBuilder when successful func (m *ItemCalendarsItemCalendarPermissionsRequestBuilder) ByCalendarPermissionId(calendarPermissionId string)(*ItemCalendarsItemCalendarPermissionsCalendarPermissionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemCalendarsItemCalendarPermissionsRequestBuilder) Count()(*ItemCalend return NewItemCalendarsItemCalendarPermissionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the permissions of the users with whom the calendar is shared. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a CalendarPermissionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarPermissionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarPermissionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarPermissionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemCalendarsItemCalendarPermissionsRequestBuilder) Get(ctx context.Con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarPermissionCollectionResponseable), nil } // Post create new navigation property to calendarPermissions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a CalendarPermissionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarPermissionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarPermissionable, requestConfiguration *ItemCalendarsItemCalendarPermissionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarPermissionable, error) { @@ -117,6 +120,7 @@ func (m *ItemCalendarsItemCalendarPermissionsRequestBuilder) Post(ctx context.Co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarPermissionable), nil } // ToGetRequestInformation the permissions of the users with whom the calendar is shared. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarPermissionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarPermissionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemCalendarsItemCalendarPermissionsRequestBuilder) ToGetRequestInforma return requestInfo, nil } // ToPostRequestInformation create new navigation property to calendarPermissions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarPermissionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarPermissionable, requestConfiguration *ItemCalendarsItemCalendarPermissionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemCalendarsItemCalendarPermissionsRequestBuilder) ToPostRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarPermissionsRequestBuilder when successful func (m *ItemCalendarsItemCalendarPermissionsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarPermissionsRequestBuilder) { return NewItemCalendarsItemCalendarPermissionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_count_request_builder.go b/users/item_calendars_item_calendar_view_count_request_builder.go index 3b53471428f..4b29decb7bd 100644 --- a/users/item_calendars_item_calendar_view_count_request_builder.go +++ b/users/item_calendars_item_calendar_view_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarsItemCalendarViewCountRequestBuilder(rawUrl string, requestA return NewItemCalendarsItemCalendarViewCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarsItemCalendarViewCountRequestBuilder) Get(ctx context.Conte return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarsItemCalendarViewCountRequestBuilder) ToGetRequestInformati return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewCountRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewCountRequestBuilder) { return NewItemCalendarsItemCalendarViewCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_delta_request_builder.go b/users/item_calendars_item_calendar_view_delta_request_builder.go index 031f9a1ae25..c4ff48e49c3 100644 --- a/users/item_calendars_item_calendar_view_delta_request_builder.go +++ b/users/item_calendars_item_calendar_view_delta_request_builder.go @@ -80,6 +80,7 @@ func (m *ItemCalendarsItemCalendarViewDeltaRequestBuilder) Get(ctx context.Conte return res.(ItemCalendarsItemCalendarViewDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCalendarsItemCalendarViewDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -103,6 +104,7 @@ func (m *ItemCalendarsItemCalendarViewDeltaRequestBuilder) GetAsDeltaGetResponse return res.(ItemCalendarsItemCalendarViewDeltaGetResponseable), nil } // ToGetRequestInformation get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +119,7 @@ func (m *ItemCalendarsItemCalendarViewDeltaRequestBuilder) ToGetRequestInformati return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewDeltaRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewDeltaRequestBuilder) { return NewItemCalendarsItemCalendarViewDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_event_item_request_builder.go b/users/item_calendars_item_calendar_view_event_item_request_builder.go index 7fec4199741..58aa764bb28 100644 --- a/users/item_calendars_item_calendar_view_event_item_request_builder.go +++ b/users/item_calendars_item_calendar_view_event_item_request_builder.go @@ -90,6 +90,7 @@ func (m *ItemCalendarsItemCalendarViewEventItemRequestBuilder) Forward()(*ItemCa return NewItemCalendarsItemCalendarViewItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the calendar view for the calendar. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -114,6 +115,11 @@ func (m *ItemCalendarsItemCalendarViewEventItemRequestBuilder) Get(ctx context.C func (m *ItemCalendarsItemCalendarViewEventItemRequestBuilder) Instances()(*ItemCalendarsItemCalendarViewItemInstancesRequestBuilder) { return NewItemCalendarsItemCalendarViewItemInstancesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarsItemCalendarViewEventItemRequestBuilder) PermanentDelete()(*ItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilder) { + return NewItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarsItemCalendarViewItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarsItemCalendarViewItemSnoozeReminderRequestBuilder) { @@ -125,6 +131,7 @@ func (m *ItemCalendarsItemCalendarViewEventItemRequestBuilder) TentativelyAccept return NewItemCalendarsItemCalendarViewItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation the calendar view for the calendar. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -139,6 +146,7 @@ func (m *ItemCalendarsItemCalendarViewEventItemRequestBuilder) ToGetRequestInfor return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewEventItemRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewEventItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewEventItemRequestBuilder) { return NewItemCalendarsItemCalendarViewEventItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_accept_request_builder.go b/users/item_calendars_item_calendar_view_item_accept_request_builder.go index 2f80e6c507a..56d7e4e0d13 100644 --- a/users/item_calendars_item_calendar_view_item_accept_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemCalendarViewItemAcceptRequestBuilder(rawUrl string, req return NewItemCalendarsItemCalendarViewItemAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemCalendarViewItemAcceptRequestBuilder) Post(ctx context return nil } // ToPostRequestInformation accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemCalendarViewItemAcceptPostRequestBodyable, requestConfiguration *ItemCalendarsItemCalendarViewItemAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemCalendarViewItemAcceptRequestBuilder) ToPostRequestInf return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemAcceptRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemAcceptRequestBuilder) { return NewItemCalendarsItemCalendarViewItemAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_attachments_attachment_item_request_builder.go b/users/item_calendars_item_calendar_view_item_attachments_attachment_item_request_builder.go index ce8063c7831..bd1a12dc04d 100644 --- a/users/item_calendars_item_calendar_view_item_attachments_attachment_item_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_attachments_attachment_item_request_builder.go @@ -48,6 +48,7 @@ func NewItemCalendarsItemCalendarViewItemAttachmentsAttachmentItemRequestBuilder return NewItemCalendarsItemCalendarViewItemAttachmentsAttachmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,6 +65,7 @@ func (m *ItemCalendarsItemCalendarViewItemAttachmentsAttachmentItemRequestBuilde return nil } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -84,6 +86,7 @@ func (m *ItemCalendarsItemCalendarViewItemAttachmentsAttachmentItemRequestBuilde return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToDeleteRequestInformation delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +98,7 @@ func (m *ItemCalendarsItemCalendarViewItemAttachmentsAttachmentItemRequestBuilde return requestInfo, nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +113,7 @@ func (m *ItemCalendarsItemCalendarViewItemAttachmentsAttachmentItemRequestBuilde return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemAttachmentsAttachmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemAttachmentsAttachmentItemRequestBuilder) { return NewItemCalendarsItemCalendarViewItemAttachmentsAttachmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_attachments_count_request_builder.go b/users/item_calendars_item_calendar_view_item_attachments_count_request_builder.go index ba454031527..87ed285841e 100644 --- a/users/item_calendars_item_calendar_view_item_attachments_count_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_attachments_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarsItemCalendarViewItemAttachmentsCountRequestBuilder(rawUrl s return NewItemCalendarsItemCalendarViewItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarsItemCalendarViewItemAttachmentsCountRequestBuilder) Get(ct return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarsItemCalendarViewItemAttachmentsCountRequestBuilder) ToGetR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemAttachmentsCountRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemAttachmentsCountRequestBuilder) { return NewItemCalendarsItemCalendarViewItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_attachments_create_upload_session_request_builder.go b/users/item_calendars_item_calendar_view_item_attachments_create_upload_session_request_builder.go index af3e9fe28dc..da9a2fa5ca6 100644 --- a/users/item_calendars_item_calendar_view_item_attachments_create_upload_session_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_attachments_create_upload_session_request_builder.go @@ -32,6 +32,7 @@ func NewItemCalendarsItemCalendarViewItemAttachmentsCreateUploadSessionRequestBu return NewItemCalendarsItemCalendarViewItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemCalendarsItemCalendarViewItemAttachmentsCreateUploadSessionRequestB return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemCalendarViewItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemCalendarsItemCalendarViewItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemCalendarsItemCalendarViewItemAttachmentsCreateUploadSessionRequestB return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemCalendarsItemCalendarViewItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_attachments_request_builder.go b/users/item_calendars_item_calendar_view_item_attachments_request_builder.go index 6f0ad4fd508..d39a7d73f95 100644 --- a/users/item_calendars_item_calendar_view_item_attachments_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_attachments_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarsItemCalendarViewItemAttachmentsRequestBuilderPostRequestConfig Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentId provides operations to manage the attachments property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemAttachmentsRequestBuilder) ByAttachmentId(attachmentId string)(*ItemCalendarsItemCalendarViewItemAttachmentsAttachmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemCalendarsItemCalendarViewItemAttachmentsRequestBuilder) CreateUploa return NewItemCalendarsItemCalendarViewItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemCalendarsItemCalendarViewItemAttachmentsRequestBuilder) Get(ctx con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } // Post create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemCalendarViewItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -122,6 +125,7 @@ func (m *ItemCalendarsItemCalendarViewItemAttachmentsRequestBuilder) Post(ctx co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemCalendarsItemCalendarViewItemAttachmentsRequestBuilder) ToGetReques return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemCalendarViewItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemCalendarsItemCalendarViewItemAttachmentsRequestBuilder) ToPostReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemAttachmentsRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemAttachmentsRequestBuilder) { return NewItemCalendarsItemCalendarViewItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_calendar_request_builder.go b/users/item_calendars_item_calendar_view_item_calendar_request_builder.go index 402d2f84d27..949a7363991 100644 --- a/users/item_calendars_item_calendar_view_item_calendar_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_calendar_request_builder.go @@ -41,6 +41,7 @@ func NewItemCalendarsItemCalendarViewItemCalendarRequestBuilder(rawUrl string, r return NewItemCalendarsItemCalendarViewItemCalendarRequestBuilderInternal(urlParams, requestAdapter) } // Get the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemCalendarRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemCalendarRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -61,6 +62,7 @@ func (m *ItemCalendarsItemCalendarViewItemCalendarRequestBuilder) Get(ctx contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable), nil } // ToGetRequestInformation the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemCalendarRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemCalendarRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemCalendarsItemCalendarViewItemCalendarRequestBuilder) ToGetRequestIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemCalendarRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemCalendarRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemCalendarRequestBuilder) { return NewItemCalendarsItemCalendarViewItemCalendarRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_cancel_request_builder.go b/users/item_calendars_item_calendar_view_item_cancel_request_builder.go index 4d178e199bf..fcdece571af 100644 --- a/users/item_calendars_item_calendar_view_item_cancel_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_cancel_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemCalendarViewItemCancelRequestBuilder(rawUrl string, req return NewItemCalendarsItemCalendarViewItemCancelRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemCalendarViewItemCancelRequestBuilder) Post(ctx context return nil } // ToPostRequestInformation this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemCalendarViewItemCancelPostRequestBodyable, requestConfiguration *ItemCalendarsItemCalendarViewItemCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemCalendarViewItemCancelRequestBuilder) ToPostRequestInf return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemCancelRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemCancelRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemCancelRequestBuilder) { return NewItemCalendarsItemCalendarViewItemCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_decline_request_builder.go b/users/item_calendars_item_calendar_view_item_decline_request_builder.go index b11cf5d3513..91bb1d572d6 100644 --- a/users/item_calendars_item_calendar_view_item_decline_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_decline_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemCalendarViewItemDeclineRequestBuilder(rawUrl string, re return NewItemCalendarsItemCalendarViewItemDeclineRequestBuilderInternal(urlParams, requestAdapter) } // Post decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemCalendarViewItemDeclineRequestBuilder) Post(ctx contex return nil } // ToPostRequestInformation decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemDeclineRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemCalendarViewItemDeclinePostRequestBodyable, requestConfiguration *ItemCalendarsItemCalendarViewItemDeclineRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemCalendarViewItemDeclineRequestBuilder) ToPostRequestIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemDeclineRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemDeclineRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemDeclineRequestBuilder) { return NewItemCalendarsItemCalendarViewItemDeclineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_dismiss_reminder_request_builder.go b/users/item_calendars_item_calendar_view_item_dismiss_reminder_request_builder.go index 5054ef16cfb..ad80c799219 100644 --- a/users/item_calendars_item_calendar_view_item_dismiss_reminder_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_dismiss_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemCalendarViewItemDismissReminderRequestBuilder(rawUrl st return NewItemCalendarsItemCalendarViewItemDismissReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemCalendarViewItemDismissReminderRequestBuilder) Post(ct return nil } // ToPostRequestInformation dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemDismissReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemDismissReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemCalendarsItemCalendarViewItemDismissReminderRequestBuilder) ToPostR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemDismissReminderRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemDismissReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemDismissReminderRequestBuilder) { return NewItemCalendarsItemCalendarViewItemDismissReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_exception_occurrences_count_request_builder.go b/users/item_calendars_item_calendar_view_item_exception_occurrences_count_request_builder.go index ec9adf1683d..b6f3b34ba76 100644 --- a/users/item_calendars_item_calendar_view_item_exception_occurrences_count_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_exception_occurrences_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarsItemCalendarViewItemExceptionOccurrencesCountRequestBuilder return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesCountRequestBuilde return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesCountRequestBuilde return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesCountRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesCountRequestBuilder) { return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_exception_occurrences_delta_request_builder.go b/users/item_calendars_item_calendar_view_item_exception_occurrences_delta_request_builder.go index 08afaf3ecd1..4ba0932d17a 100644 --- a/users/item_calendars_item_calendar_view_item_exception_occurrences_delta_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_exception_occurrences_delta_request_builder.go @@ -80,6 +80,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesDeltaRequestBuilde return res.(ItemCalendarsItemCalendarViewItemExceptionOccurrencesDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCalendarsItemCalendarViewItemExceptionOccurrencesDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -103,6 +104,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesDeltaRequestBuilde return res.(ItemCalendarsItemCalendarViewItemExceptionOccurrencesDeltaGetResponseable), nil } // ToGetRequestInformation get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +119,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesDeltaRequestBuilde return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesDeltaRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesDeltaRequestBuilder) { return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_exception_occurrences_event_item_request_builder.go b/users/item_calendars_item_calendar_view_item_exception_occurrences_event_item_request_builder.go index 5d47e2e6bfa..7bef968c064 100644 --- a/users/item_calendars_item_calendar_view_item_exception_occurrences_event_item_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_exception_occurrences_event_item_request_builder.go @@ -81,6 +81,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesEventItemRequestBu return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -105,6 +106,11 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesEventItemRequestBu func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilder) Instances()(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder) { return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilder) PermanentDelete()(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) { @@ -116,6 +122,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesEventItemRequestBu return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -130,6 +137,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesEventItemRequestBu return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilder) { return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_exception_occurrences_item_accept_request_builder.go b/users/item_calendars_item_calendar_view_item_exception_occurrences_item_accept_request_builder.go index bfc38300ac8..b371be8af1c 100644 --- a/users/item_calendars_item_calendar_view_item_exception_occurrences_item_accept_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_exception_occurrences_item_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAcceptRequestBu return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAcceptRequestB return nil } // ToPostRequestInformation accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAcceptPostRequestBodyable, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAcceptRequestB return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAcceptRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAcceptRequestBuilder) { return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_exception_occurrences_item_attachments_count_request_builder.go b/users/item_calendars_item_calendar_view_item_exception_occurrences_item_attachments_count_request_builder.go index f429fae3761..b41e967aa17 100644 --- a/users/item_calendars_item_calendar_view_item_exception_occurrences_item_attachments_count_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_exception_occurrences_item_attachments_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsCoun return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsCou return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsCou return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsCountRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) { return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_exception_occurrences_item_attachments_request_builder.go b/users/item_calendars_item_calendar_view_item_exception_occurrences_item_attachments_request_builder.go index 4729c9246eb..b8956b2ebd6 100644 --- a/users/item_calendars_item_calendar_view_item_exception_occurrences_item_attachments_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_exception_occurrences_item_attachments_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequest Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentId provides operations to manage the attachments property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) ByAttachmentId(attachmentId string)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsReq return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsReq return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } // Post create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -122,6 +125,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsReq return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsReq return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder) { return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_exception_occurrences_item_calendar_request_builder.go b/users/item_calendars_item_calendar_view_item_exception_occurrences_item_calendar_request_builder.go index 65077cc8919..b0d067f43ea 100644 --- a/users/item_calendars_item_calendar_view_item_exception_occurrences_item_calendar_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_exception_occurrences_item_calendar_request_builder.go @@ -41,6 +41,7 @@ func NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemCalendarRequest return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemCalendarRequestBuilderInternal(urlParams, requestAdapter) } // Get the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemCalendarRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemCalendarRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -61,6 +62,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemCalendarReques return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable), nil } // ToGetRequestInformation the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemCalendarRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemCalendarRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemCalendarReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemCalendarRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemCalendarRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemCalendarRequestBuilder) { return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemCalendarRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_exception_occurrences_item_cancel_request_builder.go b/users/item_calendars_item_calendar_view_item_exception_occurrences_item_cancel_request_builder.go index f3bb041cc90..556f835b2e9 100644 --- a/users/item_calendars_item_calendar_view_item_exception_occurrences_item_cancel_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_exception_occurrences_item_cancel_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemCancelRequestBu return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemCancelRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemCancelRequestB return nil } // ToPostRequestInformation this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemCancelPostRequestBodyable, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemCancelRequestB return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemCancelRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemCancelRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemCancelRequestBuilder) { return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_exception_occurrences_item_decline_request_builder.go b/users/item_calendars_item_calendar_view_item_exception_occurrences_item_decline_request_builder.go index 3c5761dd23c..bdca50724ef 100644 --- a/users/item_calendars_item_calendar_view_item_exception_occurrences_item_decline_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_exception_occurrences_item_decline_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemDeclineRequestB return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemDeclineRequestBuilderInternal(urlParams, requestAdapter) } // Post decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemDeclineRequest return nil } // ToPostRequestInformation decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemDeclineRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemDeclinePostRequestBodyable, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemDeclineRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemDeclineRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemDeclineRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemDeclineRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemDeclineRequestBuilder) { return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemDeclineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_exception_occurrences_item_dismiss_reminder_request_builder.go b/users/item_calendars_item_calendar_view_item_exception_occurrences_item_dismiss_reminder_request_builder.go index 3efd2a8817c..60b7c85f6cd 100644 --- a/users/item_calendars_item_calendar_view_item_exception_occurrences_item_dismiss_reminder_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_exception_occurrences_item_dismiss_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemDismissReminder return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemDismissReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemDismissReminde return nil } // ToPostRequestInformation dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemDismissReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemDismissReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemDismissReminde return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemDismissReminderRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemDismissReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemDismissReminderRequestBuilder) { return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemDismissReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_exception_occurrences_item_extensions_count_request_builder.go b/users/item_calendars_item_calendar_view_item_exception_occurrences_item_extensions_count_request_builder.go index 5515424ca6e..01cb9438b48 100644 --- a/users/item_calendars_item_calendar_view_item_exception_occurrences_item_extensions_count_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_exception_occurrences_item_extensions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsCount return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsCoun return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsCoun return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsCountRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsCountRequestBuilder) { return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_exception_occurrences_item_extensions_request_builder.go b/users/item_calendars_item_calendar_view_item_exception_occurrences_item_extensions_request_builder.go index 244941bb04a..21725f15add 100644 --- a/users/item_calendars_item_calendar_view_item_exception_occurrences_item_extensions_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_exception_occurrences_item_extensions_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestB Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsRequ return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsRequ return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsRequ return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsRequ return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder) { return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_exception_occurrences_item_forward_request_builder.go b/users/item_calendars_item_calendar_view_item_exception_occurrences_item_forward_request_builder.go index 89b04b5f923..8640cdc48b4 100644 --- a/users/item_calendars_item_calendar_view_item_exception_occurrences_item_forward_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_exception_occurrences_item_forward_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemForwardRequestB return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemForwardRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemForwardRequest return nil } // ToPostRequestInformation this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemForwardRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemForwardPostRequestBodyable, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemForwardRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemForwardRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemForwardRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemForwardRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemForwardRequestBuilder) { return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemForwardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_exception_occurrences_item_instances_count_request_builder.go b/users/item_calendars_item_calendar_view_item_exception_occurrences_item_instances_count_request_builder.go index 58b9de0f572..a2be6dcd0b6 100644 --- a/users/item_calendars_item_calendar_view_item_exception_occurrences_item_instances_count_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_exception_occurrences_item_instances_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesCountR return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesCount return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesCount return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesCountRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesCountRequestBuilder) { return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_exception_occurrences_item_instances_delta_request_builder.go b/users/item_calendars_item_calendar_view_item_exception_occurrences_item_instances_delta_request_builder.go index 473fcea4910..5a91a743a97 100644 --- a/users/item_calendars_item_calendar_view_item_exception_occurrences_item_instances_delta_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_exception_occurrences_item_instances_delta_request_builder.go @@ -80,6 +80,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesDelta return res.(ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -103,6 +104,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesDelta return res.(ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesDeltaGetResponseable), nil } // ToGetRequestInformation get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +119,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesDelta return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesDeltaRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesDeltaRequestBuilder) { return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_exception_occurrences_item_instances_request_builder.go b/users/item_calendars_item_calendar_view_item_exception_occurrences_item_instances_request_builder.go index f0e041d482d..084221d07d8 100644 --- a/users/item_calendars_item_calendar_view_item_exception_occurrences_item_instances_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_exception_occurrences_item_instances_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -44,6 +44,7 @@ type ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBu QueryParameters *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilderGetQueryParameters } // ByEventId2 provides operations to manage the instances property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder) ByEventId2(eventId2 string)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -78,7 +79,8 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesReque func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder) Delta()(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesDeltaRequestBuilder) { return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -98,7 +100,8 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesReque } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,6 +116,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder) { return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemInstancesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_exception_occurrences_item_permanent_delete_request_builder.go b/users/item_calendars_item_calendar_view_item_exception_occurrences_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..0afd4499f14 --- /dev/null +++ b/users/item_calendars_item_calendar_view_item_exception_occurrences_item_permanent_delete_request_builder.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/exceptionOccurrences/{event%2Did1}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_calendars_item_calendar_view_item_exception_occurrences_item_snooze_reminder_request_builder.go b/users/item_calendars_item_calendar_view_item_exception_occurrences_item_snooze_reminder_request_builder.go index 3b8ad46aea4..ad6419df164 100644 --- a/users/item_calendars_item_calendar_view_item_exception_occurrences_item_snooze_reminder_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_exception_occurrences_item_snooze_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemSnoozeReminderR return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemSnoozeReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemSnoozeReminder return nil } // ToPostRequestInformation postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemSnoozeReminderPostRequestBodyable, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemSnoozeReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemSnoozeReminder return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) { return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemSnoozeReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_exception_occurrences_item_tentatively_accept_request_builder.go b/users/item_calendars_item_calendar_view_item_exception_occurrences_item_tentatively_accept_request_builder.go index 7bb990820cb..b453fc76828 100644 --- a/users/item_calendars_item_calendar_view_item_exception_occurrences_item_tentatively_accept_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_exception_occurrences_item_tentatively_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemTentativelyAcce return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemTentativelyAcc return nil } // ToPostRequestInformation tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemTentativelyAcceptPostRequestBodyable, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemTentativelyAcc return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_exception_occurrences_request_builder.go b/users/item_calendars_item_calendar_view_item_exception_occurrences_request_builder.go index 0d900acc6f1..c6da8ad37ec 100644 --- a/users/item_calendars_item_calendar_view_item_exception_occurrences_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_exception_occurrences_request_builder.go @@ -40,6 +40,7 @@ type ItemCalendarsItemCalendarViewItemExceptionOccurrencesRequestBuilderGetReque QueryParameters *ItemCalendarsItemCalendarViewItemExceptionOccurrencesRequestBuilderGetQueryParameters } // ByEventId1 provides operations to manage the exceptionOccurrences property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesRequestBuilder) ByEventId1(eventId1 string)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesEventItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -75,6 +76,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesRequestBuilder) De return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -95,6 +97,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesRequestBuilder) Ge return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } // ToGetRequestInformation get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExceptionOccurrencesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +112,7 @@ func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesRequestBuilder) To return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExceptionOccurrencesRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExceptionOccurrencesRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemExceptionOccurrencesRequestBuilder) { return NewItemCalendarsItemCalendarViewItemExceptionOccurrencesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_extensions_count_request_builder.go b/users/item_calendars_item_calendar_view_item_extensions_count_request_builder.go index c5c10aa25b1..00edaa8cd0b 100644 --- a/users/item_calendars_item_calendar_view_item_extensions_count_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_extensions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarsItemCalendarViewItemExtensionsCountRequestBuilder(rawUrl st return NewItemCalendarsItemCalendarViewItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarsItemCalendarViewItemExtensionsCountRequestBuilder) Get(ctx return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarsItemCalendarViewItemExtensionsCountRequestBuilder) ToGetRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExtensionsCountRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemExtensionsCountRequestBuilder) { return NewItemCalendarsItemCalendarViewItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_extensions_extension_item_request_builder.go b/users/item_calendars_item_calendar_view_item_extensions_extension_item_request_builder.go index a71b1ca13f1..0b1c304c875 100644 --- a/users/item_calendars_item_calendar_view_item_extensions_extension_item_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_extensions_extension_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemCalendarsItemCalendarViewItemExtensionsExtensionItemRequestBuilder(r return NewItemCalendarsItemCalendarViewItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemCalendarsItemCalendarViewItemExtensionsExtensionItemRequestBuilder) return nil } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemCalendarsItemCalendarViewItemExtensionsExtensionItemRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemCalendarViewItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemCalendarsItemCalendarViewItemExtensionsExtensionItemRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemCalendarsItemCalendarViewItemExtensionsExtensionItemRequestBuilder) return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemCalendarsItemCalendarViewItemExtensionsExtensionItemRequestBuilder) return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemCalendarViewItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemCalendarsItemCalendarViewItemExtensionsExtensionItemRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemExtensionsExtensionItemRequestBuilder) { return NewItemCalendarsItemCalendarViewItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_extensions_request_builder.go b/users/item_calendars_item_calendar_view_item_extensions_request_builder.go index 34cce5455d8..cb9002e8abf 100644 --- a/users/item_calendars_item_calendar_view_item_extensions_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_extensions_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarsItemCalendarViewItemExtensionsRequestBuilderPostRequestConfigu Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemCalendarsItemCalendarViewItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemCalendarsItemCalendarViewItemExtensionsRequestBuilder) Count()(*Ite return NewItemCalendarsItemCalendarViewItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemCalendarsItemCalendarViewItemExtensionsRequestBuilder) Get(ctx cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemCalendarViewItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemCalendarsItemCalendarViewItemExtensionsRequestBuilder) Post(ctx con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemCalendarsItemCalendarViewItemExtensionsRequestBuilder) ToGetRequest return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemCalendarViewItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemCalendarsItemCalendarViewItemExtensionsRequestBuilder) ToPostReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemExtensionsRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemExtensionsRequestBuilder) { return NewItemCalendarsItemCalendarViewItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_forward_request_builder.go b/users/item_calendars_item_calendar_view_item_forward_request_builder.go index e8c2b5b8550..5f859a858ef 100644 --- a/users/item_calendars_item_calendar_view_item_forward_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_forward_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemCalendarViewItemForwardRequestBuilder(rawUrl string, re return NewItemCalendarsItemCalendarViewItemForwardRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemCalendarViewItemForwardRequestBuilder) Post(ctx contex return nil } // ToPostRequestInformation this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemForwardRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemCalendarViewItemForwardPostRequestBodyable, requestConfiguration *ItemCalendarsItemCalendarViewItemForwardRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemCalendarViewItemForwardRequestBuilder) ToPostRequestIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemForwardRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemForwardRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemForwardRequestBuilder) { return NewItemCalendarsItemCalendarViewItemForwardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_instances_count_request_builder.go b/users/item_calendars_item_calendar_view_item_instances_count_request_builder.go index 2c515a8c123..dcc69cdf4a6 100644 --- a/users/item_calendars_item_calendar_view_item_instances_count_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_instances_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarsItemCalendarViewItemInstancesCountRequestBuilder(rawUrl str return NewItemCalendarsItemCalendarViewItemInstancesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemInstancesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesCountRequestBuilder) Get(ctx return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesCountRequestBuilder) ToGetReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemInstancesCountRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemInstancesCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemInstancesCountRequestBuilder) { return NewItemCalendarsItemCalendarViewItemInstancesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_instances_delta_request_builder.go b/users/item_calendars_item_calendar_view_item_instances_delta_request_builder.go index cb37e543807..cb8289d62e9 100644 --- a/users/item_calendars_item_calendar_view_item_instances_delta_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_instances_delta_request_builder.go @@ -80,6 +80,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesDeltaRequestBuilder) Get(ctx return res.(ItemCalendarsItemCalendarViewItemInstancesDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCalendarsItemCalendarViewItemInstancesDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -103,6 +104,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesDeltaRequestBuilder) GetAsDel return res.(ItemCalendarsItemCalendarViewItemInstancesDeltaGetResponseable), nil } // ToGetRequestInformation get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +119,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesDeltaRequestBuilder) ToGetReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemInstancesDeltaRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemInstancesDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemInstancesDeltaRequestBuilder) { return NewItemCalendarsItemCalendarViewItemInstancesDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_instances_event_item_request_builder.go b/users/item_calendars_item_calendar_view_item_instances_event_item_request_builder.go index 72d37815621..eeffb337820 100644 --- a/users/item_calendars_item_calendar_view_item_instances_event_item_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_instances_event_item_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemCalendarsItemCalendarViewItemInstancesEventItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemCalendarsItemCalendarViewItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemCalendarsItemCalendarViewItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemCalendarsItemCalendarViewItemInstancesEventItemRequestBuilderGetQueryParameters struct { // The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 EndDateTime *string `uriparametername:"endDateTime"` @@ -89,7 +89,8 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesEventItemRequestBuilder) Exte func (m *ItemCalendarsItemCalendarViewItemInstancesEventItemRequestBuilder) Forward()(*ItemCalendarsItemCalendarViewItemInstancesItemForwardRequestBuilder) { return NewItemCalendarsItemCalendarViewItemInstancesItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemInstancesEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -109,6 +110,11 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesEventItemRequestBuilder) Get( } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarsItemCalendarViewItemInstancesEventItemRequestBuilder) PermanentDelete()(*ItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarsItemCalendarViewItemInstancesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemInstancesEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarsItemCalendarViewItemInstancesItemSnoozeReminderRequestBuilder) { @@ -119,7 +125,8 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesEventItemRequestBuilder) Snoo func (m *ItemCalendarsItemCalendarViewItemInstancesEventItemRequestBuilder) TentativelyAccept()(*ItemCalendarsItemCalendarViewItemInstancesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarsItemCalendarViewItemInstancesItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -134,6 +141,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesEventItemRequestBuilder) ToGe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemInstancesEventItemRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemInstancesEventItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemInstancesEventItemRequestBuilder) { return NewItemCalendarsItemCalendarViewItemInstancesEventItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_instances_item_accept_request_builder.go b/users/item_calendars_item_calendar_view_item_instances_item_accept_request_builder.go index 936794eb112..7c8beb00020 100644 --- a/users/item_calendars_item_calendar_view_item_instances_item_accept_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_instances_item_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemCalendarViewItemInstancesItemAcceptRequestBuilder(rawUr return NewItemCalendarsItemCalendarViewItemInstancesItemAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemAcceptRequestBuilder) Pos return nil } // ToPostRequestInformation accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemCalendarViewItemInstancesItemAcceptPostRequestBodyable, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemAcceptRequestBuilder) ToP return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemInstancesItemAcceptRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemInstancesItemAcceptRequestBuilder) { return NewItemCalendarsItemCalendarViewItemInstancesItemAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_instances_item_attachments_attachment_item_request_builder.go b/users/item_calendars_item_calendar_view_item_instances_item_attachments_attachment_item_request_builder.go index 80a26a5e872..ae52ad0339d 100644 --- a/users/item_calendars_item_calendar_view_item_instances_item_attachments_attachment_item_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_instances_item_attachments_attachment_item_request_builder.go @@ -48,6 +48,7 @@ func NewItemCalendarsItemCalendarViewItemInstancesItemAttachmentsAttachmentItemR return NewItemCalendarsItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,6 +65,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsAttachmentItem return nil } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -84,6 +86,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsAttachmentItem return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToDeleteRequestInformation delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +98,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsAttachmentItem return requestInfo, nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +113,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsAttachmentItem return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilder) { return NewItemCalendarsItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_instances_item_attachments_count_request_builder.go b/users/item_calendars_item_calendar_view_item_instances_item_attachments_count_request_builder.go index a214400a6f0..2dc9f603950 100644 --- a/users/item_calendars_item_calendar_view_item_instances_item_attachments_count_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_instances_item_attachments_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarsItemCalendarViewItemInstancesItemAttachmentsCountRequestBui return NewItemCalendarsItemCalendarViewItemInstancesItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsCountRequestBu return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsCountRequestBu return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsCountRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsCountRequestBuilder) { return NewItemCalendarsItemCalendarViewItemInstancesItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_instances_item_attachments_request_builder.go b/users/item_calendars_item_calendar_view_item_instances_item_attachments_request_builder.go index 1fc7af0d044..71a3d362051 100644 --- a/users/item_calendars_item_calendar_view_item_instances_item_attachments_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_instances_item_attachments_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilderPost Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentId provides operations to manage the attachments property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) ByAttachmentId(attachmentId string)(*ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsAttachmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilder return NewItemCalendarsItemCalendarViewItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilder return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } // Post create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -122,6 +125,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilder return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilder return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilder return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilder) { return NewItemCalendarsItemCalendarViewItemInstancesItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_instances_item_calendar_request_builder.go b/users/item_calendars_item_calendar_view_item_instances_item_calendar_request_builder.go index 6c03eac0585..b8f77b98d92 100644 --- a/users/item_calendars_item_calendar_view_item_instances_item_calendar_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_instances_item_calendar_request_builder.go @@ -41,6 +41,7 @@ func NewItemCalendarsItemCalendarViewItemInstancesItemCalendarRequestBuilder(raw return NewItemCalendarsItemCalendarViewItemInstancesItemCalendarRequestBuilderInternal(urlParams, requestAdapter) } // Get the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemInstancesItemCalendarRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemCalendarRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -61,6 +62,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemCalendarRequestBuilder) G return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable), nil } // ToGetRequestInformation the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemCalendarRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemCalendarRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemCalendarRequestBuilder) T return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemInstancesItemCalendarRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemCalendarRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemInstancesItemCalendarRequestBuilder) { return NewItemCalendarsItemCalendarViewItemInstancesItemCalendarRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_instances_item_cancel_request_builder.go b/users/item_calendars_item_calendar_view_item_instances_item_cancel_request_builder.go index dd07801ae59..cdfeb765851 100644 --- a/users/item_calendars_item_calendar_view_item_instances_item_cancel_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_instances_item_cancel_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemCalendarViewItemInstancesItemCancelRequestBuilder(rawUr return NewItemCalendarsItemCalendarViewItemInstancesItemCancelRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemCancelRequestBuilder) Pos return nil } // ToPostRequestInformation this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemCalendarViewItemInstancesItemCancelPostRequestBodyable, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemCancelRequestBuilder) ToP return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemInstancesItemCancelRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemCancelRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemInstancesItemCancelRequestBuilder) { return NewItemCalendarsItemCalendarViewItemInstancesItemCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_instances_item_decline_request_builder.go b/users/item_calendars_item_calendar_view_item_instances_item_decline_request_builder.go index 0cc5bbef730..e2d3f6a04e0 100644 --- a/users/item_calendars_item_calendar_view_item_instances_item_decline_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_instances_item_decline_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemCalendarViewItemInstancesItemDeclineRequestBuilder(rawU return NewItemCalendarsItemCalendarViewItemInstancesItemDeclineRequestBuilderInternal(urlParams, requestAdapter) } // Post decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemDeclineRequestBuilder) Po return nil } // ToPostRequestInformation decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemDeclineRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemCalendarViewItemInstancesItemDeclinePostRequestBodyable, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemDeclineRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemDeclineRequestBuilder) To return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemInstancesItemDeclineRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemDeclineRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemInstancesItemDeclineRequestBuilder) { return NewItemCalendarsItemCalendarViewItemInstancesItemDeclineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_instances_item_dismiss_reminder_request_builder.go b/users/item_calendars_item_calendar_view_item_instances_item_dismiss_reminder_request_builder.go index 2b034115019..59e38748221 100644 --- a/users/item_calendars_item_calendar_view_item_instances_item_dismiss_reminder_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_instances_item_dismiss_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemCalendarViewItemInstancesItemDismissReminderRequestBuil return NewItemCalendarsItemCalendarViewItemInstancesItemDismissReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemDismissReminderRequestBui return nil } // ToPostRequestInformation dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemDismissReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemDismissReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemDismissReminderRequestBui return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemInstancesItemDismissReminderRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemDismissReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemInstancesItemDismissReminderRequestBuilder) { return NewItemCalendarsItemCalendarViewItemInstancesItemDismissReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_instances_item_exception_occurrences_count_request_builder.go b/users/item_calendars_item_calendar_view_item_instances_item_exception_occurrences_count_request_builder.go index 1fbc549e6f3..0491e9f5259 100644 --- a/users/item_calendars_item_calendar_view_item_instances_item_exception_occurrences_count_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_instances_item_exception_occurrences_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesCountR return NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesCount return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesCount return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesCountRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesCountRequestBuilder) { return NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_instances_item_exception_occurrences_delta_request_builder.go b/users/item_calendars_item_calendar_view_item_instances_item_exception_occurrences_delta_request_builder.go index 0b0481da227..6de54dc491f 100644 --- a/users/item_calendars_item_calendar_view_item_instances_item_exception_occurrences_delta_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_instances_item_exception_occurrences_delta_request_builder.go @@ -80,6 +80,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesDelta return res.(ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -103,6 +104,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesDelta return res.(ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesDeltaGetResponseable), nil } // ToGetRequestInformation get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +119,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesDelta return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesDeltaRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesDeltaRequestBuilder) { return NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_instances_item_exception_occurrences_request_builder.go b/users/item_calendars_item_calendar_view_item_instances_item_exception_occurrences_request_builder.go index 5eb6a4e42a6..612666136d7 100644 --- a/users/item_calendars_item_calendar_view_item_instances_item_exception_occurrences_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_instances_item_exception_occurrences_request_builder.go @@ -40,6 +40,7 @@ type ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesRequestBu QueryParameters *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesRequestBuilderGetQueryParameters } // ByEventId2 provides operations to manage the exceptionOccurrences property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesRequestBuilder) ByEventId2(eventId2 string)(*ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -75,6 +76,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesReque return NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -95,6 +97,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesReque return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } // ToGetRequestInformation get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +112,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesRequestBuilder) { return NewItemCalendarsItemCalendarViewItemInstancesItemExceptionOccurrencesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_instances_item_extensions_count_request_builder.go b/users/item_calendars_item_calendar_view_item_instances_item_extensions_count_request_builder.go index d9f1da5b74f..f87c61892b6 100644 --- a/users/item_calendars_item_calendar_view_item_instances_item_extensions_count_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_instances_item_extensions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarsItemCalendarViewItemInstancesItemExtensionsCountRequestBuil return NewItemCalendarsItemCalendarViewItemInstancesItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsCountRequestBui return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsCountRequestBui return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsCountRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemInstancesItemExtensionsCountRequestBuilder) { return NewItemCalendarsItemCalendarViewItemInstancesItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_instances_item_extensions_extension_item_request_builder.go b/users/item_calendars_item_calendar_view_item_instances_item_extensions_extension_item_request_builder.go index 1e53f959df5..97ed1686195 100644 --- a/users/item_calendars_item_calendar_view_item_instances_item_extensions_extension_item_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_instances_item_extensions_extension_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemCalendarsItemCalendarViewItemInstancesItemExtensionsExtensionItemReq return NewItemCalendarsItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsExtensionItemRe return nil } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsExtensionItemRe return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsExtensionItemRe return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsExtensionItemRe return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsExtensionItemRe return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsExtensionItemRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder) { return NewItemCalendarsItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_instances_item_extensions_request_builder.go b/users/item_calendars_item_calendar_view_item_instances_item_extensions_request_builder.go index 6a950257174..10a5f0411c4 100644 --- a/users/item_calendars_item_calendar_view_item_instances_item_extensions_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_instances_item_extensions_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarsItemCalendarViewItemInstancesItemExtensionsRequestBuilderPostR Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemCalendarsItemCalendarViewItemInstancesItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsRequestBuilder) return NewItemCalendarsItemCalendarViewItemInstancesItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsRequestBuilder) return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemInstancesItemExtensionsRequestBuilder) { return NewItemCalendarsItemCalendarViewItemInstancesItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_instances_item_forward_request_builder.go b/users/item_calendars_item_calendar_view_item_instances_item_forward_request_builder.go index 1d005fa9f11..5876988466f 100644 --- a/users/item_calendars_item_calendar_view_item_instances_item_forward_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_instances_item_forward_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemCalendarViewItemInstancesItemForwardRequestBuilder(rawU return NewItemCalendarsItemCalendarViewItemInstancesItemForwardRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemForwardRequestBuilder) Po return nil } // ToPostRequestInformation this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemForwardRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemCalendarViewItemInstancesItemForwardPostRequestBodyable, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemForwardRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemForwardRequestBuilder) To return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemInstancesItemForwardRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemForwardRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemInstancesItemForwardRequestBuilder) { return NewItemCalendarsItemCalendarViewItemInstancesItemForwardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_instances_item_permanent_delete_request_builder.go b/users/item_calendars_item_calendar_view_item_instances_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..17e43d0d60c --- /dev/null +++ b/users/item_calendars_item_calendar_view_item_instances_item_permanent_delete_request_builder.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/instances/{event%2Did1}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarsItemCalendarViewItemInstancesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_calendars_item_calendar_view_item_instances_item_snooze_reminder_request_builder.go b/users/item_calendars_item_calendar_view_item_instances_item_snooze_reminder_request_builder.go index 7ba7cec86fb..b1a6d079768 100644 --- a/users/item_calendars_item_calendar_view_item_instances_item_snooze_reminder_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_instances_item_snooze_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemCalendarViewItemInstancesItemSnoozeReminderRequestBuild return NewItemCalendarsItemCalendarViewItemInstancesItemSnoozeReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemSnoozeReminderRequestBuil return nil } // ToPostRequestInformation postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemSnoozeReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemCalendarViewItemInstancesItemSnoozeReminderPostRequestBodyable, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemSnoozeReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemSnoozeReminderRequestBuil return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemInstancesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemSnoozeReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemInstancesItemSnoozeReminderRequestBuilder) { return NewItemCalendarsItemCalendarViewItemInstancesItemSnoozeReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_instances_item_tentatively_accept_request_builder.go b/users/item_calendars_item_calendar_view_item_instances_item_tentatively_accept_request_builder.go index 8700e3674c8..2e12ba6b2fb 100644 --- a/users/item_calendars_item_calendar_view_item_instances_item_tentatively_accept_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_instances_item_tentatively_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemCalendarViewItemInstancesItemTentativelyAcceptRequestBu return NewItemCalendarsItemCalendarViewItemInstancesItemTentativelyAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemTentativelyAcceptRequestB return nil } // ToPostRequestInformation tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemTentativelyAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemCalendarViewItemInstancesItemTentativelyAcceptPostRequestBodyable, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesItemTentativelyAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesItemTentativelyAcceptRequestB return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemInstancesItemTentativelyAcceptRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemInstancesItemTentativelyAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemInstancesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarsItemCalendarViewItemInstancesItemTentativelyAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_instances_request_builder.go b/users/item_calendars_item_calendar_view_item_instances_request_builder.go index f9dcacb581f..30e8774c983 100644 --- a/users/item_calendars_item_calendar_view_item_instances_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_instances_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemCalendarsItemCalendarViewItemInstancesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemCalendarsItemCalendarViewItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemCalendarsItemCalendarViewItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemCalendarsItemCalendarViewItemInstancesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -44,6 +44,7 @@ type ItemCalendarsItemCalendarViewItemInstancesRequestBuilderGetRequestConfigura QueryParameters *ItemCalendarsItemCalendarViewItemInstancesRequestBuilderGetQueryParameters } // ByEventId1 provides operations to manage the instances property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemInstancesEventItemRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemInstancesRequestBuilder) ByEventId1(eventId1 string)(*ItemCalendarsItemCalendarViewItemInstancesEventItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -78,7 +79,8 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesRequestBuilder) Count()(*Item func (m *ItemCalendarsItemCalendarViewItemInstancesRequestBuilder) Delta()(*ItemCalendarsItemCalendarViewItemInstancesDeltaRequestBuilder) { return NewItemCalendarsItemCalendarViewItemInstancesDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewItemInstancesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -98,7 +100,8 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesRequestBuilder) Get(ctx conte } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemInstancesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemInstancesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,6 +116,7 @@ func (m *ItemCalendarsItemCalendarViewItemInstancesRequestBuilder) ToGetRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemInstancesRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemInstancesRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemInstancesRequestBuilder) { return NewItemCalendarsItemCalendarViewItemInstancesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_permanent_delete_request_builder.go b/users/item_calendars_item_calendar_view_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..c854be75b8c --- /dev/null +++ b/users/item_calendars_item_calendar_view_item_permanent_delete_request_builder.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilder) { + return NewItemCalendarsItemCalendarViewItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_calendars_item_calendar_view_item_snooze_reminder_request_builder.go b/users/item_calendars_item_calendar_view_item_snooze_reminder_request_builder.go index e6e68c14a55..d50b9492e4a 100644 --- a/users/item_calendars_item_calendar_view_item_snooze_reminder_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_snooze_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemCalendarViewItemSnoozeReminderRequestBuilder(rawUrl str return NewItemCalendarsItemCalendarViewItemSnoozeReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemCalendarViewItemSnoozeReminderRequestBuilder) Post(ctx return nil } // ToPostRequestInformation postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemSnoozeReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemCalendarViewItemSnoozeReminderPostRequestBodyable, requestConfiguration *ItemCalendarsItemCalendarViewItemSnoozeReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemCalendarViewItemSnoozeReminderRequestBuilder) ToPostRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemSnoozeReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemSnoozeReminderRequestBuilder) { return NewItemCalendarsItemCalendarViewItemSnoozeReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_item_tentatively_accept_request_builder.go b/users/item_calendars_item_calendar_view_item_tentatively_accept_request_builder.go index f2a99a06335..bb6888c1c76 100644 --- a/users/item_calendars_item_calendar_view_item_tentatively_accept_request_builder.go +++ b/users/item_calendars_item_calendar_view_item_tentatively_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemCalendarViewItemTentativelyAcceptRequestBuilder(rawUrl return NewItemCalendarsItemCalendarViewItemTentativelyAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemCalendarViewItemTentativelyAcceptRequestBuilder) Post( return nil } // ToPostRequestInformation tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewItemTentativelyAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemCalendarViewItemTentativelyAcceptPostRequestBodyable, requestConfiguration *ItemCalendarsItemCalendarViewItemTentativelyAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemCalendarViewItemTentativelyAcceptRequestBuilder) ToPos return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewItemTentativelyAcceptRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewItemTentativelyAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewItemTentativelyAcceptRequestBuilder) { return NewItemCalendarsItemCalendarViewItemTentativelyAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_calendar_view_request_builder.go b/users/item_calendars_item_calendar_view_request_builder.go index e773d0b593d..01682d79f5a 100644 --- a/users/item_calendars_item_calendar_view_request_builder.go +++ b/users/item_calendars_item_calendar_view_request_builder.go @@ -44,6 +44,7 @@ type ItemCalendarsItemCalendarViewRequestBuilderGetRequestConfiguration struct { QueryParameters *ItemCalendarsItemCalendarViewRequestBuilderGetQueryParameters } // ByEventId provides operations to manage the calendarView property of the microsoft.graph.calendar entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewEventItemRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewRequestBuilder) ByEventId(eventId string)(*ItemCalendarsItemCalendarViewEventItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -79,6 +80,7 @@ func (m *ItemCalendarsItemCalendarViewRequestBuilder) Delta()(*ItemCalendarsItem return NewItemCalendarsItemCalendarViewDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the calendar view for the calendar. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemCalendarViewRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -99,6 +101,7 @@ func (m *ItemCalendarsItemCalendarViewRequestBuilder) Get(ctx context.Context, r return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } // ToGetRequestInformation the calendar view for the calendar. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemCalendarViewRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemCalendarViewRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,6 +116,7 @@ func (m *ItemCalendarsItemCalendarViewRequestBuilder) ToGetRequestInformation(ct return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemCalendarViewRequestBuilder when successful func (m *ItemCalendarsItemCalendarViewRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemCalendarViewRequestBuilder) { return NewItemCalendarsItemCalendarViewRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_count_request_builder.go b/users/item_calendars_item_events_count_request_builder.go index 3b98b81a7a0..51e10fede16 100644 --- a/users/item_calendars_item_events_count_request_builder.go +++ b/users/item_calendars_item_events_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarsItemEventsCountRequestBuilder(rawUrl string, requestAdapter return NewItemCalendarsItemEventsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarsItemEventsCountRequestBuilder) Get(ctx context.Context, re return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarsItemEventsCountRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsCountRequestBuilder when successful func (m *ItemCalendarsItemEventsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsCountRequestBuilder) { return NewItemCalendarsItemEventsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_delta_request_builder.go b/users/item_calendars_item_events_delta_request_builder.go index 6ad6edf637a..c5eec4a9750 100644 --- a/users/item_calendars_item_events_delta_request_builder.go +++ b/users/item_calendars_item_events_delta_request_builder.go @@ -80,6 +80,7 @@ func (m *ItemCalendarsItemEventsDeltaRequestBuilder) Get(ctx context.Context, re return res.(ItemCalendarsItemEventsDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCalendarsItemEventsDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -103,6 +104,7 @@ func (m *ItemCalendarsItemEventsDeltaRequestBuilder) GetAsDeltaGetResponse(ctx c return res.(ItemCalendarsItemEventsDeltaGetResponseable), nil } // ToGetRequestInformation get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +119,7 @@ func (m *ItemCalendarsItemEventsDeltaRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsDeltaRequestBuilder when successful func (m *ItemCalendarsItemEventsDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsDeltaRequestBuilder) { return NewItemCalendarsItemEventsDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_event_item_request_builder.go b/users/item_calendars_item_events_event_item_request_builder.go index 99e4dfd2a71..127a741b806 100644 --- a/users/item_calendars_item_events_event_item_request_builder.go +++ b/users/item_calendars_item_events_event_item_request_builder.go @@ -80,6 +80,7 @@ func (m *ItemCalendarsItemEventsEventItemRequestBuilder) Decline()(*ItemCalendar return NewItemCalendarsItemEventsItemDeclineRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Delete delete navigation property events for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsEventItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsEventItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -116,6 +117,7 @@ func (m *ItemCalendarsItemEventsEventItemRequestBuilder) Forward()(*ItemCalendar return NewItemCalendarsItemEventsItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the events in the calendar. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -141,6 +143,7 @@ func (m *ItemCalendarsItemEventsEventItemRequestBuilder) Instances()(*ItemCalend return NewItemCalendarsItemEventsItemInstancesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property events in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsEventItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, requestConfiguration *ItemCalendarsItemEventsEventItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -160,6 +163,11 @@ func (m *ItemCalendarsItemEventsEventItemRequestBuilder) Patch(ctx context.Conte } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarsItemEventsItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarsItemEventsEventItemRequestBuilder) PermanentDelete()(*ItemCalendarsItemEventsItemPermanentDeleteRequestBuilder) { + return NewItemCalendarsItemEventsItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarsItemEventsItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarsItemEventsEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarsItemEventsItemSnoozeReminderRequestBuilder) { @@ -171,6 +179,7 @@ func (m *ItemCalendarsItemEventsEventItemRequestBuilder) TentativelyAccept()(*It return NewItemCalendarsItemEventsItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property events for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsEventItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsEventItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -182,6 +191,7 @@ func (m *ItemCalendarsItemEventsEventItemRequestBuilder) ToDeleteRequestInformat return requestInfo, nil } // ToGetRequestInformation the events in the calendar. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -196,6 +206,7 @@ func (m *ItemCalendarsItemEventsEventItemRequestBuilder) ToGetRequestInformation return requestInfo, nil } // ToPatchRequestInformation update the navigation property events in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsEventItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, requestConfiguration *ItemCalendarsItemEventsEventItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -211,6 +222,7 @@ func (m *ItemCalendarsItemEventsEventItemRequestBuilder) ToPatchRequestInformati return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsEventItemRequestBuilder when successful func (m *ItemCalendarsItemEventsEventItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsEventItemRequestBuilder) { return NewItemCalendarsItemEventsEventItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_accept_request_builder.go b/users/item_calendars_item_events_item_accept_request_builder.go index 9354edb3684..9067bc7825c 100644 --- a/users/item_calendars_item_events_item_accept_request_builder.go +++ b/users/item_calendars_item_events_item_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemEventsItemAcceptRequestBuilder(rawUrl string, requestAd return NewItemCalendarsItemEventsItemAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemEventsItemAcceptRequestBuilder) Post(ctx context.Conte return nil } // ToPostRequestInformation accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemEventsItemAcceptPostRequestBodyable, requestConfiguration *ItemCalendarsItemEventsItemAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemEventsItemAcceptRequestBuilder) ToPostRequestInformati return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemAcceptRequestBuilder when successful func (m *ItemCalendarsItemEventsItemAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemAcceptRequestBuilder) { return NewItemCalendarsItemEventsItemAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_attachments_attachment_item_request_builder.go b/users/item_calendars_item_events_item_attachments_attachment_item_request_builder.go index 5c185f873cd..3e095278b08 100644 --- a/users/item_calendars_item_events_item_attachments_attachment_item_request_builder.go +++ b/users/item_calendars_item_events_item_attachments_attachment_item_request_builder.go @@ -48,6 +48,7 @@ func NewItemCalendarsItemEventsItemAttachmentsAttachmentItemRequestBuilder(rawUr return NewItemCalendarsItemEventsItemAttachmentsAttachmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,6 +65,7 @@ func (m *ItemCalendarsItemEventsItemAttachmentsAttachmentItemRequestBuilder) Del return nil } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -84,6 +86,7 @@ func (m *ItemCalendarsItemEventsItemAttachmentsAttachmentItemRequestBuilder) Get return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToDeleteRequestInformation delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +98,7 @@ func (m *ItemCalendarsItemEventsItemAttachmentsAttachmentItemRequestBuilder) ToD return requestInfo, nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +113,7 @@ func (m *ItemCalendarsItemEventsItemAttachmentsAttachmentItemRequestBuilder) ToG return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarsItemEventsItemAttachmentsAttachmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemAttachmentsAttachmentItemRequestBuilder) { return NewItemCalendarsItemEventsItemAttachmentsAttachmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_attachments_count_request_builder.go b/users/item_calendars_item_events_item_attachments_count_request_builder.go index 1e22134087c..f63bff69acc 100644 --- a/users/item_calendars_item_events_item_attachments_count_request_builder.go +++ b/users/item_calendars_item_events_item_attachments_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarsItemEventsItemAttachmentsCountRequestBuilder(rawUrl string, return NewItemCalendarsItemEventsItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarsItemEventsItemAttachmentsCountRequestBuilder) Get(ctx cont return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarsItemEventsItemAttachmentsCountRequestBuilder) ToGetRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemAttachmentsCountRequestBuilder when successful func (m *ItemCalendarsItemEventsItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemAttachmentsCountRequestBuilder) { return NewItemCalendarsItemEventsItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_attachments_create_upload_session_request_builder.go b/users/item_calendars_item_events_item_attachments_create_upload_session_request_builder.go index 29df4de0edd..e0b2adcb67e 100644 --- a/users/item_calendars_item_events_item_attachments_create_upload_session_request_builder.go +++ b/users/item_calendars_item_events_item_attachments_create_upload_session_request_builder.go @@ -32,6 +32,7 @@ func NewItemCalendarsItemEventsItemAttachmentsCreateUploadSessionRequestBuilder( return NewItemCalendarsItemEventsItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemCalendarsItemEventsItemAttachmentsCreateUploadSessionRequestBuilder return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemEventsItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemCalendarsItemEventsItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemCalendarsItemEventsItemAttachmentsCreateUploadSessionRequestBuilder return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemCalendarsItemEventsItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemCalendarsItemEventsItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_attachments_request_builder.go b/users/item_calendars_item_events_item_attachments_request_builder.go index f8c24369d04..547875417f4 100644 --- a/users/item_calendars_item_events_item_attachments_request_builder.go +++ b/users/item_calendars_item_events_item_attachments_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarsItemEventsItemAttachmentsRequestBuilderPostRequestConfiguratio Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentId provides operations to manage the attachments property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarsItemEventsItemAttachmentsRequestBuilder) ByAttachmentId(attachmentId string)(*ItemCalendarsItemEventsItemAttachmentsAttachmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemCalendarsItemEventsItemAttachmentsRequestBuilder) CreateUploadSessi return NewItemCalendarsItemEventsItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemCalendarsItemEventsItemAttachmentsRequestBuilder) Get(ctx context.C return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } // Post create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemEventsItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -122,6 +125,7 @@ func (m *ItemCalendarsItemEventsItemAttachmentsRequestBuilder) Post(ctx context. return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemCalendarsItemEventsItemAttachmentsRequestBuilder) ToGetRequestInfor return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemEventsItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemCalendarsItemEventsItemAttachmentsRequestBuilder) ToPostRequestInfo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemAttachmentsRequestBuilder when successful func (m *ItemCalendarsItemEventsItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemAttachmentsRequestBuilder) { return NewItemCalendarsItemEventsItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_calendar_request_builder.go b/users/item_calendars_item_events_item_calendar_request_builder.go index f2ea5cc2c22..d94fb2ba734 100644 --- a/users/item_calendars_item_events_item_calendar_request_builder.go +++ b/users/item_calendars_item_events_item_calendar_request_builder.go @@ -41,6 +41,7 @@ func NewItemCalendarsItemEventsItemCalendarRequestBuilder(rawUrl string, request return NewItemCalendarsItemEventsItemCalendarRequestBuilderInternal(urlParams, requestAdapter) } // Get the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemCalendarRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemCalendarRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -61,6 +62,7 @@ func (m *ItemCalendarsItemEventsItemCalendarRequestBuilder) Get(ctx context.Cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable), nil } // ToGetRequestInformation the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemCalendarRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemCalendarRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemCalendarsItemEventsItemCalendarRequestBuilder) ToGetRequestInformat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemCalendarRequestBuilder when successful func (m *ItemCalendarsItemEventsItemCalendarRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemCalendarRequestBuilder) { return NewItemCalendarsItemEventsItemCalendarRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_cancel_request_builder.go b/users/item_calendars_item_events_item_cancel_request_builder.go index df95f4a56db..d84a2827b60 100644 --- a/users/item_calendars_item_events_item_cancel_request_builder.go +++ b/users/item_calendars_item_events_item_cancel_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemEventsItemCancelRequestBuilder(rawUrl string, requestAd return NewItemCalendarsItemEventsItemCancelRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemEventsItemCancelRequestBuilder) Post(ctx context.Conte return nil } // ToPostRequestInformation this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemEventsItemCancelPostRequestBodyable, requestConfiguration *ItemCalendarsItemEventsItemCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemEventsItemCancelRequestBuilder) ToPostRequestInformati return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemCancelRequestBuilder when successful func (m *ItemCalendarsItemEventsItemCancelRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemCancelRequestBuilder) { return NewItemCalendarsItemEventsItemCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_decline_request_builder.go b/users/item_calendars_item_events_item_decline_request_builder.go index c7fd7b2874d..054f2928cc0 100644 --- a/users/item_calendars_item_events_item_decline_request_builder.go +++ b/users/item_calendars_item_events_item_decline_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemEventsItemDeclineRequestBuilder(rawUrl string, requestA return NewItemCalendarsItemEventsItemDeclineRequestBuilderInternal(urlParams, requestAdapter) } // Post decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemEventsItemDeclineRequestBuilder) Post(ctx context.Cont return nil } // ToPostRequestInformation decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemDeclineRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemEventsItemDeclinePostRequestBodyable, requestConfiguration *ItemCalendarsItemEventsItemDeclineRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemEventsItemDeclineRequestBuilder) ToPostRequestInformat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemDeclineRequestBuilder when successful func (m *ItemCalendarsItemEventsItemDeclineRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemDeclineRequestBuilder) { return NewItemCalendarsItemEventsItemDeclineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_dismiss_reminder_request_builder.go b/users/item_calendars_item_events_item_dismiss_reminder_request_builder.go index c45f0d2470c..16ccb6b5ce6 100644 --- a/users/item_calendars_item_events_item_dismiss_reminder_request_builder.go +++ b/users/item_calendars_item_events_item_dismiss_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemEventsItemDismissReminderRequestBuilder(rawUrl string, return NewItemCalendarsItemEventsItemDismissReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemEventsItemDismissReminderRequestBuilder) Post(ctx cont return nil } // ToPostRequestInformation dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemDismissReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemDismissReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemCalendarsItemEventsItemDismissReminderRequestBuilder) ToPostRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemDismissReminderRequestBuilder when successful func (m *ItemCalendarsItemEventsItemDismissReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemDismissReminderRequestBuilder) { return NewItemCalendarsItemEventsItemDismissReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_exception_occurrences_count_request_builder.go b/users/item_calendars_item_events_item_exception_occurrences_count_request_builder.go index b2a25f33192..bb484c52587 100644 --- a/users/item_calendars_item_events_item_exception_occurrences_count_request_builder.go +++ b/users/item_calendars_item_events_item_exception_occurrences_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarsItemEventsItemExceptionOccurrencesCountRequestBuilder(rawUr return NewItemCalendarsItemEventsItemExceptionOccurrencesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemExceptionOccurrencesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesCountRequestBuilder) Get return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesCountRequestBuilder) ToG return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExceptionOccurrencesCountRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemExceptionOccurrencesCountRequestBuilder) { return NewItemCalendarsItemEventsItemExceptionOccurrencesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_exception_occurrences_delta_request_builder.go b/users/item_calendars_item_events_item_exception_occurrences_delta_request_builder.go index 2c0baef9067..4cb830dd998 100644 --- a/users/item_calendars_item_events_item_exception_occurrences_delta_request_builder.go +++ b/users/item_calendars_item_events_item_exception_occurrences_delta_request_builder.go @@ -80,6 +80,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesDeltaRequestBuilder) Get return res.(ItemCalendarsItemEventsItemExceptionOccurrencesDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCalendarsItemEventsItemExceptionOccurrencesDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -103,6 +104,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesDeltaRequestBuilder) Get return res.(ItemCalendarsItemEventsItemExceptionOccurrencesDeltaGetResponseable), nil } // ToGetRequestInformation get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +119,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesDeltaRequestBuilder) ToG return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExceptionOccurrencesDeltaRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemExceptionOccurrencesDeltaRequestBuilder) { return NewItemCalendarsItemEventsItemExceptionOccurrencesDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_exception_occurrences_event_item_request_builder.go b/users/item_calendars_item_events_item_exception_occurrences_event_item_request_builder.go index 51b0e3c631c..1b961c2d06c 100644 --- a/users/item_calendars_item_events_item_exception_occurrences_event_item_request_builder.go +++ b/users/item_calendars_item_events_item_exception_occurrences_event_item_request_builder.go @@ -81,6 +81,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesEventItemRequestBuilder) return NewItemCalendarsItemEventsItemExceptionOccurrencesItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemExceptionOccurrencesEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -105,6 +106,11 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesEventItemRequestBuilder) func (m *ItemCalendarsItemEventsItemExceptionOccurrencesEventItemRequestBuilder) Instances()(*ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesRequestBuilder) { return NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarsItemEventsItemExceptionOccurrencesEventItemRequestBuilder) PermanentDelete()(*ItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarsItemEventsItemExceptionOccurrencesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarsItemEventsItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) { @@ -116,6 +122,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesEventItemRequestBuilder) return NewItemCalendarsItemEventsItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -130,6 +137,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesEventItemRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExceptionOccurrencesEventItemRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesEventItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemExceptionOccurrencesEventItemRequestBuilder) { return NewItemCalendarsItemEventsItemExceptionOccurrencesEventItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_exception_occurrences_item_accept_request_builder.go b/users/item_calendars_item_events_item_exception_occurrences_item_accept_request_builder.go index c04f29b51e4..c840ddc1c3e 100644 --- a/users/item_calendars_item_events_item_exception_occurrences_item_accept_request_builder.go +++ b/users/item_calendars_item_events_item_exception_occurrences_item_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemEventsItemExceptionOccurrencesItemAcceptRequestBuilder( return NewItemCalendarsItemEventsItemExceptionOccurrencesItemAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemAcceptRequestBuilder return nil } // ToPostRequestInformation accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemEventsItemExceptionOccurrencesItemAcceptPostRequestBodyable, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemAcceptRequestBuilder return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExceptionOccurrencesItemAcceptRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemExceptionOccurrencesItemAcceptRequestBuilder) { return NewItemCalendarsItemEventsItemExceptionOccurrencesItemAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_exception_occurrences_item_attachments_count_request_builder.go b/users/item_calendars_item_events_item_exception_occurrences_item_attachments_count_request_builder.go index f6e6a35ff7d..071293604f6 100644 --- a/users/item_calendars_item_events_item_exception_occurrences_item_attachments_count_request_builder.go +++ b/users/item_calendars_item_events_item_exception_occurrences_item_attachments_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsCountReque return NewItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsCountRequ return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsCountRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsCountRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) { return NewItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_exception_occurrences_item_attachments_request_builder.go b/users/item_calendars_item_events_item_exception_occurrences_item_attachments_request_builder.go index 9c8ce6a1d78..82168650990 100644 --- a/users/item_calendars_item_events_item_exception_occurrences_item_attachments_request_builder.go +++ b/users/item_calendars_item_events_item_exception_occurrences_item_attachments_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilde Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentId provides operations to manage the attachments property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) ByAttachmentId(attachmentId string)(*ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBu return NewItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBu return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } // Post create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -122,6 +125,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBu return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBu return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBu return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) { return NewItemCalendarsItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_exception_occurrences_item_calendar_request_builder.go b/users/item_calendars_item_events_item_exception_occurrences_item_calendar_request_builder.go index 5ecffd6e122..e3770a0d297 100644 --- a/users/item_calendars_item_events_item_exception_occurrences_item_calendar_request_builder.go +++ b/users/item_calendars_item_events_item_exception_occurrences_item_calendar_request_builder.go @@ -41,6 +41,7 @@ func NewItemCalendarsItemEventsItemExceptionOccurrencesItemCalendarRequestBuilde return NewItemCalendarsItemEventsItemExceptionOccurrencesItemCalendarRequestBuilderInternal(urlParams, requestAdapter) } // Get the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemCalendarRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemCalendarRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -61,6 +62,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemCalendarRequestBuild return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable), nil } // ToGetRequestInformation the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemCalendarRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemCalendarRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemCalendarRequestBuild return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExceptionOccurrencesItemCalendarRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemCalendarRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemExceptionOccurrencesItemCalendarRequestBuilder) { return NewItemCalendarsItemEventsItemExceptionOccurrencesItemCalendarRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_exception_occurrences_item_cancel_request_builder.go b/users/item_calendars_item_events_item_exception_occurrences_item_cancel_request_builder.go index 2af11b257c2..d1f702a35d6 100644 --- a/users/item_calendars_item_events_item_exception_occurrences_item_cancel_request_builder.go +++ b/users/item_calendars_item_events_item_exception_occurrences_item_cancel_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemEventsItemExceptionOccurrencesItemCancelRequestBuilder( return NewItemCalendarsItemEventsItemExceptionOccurrencesItemCancelRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemCancelRequestBuilder return nil } // ToPostRequestInformation this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemEventsItemExceptionOccurrencesItemCancelPostRequestBodyable, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemCancelRequestBuilder return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExceptionOccurrencesItemCancelRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemCancelRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemExceptionOccurrencesItemCancelRequestBuilder) { return NewItemCalendarsItemEventsItemExceptionOccurrencesItemCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_exception_occurrences_item_decline_request_builder.go b/users/item_calendars_item_events_item_exception_occurrences_item_decline_request_builder.go index 349d6cc1168..74fe3094af9 100644 --- a/users/item_calendars_item_events_item_exception_occurrences_item_decline_request_builder.go +++ b/users/item_calendars_item_events_item_exception_occurrences_item_decline_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemEventsItemExceptionOccurrencesItemDeclineRequestBuilder return NewItemCalendarsItemEventsItemExceptionOccurrencesItemDeclineRequestBuilderInternal(urlParams, requestAdapter) } // Post decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemDeclineRequestBuilde return nil } // ToPostRequestInformation decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemDeclineRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemEventsItemExceptionOccurrencesItemDeclinePostRequestBodyable, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemDeclineRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemDeclineRequestBuilde return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExceptionOccurrencesItemDeclineRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemDeclineRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemExceptionOccurrencesItemDeclineRequestBuilder) { return NewItemCalendarsItemEventsItemExceptionOccurrencesItemDeclineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_exception_occurrences_item_dismiss_reminder_request_builder.go b/users/item_calendars_item_events_item_exception_occurrences_item_dismiss_reminder_request_builder.go index c731be87dac..56774ae005a 100644 --- a/users/item_calendars_item_events_item_exception_occurrences_item_dismiss_reminder_request_builder.go +++ b/users/item_calendars_item_events_item_exception_occurrences_item_dismiss_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemEventsItemExceptionOccurrencesItemDismissReminderReques return NewItemCalendarsItemEventsItemExceptionOccurrencesItemDismissReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemDismissReminderReque return nil } // ToPostRequestInformation dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemDismissReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemDismissReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemDismissReminderReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExceptionOccurrencesItemDismissReminderRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemDismissReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemExceptionOccurrencesItemDismissReminderRequestBuilder) { return NewItemCalendarsItemEventsItemExceptionOccurrencesItemDismissReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_exception_occurrences_item_extensions_count_request_builder.go b/users/item_calendars_item_events_item_exception_occurrences_item_extensions_count_request_builder.go index 6a61b03644d..86dc73c92f8 100644 --- a/users/item_calendars_item_events_item_exception_occurrences_item_extensions_count_request_builder.go +++ b/users/item_calendars_item_events_item_exception_occurrences_item_extensions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsCountReques return NewItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsCountReque return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsCountReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsCountRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsCountRequestBuilder) { return NewItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_exception_occurrences_item_extensions_extension_item_request_builder.go b/users/item_calendars_item_events_item_exception_occurrences_item_extensions_extension_item_request_builder.go index 47e80c4d318..44471cee9e4 100644 --- a/users/item_calendars_item_events_item_exception_occurrences_item_extensions_extension_item_request_builder.go +++ b/users/item_calendars_item_events_item_exception_occurrences_item_extensions_extension_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsExtensionIt return NewItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsExtensionI return nil } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsExtensionI return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsExtensionI return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsExtensionI return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsExtensionI return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsExtensionI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) { return NewItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_exception_occurrences_item_extensions_request_builder.go b/users/item_calendars_item_events_item_exception_occurrences_item_extensions_request_builder.go index 0c60d27a928..ea74813eb39 100644 --- a/users/item_calendars_item_events_item_exception_occurrences_item_extensions_request_builder.go +++ b/users/item_calendars_item_events_item_exception_occurrences_item_extensions_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilder Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsRequestBui return NewItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsRequestBui return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsRequestBui return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsRequestBui return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsRequestBui return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) { return NewItemCalendarsItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_exception_occurrences_item_forward_request_builder.go b/users/item_calendars_item_events_item_exception_occurrences_item_forward_request_builder.go index 83625892f85..0e811953f56 100644 --- a/users/item_calendars_item_events_item_exception_occurrences_item_forward_request_builder.go +++ b/users/item_calendars_item_events_item_exception_occurrences_item_forward_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemEventsItemExceptionOccurrencesItemForwardRequestBuilder return NewItemCalendarsItemEventsItemExceptionOccurrencesItemForwardRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemForwardRequestBuilde return nil } // ToPostRequestInformation this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemForwardRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemEventsItemExceptionOccurrencesItemForwardPostRequestBodyable, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemForwardRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemForwardRequestBuilde return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExceptionOccurrencesItemForwardRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemForwardRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemExceptionOccurrencesItemForwardRequestBuilder) { return NewItemCalendarsItemEventsItemExceptionOccurrencesItemForwardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_exception_occurrences_item_instances_count_request_builder.go b/users/item_calendars_item_events_item_exception_occurrences_item_instances_count_request_builder.go index 2412e1e2318..e5b9fe58bba 100644 --- a/users/item_calendars_item_events_item_exception_occurrences_item_instances_count_request_builder.go +++ b/users/item_calendars_item_events_item_exception_occurrences_item_instances_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesCountRequest return NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesCountReques return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesCountReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesCountRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesCountRequestBuilder) { return NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_exception_occurrences_item_instances_delta_request_builder.go b/users/item_calendars_item_events_item_exception_occurrences_item_instances_delta_request_builder.go index 99f2c0b8ea3..0036853b0a6 100644 --- a/users/item_calendars_item_events_item_exception_occurrences_item_instances_delta_request_builder.go +++ b/users/item_calendars_item_events_item_exception_occurrences_item_instances_delta_request_builder.go @@ -80,6 +80,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesDeltaReques return res.(ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -103,6 +104,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesDeltaReques return res.(ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesDeltaGetResponseable), nil } // ToGetRequestInformation get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +119,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesDeltaReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesDeltaRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesDeltaRequestBuilder) { return NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_exception_occurrences_item_instances_event_item_request_builder.go b/users/item_calendars_item_events_item_exception_occurrences_item_instances_event_item_request_builder.go index 5699d003da4..90b7d497e8b 100644 --- a/users/item_calendars_item_events_item_exception_occurrences_item_instances_event_item_request_builder.go +++ b/users/item_calendars_item_events_item_exception_occurrences_item_instances_event_item_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetQueryParameters struct { // The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 EndDateTime *string `uriparametername:"endDateTime"` @@ -84,7 +84,8 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesEventItemRe func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) Forward()(*ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder) { return NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -104,6 +105,11 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesEventItemRe } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) PermanentDelete()(*ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder) { @@ -114,7 +120,8 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesEventItemRe func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) TentativelyAccept()(*ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -129,6 +136,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesEventItemRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) { return NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_exception_occurrences_item_instances_item_accept_request_builder.go b/users/item_calendars_item_events_item_exception_occurrences_item_instances_item_accept_request_builder.go index d654d210de8..cf17561bc8c 100644 --- a/users/item_calendars_item_events_item_exception_occurrences_item_instances_item_accept_request_builder.go +++ b/users/item_calendars_item_events_item_exception_occurrences_item_instances_item_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAcceptRe return NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAcceptR return nil } // ToPostRequestInformation accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAcceptPostRequestBodyable, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAcceptR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilder) { return NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_exception_occurrences_item_instances_item_calendar_request_builder.go b/users/item_calendars_item_events_item_exception_occurrences_item_instances_item_calendar_request_builder.go index 294c535e24c..06cf29d639a 100644 --- a/users/item_calendars_item_events_item_exception_occurrences_item_instances_item_calendar_request_builder.go +++ b/users/item_calendars_item_events_item_exception_occurrences_item_instances_item_calendar_request_builder.go @@ -41,6 +41,7 @@ func NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemCalendar return NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilderInternal(urlParams, requestAdapter) } // Get the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -61,6 +62,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemCalenda return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable), nil } // ToGetRequestInformation the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemCalenda return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder) { return NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_exception_occurrences_item_instances_item_cancel_request_builder.go b/users/item_calendars_item_events_item_exception_occurrences_item_instances_item_cancel_request_builder.go index 1ce7bb30bb1..1ef55393a41 100644 --- a/users/item_calendars_item_events_item_exception_occurrences_item_instances_item_cancel_request_builder.go +++ b/users/item_calendars_item_events_item_exception_occurrences_item_instances_item_cancel_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemCancelRe return NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemCancelRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemCancelR return nil } // ToPostRequestInformation this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemCancelPostRequestBodyable, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemCancelR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemCancelRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemCancelRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemCancelRequestBuilder) { return NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_exception_occurrences_item_instances_item_decline_request_builder.go b/users/item_calendars_item_events_item_exception_occurrences_item_instances_item_decline_request_builder.go index c41f82ac9c6..e91f7cdccba 100644 --- a/users/item_calendars_item_events_item_exception_occurrences_item_instances_item_decline_request_builder.go +++ b/users/item_calendars_item_events_item_exception_occurrences_item_instances_item_decline_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemDeclineR return NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilderInternal(urlParams, requestAdapter) } // Post decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemDecline return nil } // ToPostRequestInformation decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemDeclinePostRequestBodyable, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemDecline return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilder) { return NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_exception_occurrences_item_instances_item_extensions_request_builder.go b/users/item_calendars_item_events_item_exception_occurrences_item_instances_item_extensions_request_builder.go index 4bbeca60334..49c902babf5 100644 --- a/users/item_calendars_item_events_item_exception_occurrences_item_instances_item_extensions_request_builder.go +++ b/users/item_calendars_item_events_item_exception_occurrences_item_instances_item_extensions_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsR Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensi return NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensi return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensi return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensi return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensi return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) { return NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_exception_occurrences_item_instances_item_forward_request_builder.go b/users/item_calendars_item_events_item_exception_occurrences_item_instances_item_forward_request_builder.go index ebd276d93f8..7ee7935b359 100644 --- a/users/item_calendars_item_events_item_exception_occurrences_item_instances_item_forward_request_builder.go +++ b/users/item_calendars_item_events_item_exception_occurrences_item_instances_item_forward_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemForwardR return NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemForwardRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemForward return nil } // ToPostRequestInformation this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemForwardPostRequestBodyable, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemForwardRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemForward return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder) { return NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_exception_occurrences_item_instances_request_builder.go b/users/item_calendars_item_events_item_exception_occurrences_item_instances_request_builder.go index 45806f79b67..138fdc677f2 100644 --- a/users/item_calendars_item_events_item_exception_occurrences_item_instances_request_builder.go +++ b/users/item_calendars_item_events_item_exception_occurrences_item_instances_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -44,6 +44,7 @@ type ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesRequestBuilderG QueryParameters *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesRequestBuilderGetQueryParameters } // ByEventId2 provides operations to manage the instances property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesRequestBuilder) ByEventId2(eventId2 string)(*ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -78,7 +79,8 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesRequestBuil func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesRequestBuilder) Delta()(*ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesDeltaRequestBuilder) { return NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -98,7 +100,8 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesRequestBuil } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,6 +116,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesRequestBuil return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesRequestBuilder) { return NewItemCalendarsItemEventsItemExceptionOccurrencesItemInstancesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_exception_occurrences_item_permanent_delete_request_builder.go b/users/item_calendars_item_events_item_exception_occurrences_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..846272ba712 --- /dev/null +++ b/users/item_calendars_item_events_item_exception_occurrences_item_permanent_delete_request_builder.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/exceptionOccurrences/{event%2Did1}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarsItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_calendars_item_events_item_exception_occurrences_item_snooze_reminder_request_builder.go b/users/item_calendars_item_events_item_exception_occurrences_item_snooze_reminder_request_builder.go index 8700eaec02d..3a6ee08f7b9 100644 --- a/users/item_calendars_item_events_item_exception_occurrences_item_snooze_reminder_request_builder.go +++ b/users/item_calendars_item_events_item_exception_occurrences_item_snooze_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemEventsItemExceptionOccurrencesItemSnoozeReminderRequest return NewItemCalendarsItemEventsItemExceptionOccurrencesItemSnoozeReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemSnoozeReminderReques return nil } // ToPostRequestInformation postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemEventsItemExceptionOccurrencesItemSnoozeReminderPostRequestBodyable, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemSnoozeReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemSnoozeReminderReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExceptionOccurrencesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) { return NewItemCalendarsItemEventsItemExceptionOccurrencesItemSnoozeReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_exception_occurrences_item_tentatively_accept_request_builder.go b/users/item_calendars_item_events_item_exception_occurrences_item_tentatively_accept_request_builder.go index b317da627f0..c0d19f7b188 100644 --- a/users/item_calendars_item_events_item_exception_occurrences_item_tentatively_accept_request_builder.go +++ b/users/item_calendars_item_events_item_exception_occurrences_item_tentatively_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemEventsItemExceptionOccurrencesItemTentativelyAcceptRequ return NewItemCalendarsItemEventsItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemTentativelyAcceptReq return nil } // ToPostRequestInformation tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemEventsItemExceptionOccurrencesItemTentativelyAcceptPostRequestBodyable, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemTentativelyAcceptReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarsItemEventsItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_exception_occurrences_request_builder.go b/users/item_calendars_item_events_item_exception_occurrences_request_builder.go index df08e5defd2..33b5180f2ad 100644 --- a/users/item_calendars_item_events_item_exception_occurrences_request_builder.go +++ b/users/item_calendars_item_events_item_exception_occurrences_request_builder.go @@ -40,6 +40,7 @@ type ItemCalendarsItemEventsItemExceptionOccurrencesRequestBuilderGetRequestConf QueryParameters *ItemCalendarsItemEventsItemExceptionOccurrencesRequestBuilderGetQueryParameters } // ByEventId1 provides operations to manage the exceptionOccurrences property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExceptionOccurrencesEventItemRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesRequestBuilder) ByEventId1(eventId1 string)(*ItemCalendarsItemEventsItemExceptionOccurrencesEventItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -75,6 +76,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesRequestBuilder) Delta()( return NewItemCalendarsItemEventsItemExceptionOccurrencesDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemExceptionOccurrencesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -95,6 +97,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesRequestBuilder) Get(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } // ToGetRequestInformation get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExceptionOccurrencesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +112,7 @@ func (m *ItemCalendarsItemEventsItemExceptionOccurrencesRequestBuilder) ToGetReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExceptionOccurrencesRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExceptionOccurrencesRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemExceptionOccurrencesRequestBuilder) { return NewItemCalendarsItemEventsItemExceptionOccurrencesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_extensions_count_request_builder.go b/users/item_calendars_item_events_item_extensions_count_request_builder.go index 085405af744..f2a730fa95f 100644 --- a/users/item_calendars_item_events_item_extensions_count_request_builder.go +++ b/users/item_calendars_item_events_item_extensions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarsItemEventsItemExtensionsCountRequestBuilder(rawUrl string, return NewItemCalendarsItemEventsItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarsItemEventsItemExtensionsCountRequestBuilder) Get(ctx conte return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarsItemEventsItemExtensionsCountRequestBuilder) ToGetRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExtensionsCountRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemExtensionsCountRequestBuilder) { return NewItemCalendarsItemEventsItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_extensions_extension_item_request_builder.go b/users/item_calendars_item_events_item_extensions_extension_item_request_builder.go index 8d20b19b436..88173256bd9 100644 --- a/users/item_calendars_item_events_item_extensions_extension_item_request_builder.go +++ b/users/item_calendars_item_events_item_extensions_extension_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemCalendarsItemEventsItemExtensionsExtensionItemRequestBuilder(rawUrl return NewItemCalendarsItemEventsItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemCalendarsItemEventsItemExtensionsExtensionItemRequestBuilder) Delet return nil } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemCalendarsItemEventsItemExtensionsExtensionItemRequestBuilder) Get(c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemEventsItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemCalendarsItemEventsItemExtensionsExtensionItemRequestBuilder) Patch return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemCalendarsItemEventsItemExtensionsExtensionItemRequestBuilder) ToDel return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemCalendarsItemEventsItemExtensionsExtensionItemRequestBuilder) ToGet return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemEventsItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemCalendarsItemEventsItemExtensionsExtensionItemRequestBuilder) ToPat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemExtensionsExtensionItemRequestBuilder) { return NewItemCalendarsItemEventsItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_extensions_request_builder.go b/users/item_calendars_item_events_item_extensions_request_builder.go index ecc9e8a32c8..0845cdd3b2c 100644 --- a/users/item_calendars_item_events_item_extensions_request_builder.go +++ b/users/item_calendars_item_events_item_extensions_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarsItemEventsItemExtensionsRequestBuilderPostRequestConfiguration Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemCalendarsItemEventsItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemCalendarsItemEventsItemExtensionsRequestBuilder) Count()(*ItemCalen return NewItemCalendarsItemEventsItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemCalendarsItemEventsItemExtensionsRequestBuilder) Get(ctx context.Co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemEventsItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemCalendarsItemEventsItemExtensionsRequestBuilder) Post(ctx context.C return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemCalendarsItemEventsItemExtensionsRequestBuilder) ToGetRequestInform return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemEventsItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemCalendarsItemEventsItemExtensionsRequestBuilder) ToPostRequestInfor return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemExtensionsRequestBuilder when successful func (m *ItemCalendarsItemEventsItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemExtensionsRequestBuilder) { return NewItemCalendarsItemEventsItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_forward_request_builder.go b/users/item_calendars_item_events_item_forward_request_builder.go index b0f98b877ef..5afe1537272 100644 --- a/users/item_calendars_item_events_item_forward_request_builder.go +++ b/users/item_calendars_item_events_item_forward_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemEventsItemForwardRequestBuilder(rawUrl string, requestA return NewItemCalendarsItemEventsItemForwardRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemEventsItemForwardRequestBuilder) Post(ctx context.Cont return nil } // ToPostRequestInformation this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemForwardRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemEventsItemForwardPostRequestBodyable, requestConfiguration *ItemCalendarsItemEventsItemForwardRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemEventsItemForwardRequestBuilder) ToPostRequestInformat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemForwardRequestBuilder when successful func (m *ItemCalendarsItemEventsItemForwardRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemForwardRequestBuilder) { return NewItemCalendarsItemEventsItemForwardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_instances_count_request_builder.go b/users/item_calendars_item_events_item_instances_count_request_builder.go index 61b0f97a6ff..00869156769 100644 --- a/users/item_calendars_item_events_item_instances_count_request_builder.go +++ b/users/item_calendars_item_events_item_instances_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarsItemEventsItemInstancesCountRequestBuilder(rawUrl string, r return NewItemCalendarsItemEventsItemInstancesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemInstancesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarsItemEventsItemInstancesCountRequestBuilder) Get(ctx contex return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarsItemEventsItemInstancesCountRequestBuilder) ToGetRequestIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemInstancesCountRequestBuilder when successful func (m *ItemCalendarsItemEventsItemInstancesCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemInstancesCountRequestBuilder) { return NewItemCalendarsItemEventsItemInstancesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_instances_delta_request_builder.go b/users/item_calendars_item_events_item_instances_delta_request_builder.go index c8d190e67db..14a49529887 100644 --- a/users/item_calendars_item_events_item_instances_delta_request_builder.go +++ b/users/item_calendars_item_events_item_instances_delta_request_builder.go @@ -80,6 +80,7 @@ func (m *ItemCalendarsItemEventsItemInstancesDeltaRequestBuilder) Get(ctx contex return res.(ItemCalendarsItemEventsItemInstancesDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCalendarsItemEventsItemInstancesDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -103,6 +104,7 @@ func (m *ItemCalendarsItemEventsItemInstancesDeltaRequestBuilder) GetAsDeltaGetR return res.(ItemCalendarsItemEventsItemInstancesDeltaGetResponseable), nil } // ToGetRequestInformation get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +119,7 @@ func (m *ItemCalendarsItemEventsItemInstancesDeltaRequestBuilder) ToGetRequestIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemInstancesDeltaRequestBuilder when successful func (m *ItemCalendarsItemEventsItemInstancesDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemInstancesDeltaRequestBuilder) { return NewItemCalendarsItemEventsItemInstancesDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_instances_event_item_request_builder.go b/users/item_calendars_item_events_item_instances_event_item_request_builder.go index d5772c8aeea..8dd00ed4f70 100644 --- a/users/item_calendars_item_events_item_instances_event_item_request_builder.go +++ b/users/item_calendars_item_events_item_instances_event_item_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemCalendarsItemEventsItemInstancesEventItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemCalendarsItemEventsItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemCalendarsItemEventsItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemCalendarsItemEventsItemInstancesEventItemRequestBuilderGetQueryParameters struct { // The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 EndDateTime *string `uriparametername:"endDateTime"` @@ -89,7 +89,8 @@ func (m *ItemCalendarsItemEventsItemInstancesEventItemRequestBuilder) Extensions func (m *ItemCalendarsItemEventsItemInstancesEventItemRequestBuilder) Forward()(*ItemCalendarsItemEventsItemInstancesItemForwardRequestBuilder) { return NewItemCalendarsItemEventsItemInstancesItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemInstancesEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -109,6 +110,11 @@ func (m *ItemCalendarsItemEventsItemInstancesEventItemRequestBuilder) Get(ctx co } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarsItemEventsItemInstancesEventItemRequestBuilder) PermanentDelete()(*ItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarsItemEventsItemInstancesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarsItemEventsItemInstancesEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarsItemEventsItemInstancesItemSnoozeReminderRequestBuilder) { @@ -119,7 +125,8 @@ func (m *ItemCalendarsItemEventsItemInstancesEventItemRequestBuilder) SnoozeRemi func (m *ItemCalendarsItemEventsItemInstancesEventItemRequestBuilder) TentativelyAccept()(*ItemCalendarsItemEventsItemInstancesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarsItemEventsItemInstancesItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -134,6 +141,7 @@ func (m *ItemCalendarsItemEventsItemInstancesEventItemRequestBuilder) ToGetReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemInstancesEventItemRequestBuilder when successful func (m *ItemCalendarsItemEventsItemInstancesEventItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemInstancesEventItemRequestBuilder) { return NewItemCalendarsItemEventsItemInstancesEventItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_instances_item_accept_request_builder.go b/users/item_calendars_item_events_item_instances_item_accept_request_builder.go index 13b606df24a..9a1ac7c6a48 100644 --- a/users/item_calendars_item_events_item_instances_item_accept_request_builder.go +++ b/users/item_calendars_item_events_item_instances_item_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemEventsItemInstancesItemAcceptRequestBuilder(rawUrl stri return NewItemCalendarsItemEventsItemInstancesItemAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemAcceptRequestBuilder) Post(ctx return nil } // ToPostRequestInformation accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesItemAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemEventsItemInstancesItemAcceptPostRequestBodyable, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemAcceptRequestBuilder) ToPostReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemInstancesItemAcceptRequestBuilder when successful func (m *ItemCalendarsItemEventsItemInstancesItemAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemInstancesItemAcceptRequestBuilder) { return NewItemCalendarsItemEventsItemInstancesItemAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_instances_item_attachments_attachment_item_request_builder.go b/users/item_calendars_item_events_item_instances_item_attachments_attachment_item_request_builder.go index 4ee56512757..38cb1aec6f4 100644 --- a/users/item_calendars_item_events_item_instances_item_attachments_attachment_item_request_builder.go +++ b/users/item_calendars_item_events_item_instances_item_attachments_attachment_item_request_builder.go @@ -48,6 +48,7 @@ func NewItemCalendarsItemEventsItemInstancesItemAttachmentsAttachmentItemRequest return NewItemCalendarsItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,6 +65,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemAttachmentsAttachmentItemReques return nil } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -84,6 +86,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemAttachmentsAttachmentItemReques return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToDeleteRequestInformation delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +98,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemAttachmentsAttachmentItemReques return requestInfo, nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +113,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemAttachmentsAttachmentItemReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarsItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilder) { return NewItemCalendarsItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_instances_item_attachments_count_request_builder.go b/users/item_calendars_item_events_item_instances_item_attachments_count_request_builder.go index a80959d61e2..6ec3319a46b 100644 --- a/users/item_calendars_item_events_item_instances_item_attachments_count_request_builder.go +++ b/users/item_calendars_item_events_item_instances_item_attachments_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarsItemEventsItemInstancesItemAttachmentsCountRequestBuilder(r return NewItemCalendarsItemEventsItemInstancesItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemInstancesItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemAttachmentsCountRequestBuilder) return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemAttachmentsCountRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemInstancesItemAttachmentsCountRequestBuilder when successful func (m *ItemCalendarsItemEventsItemInstancesItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemInstancesItemAttachmentsCountRequestBuilder) { return NewItemCalendarsItemEventsItemInstancesItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_instances_item_attachments_create_upload_session_request_builder.go b/users/item_calendars_item_events_item_instances_item_attachments_create_upload_session_request_builder.go index 4a1639c73e2..212a0e2781a 100644 --- a/users/item_calendars_item_events_item_instances_item_attachments_create_upload_session_request_builder.go +++ b/users/item_calendars_item_events_item_instances_item_attachments_create_upload_session_request_builder.go @@ -32,6 +32,7 @@ func NewItemCalendarsItemEventsItemInstancesItemAttachmentsCreateUploadSessionRe return NewItemCalendarsItemEventsItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemAttachmentsCreateUploadSessionR return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemEventsItemInstancesItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemAttachmentsCreateUploadSessionR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemCalendarsItemEventsItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemCalendarsItemEventsItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_instances_item_attachments_request_builder.go b/users/item_calendars_item_events_item_instances_item_attachments_request_builder.go index f5a84d3f162..918e49b31d4 100644 --- a/users/item_calendars_item_events_item_instances_item_attachments_request_builder.go +++ b/users/item_calendars_item_events_item_instances_item_attachments_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilderPostReques Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentId provides operations to manage the attachments property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilder) ByAttachmentId(attachmentId string)(*ItemCalendarsItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilder) Crea return NewItemCalendarsItemEventsItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilder) Get( return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } // Post create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -122,6 +125,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilder) Post return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilder) ToGe return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilder) ToPo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilder when successful func (m *ItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilder) { return NewItemCalendarsItemEventsItemInstancesItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_instances_item_calendar_request_builder.go b/users/item_calendars_item_events_item_instances_item_calendar_request_builder.go index bf63f10166d..059b20a4252 100644 --- a/users/item_calendars_item_events_item_instances_item_calendar_request_builder.go +++ b/users/item_calendars_item_events_item_instances_item_calendar_request_builder.go @@ -41,6 +41,7 @@ func NewItemCalendarsItemEventsItemInstancesItemCalendarRequestBuilder(rawUrl st return NewItemCalendarsItemEventsItemInstancesItemCalendarRequestBuilderInternal(urlParams, requestAdapter) } // Get the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemInstancesItemCalendarRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemCalendarRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -61,6 +62,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemCalendarRequestBuilder) Get(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable), nil } // ToGetRequestInformation the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesItemCalendarRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemCalendarRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemCalendarRequestBuilder) ToGetRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemInstancesItemCalendarRequestBuilder when successful func (m *ItemCalendarsItemEventsItemInstancesItemCalendarRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemInstancesItemCalendarRequestBuilder) { return NewItemCalendarsItemEventsItemInstancesItemCalendarRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_instances_item_cancel_request_builder.go b/users/item_calendars_item_events_item_instances_item_cancel_request_builder.go index 4036bd90255..a31a4a436e9 100644 --- a/users/item_calendars_item_events_item_instances_item_cancel_request_builder.go +++ b/users/item_calendars_item_events_item_instances_item_cancel_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemEventsItemInstancesItemCancelRequestBuilder(rawUrl stri return NewItemCalendarsItemEventsItemInstancesItemCancelRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemCancelRequestBuilder) Post(ctx return nil } // ToPostRequestInformation this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesItemCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemEventsItemInstancesItemCancelPostRequestBodyable, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemCancelRequestBuilder) ToPostReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemInstancesItemCancelRequestBuilder when successful func (m *ItemCalendarsItemEventsItemInstancesItemCancelRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemInstancesItemCancelRequestBuilder) { return NewItemCalendarsItemEventsItemInstancesItemCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_instances_item_decline_request_builder.go b/users/item_calendars_item_events_item_instances_item_decline_request_builder.go index 9336bda65dd..02fc53a84c5 100644 --- a/users/item_calendars_item_events_item_instances_item_decline_request_builder.go +++ b/users/item_calendars_item_events_item_instances_item_decline_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemEventsItemInstancesItemDeclineRequestBuilder(rawUrl str return NewItemCalendarsItemEventsItemInstancesItemDeclineRequestBuilderInternal(urlParams, requestAdapter) } // Post decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemDeclineRequestBuilder) Post(ctx return nil } // ToPostRequestInformation decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesItemDeclineRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemEventsItemInstancesItemDeclinePostRequestBodyable, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemDeclineRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemDeclineRequestBuilder) ToPostRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemInstancesItemDeclineRequestBuilder when successful func (m *ItemCalendarsItemEventsItemInstancesItemDeclineRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemInstancesItemDeclineRequestBuilder) { return NewItemCalendarsItemEventsItemInstancesItemDeclineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_instances_item_dismiss_reminder_request_builder.go b/users/item_calendars_item_events_item_instances_item_dismiss_reminder_request_builder.go index 74496fd5772..22bdd76c790 100644 --- a/users/item_calendars_item_events_item_instances_item_dismiss_reminder_request_builder.go +++ b/users/item_calendars_item_events_item_instances_item_dismiss_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemEventsItemInstancesItemDismissReminderRequestBuilder(ra return NewItemCalendarsItemEventsItemInstancesItemDismissReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemDismissReminderRequestBuilder) return nil } // ToPostRequestInformation dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesItemDismissReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemDismissReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemDismissReminderRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemInstancesItemDismissReminderRequestBuilder when successful func (m *ItemCalendarsItemEventsItemInstancesItemDismissReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemInstancesItemDismissReminderRequestBuilder) { return NewItemCalendarsItemEventsItemInstancesItemDismissReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_instances_item_exception_occurrences_count_request_builder.go b/users/item_calendars_item_events_item_instances_item_exception_occurrences_count_request_builder.go index 5b48fae1693..e267a90b461 100644 --- a/users/item_calendars_item_events_item_instances_item_exception_occurrences_count_request_builder.go +++ b/users/item_calendars_item_events_item_instances_item_exception_occurrences_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesCountRequest return NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesCountReques return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesCountReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesCountRequestBuilder when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesCountRequestBuilder) { return NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_instances_item_exception_occurrences_delta_request_builder.go b/users/item_calendars_item_events_item_instances_item_exception_occurrences_delta_request_builder.go index fe2cb967904..8dab00c55a5 100644 --- a/users/item_calendars_item_events_item_instances_item_exception_occurrences_delta_request_builder.go +++ b/users/item_calendars_item_events_item_instances_item_exception_occurrences_delta_request_builder.go @@ -80,6 +80,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesDeltaReques return res.(ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -103,6 +104,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesDeltaReques return res.(ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesDeltaGetResponseable), nil } // ToGetRequestInformation get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +119,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesDeltaReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesDeltaRequestBuilder when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesDeltaRequestBuilder) { return NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_instances_item_exception_occurrences_event_item_request_builder.go b/users/item_calendars_item_events_item_instances_item_exception_occurrences_event_item_request_builder.go index 3909dfad7b7..b7cc5547dda 100644 --- a/users/item_calendars_item_events_item_instances_item_exception_occurrences_event_item_request_builder.go +++ b/users/item_calendars_item_events_item_instances_item_exception_occurrences_event_item_request_builder.go @@ -81,6 +81,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesEventItemRe return NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -100,6 +101,11 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesEventItemRe } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) PermanentDelete()(*ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) SnoozeReminder()(*ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) { @@ -111,6 +117,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesEventItemRe return NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -125,6 +132,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesEventItemRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) { return NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_instances_item_exception_occurrences_item_accept_request_builder.go b/users/item_calendars_item_events_item_instances_item_exception_occurrences_item_accept_request_builder.go index caa507dcfec..e103be71dad 100644 --- a/users/item_calendars_item_events_item_instances_item_exception_occurrences_item_accept_request_builder.go +++ b/users/item_calendars_item_events_item_instances_item_exception_occurrences_item_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAcceptRe return NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAcceptR return nil } // ToPostRequestInformation accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAcceptPostRequestBodyable, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAcceptR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilder when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilder) { return NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_instances_item_exception_occurrences_item_calendar_request_builder.go b/users/item_calendars_item_events_item_instances_item_exception_occurrences_item_calendar_request_builder.go index dafd08189d7..174285eeb6a 100644 --- a/users/item_calendars_item_events_item_instances_item_exception_occurrences_item_calendar_request_builder.go +++ b/users/item_calendars_item_events_item_instances_item_exception_occurrences_item_calendar_request_builder.go @@ -41,6 +41,7 @@ func NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemCalendar return NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilderInternal(urlParams, requestAdapter) } // Get the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -61,6 +62,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemCalenda return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable), nil } // ToGetRequestInformation the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemCalenda return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder) { return NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_instances_item_exception_occurrences_item_cancel_request_builder.go b/users/item_calendars_item_events_item_instances_item_exception_occurrences_item_cancel_request_builder.go index 2fcb2194ac0..e94e53d8d89 100644 --- a/users/item_calendars_item_events_item_instances_item_exception_occurrences_item_cancel_request_builder.go +++ b/users/item_calendars_item_events_item_instances_item_exception_occurrences_item_cancel_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemCancelRe return NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemCancelRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemCancelR return nil } // ToPostRequestInformation this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemCancelPostRequestBodyable, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemCancelR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemCancelRequestBuilder when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemCancelRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemCancelRequestBuilder) { return NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_instances_item_exception_occurrences_item_decline_request_builder.go b/users/item_calendars_item_events_item_instances_item_exception_occurrences_item_decline_request_builder.go index 730b8a5f036..38e2590e0a0 100644 --- a/users/item_calendars_item_events_item_instances_item_exception_occurrences_item_decline_request_builder.go +++ b/users/item_calendars_item_events_item_instances_item_exception_occurrences_item_decline_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemDeclineR return NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilderInternal(urlParams, requestAdapter) } // Post decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemDecline return nil } // ToPostRequestInformation decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemDeclinePostRequestBodyable, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemDecline return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilder when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilder) { return NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_instances_item_exception_occurrences_item_extensions_request_builder.go b/users/item_calendars_item_events_item_instances_item_exception_occurrences_item_extensions_request_builder.go index 670add39ce8..4049e3b7794 100644 --- a/users/item_calendars_item_events_item_instances_item_exception_occurrences_item_extensions_request_builder.go +++ b/users/item_calendars_item_events_item_instances_item_exception_occurrences_item_extensions_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsR Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensi return NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensi return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensi return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensi return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensi return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) { return NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_instances_item_exception_occurrences_item_forward_request_builder.go b/users/item_calendars_item_events_item_instances_item_exception_occurrences_item_forward_request_builder.go index ad7adaeadd1..a023d310a4a 100644 --- a/users/item_calendars_item_events_item_instances_item_exception_occurrences_item_forward_request_builder.go +++ b/users/item_calendars_item_events_item_instances_item_exception_occurrences_item_forward_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemForwardR return NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemForwardRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemForward return nil } // ToPostRequestInformation this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemForwardRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemForwardPostRequestBodyable, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemForwardRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemForward return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemForwardRequestBuilder when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemForwardRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemForwardRequestBuilder) { return NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesItemForwardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_instances_item_exception_occurrences_request_builder.go b/users/item_calendars_item_events_item_instances_item_exception_occurrences_request_builder.go index 1c62d73c724..2dfce214c1a 100644 --- a/users/item_calendars_item_events_item_instances_item_exception_occurrences_request_builder.go +++ b/users/item_calendars_item_events_item_instances_item_exception_occurrences_request_builder.go @@ -40,6 +40,7 @@ type ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesRequestBuilderG QueryParameters *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesRequestBuilderGetQueryParameters } // ByEventId2 provides operations to manage the exceptionOccurrences property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesRequestBuilder) ByEventId2(eventId2 string)(*ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -75,6 +76,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesRequestBuil return NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -95,6 +97,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesRequestBuil return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } // ToGetRequestInformation get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +112,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesRequestBuil return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesRequestBuilder when successful func (m *ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesRequestBuilder) { return NewItemCalendarsItemEventsItemInstancesItemExceptionOccurrencesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_instances_item_extensions_count_request_builder.go b/users/item_calendars_item_events_item_instances_item_extensions_count_request_builder.go index d8a89877847..32a1ae94af0 100644 --- a/users/item_calendars_item_events_item_instances_item_extensions_count_request_builder.go +++ b/users/item_calendars_item_events_item_instances_item_extensions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCalendarsItemEventsItemInstancesItemExtensionsCountRequestBuilder(ra return NewItemCalendarsItemEventsItemInstancesItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemInstancesItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExtensionsCountRequestBuilder) return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExtensionsCountRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemInstancesItemExtensionsCountRequestBuilder when successful func (m *ItemCalendarsItemEventsItemInstancesItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemInstancesItemExtensionsCountRequestBuilder) { return NewItemCalendarsItemEventsItemInstancesItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_instances_item_extensions_extension_item_request_builder.go b/users/item_calendars_item_events_item_instances_item_extensions_extension_item_request_builder.go index fc501ae92b4..34efbeb311b 100644 --- a/users/item_calendars_item_events_item_instances_item_extensions_extension_item_request_builder.go +++ b/users/item_calendars_item_events_item_instances_item_extensions_extension_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemCalendarsItemEventsItemInstancesItemExtensionsExtensionItemRequestBu return NewItemCalendarsItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExtensionsExtensionItemRequestB return nil } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExtensionsExtensionItemRequestB return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExtensionsExtensionItemRequestB return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExtensionsExtensionItemRequestB return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExtensionsExtensionItemRequestB return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExtensionsExtensionItemRequestB return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarsItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilder) { return NewItemCalendarsItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_instances_item_extensions_request_builder.go b/users/item_calendars_item_events_item_instances_item_extensions_request_builder.go index fc279ec6f07..1d988388a85 100644 --- a/users/item_calendars_item_events_item_instances_item_extensions_request_builder.go +++ b/users/item_calendars_item_events_item_instances_item_extensions_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarsItemEventsItemInstancesItemExtensionsRequestBuilderPostRequest Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemCalendarsItemEventsItemInstancesItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemCalendarsItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExtensionsRequestBuilder) Count return NewItemCalendarsItemEventsItemInstancesItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemInstancesItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExtensionsRequestBuilder) Get(c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemInstancesItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExtensionsRequestBuilder) Post( return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExtensionsRequestBuilder) ToGet return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemExtensionsRequestBuilder) ToPos return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemInstancesItemExtensionsRequestBuilder when successful func (m *ItemCalendarsItemEventsItemInstancesItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemInstancesItemExtensionsRequestBuilder) { return NewItemCalendarsItemEventsItemInstancesItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_instances_item_forward_request_builder.go b/users/item_calendars_item_events_item_instances_item_forward_request_builder.go index d5cbe5c686a..dfb714a4af2 100644 --- a/users/item_calendars_item_events_item_instances_item_forward_request_builder.go +++ b/users/item_calendars_item_events_item_instances_item_forward_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemEventsItemInstancesItemForwardRequestBuilder(rawUrl str return NewItemCalendarsItemEventsItemInstancesItemForwardRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemForwardRequestBuilder) Post(ctx return nil } // ToPostRequestInformation this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesItemForwardRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemEventsItemInstancesItemForwardPostRequestBodyable, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemForwardRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemForwardRequestBuilder) ToPostRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemInstancesItemForwardRequestBuilder when successful func (m *ItemCalendarsItemEventsItemInstancesItemForwardRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemInstancesItemForwardRequestBuilder) { return NewItemCalendarsItemEventsItemInstancesItemForwardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_instances_item_permanent_delete_request_builder.go b/users/item_calendars_item_events_item_instances_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..1352667032c --- /dev/null +++ b/users/item_calendars_item_events_item_instances_item_permanent_delete_request_builder.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/{event%2Did1}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemCalendarsItemEventsItemInstancesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_calendars_item_events_item_instances_item_snooze_reminder_request_builder.go b/users/item_calendars_item_events_item_instances_item_snooze_reminder_request_builder.go index 67d870c9f47..7b0f902bc34 100644 --- a/users/item_calendars_item_events_item_instances_item_snooze_reminder_request_builder.go +++ b/users/item_calendars_item_events_item_instances_item_snooze_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemEventsItemInstancesItemSnoozeReminderRequestBuilder(raw return NewItemCalendarsItemEventsItemInstancesItemSnoozeReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemSnoozeReminderRequestBuilder) P return nil } // ToPostRequestInformation postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesItemSnoozeReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemEventsItemInstancesItemSnoozeReminderPostRequestBodyable, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemSnoozeReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemSnoozeReminderRequestBuilder) T return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemInstancesItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarsItemEventsItemInstancesItemSnoozeReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemInstancesItemSnoozeReminderRequestBuilder) { return NewItemCalendarsItemEventsItemInstancesItemSnoozeReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_instances_item_tentatively_accept_request_builder.go b/users/item_calendars_item_events_item_instances_item_tentatively_accept_request_builder.go index ebedfa56e7f..2b38585266d 100644 --- a/users/item_calendars_item_events_item_instances_item_tentatively_accept_request_builder.go +++ b/users/item_calendars_item_events_item_instances_item_tentatively_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemEventsItemInstancesItemTentativelyAcceptRequestBuilder( return NewItemCalendarsItemEventsItemInstancesItemTentativelyAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemTentativelyAcceptRequestBuilder return nil } // ToPostRequestInformation tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesItemTentativelyAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemEventsItemInstancesItemTentativelyAcceptPostRequestBodyable, requestConfiguration *ItemCalendarsItemEventsItemInstancesItemTentativelyAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemEventsItemInstancesItemTentativelyAcceptRequestBuilder return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemInstancesItemTentativelyAcceptRequestBuilder when successful func (m *ItemCalendarsItemEventsItemInstancesItemTentativelyAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemInstancesItemTentativelyAcceptRequestBuilder) { return NewItemCalendarsItemEventsItemInstancesItemTentativelyAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_instances_request_builder.go b/users/item_calendars_item_events_item_instances_request_builder.go index 69b3eb33a92..2cb52d258e0 100644 --- a/users/item_calendars_item_events_item_instances_request_builder.go +++ b/users/item_calendars_item_events_item_instances_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemCalendarsItemEventsItemInstancesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemCalendarsItemEventsItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemCalendarsItemEventsItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemCalendarsItemEventsItemInstancesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -44,6 +44,7 @@ type ItemCalendarsItemEventsItemInstancesRequestBuilderGetRequestConfiguration s QueryParameters *ItemCalendarsItemEventsItemInstancesRequestBuilderGetQueryParameters } // ByEventId1 provides operations to manage the instances property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemInstancesEventItemRequestBuilder when successful func (m *ItemCalendarsItemEventsItemInstancesRequestBuilder) ByEventId1(eventId1 string)(*ItemCalendarsItemEventsItemInstancesEventItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -78,7 +79,8 @@ func (m *ItemCalendarsItemEventsItemInstancesRequestBuilder) Count()(*ItemCalend func (m *ItemCalendarsItemEventsItemInstancesRequestBuilder) Delta()(*ItemCalendarsItemEventsItemInstancesDeltaRequestBuilder) { return NewItemCalendarsItemEventsItemInstancesDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsItemInstancesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -98,7 +100,8 @@ func (m *ItemCalendarsItemEventsItemInstancesRequestBuilder) Get(ctx context.Con } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemInstancesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemInstancesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,6 +116,7 @@ func (m *ItemCalendarsItemEventsItemInstancesRequestBuilder) ToGetRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemInstancesRequestBuilder when successful func (m *ItemCalendarsItemEventsItemInstancesRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemInstancesRequestBuilder) { return NewItemCalendarsItemEventsItemInstancesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_permanent_delete_request_builder.go b/users/item_calendars_item_events_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..db7bb68413f --- /dev/null +++ b/users/item_calendars_item_events_item_permanent_delete_request_builder.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarsItemEventsItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarsItemEventsItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarsItemEventsItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarsItemEventsItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarsItemEventsItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarsItemEventsItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarsItemEventsItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarsItemEventsItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarsItemEventsItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarsItemEventsItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarsItemEventsItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarsItemEventsItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarsItemEventsItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarsItemEventsItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarsItemEventsItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemCalendarsItemEventsItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemCalendarsItemEventsItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarsItemEventsItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemPermanentDeleteRequestBuilder) { + return NewItemCalendarsItemEventsItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_calendars_item_events_item_snooze_reminder_request_builder.go b/users/item_calendars_item_events_item_snooze_reminder_request_builder.go index b71332511c8..648969a9d8c 100644 --- a/users/item_calendars_item_events_item_snooze_reminder_request_builder.go +++ b/users/item_calendars_item_events_item_snooze_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemEventsItemSnoozeReminderRequestBuilder(rawUrl string, r return NewItemCalendarsItemEventsItemSnoozeReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemEventsItemSnoozeReminderRequestBuilder) Post(ctx conte return nil } // ToPostRequestInformation postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemSnoozeReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemEventsItemSnoozeReminderPostRequestBodyable, requestConfiguration *ItemCalendarsItemEventsItemSnoozeReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemEventsItemSnoozeReminderRequestBuilder) ToPostRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemSnoozeReminderRequestBuilder when successful func (m *ItemCalendarsItemEventsItemSnoozeReminderRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemSnoozeReminderRequestBuilder) { return NewItemCalendarsItemEventsItemSnoozeReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_item_tentatively_accept_request_builder.go b/users/item_calendars_item_events_item_tentatively_accept_request_builder.go index 2bfa256340c..9dadf4fef96 100644 --- a/users/item_calendars_item_events_item_tentatively_accept_request_builder.go +++ b/users/item_calendars_item_events_item_tentatively_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemCalendarsItemEventsItemTentativelyAcceptRequestBuilder(rawUrl string return NewItemCalendarsItemEventsItemTentativelyAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCalendarsItemEventsItemTentativelyAcceptRequestBuilder) Post(ctx co return nil } // ToPostRequestInformation tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsItemTentativelyAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemEventsItemTentativelyAcceptPostRequestBodyable, requestConfiguration *ItemCalendarsItemEventsItemTentativelyAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCalendarsItemEventsItemTentativelyAcceptRequestBuilder) ToPostReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsItemTentativelyAcceptRequestBuilder when successful func (m *ItemCalendarsItemEventsItemTentativelyAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsItemTentativelyAcceptRequestBuilder) { return NewItemCalendarsItemEventsItemTentativelyAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_events_request_builder.go b/users/item_calendars_item_events_request_builder.go index 47d5aaabb3c..086ae1a6d40 100644 --- a/users/item_calendars_item_events_request_builder.go +++ b/users/item_calendars_item_events_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarsItemEventsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByEventId provides operations to manage the events property of the microsoft.graph.calendar entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsEventItemRequestBuilder when successful func (m *ItemCalendarsItemEventsRequestBuilder) ByEventId(eventId string)(*ItemCalendarsItemEventsEventItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemCalendarsItemEventsRequestBuilder) Delta()(*ItemCalendarsItemEvents return NewItemCalendarsItemEventsDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the events in the calendar. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemCalendarsItemEventsRequestBuilder) Get(ctx context.Context, request return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } // Post create new navigation property to events for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsItemEventsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, requestConfiguration *ItemCalendarsItemEventsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -122,6 +125,7 @@ func (m *ItemCalendarsItemEventsRequestBuilder) Post(ctx context.Context, body i return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable), nil } // ToGetRequestInformation the events in the calendar. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemEventsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemCalendarsItemEventsRequestBuilder) ToGetRequestInformation(ctx cont return requestInfo, nil } // ToPostRequestInformation create new navigation property to events for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemEventsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, requestConfiguration *ItemCalendarsItemEventsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemCalendarsItemEventsRequestBuilder) ToPostRequestInformation(ctx con return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemEventsRequestBuilder when successful func (m *ItemCalendarsItemEventsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemEventsRequestBuilder) { return NewItemCalendarsItemEventsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_get_schedule_request_builder.go b/users/item_calendars_item_get_schedule_request_builder.go index eb11d7664d8..69f9437345f 100644 --- a/users/item_calendars_item_get_schedule_request_builder.go +++ b/users/item_calendars_item_get_schedule_request_builder.go @@ -55,6 +55,7 @@ func (m *ItemCalendarsItemGetScheduleRequestBuilder) Post(ctx context.Context, b return res.(ItemCalendarsItemGetScheduleResponseable), nil } // PostAsGetSchedulePostResponse get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCalendarsItemGetSchedulePostResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -78,6 +79,7 @@ func (m *ItemCalendarsItemGetScheduleRequestBuilder) PostAsGetSchedulePostRespon return res.(ItemCalendarsItemGetSchedulePostResponseable), nil } // ToPostRequestInformation get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsItemGetScheduleRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCalendarsItemGetSchedulePostRequestBodyable, requestConfiguration *ItemCalendarsItemGetScheduleRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -93,6 +95,7 @@ func (m *ItemCalendarsItemGetScheduleRequestBuilder) ToPostRequestInformation(ct return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsItemGetScheduleRequestBuilder when successful func (m *ItemCalendarsItemGetScheduleRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemGetScheduleRequestBuilder) { return NewItemCalendarsItemGetScheduleRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_calendars_item_permanent_delete_request_builder.go b/users/item_calendars_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..4c9f982c645 --- /dev/null +++ b/users/item_calendars_item_permanent_delete_request_builder.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemCalendarsItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemCalendarsItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemCalendarsItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemCalendarsItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemCalendarsItemPermanentDeleteRequestBuilderInternal instantiates a new ItemCalendarsItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarsItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarsItemPermanentDeleteRequestBuilder) { + m := &ItemCalendarsItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/permanentDelete", pathParameters), + } + return m +} +// NewItemCalendarsItemPermanentDeleteRequestBuilder instantiates a new ItemCalendarsItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemCalendarsItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemCalendarsItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemCalendarsItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete a calendar folder and the events that it contains and remove them from the mailbox. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/calendar-permanentdelete?view=graph-rest-beta +func (m *ItemCalendarsItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemCalendarsItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete a calendar folder and the events that it contains and remove them from the mailbox. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemCalendarsItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemCalendarsItemPermanentDeleteRequestBuilder when successful +func (m *ItemCalendarsItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsItemPermanentDeleteRequestBuilder) { + return NewItemCalendarsItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_calendars_request_builder.go b/users/item_calendars_request_builder.go index dfedf3a040a..071fd99779f 100644 --- a/users/item_calendars_request_builder.go +++ b/users/item_calendars_request_builder.go @@ -47,6 +47,7 @@ type ItemCalendarsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByCalendarId provides operations to manage the calendars property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsCalendarItemRequestBuilder when successful func (m *ItemCalendarsRequestBuilder) ByCalendarId(calendarId string)(*ItemCalendarsCalendarItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemCalendarsRequestBuilder) Count()(*ItemCalendarsCountRequestBuilder) return NewItemCalendarsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the user's calendars. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a CalendarCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCalendarsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemCalendarsRequestBuilder) Get(ctx context.Context, requestConfigurat return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CalendarCollectionResponseable), nil } // Post create new navigation property to calendars for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCalendarsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, requestConfiguration *ItemCalendarsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -117,6 +120,7 @@ func (m *ItemCalendarsRequestBuilder) Post(ctx context.Context, body ie233ee762e return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable), nil } // ToGetRequestInformation the user's calendars. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCalendarsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemCalendarsRequestBuilder) ToGetRequestInformation(ctx context.Contex return requestInfo, nil } // ToPostRequestInformation create new navigation property to calendars for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCalendarsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, requestConfiguration *ItemCalendarsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemCalendarsRequestBuilder) ToPostRequestInformation(ctx context.Conte return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCalendarsRequestBuilder when successful func (m *ItemCalendarsRequestBuilder) WithUrl(rawUrl string)(*ItemCalendarsRequestBuilder) { return NewItemCalendarsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_change_password_request_builder.go b/users/item_change_password_request_builder.go index 3ebbf1c658f..8e52e62713e 100644 --- a/users/item_change_password_request_builder.go +++ b/users/item_change_password_request_builder.go @@ -30,7 +30,8 @@ func NewItemChangePasswordRequestBuilder(rawUrl string, requestAdapter i2ae4187f urlParams["request-raw-url"] = rawUrl return NewItemChangePasswordRequestBuilderInternal(urlParams, requestAdapter) } -// Post enable the user to update their password. Any user can update their password without belonging to any administrator role. +// Post update the signed-in user's password. Any user can update their password without belonging to any administrator role. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -49,7 +50,8 @@ func (m *ItemChangePasswordRequestBuilder) Post(ctx context.Context, body ItemCh } return nil } -// ToPostRequestInformation enable the user to update their password. Any user can update their password without belonging to any administrator role. +// ToPostRequestInformation update the signed-in user's password. Any user can update their password without belonging to any administrator role. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChangePasswordRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemChangePasswordPostRequestBodyable, requestConfiguration *ItemChangePasswordRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemChangePasswordRequestBuilder) ToPostRequestInformation(ctx context. return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChangePasswordRequestBuilder when successful func (m *ItemChangePasswordRequestBuilder) WithUrl(rawUrl string)(*ItemChangePasswordRequestBuilder) { return NewItemChangePasswordRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_all_messages_request_builder.go b/users/item_chats_all_messages_request_builder.go index f4682296163..445d70a6d94 100644 --- a/users/item_chats_all_messages_request_builder.go +++ b/users/item_chats_all_messages_request_builder.go @@ -73,6 +73,7 @@ func (m *ItemChatsAllMessagesRequestBuilder) Get(ctx context.Context, requestCon return res.(ItemChatsAllMessagesResponseable), nil } // GetAsAllMessagesGetResponse invoke function allMessages +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemChatsAllMessagesGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsAllMessagesRequestBuilder) GetAsAllMessagesGetResponse(ctx context.Context, requestConfiguration *ItemChatsAllMessagesRequestBuilderGetRequestConfiguration)(ItemChatsAllMessagesGetResponseable, error) { @@ -93,6 +94,7 @@ func (m *ItemChatsAllMessagesRequestBuilder) GetAsAllMessagesGetResponse(ctx con return res.(ItemChatsAllMessagesGetResponseable), nil } // ToGetRequestInformation invoke function allMessages +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsAllMessagesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsAllMessagesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -107,6 +109,7 @@ func (m *ItemChatsAllMessagesRequestBuilder) ToGetRequestInformation(ctx context return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsAllMessagesRequestBuilder when successful func (m *ItemChatsAllMessagesRequestBuilder) WithUrl(rawUrl string)(*ItemChatsAllMessagesRequestBuilder) { return NewItemChatsAllMessagesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_chat_item_request_builder.go b/users/item_chats_chat_item_request_builder.go index 6b0e331ab74..bce214e8573 100644 --- a/users/item_chats_chat_item_request_builder.go +++ b/users/item_chats_chat_item_request_builder.go @@ -41,6 +41,11 @@ type ItemChatsChatItemRequestBuilderPatchRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } +// CompleteMigration provides operations to call the completeMigration method. +// returns a *ItemChatsItemCompleteMigrationRequestBuilder when successful +func (m *ItemChatsChatItemRequestBuilder) CompleteMigration()(*ItemChatsItemCompleteMigrationRequestBuilder) { + return NewItemChatsItemCompleteMigrationRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // NewItemChatsChatItemRequestBuilderInternal instantiates a new ItemChatsChatItemRequestBuilder and sets the default values. func NewItemChatsChatItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemChatsChatItemRequestBuilder) { m := &ItemChatsChatItemRequestBuilder{ @@ -55,6 +60,7 @@ func NewItemChatsChatItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7 return NewItemChatsChatItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property chats for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsChatItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemChatsChatItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +77,7 @@ func (m *ItemChatsChatItemRequestBuilder) Delete(ctx context.Context, requestCon return nil } // Get retrieve a single chat (without its messages). This method supports federation. To access a chat, at least one chat member must belong to the tenant the request initiated from. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Chatable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -134,6 +141,7 @@ func (m *ItemChatsChatItemRequestBuilder) Operations()(*ItemChatsItemOperationsR return NewItemChatsItemOperationsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property chats in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Chatable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsChatItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Chatable, requestConfiguration *ItemChatsChatItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Chatable, error) { @@ -179,6 +187,7 @@ func (m *ItemChatsChatItemRequestBuilder) Tabs()(*ItemChatsItemTabsRequestBuilde return NewItemChatsItemTabsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property chats for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsChatItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemChatsChatItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -190,6 +199,7 @@ func (m *ItemChatsChatItemRequestBuilder) ToDeleteRequestInformation(ctx context return requestInfo, nil } // ToGetRequestInformation retrieve a single chat (without its messages). This method supports federation. To access a chat, at least one chat member must belong to the tenant the request initiated from. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsChatItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsChatItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -204,6 +214,7 @@ func (m *ItemChatsChatItemRequestBuilder) ToGetRequestInformation(ctx context.Co return requestInfo, nil } // ToPatchRequestInformation update the navigation property chats in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsChatItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Chatable, requestConfiguration *ItemChatsChatItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -224,6 +235,7 @@ func (m *ItemChatsChatItemRequestBuilder) UnhideForUser()(*ItemChatsItemUnhideFo return NewItemChatsItemUnhideForUserRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsChatItemRequestBuilder when successful func (m *ItemChatsChatItemRequestBuilder) WithUrl(rawUrl string)(*ItemChatsChatItemRequestBuilder) { return NewItemChatsChatItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_count_request_builder.go b/users/item_chats_count_request_builder.go index 32bfdc59ad7..c019c4ed91a 100644 --- a/users/item_chats_count_request_builder.go +++ b/users/item_chats_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemChatsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7dae return NewItemChatsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChatsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemChatsCountRequestBuilder) Get(ctx context.Context, requestConfigura return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemChatsCountRequestBuilder) ToGetRequestInformation(ctx context.Conte return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsCountRequestBuilder when successful func (m *ItemChatsCountRequestBuilder) WithUrl(rawUrl string)(*ItemChatsCountRequestBuilder) { return NewItemChatsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_get_all_messages_request_builder.go b/users/item_chats_get_all_messages_request_builder.go index 04868839b31..238c843b3a7 100644 --- a/users/item_chats_get_all_messages_request_builder.go +++ b/users/item_chats_get_all_messages_request_builder.go @@ -78,6 +78,7 @@ func (m *ItemChatsGetAllMessagesRequestBuilder) Get(ctx context.Context, request return res.(ItemChatsGetAllMessagesResponseable), nil } // GetAsGetAllMessagesGetResponse get all messages from all chats that a user is a participant in, including one-on-one chats, group chats, and meeting chats. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemChatsGetAllMessagesGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -101,6 +102,7 @@ func (m *ItemChatsGetAllMessagesRequestBuilder) GetAsGetAllMessagesGetResponse(c return res.(ItemChatsGetAllMessagesGetResponseable), nil } // ToGetRequestInformation get all messages from all chats that a user is a participant in, including one-on-one chats, group chats, and meeting chats. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsGetAllMessagesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsGetAllMessagesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -115,6 +117,7 @@ func (m *ItemChatsGetAllMessagesRequestBuilder) ToGetRequestInformation(ctx cont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsGetAllMessagesRequestBuilder when successful func (m *ItemChatsGetAllMessagesRequestBuilder) WithUrl(rawUrl string)(*ItemChatsGetAllMessagesRequestBuilder) { return NewItemChatsGetAllMessagesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_get_all_retained_messages_request_builder.go b/users/item_chats_get_all_retained_messages_request_builder.go index 389334c85b7..0c960d1e683 100644 --- a/users/item_chats_get_all_retained_messages_request_builder.go +++ b/users/item_chats_get_all_retained_messages_request_builder.go @@ -76,6 +76,7 @@ func (m *ItemChatsGetAllRetainedMessagesRequestBuilder) Get(ctx context.Context, return res.(ItemChatsGetAllRetainedMessagesResponseable), nil } // GetAsGetAllRetainedMessagesGetResponse get all retained messages from all chats that a user is a participant in, including one-on-one chats, group chats, and meeting chats. To learn more about how to use the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemChatsGetAllRetainedMessagesGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -99,6 +100,7 @@ func (m *ItemChatsGetAllRetainedMessagesRequestBuilder) GetAsGetAllRetainedMessa return res.(ItemChatsGetAllRetainedMessagesGetResponseable), nil } // ToGetRequestInformation get all retained messages from all chats that a user is a participant in, including one-on-one chats, group chats, and meeting chats. To learn more about how to use the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // 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) @@ -113,6 +115,7 @@ func (m *ItemChatsGetAllRetainedMessagesRequestBuilder) ToGetRequestInformation( return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsGetAllRetainedMessagesRequestBuilder when successful func (m *ItemChatsGetAllRetainedMessagesRequestBuilder) WithUrl(rawUrl string)(*ItemChatsGetAllRetainedMessagesRequestBuilder) { return NewItemChatsGetAllRetainedMessagesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_complete_migration_request_builder.go b/users/item_chats_item_complete_migration_request_builder.go new file mode 100644 index 00000000000..4000fc0ad12 --- /dev/null +++ b/users/item_chats_item_complete_migration_request_builder.go @@ -0,0 +1,67 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemChatsItemCompleteMigrationRequestBuilder provides operations to call the completeMigration method. +type ItemChatsItemCompleteMigrationRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemChatsItemCompleteMigrationRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemChatsItemCompleteMigrationRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemChatsItemCompleteMigrationRequestBuilderInternal instantiates a new ItemChatsItemCompleteMigrationRequestBuilder and sets the default values. +func NewItemChatsItemCompleteMigrationRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemChatsItemCompleteMigrationRequestBuilder) { + m := &ItemChatsItemCompleteMigrationRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/completeMigration", pathParameters), + } + return m +} +// NewItemChatsItemCompleteMigrationRequestBuilder instantiates a new ItemChatsItemCompleteMigrationRequestBuilder and sets the default values. +func NewItemChatsItemCompleteMigrationRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemChatsItemCompleteMigrationRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemChatsItemCompleteMigrationRequestBuilderInternal(urlParams, requestAdapter) +} +// Post invoke action completeMigration +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a ODataError error when the service returns a 4XX or 5XX status code +func (m *ItemChatsItemCompleteMigrationRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemChatsItemCompleteMigrationRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation invoke action completeMigration +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemChatsItemCompleteMigrationRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemCompleteMigrationRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemChatsItemCompleteMigrationRequestBuilder when successful +func (m *ItemChatsItemCompleteMigrationRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemCompleteMigrationRequestBuilder) { + return NewItemChatsItemCompleteMigrationRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_chats_item_hide_for_user_request_builder.go b/users/item_chats_item_hide_for_user_request_builder.go index 75abb0cc0b0..ce1e460207d 100644 --- a/users/item_chats_item_hide_for_user_request_builder.go +++ b/users/item_chats_item_hide_for_user_request_builder.go @@ -31,6 +31,7 @@ func NewItemChatsItemHideForUserRequestBuilder(rawUrl string, requestAdapter i2a return NewItemChatsItemHideForUserRequestBuilderInternal(urlParams, requestAdapter) } // Post hide a chat for a user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemChatsItemHideForUserRequestBuilder) Post(ctx context.Context, body return nil } // ToPostRequestInformation hide a chat for a user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemHideForUserRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemChatsItemHideForUserPostRequestBodyable, requestConfiguration *ItemChatsItemHideForUserRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemChatsItemHideForUserRequestBuilder) ToPostRequestInformation(ctx co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemHideForUserRequestBuilder when successful func (m *ItemChatsItemHideForUserRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemHideForUserRequestBuilder) { return NewItemChatsItemHideForUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_installed_apps_count_request_builder.go b/users/item_chats_item_installed_apps_count_request_builder.go index e6368fc82f2..2edc4a74e24 100644 --- a/users/item_chats_item_installed_apps_count_request_builder.go +++ b/users/item_chats_item_installed_apps_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemChatsItemInstalledAppsCountRequestBuilder(rawUrl string, requestAdap return NewItemChatsItemInstalledAppsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemInstalledAppsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChatsItemInstalledAppsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemChatsItemInstalledAppsCountRequestBuilder) Get(ctx context.Context, return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemInstalledAppsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemInstalledAppsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemChatsItemInstalledAppsCountRequestBuilder) ToGetRequestInformation( return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemInstalledAppsCountRequestBuilder when successful func (m *ItemChatsItemInstalledAppsCountRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemInstalledAppsCountRequestBuilder) { return NewItemChatsItemInstalledAppsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_installed_apps_item_teams_app_definition_request_builder.go b/users/item_chats_item_installed_apps_item_teams_app_definition_request_builder.go index 7ddd7a730f0..c026328bf61 100644 --- a/users/item_chats_item_installed_apps_item_teams_app_definition_request_builder.go +++ b/users/item_chats_item_installed_apps_item_teams_app_definition_request_builder.go @@ -41,6 +41,7 @@ func NewItemChatsItemInstalledAppsItemTeamsAppDefinitionRequestBuilder(rawUrl st return NewItemChatsItemInstalledAppsItemTeamsAppDefinitionRequestBuilderInternal(urlParams, requestAdapter) } // Get the details of this version of the app. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a TeamsAppDefinitionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemInstalledAppsItemTeamsAppDefinitionRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChatsItemInstalledAppsItemTeamsAppDefinitionRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsAppDefinitionable, error) { @@ -61,6 +62,7 @@ func (m *ItemChatsItemInstalledAppsItemTeamsAppDefinitionRequestBuilder) Get(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsAppDefinitionable), nil } // ToGetRequestInformation the details of this version of the app. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemInstalledAppsItemTeamsAppDefinitionRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemInstalledAppsItemTeamsAppDefinitionRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemChatsItemInstalledAppsItemTeamsAppDefinitionRequestBuilder) ToGetRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemInstalledAppsItemTeamsAppDefinitionRequestBuilder when successful func (m *ItemChatsItemInstalledAppsItemTeamsAppDefinitionRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemInstalledAppsItemTeamsAppDefinitionRequestBuilder) { return NewItemChatsItemInstalledAppsItemTeamsAppDefinitionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_installed_apps_item_teams_app_request_builder.go b/users/item_chats_item_installed_apps_item_teams_app_request_builder.go index 085048d7ffb..4693c9f9faa 100644 --- a/users/item_chats_item_installed_apps_item_teams_app_request_builder.go +++ b/users/item_chats_item_installed_apps_item_teams_app_request_builder.go @@ -41,6 +41,7 @@ func NewItemChatsItemInstalledAppsItemTeamsAppRequestBuilder(rawUrl string, requ return NewItemChatsItemInstalledAppsItemTeamsAppRequestBuilderInternal(urlParams, requestAdapter) } // Get the app that is installed. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a TeamsAppable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemInstalledAppsItemTeamsAppRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChatsItemInstalledAppsItemTeamsAppRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsAppable, error) { @@ -61,6 +62,7 @@ func (m *ItemChatsItemInstalledAppsItemTeamsAppRequestBuilder) Get(ctx context.C return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsAppable), nil } // ToGetRequestInformation the app that is installed. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemInstalledAppsItemTeamsAppRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemInstalledAppsItemTeamsAppRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemChatsItemInstalledAppsItemTeamsAppRequestBuilder) ToGetRequestInfor return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemInstalledAppsItemTeamsAppRequestBuilder when successful func (m *ItemChatsItemInstalledAppsItemTeamsAppRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemInstalledAppsItemTeamsAppRequestBuilder) { return NewItemChatsItemInstalledAppsItemTeamsAppRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_installed_apps_item_upgrade_request_builder.go b/users/item_chats_item_installed_apps_item_upgrade_request_builder.go index 2650e2b5ca0..a7f180cd9f8 100644 --- a/users/item_chats_item_installed_apps_item_upgrade_request_builder.go +++ b/users/item_chats_item_installed_apps_item_upgrade_request_builder.go @@ -31,6 +31,7 @@ func NewItemChatsItemInstalledAppsItemUpgradeRequestBuilder(rawUrl string, reque return NewItemChatsItemInstalledAppsItemUpgradeRequestBuilderInternal(urlParams, requestAdapter) } // Post upgrade an app installation within a chat. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemChatsItemInstalledAppsItemUpgradeRequestBuilder) Post(ctx context.C return nil } // ToPostRequestInformation upgrade an app installation within a chat. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemInstalledAppsItemUpgradeRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemChatsItemInstalledAppsItemUpgradePostRequestBodyable, requestConfiguration *ItemChatsItemInstalledAppsItemUpgradeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemChatsItemInstalledAppsItemUpgradeRequestBuilder) ToPostRequestInfor return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemInstalledAppsItemUpgradeRequestBuilder when successful func (m *ItemChatsItemInstalledAppsItemUpgradeRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemInstalledAppsItemUpgradeRequestBuilder) { return NewItemChatsItemInstalledAppsItemUpgradeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_installed_apps_request_builder.go b/users/item_chats_item_installed_apps_request_builder.go index 41a53e138b2..20302214f66 100644 --- a/users/item_chats_item_installed_apps_request_builder.go +++ b/users/item_chats_item_installed_apps_request_builder.go @@ -47,6 +47,7 @@ type ItemChatsItemInstalledAppsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByTeamsAppInstallationId provides operations to manage the installedApps property of the microsoft.graph.chat entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemInstalledAppsTeamsAppInstallationItemRequestBuilder when successful func (m *ItemChatsItemInstalledAppsRequestBuilder) ByTeamsAppInstallationId(teamsAppInstallationId string)(*ItemChatsItemInstalledAppsTeamsAppInstallationItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemChatsItemInstalledAppsRequestBuilder) Count()(*ItemChatsItemInstall return NewItemChatsItemInstalledAppsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get a collection of all the apps in the chat. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a TeamsAppInstallationCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemInstalledAppsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChatsItemInstalledAppsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsAppInstallationCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemChatsItemInstalledAppsRequestBuilder) Get(ctx context.Context, requ return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsAppInstallationCollectionResponseable), nil } // Post create new navigation property to installedApps for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a TeamsAppInstallationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemInstalledAppsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsAppInstallationable, requestConfiguration *ItemChatsItemInstalledAppsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsAppInstallationable, error) { @@ -117,6 +120,7 @@ func (m *ItemChatsItemInstalledAppsRequestBuilder) Post(ctx context.Context, bod return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsAppInstallationable), nil } // ToGetRequestInformation a collection of all the apps in the chat. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemInstalledAppsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemInstalledAppsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemChatsItemInstalledAppsRequestBuilder) ToGetRequestInformation(ctx c return requestInfo, nil } // ToPostRequestInformation create new navigation property to installedApps for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemInstalledAppsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsAppInstallationable, requestConfiguration *ItemChatsItemInstalledAppsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemChatsItemInstalledAppsRequestBuilder) ToPostRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemInstalledAppsRequestBuilder when successful func (m *ItemChatsItemInstalledAppsRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemInstalledAppsRequestBuilder) { return NewItemChatsItemInstalledAppsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_installed_apps_teams_app_installation_item_request_builder.go b/users/item_chats_item_installed_apps_teams_app_installation_item_request_builder.go index cdda12c56e9..1e1db336897 100644 --- a/users/item_chats_item_installed_apps_teams_app_installation_item_request_builder.go +++ b/users/item_chats_item_installed_apps_teams_app_installation_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemChatsItemInstalledAppsTeamsAppInstallationItemRequestBuilder(rawUrl return NewItemChatsItemInstalledAppsTeamsAppInstallationItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property installedApps for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemInstalledAppsTeamsAppInstallationItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemChatsItemInstalledAppsTeamsAppInstallationItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemChatsItemInstalledAppsTeamsAppInstallationItemRequestBuilder) Delet return nil } // Get a collection of all the apps in the chat. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a TeamsAppInstallationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemInstalledAppsTeamsAppInstallationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChatsItemInstalledAppsTeamsAppInstallationItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsAppInstallationable, error) { @@ -91,6 +93,7 @@ func (m *ItemChatsItemInstalledAppsTeamsAppInstallationItemRequestBuilder) Get(c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsAppInstallationable), nil } // Patch update the navigation property installedApps in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a TeamsAppInstallationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemInstalledAppsTeamsAppInstallationItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsAppInstallationable, requestConfiguration *ItemChatsItemInstalledAppsTeamsAppInstallationItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsAppInstallationable, error) { @@ -121,6 +124,7 @@ func (m *ItemChatsItemInstalledAppsTeamsAppInstallationItemRequestBuilder) Teams return NewItemChatsItemInstalledAppsItemTeamsAppDefinitionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property installedApps for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemInstalledAppsTeamsAppInstallationItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemInstalledAppsTeamsAppInstallationItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -132,6 +136,7 @@ func (m *ItemChatsItemInstalledAppsTeamsAppInstallationItemRequestBuilder) ToDel return requestInfo, nil } // ToGetRequestInformation a collection of all the apps in the chat. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemInstalledAppsTeamsAppInstallationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemInstalledAppsTeamsAppInstallationItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemChatsItemInstalledAppsTeamsAppInstallationItemRequestBuilder) ToGet return requestInfo, nil } // ToPatchRequestInformation update the navigation property installedApps in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemInstalledAppsTeamsAppInstallationItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsAppInstallationable, requestConfiguration *ItemChatsItemInstalledAppsTeamsAppInstallationItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -166,6 +172,7 @@ func (m *ItemChatsItemInstalledAppsTeamsAppInstallationItemRequestBuilder) Upgra return NewItemChatsItemInstalledAppsItemUpgradeRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemInstalledAppsTeamsAppInstallationItemRequestBuilder when successful func (m *ItemChatsItemInstalledAppsTeamsAppInstallationItemRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemInstalledAppsTeamsAppInstallationItemRequestBuilder) { return NewItemChatsItemInstalledAppsTeamsAppInstallationItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_last_message_preview_request_builder.go b/users/item_chats_item_last_message_preview_request_builder.go index 2fe93baca5f..c2dfbf4c2da 100644 --- a/users/item_chats_item_last_message_preview_request_builder.go +++ b/users/item_chats_item_last_message_preview_request_builder.go @@ -55,6 +55,7 @@ func NewItemChatsItemLastMessagePreviewRequestBuilder(rawUrl string, requestAdap return NewItemChatsItemLastMessagePreviewRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property lastMessagePreview for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemLastMessagePreviewRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemChatsItemLastMessagePreviewRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemChatsItemLastMessagePreviewRequestBuilder) Delete(ctx context.Conte return nil } // Get preview of the last message sent in the chat. Null if no messages are sent in the chat. Currently, only the list chats operation supports this property. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ChatMessageInfoable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemLastMessagePreviewRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChatsItemLastMessagePreviewRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageInfoable, error) { @@ -91,6 +93,7 @@ func (m *ItemChatsItemLastMessagePreviewRequestBuilder) Get(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageInfoable), nil } // Patch update the navigation property lastMessagePreview in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ChatMessageInfoable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemLastMessagePreviewRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageInfoable, requestConfiguration *ItemChatsItemLastMessagePreviewRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageInfoable, error) { @@ -111,6 +114,7 @@ func (m *ItemChatsItemLastMessagePreviewRequestBuilder) Patch(ctx context.Contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageInfoable), nil } // ToDeleteRequestInformation delete navigation property lastMessagePreview for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemLastMessagePreviewRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemLastMessagePreviewRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemChatsItemLastMessagePreviewRequestBuilder) ToDeleteRequestInformati return requestInfo, nil } // ToGetRequestInformation preview of the last message sent in the chat. Null if no messages are sent in the chat. Currently, only the list chats operation supports this property. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemLastMessagePreviewRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemLastMessagePreviewRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemChatsItemLastMessagePreviewRequestBuilder) ToGetRequestInformation( return requestInfo, nil } // ToPatchRequestInformation update the navigation property lastMessagePreview in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemLastMessagePreviewRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageInfoable, requestConfiguration *ItemChatsItemLastMessagePreviewRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemChatsItemLastMessagePreviewRequestBuilder) ToPatchRequestInformatio return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemLastMessagePreviewRequestBuilder when successful func (m *ItemChatsItemLastMessagePreviewRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemLastMessagePreviewRequestBuilder) { return NewItemChatsItemLastMessagePreviewRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_mark_chat_read_for_user_request_builder.go b/users/item_chats_item_mark_chat_read_for_user_request_builder.go index 94d97bb2f8d..70cd33265be 100644 --- a/users/item_chats_item_mark_chat_read_for_user_request_builder.go +++ b/users/item_chats_item_mark_chat_read_for_user_request_builder.go @@ -31,6 +31,7 @@ func NewItemChatsItemMarkChatReadForUserRequestBuilder(rawUrl string, requestAda return NewItemChatsItemMarkChatReadForUserRequestBuilderInternal(urlParams, requestAdapter) } // Post mark a chat as read for a user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemChatsItemMarkChatReadForUserRequestBuilder) Post(ctx context.Contex return nil } // ToPostRequestInformation mark a chat as read for a user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMarkChatReadForUserRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemChatsItemMarkChatReadForUserPostRequestBodyable, requestConfiguration *ItemChatsItemMarkChatReadForUserRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemChatsItemMarkChatReadForUserRequestBuilder) ToPostRequestInformatio return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemMarkChatReadForUserRequestBuilder when successful func (m *ItemChatsItemMarkChatReadForUserRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemMarkChatReadForUserRequestBuilder) { return NewItemChatsItemMarkChatReadForUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_mark_chat_unread_for_user_request_builder.go b/users/item_chats_item_mark_chat_unread_for_user_request_builder.go index f9d07f2957b..79c1a260226 100644 --- a/users/item_chats_item_mark_chat_unread_for_user_request_builder.go +++ b/users/item_chats_item_mark_chat_unread_for_user_request_builder.go @@ -31,6 +31,7 @@ func NewItemChatsItemMarkChatUnreadForUserRequestBuilder(rawUrl string, requestA return NewItemChatsItemMarkChatUnreadForUserRequestBuilderInternal(urlParams, requestAdapter) } // Post mark a chat as unread for a user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemChatsItemMarkChatUnreadForUserRequestBuilder) Post(ctx context.Cont return nil } // ToPostRequestInformation mark a chat as unread for a user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMarkChatUnreadForUserRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemChatsItemMarkChatUnreadForUserPostRequestBodyable, requestConfiguration *ItemChatsItemMarkChatUnreadForUserRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemChatsItemMarkChatUnreadForUserRequestBuilder) ToPostRequestInformat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemMarkChatUnreadForUserRequestBuilder when successful func (m *ItemChatsItemMarkChatUnreadForUserRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemMarkChatUnreadForUserRequestBuilder) { return NewItemChatsItemMarkChatUnreadForUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_members_add_request_builder.go b/users/item_chats_item_members_add_request_builder.go index 4b03852b271..ce30054b630 100644 --- a/users/item_chats_item_members_add_request_builder.go +++ b/users/item_chats_item_members_add_request_builder.go @@ -55,6 +55,7 @@ func (m *ItemChatsItemMembersAddRequestBuilder) Post(ctx context.Context, body I return res.(ItemChatsItemMembersAddResponseable), nil } // PostAsAddPostResponse add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemChatsItemMembersAddPostResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -78,6 +79,7 @@ func (m *ItemChatsItemMembersAddRequestBuilder) PostAsAddPostResponse(ctx contex return res.(ItemChatsItemMembersAddPostResponseable), nil } // ToPostRequestInformation add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMembersAddRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemChatsItemMembersAddPostRequestBodyable, requestConfiguration *ItemChatsItemMembersAddRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -93,6 +95,7 @@ func (m *ItemChatsItemMembersAddRequestBuilder) ToPostRequestInformation(ctx con return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemMembersAddRequestBuilder when successful func (m *ItemChatsItemMembersAddRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemMembersAddRequestBuilder) { return NewItemChatsItemMembersAddRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_members_conversation_member_item_request_builder.go b/users/item_chats_item_members_conversation_member_item_request_builder.go index 09524d3cef3..3fe8757cd32 100644 --- a/users/item_chats_item_members_conversation_member_item_request_builder.go +++ b/users/item_chats_item_members_conversation_member_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemChatsItemMembersConversationMemberItemRequestBuilder(rawUrl string, return NewItemChatsItemMembersConversationMemberItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property members for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemMembersConversationMemberItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemChatsItemMembersConversationMemberItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemChatsItemMembersConversationMemberItemRequestBuilder) Delete(ctx co return nil } // Get a collection of all the members in the chat. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ConversationMemberable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemMembersConversationMemberItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChatsItemMembersConversationMemberItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { @@ -91,6 +93,7 @@ func (m *ItemChatsItemMembersConversationMemberItemRequestBuilder) Get(ctx conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil } // Patch update the navigation property members in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ConversationMemberable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemMembersConversationMemberItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemChatsItemMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { @@ -111,6 +114,7 @@ func (m *ItemChatsItemMembersConversationMemberItemRequestBuilder) Patch(ctx con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil } // ToDeleteRequestInformation delete navigation property members for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMembersConversationMemberItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemMembersConversationMemberItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemChatsItemMembersConversationMemberItemRequestBuilder) ToDeleteReque return requestInfo, nil } // ToGetRequestInformation a collection of all the members in the chat. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMembersConversationMemberItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemMembersConversationMemberItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemChatsItemMembersConversationMemberItemRequestBuilder) ToGetRequestI return requestInfo, nil } // ToPatchRequestInformation update the navigation property members in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMembersConversationMemberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemChatsItemMembersConversationMemberItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemChatsItemMembersConversationMemberItemRequestBuilder) ToPatchReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemMembersConversationMemberItemRequestBuilder when successful func (m *ItemChatsItemMembersConversationMemberItemRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemMembersConversationMemberItemRequestBuilder) { return NewItemChatsItemMembersConversationMemberItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_members_count_request_builder.go b/users/item_chats_item_members_count_request_builder.go index 0bef38b330f..e76cbef1c1a 100644 --- a/users/item_chats_item_members_count_request_builder.go +++ b/users/item_chats_item_members_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemChatsItemMembersCountRequestBuilder(rawUrl string, requestAdapter i2 return NewItemChatsItemMembersCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemMembersCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChatsItemMembersCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemChatsItemMembersCountRequestBuilder) Get(ctx context.Context, reque return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMembersCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemMembersCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemChatsItemMembersCountRequestBuilder) ToGetRequestInformation(ctx co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemMembersCountRequestBuilder when successful func (m *ItemChatsItemMembersCountRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemMembersCountRequestBuilder) { return NewItemChatsItemMembersCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_members_request_builder.go b/users/item_chats_item_members_request_builder.go index eb6bfdde0b2..e05f5f31342 100644 --- a/users/item_chats_item_members_request_builder.go +++ b/users/item_chats_item_members_request_builder.go @@ -52,6 +52,7 @@ func (m *ItemChatsItemMembersRequestBuilder) Add()(*ItemChatsItemMembersAddReque return NewItemChatsItemMembersAddRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ByConversationMemberId provides operations to manage the members property of the microsoft.graph.chat entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemMembersConversationMemberItemRequestBuilder when successful func (m *ItemChatsItemMembersRequestBuilder) ByConversationMemberId(conversationMemberId string)(*ItemChatsItemMembersConversationMemberItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemChatsItemMembersRequestBuilder) Count()(*ItemChatsItemMembersCountR return NewItemChatsItemMembersCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get a collection of all the members in the chat. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ConversationMemberCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemMembersRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChatsItemMembersRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemChatsItemMembersRequestBuilder) Get(ctx context.Context, requestCon return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberCollectionResponseable), nil } // Post create new navigation property to members for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ConversationMemberable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemMembersRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemChatsItemMembersRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, error) { @@ -122,6 +125,7 @@ func (m *ItemChatsItemMembersRequestBuilder) Post(ctx context.Context, body ie23 return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable), nil } // ToGetRequestInformation a collection of all the members in the chat. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMembersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemMembersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemChatsItemMembersRequestBuilder) ToGetRequestInformation(ctx context return requestInfo, nil } // ToPostRequestInformation create new navigation property to members for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMembersRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversationMemberable, requestConfiguration *ItemChatsItemMembersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemChatsItemMembersRequestBuilder) ToPostRequestInformation(ctx contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemMembersRequestBuilder when successful func (m *ItemChatsItemMembersRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemMembersRequestBuilder) { return NewItemChatsItemMembersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_messages_chat_message_item_request_builder.go b/users/item_chats_item_messages_chat_message_item_request_builder.go index 722c1057852..c1481078470 100644 --- a/users/item_chats_item_messages_chat_message_item_request_builder.go +++ b/users/item_chats_item_messages_chat_message_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemChatsItemMessagesChatMessageItemRequestBuilder(rawUrl string, reques return NewItemChatsItemMessagesChatMessageItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property messages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemMessagesChatMessageItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemChatsItemMessagesChatMessageItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemChatsItemMessagesChatMessageItemRequestBuilder) Delete(ctx context. return nil } // Get a collection of all the messages in the chat. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ChatMessageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemMessagesChatMessageItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChatsItemMessagesChatMessageItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, error) { @@ -96,6 +98,7 @@ func (m *ItemChatsItemMessagesChatMessageItemRequestBuilder) HostedContents()(*I return NewItemChatsItemMessagesItemHostedContentsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property messages in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ChatMessageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemMessagesChatMessageItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *ItemChatsItemMessagesChatMessageItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, error) { @@ -131,6 +134,7 @@ func (m *ItemChatsItemMessagesChatMessageItemRequestBuilder) SoftDelete()(*ItemC return NewItemChatsItemMessagesItemSoftDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property messages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMessagesChatMessageItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemMessagesChatMessageItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -142,6 +146,7 @@ func (m *ItemChatsItemMessagesChatMessageItemRequestBuilder) ToDeleteRequestInfo return requestInfo, nil } // ToGetRequestInformation a collection of all the messages in the chat. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMessagesChatMessageItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemMessagesChatMessageItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +161,7 @@ func (m *ItemChatsItemMessagesChatMessageItemRequestBuilder) ToGetRequestInforma return requestInfo, nil } // ToPatchRequestInformation update the navigation property messages in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMessagesChatMessageItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *ItemChatsItemMessagesChatMessageItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -181,6 +187,7 @@ func (m *ItemChatsItemMessagesChatMessageItemRequestBuilder) UnsetReaction()(*It return NewItemChatsItemMessagesItemUnsetReactionRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemMessagesChatMessageItemRequestBuilder when successful func (m *ItemChatsItemMessagesChatMessageItemRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemMessagesChatMessageItemRequestBuilder) { return NewItemChatsItemMessagesChatMessageItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_messages_count_request_builder.go b/users/item_chats_item_messages_count_request_builder.go index 61cff976289..279e68b2426 100644 --- a/users/item_chats_item_messages_count_request_builder.go +++ b/users/item_chats_item_messages_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemChatsItemMessagesCountRequestBuilder(rawUrl string, requestAdapter i return NewItemChatsItemMessagesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemMessagesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChatsItemMessagesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemChatsItemMessagesCountRequestBuilder) Get(ctx context.Context, requ return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMessagesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemMessagesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemChatsItemMessagesCountRequestBuilder) ToGetRequestInformation(ctx c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemMessagesCountRequestBuilder when successful func (m *ItemChatsItemMessagesCountRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemMessagesCountRequestBuilder) { return NewItemChatsItemMessagesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_messages_delta_request_builder.go b/users/item_chats_item_messages_delta_request_builder.go index 15a813d4edc..25f773ed6f2 100644 --- a/users/item_chats_item_messages_delta_request_builder.go +++ b/users/item_chats_item_messages_delta_request_builder.go @@ -76,6 +76,7 @@ func (m *ItemChatsItemMessagesDeltaRequestBuilder) Get(ctx context.Context, requ return res.(ItemChatsItemMessagesDeltaResponseable), nil } // GetAsDeltaGetResponse retrieve the list of messages (without the replies) in a channel of a team. By using delta query, you can get new or updated messages in a channel. Delta query supports both full synchronization that retrieves all the messages in the specified channel, and incremental synchronization that retrieves those messages that have been added or changed in the channel since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that messages view periodically. To get the replies for a message, use the list message replies or the get message reply operation. A GET request with the delta function returns either: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call for that same calendar view. A @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin the to retrieve additional changes (messages changed or posted after acquiring @odata.deltaLink). For more information, see the delta query documentation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemChatsItemMessagesDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -99,6 +100,7 @@ func (m *ItemChatsItemMessagesDeltaRequestBuilder) GetAsDeltaGetResponse(ctx con return res.(ItemChatsItemMessagesDeltaGetResponseable), nil } // ToGetRequestInformation retrieve the list of messages (without the replies) in a channel of a team. By using delta query, you can get new or updated messages in a channel. Delta query supports both full synchronization that retrieves all the messages in the specified channel, and incremental synchronization that retrieves those messages that have been added or changed in the channel since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that messages view periodically. To get the replies for a message, use the list message replies or the get message reply operation. A GET request with the delta function returns either: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call for that same calendar view. A @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin the to retrieve additional changes (messages changed or posted after acquiring @odata.deltaLink). For more information, see the delta query documentation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMessagesDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemMessagesDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,6 +115,7 @@ func (m *ItemChatsItemMessagesDeltaRequestBuilder) ToGetRequestInformation(ctx c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemMessagesDeltaRequestBuilder when successful func (m *ItemChatsItemMessagesDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemMessagesDeltaRequestBuilder) { return NewItemChatsItemMessagesDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_messages_item_hosted_contents_chat_message_hosted_content_item_request_builder.go b/users/item_chats_item_messages_item_hosted_contents_chat_message_hosted_content_item_request_builder.go index 68fde986433..2c1723df679 100644 --- a/users/item_chats_item_messages_item_hosted_contents_chat_message_hosted_content_item_request_builder.go +++ b/users/item_chats_item_messages_item_hosted_contents_chat_message_hosted_content_item_request_builder.go @@ -60,6 +60,7 @@ func (m *ItemChatsItemMessagesItemHostedContentsChatMessageHostedContentItemRequ return NewItemChatsItemMessagesItemHostedContentsItemValueContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Delete delete navigation property hostedContents for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemMessagesItemHostedContentsChatMessageHostedContentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemChatsItemMessagesItemHostedContentsChatMessageHostedContentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -76,6 +77,7 @@ func (m *ItemChatsItemMessagesItemHostedContentsChatMessageHostedContentItemRequ return nil } // Get content in a message hosted by Microsoft Teams - for example, images or code snippets. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ChatMessageHostedContentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemMessagesItemHostedContentsChatMessageHostedContentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChatsItemMessagesItemHostedContentsChatMessageHostedContentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageHostedContentable, error) { @@ -96,6 +98,7 @@ func (m *ItemChatsItemMessagesItemHostedContentsChatMessageHostedContentItemRequ return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageHostedContentable), nil } // Patch update the navigation property hostedContents in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ChatMessageHostedContentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemMessagesItemHostedContentsChatMessageHostedContentItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageHostedContentable, requestConfiguration *ItemChatsItemMessagesItemHostedContentsChatMessageHostedContentItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageHostedContentable, error) { @@ -116,6 +119,7 @@ func (m *ItemChatsItemMessagesItemHostedContentsChatMessageHostedContentItemRequ return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageHostedContentable), nil } // ToDeleteRequestInformation delete navigation property hostedContents for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMessagesItemHostedContentsChatMessageHostedContentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemMessagesItemHostedContentsChatMessageHostedContentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -127,6 +131,7 @@ func (m *ItemChatsItemMessagesItemHostedContentsChatMessageHostedContentItemRequ return requestInfo, nil } // ToGetRequestInformation content in a message hosted by Microsoft Teams - for example, images or code snippets. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMessagesItemHostedContentsChatMessageHostedContentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemMessagesItemHostedContentsChatMessageHostedContentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,6 +146,7 @@ func (m *ItemChatsItemMessagesItemHostedContentsChatMessageHostedContentItemRequ return requestInfo, nil } // ToPatchRequestInformation update the navigation property hostedContents in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMessagesItemHostedContentsChatMessageHostedContentItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageHostedContentable, requestConfiguration *ItemChatsItemMessagesItemHostedContentsChatMessageHostedContentItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +162,7 @@ func (m *ItemChatsItemMessagesItemHostedContentsChatMessageHostedContentItemRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemMessagesItemHostedContentsChatMessageHostedContentItemRequestBuilder when successful func (m *ItemChatsItemMessagesItemHostedContentsChatMessageHostedContentItemRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemMessagesItemHostedContentsChatMessageHostedContentItemRequestBuilder) { return NewItemChatsItemMessagesItemHostedContentsChatMessageHostedContentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_messages_item_hosted_contents_count_request_builder.go b/users/item_chats_item_messages_item_hosted_contents_count_request_builder.go index 778d17bf639..1072c30aa5b 100644 --- a/users/item_chats_item_messages_item_hosted_contents_count_request_builder.go +++ b/users/item_chats_item_messages_item_hosted_contents_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemChatsItemMessagesItemHostedContentsCountRequestBuilder(rawUrl string return NewItemChatsItemMessagesItemHostedContentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemMessagesItemHostedContentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChatsItemMessagesItemHostedContentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemChatsItemMessagesItemHostedContentsCountRequestBuilder) Get(ctx con return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMessagesItemHostedContentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemMessagesItemHostedContentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemChatsItemMessagesItemHostedContentsCountRequestBuilder) ToGetReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemMessagesItemHostedContentsCountRequestBuilder when successful func (m *ItemChatsItemMessagesItemHostedContentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemMessagesItemHostedContentsCountRequestBuilder) { return NewItemChatsItemMessagesItemHostedContentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_messages_item_hosted_contents_item_value_content_request_builder.go b/users/item_chats_item_messages_item_hosted_contents_item_value_content_request_builder.go index 6750587aeb5..2c66fd17bcf 100644 --- a/users/item_chats_item_messages_item_hosted_contents_item_value_content_request_builder.go +++ b/users/item_chats_item_messages_item_hosted_contents_item_value_content_request_builder.go @@ -45,6 +45,7 @@ func NewItemChatsItemMessagesItemHostedContentsItemValueContentRequestBuilder(ra return NewItemChatsItemMessagesItemHostedContentsItemValueContentRequestBuilderInternal(urlParams, requestAdapter) } // Delete the unique identifier for an entity. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemMessagesItemHostedContentsItemValueContentRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemChatsItemMessagesItemHostedContentsItemValueContentRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -61,6 +62,7 @@ func (m *ItemChatsItemMessagesItemHostedContentsItemValueContentRequestBuilder) return nil } // Get the unique identifier for an entity. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemMessagesItemHostedContentsItemValueContentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChatsItemMessagesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration)([]byte, error) { @@ -81,6 +83,7 @@ func (m *ItemChatsItemMessagesItemHostedContentsItemValueContentRequestBuilder) return res.([]byte), nil } // Put the unique identifier for an entity. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemMessagesItemHostedContentsItemValueContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemChatsItemMessagesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration)([]byte, error) { @@ -101,6 +104,7 @@ func (m *ItemChatsItemMessagesItemHostedContentsItemValueContentRequestBuilder) return res.([]byte), nil } // ToDeleteRequestInformation the unique identifier for an entity. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMessagesItemHostedContentsItemValueContentRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemMessagesItemHostedContentsItemValueContentRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -112,6 +116,7 @@ func (m *ItemChatsItemMessagesItemHostedContentsItemValueContentRequestBuilder) return requestInfo, nil } // ToGetRequestInformation the unique identifier for an entity. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMessagesItemHostedContentsItemValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemMessagesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -123,6 +128,7 @@ func (m *ItemChatsItemMessagesItemHostedContentsItemValueContentRequestBuilder) return requestInfo, nil } // ToPutRequestInformation the unique identifier for an entity. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMessagesItemHostedContentsItemValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemChatsItemMessagesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -135,6 +141,7 @@ func (m *ItemChatsItemMessagesItemHostedContentsItemValueContentRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemMessagesItemHostedContentsItemValueContentRequestBuilder when successful func (m *ItemChatsItemMessagesItemHostedContentsItemValueContentRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemMessagesItemHostedContentsItemValueContentRequestBuilder) { return NewItemChatsItemMessagesItemHostedContentsItemValueContentRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_messages_item_hosted_contents_request_builder.go b/users/item_chats_item_messages_item_hosted_contents_request_builder.go index 6a26202d26e..cba02d114f3 100644 --- a/users/item_chats_item_messages_item_hosted_contents_request_builder.go +++ b/users/item_chats_item_messages_item_hosted_contents_request_builder.go @@ -47,6 +47,7 @@ type ItemChatsItemMessagesItemHostedContentsRequestBuilderPostRequestConfigurati Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByChatMessageHostedContentId provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemMessagesItemHostedContentsChatMessageHostedContentItemRequestBuilder when successful func (m *ItemChatsItemMessagesItemHostedContentsRequestBuilder) ByChatMessageHostedContentId(chatMessageHostedContentId string)(*ItemChatsItemMessagesItemHostedContentsChatMessageHostedContentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemChatsItemMessagesItemHostedContentsRequestBuilder) Count()(*ItemCha return NewItemChatsItemMessagesItemHostedContentsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get content in a message hosted by Microsoft Teams - for example, images or code snippets. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ChatMessageHostedContentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemMessagesItemHostedContentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChatsItemMessagesItemHostedContentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageHostedContentCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemChatsItemMessagesItemHostedContentsRequestBuilder) Get(ctx context. return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageHostedContentCollectionResponseable), nil } // Post create new navigation property to hostedContents for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ChatMessageHostedContentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemMessagesItemHostedContentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageHostedContentable, requestConfiguration *ItemChatsItemMessagesItemHostedContentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageHostedContentable, error) { @@ -117,6 +120,7 @@ func (m *ItemChatsItemMessagesItemHostedContentsRequestBuilder) Post(ctx context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageHostedContentable), nil } // ToGetRequestInformation content in a message hosted by Microsoft Teams - for example, images or code snippets. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMessagesItemHostedContentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemMessagesItemHostedContentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemChatsItemMessagesItemHostedContentsRequestBuilder) ToGetRequestInfo return requestInfo, nil } // ToPostRequestInformation create new navigation property to hostedContents for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMessagesItemHostedContentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageHostedContentable, requestConfiguration *ItemChatsItemMessagesItemHostedContentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemChatsItemMessagesItemHostedContentsRequestBuilder) ToPostRequestInf return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemMessagesItemHostedContentsRequestBuilder when successful func (m *ItemChatsItemMessagesItemHostedContentsRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemMessagesItemHostedContentsRequestBuilder) { return NewItemChatsItemMessagesItemHostedContentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_messages_item_replies_chat_message_item_request_builder.go b/users/item_chats_item_messages_item_replies_chat_message_item_request_builder.go index 41f7f0c7189..5d05f7d954b 100644 --- a/users/item_chats_item_messages_item_replies_chat_message_item_request_builder.go +++ b/users/item_chats_item_messages_item_replies_chat_message_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemChatsItemMessagesItemRepliesChatMessageItemRequestBuilder(rawUrl str return NewItemChatsItemMessagesItemRepliesChatMessageItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property replies for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemMessagesItemRepliesChatMessageItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemChatsItemMessagesItemRepliesChatMessageItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemChatsItemMessagesItemRepliesChatMessageItemRequestBuilder) Delete(c return nil } // Get replies for a specified message. Supports $expand for channel messages. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ChatMessageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemMessagesItemRepliesChatMessageItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChatsItemMessagesItemRepliesChatMessageItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, error) { @@ -96,6 +98,7 @@ func (m *ItemChatsItemMessagesItemRepliesChatMessageItemRequestBuilder) HostedCo return NewItemChatsItemMessagesItemRepliesItemHostedContentsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property replies in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ChatMessageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemMessagesItemRepliesChatMessageItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *ItemChatsItemMessagesItemRepliesChatMessageItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, error) { @@ -126,6 +129,7 @@ func (m *ItemChatsItemMessagesItemRepliesChatMessageItemRequestBuilder) SoftDele return NewItemChatsItemMessagesItemRepliesItemSoftDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property replies for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMessagesItemRepliesChatMessageItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemMessagesItemRepliesChatMessageItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -137,6 +141,7 @@ func (m *ItemChatsItemMessagesItemRepliesChatMessageItemRequestBuilder) ToDelete return requestInfo, nil } // ToGetRequestInformation replies for a specified message. Supports $expand for channel messages. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMessagesItemRepliesChatMessageItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemMessagesItemRepliesChatMessageItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemChatsItemMessagesItemRepliesChatMessageItemRequestBuilder) ToGetReq return requestInfo, nil } // ToPatchRequestInformation update the navigation property replies in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMessagesItemRepliesChatMessageItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *ItemChatsItemMessagesItemRepliesChatMessageItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -176,6 +182,7 @@ func (m *ItemChatsItemMessagesItemRepliesChatMessageItemRequestBuilder) UnsetRea return NewItemChatsItemMessagesItemRepliesItemUnsetReactionRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemMessagesItemRepliesChatMessageItemRequestBuilder when successful func (m *ItemChatsItemMessagesItemRepliesChatMessageItemRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemMessagesItemRepliesChatMessageItemRequestBuilder) { return NewItemChatsItemMessagesItemRepliesChatMessageItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_messages_item_replies_count_request_builder.go b/users/item_chats_item_messages_item_replies_count_request_builder.go index fff81b3c315..3cfb2c8bc5a 100644 --- a/users/item_chats_item_messages_item_replies_count_request_builder.go +++ b/users/item_chats_item_messages_item_replies_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemChatsItemMessagesItemRepliesCountRequestBuilder(rawUrl string, reque return NewItemChatsItemMessagesItemRepliesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemMessagesItemRepliesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChatsItemMessagesItemRepliesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemChatsItemMessagesItemRepliesCountRequestBuilder) Get(ctx context.Co return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMessagesItemRepliesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemMessagesItemRepliesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemChatsItemMessagesItemRepliesCountRequestBuilder) ToGetRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemMessagesItemRepliesCountRequestBuilder when successful func (m *ItemChatsItemMessagesItemRepliesCountRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemMessagesItemRepliesCountRequestBuilder) { return NewItemChatsItemMessagesItemRepliesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_messages_item_replies_delta_request_builder.go b/users/item_chats_item_messages_item_replies_delta_request_builder.go index bc70d86177d..5b9b4624fa6 100644 --- a/users/item_chats_item_messages_item_replies_delta_request_builder.go +++ b/users/item_chats_item_messages_item_replies_delta_request_builder.go @@ -76,6 +76,7 @@ func (m *ItemChatsItemMessagesItemRepliesDeltaRequestBuilder) Get(ctx context.Co return res.(ItemChatsItemMessagesItemRepliesDeltaResponseable), nil } // GetAsDeltaGetResponse retrieve the list of messages (without the replies) in a channel of a team. By using delta query, you can get new or updated messages in a channel. Delta query supports both full synchronization that retrieves all the messages in the specified channel, and incremental synchronization that retrieves those messages that have been added or changed in the channel since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that messages view periodically. To get the replies for a message, use the list message replies or the get message reply operation. A GET request with the delta function returns either: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call for that same calendar view. A @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin the to retrieve additional changes (messages changed or posted after acquiring @odata.deltaLink). For more information, see the delta query documentation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemChatsItemMessagesItemRepliesDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -99,6 +100,7 @@ func (m *ItemChatsItemMessagesItemRepliesDeltaRequestBuilder) GetAsDeltaGetRespo return res.(ItemChatsItemMessagesItemRepliesDeltaGetResponseable), nil } // ToGetRequestInformation retrieve the list of messages (without the replies) in a channel of a team. By using delta query, you can get new or updated messages in a channel. Delta query supports both full synchronization that retrieves all the messages in the specified channel, and incremental synchronization that retrieves those messages that have been added or changed in the channel since the last synchronization. Typically, you would do an initial full synchronization, and then get incremental changes to that messages view periodically. To get the replies for a message, use the list message replies or the get message reply operation. A GET request with the delta function returns either: State tokens are opaque to the client. To proceed with a round of change tracking, copy and apply the @odata.nextLink or @odata.deltaLink URL returned from the last GET request to the next delta function call for that same calendar view. A @odata.deltaLink returned in a response signifies that the current round of change tracking is complete. You can save and use the @odata.deltaLink URL when you begin the to retrieve additional changes (messages changed or posted after acquiring @odata.deltaLink). For more information, see the delta query documentation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMessagesItemRepliesDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemMessagesItemRepliesDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,6 +115,7 @@ func (m *ItemChatsItemMessagesItemRepliesDeltaRequestBuilder) ToGetRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemMessagesItemRepliesDeltaRequestBuilder when successful func (m *ItemChatsItemMessagesItemRepliesDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemMessagesItemRepliesDeltaRequestBuilder) { return NewItemChatsItemMessagesItemRepliesDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_messages_item_replies_item_hosted_contents_count_request_builder.go b/users/item_chats_item_messages_item_replies_item_hosted_contents_count_request_builder.go index 5c084a72727..48b0801d570 100644 --- a/users/item_chats_item_messages_item_replies_item_hosted_contents_count_request_builder.go +++ b/users/item_chats_item_messages_item_replies_item_hosted_contents_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemChatsItemMessagesItemRepliesItemHostedContentsCountRequestBuilder(ra return NewItemChatsItemMessagesItemRepliesItemHostedContentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChatsItemMessagesItemRepliesItemHostedContentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsCountRequestBuilder) return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemMessagesItemRepliesItemHostedContentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsCountRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemMessagesItemRepliesItemHostedContentsCountRequestBuilder when successful func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemMessagesItemRepliesItemHostedContentsCountRequestBuilder) { return NewItemChatsItemMessagesItemRepliesItemHostedContentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_messages_item_replies_item_hosted_contents_item_value_content_request_builder.go b/users/item_chats_item_messages_item_replies_item_hosted_contents_item_value_content_request_builder.go index e5edbaea7e6..e9d0a756b2c 100644 --- a/users/item_chats_item_messages_item_replies_item_hosted_contents_item_value_content_request_builder.go +++ b/users/item_chats_item_messages_item_replies_item_hosted_contents_item_value_content_request_builder.go @@ -45,6 +45,7 @@ func NewItemChatsItemMessagesItemRepliesItemHostedContentsItemValueContentReques return NewItemChatsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderInternal(urlParams, requestAdapter) } // Delete the unique identifier for an entity. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemChatsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -61,6 +62,7 @@ func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsItemValueContentReque return nil } // Get the unique identifier for an entity. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChatsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration)([]byte, error) { @@ -81,6 +83,7 @@ func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsItemValueContentReque return res.([]byte), nil } // Put the unique identifier for an entity. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemChatsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration)([]byte, error) { @@ -101,6 +104,7 @@ func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsItemValueContentReque return res.([]byte), nil } // ToDeleteRequestInformation the unique identifier for an entity. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -112,6 +116,7 @@ func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsItemValueContentReque return requestInfo, nil } // ToGetRequestInformation the unique identifier for an entity. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -123,6 +128,7 @@ func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsItemValueContentReque return requestInfo, nil } // ToPutRequestInformation the unique identifier for an entity. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemChatsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -135,6 +141,7 @@ func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsItemValueContentReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder when successful func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder) { return NewItemChatsItemMessagesItemRepliesItemHostedContentsItemValueContentRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_messages_item_replies_item_hosted_contents_request_builder.go b/users/item_chats_item_messages_item_replies_item_hosted_contents_request_builder.go index 8144d05f3ca..9981095fe3d 100644 --- a/users/item_chats_item_messages_item_replies_item_hosted_contents_request_builder.go +++ b/users/item_chats_item_messages_item_replies_item_hosted_contents_request_builder.go @@ -47,6 +47,7 @@ type ItemChatsItemMessagesItemRepliesItemHostedContentsRequestBuilderPostRequest Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByChatMessageHostedContentId provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemMessagesItemRepliesItemHostedContentsChatMessageHostedContentItemRequestBuilder when successful func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsRequestBuilder) ByChatMessageHostedContentId(chatMessageHostedContentId string)(*ItemChatsItemMessagesItemRepliesItemHostedContentsChatMessageHostedContentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsRequestBuilder) Count return NewItemChatsItemMessagesItemRepliesItemHostedContentsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get content in a message hosted by Microsoft Teams - for example, images or code snippets. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ChatMessageHostedContentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChatsItemMessagesItemRepliesItemHostedContentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageHostedContentCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsRequestBuilder) Get(c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageHostedContentCollectionResponseable), nil } // Post create new navigation property to hostedContents for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ChatMessageHostedContentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageHostedContentable, requestConfiguration *ItemChatsItemMessagesItemRepliesItemHostedContentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageHostedContentable, error) { @@ -117,6 +120,7 @@ func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsRequestBuilder) Post( return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageHostedContentable), nil } // ToGetRequestInformation content in a message hosted by Microsoft Teams - for example, images or code snippets. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemMessagesItemRepliesItemHostedContentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsRequestBuilder) ToGet return requestInfo, nil } // ToPostRequestInformation create new navigation property to hostedContents for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageHostedContentable, requestConfiguration *ItemChatsItemMessagesItemRepliesItemHostedContentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsRequestBuilder) ToPos return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemMessagesItemRepliesItemHostedContentsRequestBuilder when successful func (m *ItemChatsItemMessagesItemRepliesItemHostedContentsRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemMessagesItemRepliesItemHostedContentsRequestBuilder) { return NewItemChatsItemMessagesItemRepliesItemHostedContentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_messages_item_replies_item_set_reaction_request_builder.go b/users/item_chats_item_messages_item_replies_item_set_reaction_request_builder.go index 6427767789f..5c1aaf91c2e 100644 --- a/users/item_chats_item_messages_item_replies_item_set_reaction_request_builder.go +++ b/users/item_chats_item_messages_item_replies_item_set_reaction_request_builder.go @@ -31,6 +31,7 @@ func NewItemChatsItemMessagesItemRepliesItemSetReactionRequestBuilder(rawUrl str return NewItemChatsItemMessagesItemRepliesItemSetReactionRequestBuilderInternal(urlParams, requestAdapter) } // Post invoke action setReaction +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemMessagesItemRepliesItemSetReactionRequestBuilder) Post(ctx context.Context, body ItemChatsItemMessagesItemRepliesItemSetReactionPostRequestBodyable, requestConfiguration *ItemChatsItemMessagesItemRepliesItemSetReactionRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemChatsItemMessagesItemRepliesItemSetReactionRequestBuilder) Post(ctx return nil } // ToPostRequestInformation invoke action setReaction +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMessagesItemRepliesItemSetReactionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemChatsItemMessagesItemRepliesItemSetReactionPostRequestBodyable, requestConfiguration *ItemChatsItemMessagesItemRepliesItemSetReactionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -62,6 +64,7 @@ func (m *ItemChatsItemMessagesItemRepliesItemSetReactionRequestBuilder) ToPostRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemMessagesItemRepliesItemSetReactionRequestBuilder when successful func (m *ItemChatsItemMessagesItemRepliesItemSetReactionRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemMessagesItemRepliesItemSetReactionRequestBuilder) { return NewItemChatsItemMessagesItemRepliesItemSetReactionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_messages_item_replies_item_soft_delete_request_builder.go b/users/item_chats_item_messages_item_replies_item_soft_delete_request_builder.go index 8291c63445c..0a54ff48e2b 100644 --- a/users/item_chats_item_messages_item_replies_item_soft_delete_request_builder.go +++ b/users/item_chats_item_messages_item_replies_item_soft_delete_request_builder.go @@ -31,6 +31,7 @@ func NewItemChatsItemMessagesItemRepliesItemSoftDeleteRequestBuilder(rawUrl stri return NewItemChatsItemMessagesItemRepliesItemSoftDeleteRequestBuilderInternal(urlParams, requestAdapter) } // Post delete a single chatMessage or a chat message reply in a channel or a chat. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemChatsItemMessagesItemRepliesItemSoftDeleteRequestBuilder) Post(ctx return nil } // ToPostRequestInformation delete a single chatMessage or a chat message reply in a channel or a chat. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMessagesItemRepliesItemSoftDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemMessagesItemRepliesItemSoftDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemChatsItemMessagesItemRepliesItemSoftDeleteRequestBuilder) ToPostReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemMessagesItemRepliesItemSoftDeleteRequestBuilder when successful func (m *ItemChatsItemMessagesItemRepliesItemSoftDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemMessagesItemRepliesItemSoftDeleteRequestBuilder) { return NewItemChatsItemMessagesItemRepliesItemSoftDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_messages_item_replies_item_undo_soft_delete_request_builder.go b/users/item_chats_item_messages_item_replies_item_undo_soft_delete_request_builder.go index d45df0b3f54..404206ad241 100644 --- a/users/item_chats_item_messages_item_replies_item_undo_soft_delete_request_builder.go +++ b/users/item_chats_item_messages_item_replies_item_undo_soft_delete_request_builder.go @@ -31,6 +31,7 @@ func NewItemChatsItemMessagesItemRepliesItemUndoSoftDeleteRequestBuilder(rawUrl return NewItemChatsItemMessagesItemRepliesItemUndoSoftDeleteRequestBuilderInternal(urlParams, requestAdapter) } // Post undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemChatsItemMessagesItemRepliesItemUndoSoftDeleteRequestBuilder) Post( return nil } // ToPostRequestInformation undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMessagesItemRepliesItemUndoSoftDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemMessagesItemRepliesItemUndoSoftDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemChatsItemMessagesItemRepliesItemUndoSoftDeleteRequestBuilder) ToPos return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemMessagesItemRepliesItemUndoSoftDeleteRequestBuilder when successful func (m *ItemChatsItemMessagesItemRepliesItemUndoSoftDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemMessagesItemRepliesItemUndoSoftDeleteRequestBuilder) { return NewItemChatsItemMessagesItemRepliesItemUndoSoftDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_messages_item_replies_item_unset_reaction_request_builder.go b/users/item_chats_item_messages_item_replies_item_unset_reaction_request_builder.go index 15ea6bf74db..7a4fb797f1e 100644 --- a/users/item_chats_item_messages_item_replies_item_unset_reaction_request_builder.go +++ b/users/item_chats_item_messages_item_replies_item_unset_reaction_request_builder.go @@ -31,6 +31,7 @@ func NewItemChatsItemMessagesItemRepliesItemUnsetReactionRequestBuilder(rawUrl s return NewItemChatsItemMessagesItemRepliesItemUnsetReactionRequestBuilderInternal(urlParams, requestAdapter) } // Post invoke action unsetReaction +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemMessagesItemRepliesItemUnsetReactionRequestBuilder) Post(ctx context.Context, body ItemChatsItemMessagesItemRepliesItemUnsetReactionPostRequestBodyable, requestConfiguration *ItemChatsItemMessagesItemRepliesItemUnsetReactionRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemChatsItemMessagesItemRepliesItemUnsetReactionRequestBuilder) Post(c return nil } // ToPostRequestInformation invoke action unsetReaction +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMessagesItemRepliesItemUnsetReactionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemChatsItemMessagesItemRepliesItemUnsetReactionPostRequestBodyable, requestConfiguration *ItemChatsItemMessagesItemRepliesItemUnsetReactionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -62,6 +64,7 @@ func (m *ItemChatsItemMessagesItemRepliesItemUnsetReactionRequestBuilder) ToPost return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemMessagesItemRepliesItemUnsetReactionRequestBuilder when successful func (m *ItemChatsItemMessagesItemRepliesItemUnsetReactionRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemMessagesItemRepliesItemUnsetReactionRequestBuilder) { return NewItemChatsItemMessagesItemRepliesItemUnsetReactionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_messages_item_replies_request_builder.go b/users/item_chats_item_messages_item_replies_request_builder.go index 515447d8b95..1583a1147bf 100644 --- a/users/item_chats_item_messages_item_replies_request_builder.go +++ b/users/item_chats_item_messages_item_replies_request_builder.go @@ -47,6 +47,7 @@ type ItemChatsItemMessagesItemRepliesRequestBuilderPostRequestConfiguration stru Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByChatMessageId1 provides operations to manage the replies property of the microsoft.graph.chatMessage entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemMessagesItemRepliesChatMessageItemRequestBuilder when successful func (m *ItemChatsItemMessagesItemRepliesRequestBuilder) ByChatMessageId1(chatMessageId1 string)(*ItemChatsItemMessagesItemRepliesChatMessageItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemChatsItemMessagesItemRepliesRequestBuilder) Delta()(*ItemChatsItemM return NewItemChatsItemMessagesItemRepliesDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get replies for a specified message. Supports $expand for channel messages. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ChatMessageCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemMessagesItemRepliesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChatsItemMessagesItemRepliesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemChatsItemMessagesItemRepliesRequestBuilder) Get(ctx context.Context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageCollectionResponseable), nil } // Post create new navigation property to replies for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ChatMessageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemMessagesItemRepliesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *ItemChatsItemMessagesItemRepliesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, error) { @@ -122,6 +125,7 @@ func (m *ItemChatsItemMessagesItemRepliesRequestBuilder) Post(ctx context.Contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable), nil } // ToGetRequestInformation replies for a specified message. Supports $expand for channel messages. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMessagesItemRepliesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemMessagesItemRepliesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemChatsItemMessagesItemRepliesRequestBuilder) ToGetRequestInformation return requestInfo, nil } // ToPostRequestInformation create new navigation property to replies for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMessagesItemRepliesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *ItemChatsItemMessagesItemRepliesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemChatsItemMessagesItemRepliesRequestBuilder) ToPostRequestInformatio return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemMessagesItemRepliesRequestBuilder when successful func (m *ItemChatsItemMessagesItemRepliesRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemMessagesItemRepliesRequestBuilder) { return NewItemChatsItemMessagesItemRepliesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_messages_item_set_reaction_request_builder.go b/users/item_chats_item_messages_item_set_reaction_request_builder.go index 4185a04cc2c..477448e6c3c 100644 --- a/users/item_chats_item_messages_item_set_reaction_request_builder.go +++ b/users/item_chats_item_messages_item_set_reaction_request_builder.go @@ -31,6 +31,7 @@ func NewItemChatsItemMessagesItemSetReactionRequestBuilder(rawUrl string, reques return NewItemChatsItemMessagesItemSetReactionRequestBuilderInternal(urlParams, requestAdapter) } // Post invoke action setReaction +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemMessagesItemSetReactionRequestBuilder) Post(ctx context.Context, body ItemChatsItemMessagesItemSetReactionPostRequestBodyable, requestConfiguration *ItemChatsItemMessagesItemSetReactionRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemChatsItemMessagesItemSetReactionRequestBuilder) Post(ctx context.Co return nil } // ToPostRequestInformation invoke action setReaction +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMessagesItemSetReactionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemChatsItemMessagesItemSetReactionPostRequestBodyable, requestConfiguration *ItemChatsItemMessagesItemSetReactionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -62,6 +64,7 @@ func (m *ItemChatsItemMessagesItemSetReactionRequestBuilder) ToPostRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemMessagesItemSetReactionRequestBuilder when successful func (m *ItemChatsItemMessagesItemSetReactionRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemMessagesItemSetReactionRequestBuilder) { return NewItemChatsItemMessagesItemSetReactionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_messages_item_soft_delete_request_builder.go b/users/item_chats_item_messages_item_soft_delete_request_builder.go index 1da36d513d9..6669c7835ba 100644 --- a/users/item_chats_item_messages_item_soft_delete_request_builder.go +++ b/users/item_chats_item_messages_item_soft_delete_request_builder.go @@ -31,6 +31,7 @@ func NewItemChatsItemMessagesItemSoftDeleteRequestBuilder(rawUrl string, request return NewItemChatsItemMessagesItemSoftDeleteRequestBuilderInternal(urlParams, requestAdapter) } // Post delete a single chatMessage or a chat message reply in a channel or a chat. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemChatsItemMessagesItemSoftDeleteRequestBuilder) Post(ctx context.Con return nil } // ToPostRequestInformation delete a single chatMessage or a chat message reply in a channel or a chat. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMessagesItemSoftDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemMessagesItemSoftDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemChatsItemMessagesItemSoftDeleteRequestBuilder) ToPostRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemMessagesItemSoftDeleteRequestBuilder when successful func (m *ItemChatsItemMessagesItemSoftDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemMessagesItemSoftDeleteRequestBuilder) { return NewItemChatsItemMessagesItemSoftDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_messages_item_undo_soft_delete_request_builder.go b/users/item_chats_item_messages_item_undo_soft_delete_request_builder.go index 2e121c9c66c..df261ee4626 100644 --- a/users/item_chats_item_messages_item_undo_soft_delete_request_builder.go +++ b/users/item_chats_item_messages_item_undo_soft_delete_request_builder.go @@ -31,6 +31,7 @@ func NewItemChatsItemMessagesItemUndoSoftDeleteRequestBuilder(rawUrl string, req return NewItemChatsItemMessagesItemUndoSoftDeleteRequestBuilderInternal(urlParams, requestAdapter) } // Post undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemChatsItemMessagesItemUndoSoftDeleteRequestBuilder) Post(ctx context return nil } // ToPostRequestInformation undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMessagesItemUndoSoftDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemMessagesItemUndoSoftDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemChatsItemMessagesItemUndoSoftDeleteRequestBuilder) ToPostRequestInf return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemMessagesItemUndoSoftDeleteRequestBuilder when successful func (m *ItemChatsItemMessagesItemUndoSoftDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemMessagesItemUndoSoftDeleteRequestBuilder) { return NewItemChatsItemMessagesItemUndoSoftDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_messages_item_unset_reaction_request_builder.go b/users/item_chats_item_messages_item_unset_reaction_request_builder.go index 8b8f84371e4..69702688caa 100644 --- a/users/item_chats_item_messages_item_unset_reaction_request_builder.go +++ b/users/item_chats_item_messages_item_unset_reaction_request_builder.go @@ -31,6 +31,7 @@ func NewItemChatsItemMessagesItemUnsetReactionRequestBuilder(rawUrl string, requ return NewItemChatsItemMessagesItemUnsetReactionRequestBuilderInternal(urlParams, requestAdapter) } // Post invoke action unsetReaction +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemMessagesItemUnsetReactionRequestBuilder) Post(ctx context.Context, body ItemChatsItemMessagesItemUnsetReactionPostRequestBodyable, requestConfiguration *ItemChatsItemMessagesItemUnsetReactionRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemChatsItemMessagesItemUnsetReactionRequestBuilder) Post(ctx context. return nil } // ToPostRequestInformation invoke action unsetReaction +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMessagesItemUnsetReactionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemChatsItemMessagesItemUnsetReactionPostRequestBodyable, requestConfiguration *ItemChatsItemMessagesItemUnsetReactionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -62,6 +64,7 @@ func (m *ItemChatsItemMessagesItemUnsetReactionRequestBuilder) ToPostRequestInfo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemMessagesItemUnsetReactionRequestBuilder when successful func (m *ItemChatsItemMessagesItemUnsetReactionRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemMessagesItemUnsetReactionRequestBuilder) { return NewItemChatsItemMessagesItemUnsetReactionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_messages_request_builder.go b/users/item_chats_item_messages_request_builder.go index ea639f9eeaa..f2620e0b89f 100644 --- a/users/item_chats_item_messages_request_builder.go +++ b/users/item_chats_item_messages_request_builder.go @@ -47,6 +47,7 @@ type ItemChatsItemMessagesRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByChatMessageId provides operations to manage the messages property of the microsoft.graph.chat entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemMessagesChatMessageItemRequestBuilder when successful func (m *ItemChatsItemMessagesRequestBuilder) ByChatMessageId(chatMessageId string)(*ItemChatsItemMessagesChatMessageItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemChatsItemMessagesRequestBuilder) Delta()(*ItemChatsItemMessagesDelt return NewItemChatsItemMessagesDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get a collection of all the messages in the chat. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ChatMessageCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemMessagesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChatsItemMessagesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemChatsItemMessagesRequestBuilder) Get(ctx context.Context, requestCo return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageCollectionResponseable), nil } // Post create new navigation property to messages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ChatMessageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemMessagesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *ItemChatsItemMessagesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, error) { @@ -122,6 +125,7 @@ func (m *ItemChatsItemMessagesRequestBuilder) Post(ctx context.Context, body ie2 return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable), nil } // ToGetRequestInformation a collection of all the messages in the chat. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMessagesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemMessagesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemChatsItemMessagesRequestBuilder) ToGetRequestInformation(ctx contex return requestInfo, nil } // ToPostRequestInformation create new navigation property to messages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemMessagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, requestConfiguration *ItemChatsItemMessagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemChatsItemMessagesRequestBuilder) ToPostRequestInformation(ctx conte return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemMessagesRequestBuilder when successful func (m *ItemChatsItemMessagesRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemMessagesRequestBuilder) { return NewItemChatsItemMessagesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_operations_count_request_builder.go b/users/item_chats_item_operations_count_request_builder.go index c2409e00ef8..534e139bccd 100644 --- a/users/item_chats_item_operations_count_request_builder.go +++ b/users/item_chats_item_operations_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemChatsItemOperationsCountRequestBuilder(rawUrl string, requestAdapter return NewItemChatsItemOperationsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemOperationsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChatsItemOperationsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemChatsItemOperationsCountRequestBuilder) Get(ctx context.Context, re return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemOperationsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemOperationsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemChatsItemOperationsCountRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemOperationsCountRequestBuilder when successful func (m *ItemChatsItemOperationsCountRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemOperationsCountRequestBuilder) { return NewItemChatsItemOperationsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_operations_request_builder.go b/users/item_chats_item_operations_request_builder.go index 0036c373357..b2be28fd221 100644 --- a/users/item_chats_item_operations_request_builder.go +++ b/users/item_chats_item_operations_request_builder.go @@ -47,6 +47,7 @@ type ItemChatsItemOperationsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByTeamsAsyncOperationId provides operations to manage the operations property of the microsoft.graph.chat entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemOperationsTeamsAsyncOperationItemRequestBuilder when successful func (m *ItemChatsItemOperationsRequestBuilder) ByTeamsAsyncOperationId(teamsAsyncOperationId string)(*ItemChatsItemOperationsTeamsAsyncOperationItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemChatsItemOperationsRequestBuilder) Count()(*ItemChatsItemOperations return NewItemChatsItemOperationsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get a collection of all the Teams async operations that ran or are running on the chat. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a TeamsAsyncOperationCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemOperationsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChatsItemOperationsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsAsyncOperationCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemChatsItemOperationsRequestBuilder) Get(ctx context.Context, request return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsAsyncOperationCollectionResponseable), nil } // Post create new navigation property to operations for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a TeamsAsyncOperationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemOperationsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsAsyncOperationable, requestConfiguration *ItemChatsItemOperationsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsAsyncOperationable, error) { @@ -117,6 +120,7 @@ func (m *ItemChatsItemOperationsRequestBuilder) Post(ctx context.Context, body i return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsAsyncOperationable), nil } // ToGetRequestInformation a collection of all the Teams async operations that ran or are running on the chat. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemOperationsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemOperationsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemChatsItemOperationsRequestBuilder) ToGetRequestInformation(ctx cont return requestInfo, nil } // ToPostRequestInformation create new navigation property to operations for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemOperationsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsAsyncOperationable, requestConfiguration *ItemChatsItemOperationsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemChatsItemOperationsRequestBuilder) ToPostRequestInformation(ctx con return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemOperationsRequestBuilder when successful func (m *ItemChatsItemOperationsRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemOperationsRequestBuilder) { return NewItemChatsItemOperationsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_operations_teams_async_operation_item_request_builder.go b/users/item_chats_item_operations_teams_async_operation_item_request_builder.go index 8f70e465af8..11a6c17f349 100644 --- a/users/item_chats_item_operations_teams_async_operation_item_request_builder.go +++ b/users/item_chats_item_operations_teams_async_operation_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemChatsItemOperationsTeamsAsyncOperationItemRequestBuilder(rawUrl stri return NewItemChatsItemOperationsTeamsAsyncOperationItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property operations for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemOperationsTeamsAsyncOperationItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemChatsItemOperationsTeamsAsyncOperationItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemChatsItemOperationsTeamsAsyncOperationItemRequestBuilder) Delete(ct return nil } // Get a collection of all the Teams async operations that ran or are running on the chat. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a TeamsAsyncOperationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemOperationsTeamsAsyncOperationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChatsItemOperationsTeamsAsyncOperationItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsAsyncOperationable, error) { @@ -91,6 +93,7 @@ func (m *ItemChatsItemOperationsTeamsAsyncOperationItemRequestBuilder) Get(ctx c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsAsyncOperationable), nil } // Patch update the navigation property operations in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a TeamsAsyncOperationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemOperationsTeamsAsyncOperationItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsAsyncOperationable, requestConfiguration *ItemChatsItemOperationsTeamsAsyncOperationItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsAsyncOperationable, error) { @@ -111,6 +114,7 @@ func (m *ItemChatsItemOperationsTeamsAsyncOperationItemRequestBuilder) Patch(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsAsyncOperationable), nil } // ToDeleteRequestInformation delete navigation property operations for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemOperationsTeamsAsyncOperationItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemOperationsTeamsAsyncOperationItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemChatsItemOperationsTeamsAsyncOperationItemRequestBuilder) ToDeleteR return requestInfo, nil } // ToGetRequestInformation a collection of all the Teams async operations that ran or are running on the chat. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemOperationsTeamsAsyncOperationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemOperationsTeamsAsyncOperationItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemChatsItemOperationsTeamsAsyncOperationItemRequestBuilder) ToGetRequ return requestInfo, nil } // ToPatchRequestInformation update the navigation property operations in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemOperationsTeamsAsyncOperationItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsAsyncOperationable, requestConfiguration *ItemChatsItemOperationsTeamsAsyncOperationItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemChatsItemOperationsTeamsAsyncOperationItemRequestBuilder) ToPatchRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemOperationsTeamsAsyncOperationItemRequestBuilder when successful func (m *ItemChatsItemOperationsTeamsAsyncOperationItemRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemOperationsTeamsAsyncOperationItemRequestBuilder) { return NewItemChatsItemOperationsTeamsAsyncOperationItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_permission_grants_count_request_builder.go b/users/item_chats_item_permission_grants_count_request_builder.go index 9d89d30c532..3b49310038a 100644 --- a/users/item_chats_item_permission_grants_count_request_builder.go +++ b/users/item_chats_item_permission_grants_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemChatsItemPermissionGrantsCountRequestBuilder(rawUrl string, requestA return NewItemChatsItemPermissionGrantsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemPermissionGrantsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChatsItemPermissionGrantsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemChatsItemPermissionGrantsCountRequestBuilder) Get(ctx context.Conte return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemPermissionGrantsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemPermissionGrantsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemChatsItemPermissionGrantsCountRequestBuilder) ToGetRequestInformati return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemPermissionGrantsCountRequestBuilder when successful func (m *ItemChatsItemPermissionGrantsCountRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemPermissionGrantsCountRequestBuilder) { return NewItemChatsItemPermissionGrantsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_permission_grants_request_builder.go b/users/item_chats_item_permission_grants_request_builder.go index bee663b08b8..7ebe5891011 100644 --- a/users/item_chats_item_permission_grants_request_builder.go +++ b/users/item_chats_item_permission_grants_request_builder.go @@ -47,6 +47,7 @@ type ItemChatsItemPermissionGrantsRequestBuilderPostRequestConfiguration struct Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByResourceSpecificPermissionGrantId provides operations to manage the permissionGrants property of the microsoft.graph.chat entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilder when successful func (m *ItemChatsItemPermissionGrantsRequestBuilder) ByResourceSpecificPermissionGrantId(resourceSpecificPermissionGrantId string)(*ItemChatsItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemChatsItemPermissionGrantsRequestBuilder) Count()(*ItemChatsItemPerm return NewItemChatsItemPermissionGrantsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get a collection of permissions granted to apps for the chat. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ResourceSpecificPermissionGrantCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemPermissionGrantsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChatsItemPermissionGrantsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ResourceSpecificPermissionGrantCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemChatsItemPermissionGrantsRequestBuilder) Get(ctx context.Context, r return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ResourceSpecificPermissionGrantCollectionResponseable), nil } // Post create new navigation property to permissionGrants for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ResourceSpecificPermissionGrantable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemPermissionGrantsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ResourceSpecificPermissionGrantable, requestConfiguration *ItemChatsItemPermissionGrantsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ResourceSpecificPermissionGrantable, error) { @@ -117,6 +120,7 @@ func (m *ItemChatsItemPermissionGrantsRequestBuilder) Post(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ResourceSpecificPermissionGrantable), nil } // ToGetRequestInformation a collection of permissions granted to apps for the chat. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemPermissionGrantsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemPermissionGrantsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemChatsItemPermissionGrantsRequestBuilder) ToGetRequestInformation(ct return requestInfo, nil } // ToPostRequestInformation create new navigation property to permissionGrants for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemPermissionGrantsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ResourceSpecificPermissionGrantable, requestConfiguration *ItemChatsItemPermissionGrantsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemChatsItemPermissionGrantsRequestBuilder) ToPostRequestInformation(c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemPermissionGrantsRequestBuilder when successful func (m *ItemChatsItemPermissionGrantsRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemPermissionGrantsRequestBuilder) { return NewItemChatsItemPermissionGrantsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_permission_grants_resource_specific_permission_grant_item_request_builder.go b/users/item_chats_item_permission_grants_resource_specific_permission_grant_item_request_builder.go index ffe1ddf4904..66e08c88ec5 100644 --- a/users/item_chats_item_permission_grants_resource_specific_permission_grant_item_request_builder.go +++ b/users/item_chats_item_permission_grants_resource_specific_permission_grant_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemChatsItemPermissionGrantsResourceSpecificPermissionGrantItemRequestB return NewItemChatsItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property permissionGrants for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemChatsItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemChatsItemPermissionGrantsResourceSpecificPermissionGrantItemRequest return nil } // Get a collection of permissions granted to apps for the chat. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ResourceSpecificPermissionGrantable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChatsItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ResourceSpecificPermissionGrantable, error) { @@ -91,6 +93,7 @@ func (m *ItemChatsItemPermissionGrantsResourceSpecificPermissionGrantItemRequest return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ResourceSpecificPermissionGrantable), nil } // Patch update the navigation property permissionGrants in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ResourceSpecificPermissionGrantable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ResourceSpecificPermissionGrantable, requestConfiguration *ItemChatsItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ResourceSpecificPermissionGrantable, error) { @@ -111,6 +114,7 @@ func (m *ItemChatsItemPermissionGrantsResourceSpecificPermissionGrantItemRequest return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ResourceSpecificPermissionGrantable), nil } // ToDeleteRequestInformation delete navigation property permissionGrants for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemChatsItemPermissionGrantsResourceSpecificPermissionGrantItemRequest return requestInfo, nil } // ToGetRequestInformation a collection of permissions granted to apps for the chat. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemChatsItemPermissionGrantsResourceSpecificPermissionGrantItemRequest return requestInfo, nil } // ToPatchRequestInformation update the navigation property permissionGrants in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ResourceSpecificPermissionGrantable, requestConfiguration *ItemChatsItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemChatsItemPermissionGrantsResourceSpecificPermissionGrantItemRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilder when successful func (m *ItemChatsItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilder) { return NewItemChatsItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_pinned_messages_count_request_builder.go b/users/item_chats_item_pinned_messages_count_request_builder.go index fbf3dd6c237..7ef9c644c9c 100644 --- a/users/item_chats_item_pinned_messages_count_request_builder.go +++ b/users/item_chats_item_pinned_messages_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemChatsItemPinnedMessagesCountRequestBuilder(rawUrl string, requestAda return NewItemChatsItemPinnedMessagesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemPinnedMessagesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChatsItemPinnedMessagesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemChatsItemPinnedMessagesCountRequestBuilder) Get(ctx context.Context return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemPinnedMessagesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemPinnedMessagesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemChatsItemPinnedMessagesCountRequestBuilder) ToGetRequestInformation return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemPinnedMessagesCountRequestBuilder when successful func (m *ItemChatsItemPinnedMessagesCountRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemPinnedMessagesCountRequestBuilder) { return NewItemChatsItemPinnedMessagesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_pinned_messages_item_message_request_builder.go b/users/item_chats_item_pinned_messages_item_message_request_builder.go index 7f6bae3065b..0e21977330a 100644 --- a/users/item_chats_item_pinned_messages_item_message_request_builder.go +++ b/users/item_chats_item_pinned_messages_item_message_request_builder.go @@ -41,6 +41,7 @@ func NewItemChatsItemPinnedMessagesItemMessageRequestBuilder(rawUrl string, requ return NewItemChatsItemPinnedMessagesItemMessageRequestBuilderInternal(urlParams, requestAdapter) } // Get represents details about the chat message that is pinned. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ChatMessageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemPinnedMessagesItemMessageRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChatsItemPinnedMessagesItemMessageRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable, error) { @@ -61,6 +62,7 @@ func (m *ItemChatsItemPinnedMessagesItemMessageRequestBuilder) Get(ctx context.C return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChatMessageable), nil } // ToGetRequestInformation represents details about the chat message that is pinned. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemPinnedMessagesItemMessageRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemPinnedMessagesItemMessageRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemChatsItemPinnedMessagesItemMessageRequestBuilder) ToGetRequestInfor return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemPinnedMessagesItemMessageRequestBuilder when successful func (m *ItemChatsItemPinnedMessagesItemMessageRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemPinnedMessagesItemMessageRequestBuilder) { return NewItemChatsItemPinnedMessagesItemMessageRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_pinned_messages_pinned_chat_message_info_item_request_builder.go b/users/item_chats_item_pinned_messages_pinned_chat_message_info_item_request_builder.go index d063c058940..b6250a0e5ad 100644 --- a/users/item_chats_item_pinned_messages_pinned_chat_message_info_item_request_builder.go +++ b/users/item_chats_item_pinned_messages_pinned_chat_message_info_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemChatsItemPinnedMessagesPinnedChatMessageInfoItemRequestBuilder(rawUr return NewItemChatsItemPinnedMessagesPinnedChatMessageInfoItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property pinnedMessages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemPinnedMessagesPinnedChatMessageInfoItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemChatsItemPinnedMessagesPinnedChatMessageInfoItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemChatsItemPinnedMessagesPinnedChatMessageInfoItemRequestBuilder) Del return nil } // Get a collection of all the pinned messages in the chat. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PinnedChatMessageInfoable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemPinnedMessagesPinnedChatMessageInfoItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChatsItemPinnedMessagesPinnedChatMessageInfoItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PinnedChatMessageInfoable, error) { @@ -96,6 +98,7 @@ func (m *ItemChatsItemPinnedMessagesPinnedChatMessageInfoItemRequestBuilder) Mes return NewItemChatsItemPinnedMessagesItemMessageRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property pinnedMessages in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PinnedChatMessageInfoable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemPinnedMessagesPinnedChatMessageInfoItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PinnedChatMessageInfoable, requestConfiguration *ItemChatsItemPinnedMessagesPinnedChatMessageInfoItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PinnedChatMessageInfoable, error) { @@ -116,6 +119,7 @@ func (m *ItemChatsItemPinnedMessagesPinnedChatMessageInfoItemRequestBuilder) Pat return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PinnedChatMessageInfoable), nil } // ToDeleteRequestInformation delete navigation property pinnedMessages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemPinnedMessagesPinnedChatMessageInfoItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemPinnedMessagesPinnedChatMessageInfoItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -127,6 +131,7 @@ func (m *ItemChatsItemPinnedMessagesPinnedChatMessageInfoItemRequestBuilder) ToD return requestInfo, nil } // ToGetRequestInformation a collection of all the pinned messages in the chat. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemPinnedMessagesPinnedChatMessageInfoItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemPinnedMessagesPinnedChatMessageInfoItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,6 +146,7 @@ func (m *ItemChatsItemPinnedMessagesPinnedChatMessageInfoItemRequestBuilder) ToG return requestInfo, nil } // ToPatchRequestInformation update the navigation property pinnedMessages in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemPinnedMessagesPinnedChatMessageInfoItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PinnedChatMessageInfoable, requestConfiguration *ItemChatsItemPinnedMessagesPinnedChatMessageInfoItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +162,7 @@ func (m *ItemChatsItemPinnedMessagesPinnedChatMessageInfoItemRequestBuilder) ToP return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemPinnedMessagesPinnedChatMessageInfoItemRequestBuilder when successful func (m *ItemChatsItemPinnedMessagesPinnedChatMessageInfoItemRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemPinnedMessagesPinnedChatMessageInfoItemRequestBuilder) { return NewItemChatsItemPinnedMessagesPinnedChatMessageInfoItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_pinned_messages_request_builder.go b/users/item_chats_item_pinned_messages_request_builder.go index 68c5d610222..ad905369a3a 100644 --- a/users/item_chats_item_pinned_messages_request_builder.go +++ b/users/item_chats_item_pinned_messages_request_builder.go @@ -47,6 +47,7 @@ type ItemChatsItemPinnedMessagesRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByPinnedChatMessageInfoId provides operations to manage the pinnedMessages property of the microsoft.graph.chat entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemPinnedMessagesPinnedChatMessageInfoItemRequestBuilder when successful func (m *ItemChatsItemPinnedMessagesRequestBuilder) ByPinnedChatMessageInfoId(pinnedChatMessageInfoId string)(*ItemChatsItemPinnedMessagesPinnedChatMessageInfoItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemChatsItemPinnedMessagesRequestBuilder) Count()(*ItemChatsItemPinned return NewItemChatsItemPinnedMessagesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get a collection of all the pinned messages in the chat. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PinnedChatMessageInfoCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemPinnedMessagesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChatsItemPinnedMessagesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PinnedChatMessageInfoCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemChatsItemPinnedMessagesRequestBuilder) Get(ctx context.Context, req return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PinnedChatMessageInfoCollectionResponseable), nil } // Post create new navigation property to pinnedMessages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PinnedChatMessageInfoable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemPinnedMessagesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PinnedChatMessageInfoable, requestConfiguration *ItemChatsItemPinnedMessagesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PinnedChatMessageInfoable, error) { @@ -117,6 +120,7 @@ func (m *ItemChatsItemPinnedMessagesRequestBuilder) Post(ctx context.Context, bo return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PinnedChatMessageInfoable), nil } // ToGetRequestInformation a collection of all the pinned messages in the chat. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemPinnedMessagesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemPinnedMessagesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemChatsItemPinnedMessagesRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // ToPostRequestInformation create new navigation property to pinnedMessages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemPinnedMessagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PinnedChatMessageInfoable, requestConfiguration *ItemChatsItemPinnedMessagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemChatsItemPinnedMessagesRequestBuilder) ToPostRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemPinnedMessagesRequestBuilder when successful func (m *ItemChatsItemPinnedMessagesRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemPinnedMessagesRequestBuilder) { return NewItemChatsItemPinnedMessagesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_remove_all_access_for_user_request_builder.go b/users/item_chats_item_remove_all_access_for_user_request_builder.go index aeee033de70..f025566d35f 100644 --- a/users/item_chats_item_remove_all_access_for_user_request_builder.go +++ b/users/item_chats_item_remove_all_access_for_user_request_builder.go @@ -31,6 +31,7 @@ func NewItemChatsItemRemoveAllAccessForUserRequestBuilder(rawUrl string, request return NewItemChatsItemRemoveAllAccessForUserRequestBuilderInternal(urlParams, requestAdapter) } // Post remove access to a chat for a user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemChatsItemRemoveAllAccessForUserRequestBuilder) Post(ctx context.Con return nil } // ToPostRequestInformation remove access to a chat for a user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemRemoveAllAccessForUserRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemChatsItemRemoveAllAccessForUserPostRequestBodyable, requestConfiguration *ItemChatsItemRemoveAllAccessForUserRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemChatsItemRemoveAllAccessForUserRequestBuilder) ToPostRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemRemoveAllAccessForUserRequestBuilder when successful func (m *ItemChatsItemRemoveAllAccessForUserRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemRemoveAllAccessForUserRequestBuilder) { return NewItemChatsItemRemoveAllAccessForUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_send_activity_notification_request_builder.go b/users/item_chats_item_send_activity_notification_request_builder.go index ca55175f4c6..a12aa11b7f1 100644 --- a/users/item_chats_item_send_activity_notification_request_builder.go +++ b/users/item_chats_item_send_activity_notification_request_builder.go @@ -31,6 +31,7 @@ func NewItemChatsItemSendActivityNotificationRequestBuilder(rawUrl string, reque return NewItemChatsItemSendActivityNotificationRequestBuilderInternal(urlParams, requestAdapter) } // Post send an activity feed notification in the scope of a chat. For more information, see sending Teams activity notifications. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemChatsItemSendActivityNotificationRequestBuilder) Post(ctx context.C return nil } // ToPostRequestInformation send an activity feed notification in the scope of a chat. For more information, see sending Teams activity notifications. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemSendActivityNotificationRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemChatsItemSendActivityNotificationPostRequestBodyable, requestConfiguration *ItemChatsItemSendActivityNotificationRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemChatsItemSendActivityNotificationRequestBuilder) ToPostRequestInfor return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemSendActivityNotificationRequestBuilder when successful func (m *ItemChatsItemSendActivityNotificationRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemSendActivityNotificationRequestBuilder) { return NewItemChatsItemSendActivityNotificationRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_tabs_count_request_builder.go b/users/item_chats_item_tabs_count_request_builder.go index 5097acc3339..33423b4df1c 100644 --- a/users/item_chats_item_tabs_count_request_builder.go +++ b/users/item_chats_item_tabs_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemChatsItemTabsCountRequestBuilder(rawUrl string, requestAdapter i2ae4 return NewItemChatsItemTabsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemTabsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChatsItemTabsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemChatsItemTabsCountRequestBuilder) Get(ctx context.Context, requestC return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemTabsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemTabsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemChatsItemTabsCountRequestBuilder) ToGetRequestInformation(ctx conte return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemTabsCountRequestBuilder when successful func (m *ItemChatsItemTabsCountRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemTabsCountRequestBuilder) { return NewItemChatsItemTabsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_tabs_item_teams_app_request_builder.go b/users/item_chats_item_tabs_item_teams_app_request_builder.go index 28b156e0d26..0493fec9e87 100644 --- a/users/item_chats_item_tabs_item_teams_app_request_builder.go +++ b/users/item_chats_item_tabs_item_teams_app_request_builder.go @@ -41,6 +41,7 @@ func NewItemChatsItemTabsItemTeamsAppRequestBuilder(rawUrl string, requestAdapte return NewItemChatsItemTabsItemTeamsAppRequestBuilderInternal(urlParams, requestAdapter) } // Get the application that is linked to the tab. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a TeamsAppable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemTabsItemTeamsAppRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChatsItemTabsItemTeamsAppRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsAppable, error) { @@ -61,6 +62,7 @@ func (m *ItemChatsItemTabsItemTeamsAppRequestBuilder) Get(ctx context.Context, r return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsAppable), nil } // ToGetRequestInformation the application that is linked to the tab. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemTabsItemTeamsAppRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemTabsItemTeamsAppRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemChatsItemTabsItemTeamsAppRequestBuilder) ToGetRequestInformation(ct return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemTabsItemTeamsAppRequestBuilder when successful func (m *ItemChatsItemTabsItemTeamsAppRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemTabsItemTeamsAppRequestBuilder) { return NewItemChatsItemTabsItemTeamsAppRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_tabs_request_builder.go b/users/item_chats_item_tabs_request_builder.go index dd09a62d8f1..4b0436900ef 100644 --- a/users/item_chats_item_tabs_request_builder.go +++ b/users/item_chats_item_tabs_request_builder.go @@ -47,6 +47,7 @@ type ItemChatsItemTabsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByTeamsTabId provides operations to manage the tabs property of the microsoft.graph.chat entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemTabsTeamsTabItemRequestBuilder when successful func (m *ItemChatsItemTabsRequestBuilder) ByTeamsTabId(teamsTabId string)(*ItemChatsItemTabsTeamsTabItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemChatsItemTabsRequestBuilder) Count()(*ItemChatsItemTabsCountRequest return NewItemChatsItemTabsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get a collection of all the tabs in the chat. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a TeamsTabCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemTabsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChatsItemTabsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsTabCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemChatsItemTabsRequestBuilder) Get(ctx context.Context, requestConfig return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsTabCollectionResponseable), nil } // Post create new navigation property to tabs for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a TeamsTabable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemTabsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsTabable, requestConfiguration *ItemChatsItemTabsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsTabable, error) { @@ -117,6 +120,7 @@ func (m *ItemChatsItemTabsRequestBuilder) Post(ctx context.Context, body ie233ee return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsTabable), nil } // ToGetRequestInformation a collection of all the tabs in the chat. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemTabsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemTabsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemChatsItemTabsRequestBuilder) ToGetRequestInformation(ctx context.Co return requestInfo, nil } // ToPostRequestInformation create new navigation property to tabs for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemTabsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsTabable, requestConfiguration *ItemChatsItemTabsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemChatsItemTabsRequestBuilder) ToPostRequestInformation(ctx context.C return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemTabsRequestBuilder when successful func (m *ItemChatsItemTabsRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemTabsRequestBuilder) { return NewItemChatsItemTabsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_tabs_teams_tab_item_request_builder.go b/users/item_chats_item_tabs_teams_tab_item_request_builder.go index d307b2c6654..a0602e597fd 100644 --- a/users/item_chats_item_tabs_teams_tab_item_request_builder.go +++ b/users/item_chats_item_tabs_teams_tab_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemChatsItemTabsTeamsTabItemRequestBuilder(rawUrl string, requestAdapte return NewItemChatsItemTabsTeamsTabItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property tabs for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemTabsTeamsTabItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemChatsItemTabsTeamsTabItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemChatsItemTabsTeamsTabItemRequestBuilder) Delete(ctx context.Context return nil } // Get a collection of all the tabs in the chat. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a TeamsTabable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemTabsTeamsTabItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemChatsItemTabsTeamsTabItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsTabable, error) { @@ -91,6 +93,7 @@ func (m *ItemChatsItemTabsTeamsTabItemRequestBuilder) Get(ctx context.Context, r return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsTabable), nil } // Patch update the navigation property tabs in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a TeamsTabable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsItemTabsTeamsTabItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsTabable, requestConfiguration *ItemChatsItemTabsTeamsTabItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsTabable, error) { @@ -116,6 +119,7 @@ func (m *ItemChatsItemTabsTeamsTabItemRequestBuilder) TeamsApp()(*ItemChatsItemT return NewItemChatsItemTabsItemTeamsAppRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property tabs for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemTabsTeamsTabItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemTabsTeamsTabItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -127,6 +131,7 @@ func (m *ItemChatsItemTabsTeamsTabItemRequestBuilder) ToDeleteRequestInformation return requestInfo, nil } // ToGetRequestInformation a collection of all the tabs in the chat. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemTabsTeamsTabItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsItemTabsTeamsTabItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,6 +146,7 @@ func (m *ItemChatsItemTabsTeamsTabItemRequestBuilder) ToGetRequestInformation(ct return requestInfo, nil } // ToPatchRequestInformation update the navigation property tabs in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemTabsTeamsTabItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsTabable, requestConfiguration *ItemChatsItemTabsTeamsTabItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +162,7 @@ func (m *ItemChatsItemTabsTeamsTabItemRequestBuilder) ToPatchRequestInformation( return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemTabsTeamsTabItemRequestBuilder when successful func (m *ItemChatsItemTabsTeamsTabItemRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemTabsTeamsTabItemRequestBuilder) { return NewItemChatsItemTabsTeamsTabItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_item_unhide_for_user_request_builder.go b/users/item_chats_item_unhide_for_user_request_builder.go index dfee66193c1..0981b5605a6 100644 --- a/users/item_chats_item_unhide_for_user_request_builder.go +++ b/users/item_chats_item_unhide_for_user_request_builder.go @@ -31,6 +31,7 @@ func NewItemChatsItemUnhideForUserRequestBuilder(rawUrl string, requestAdapter i return NewItemChatsItemUnhideForUserRequestBuilderInternal(urlParams, requestAdapter) } // Post unhide a chat for a user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemChatsItemUnhideForUserRequestBuilder) Post(ctx context.Context, bod return nil } // ToPostRequestInformation unhide a chat for a user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsItemUnhideForUserRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemChatsItemUnhideForUserPostRequestBodyable, requestConfiguration *ItemChatsItemUnhideForUserRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemChatsItemUnhideForUserRequestBuilder) ToPostRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsItemUnhideForUserRequestBuilder when successful func (m *ItemChatsItemUnhideForUserRequestBuilder) WithUrl(rawUrl string)(*ItemChatsItemUnhideForUserRequestBuilder) { return NewItemChatsItemUnhideForUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_chats_request_builder.go b/users/item_chats_request_builder.go index daed6687e23..d5f4f759bec 100644 --- a/users/item_chats_request_builder.go +++ b/users/item_chats_request_builder.go @@ -52,6 +52,7 @@ func (m *ItemChatsRequestBuilder) AllMessages()(*ItemChatsAllMessagesRequestBuil return NewItemChatsAllMessagesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ByChatId provides operations to manage the chats property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsChatItemRequestBuilder when successful func (m *ItemChatsRequestBuilder) ByChatId(chatId string)(*ItemChatsChatItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemChatsRequestBuilder) Count()(*ItemChatsCountRequestBuilder) { return NewItemChatsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get retrieve the list of chats that the user is part of. This method supports federation. When a user ID is provided, the calling application must belong to the same tenant that the user belongs to. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ChatCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -115,6 +117,7 @@ func (m *ItemChatsRequestBuilder) GetAllRetainedMessages()(*ItemChatsGetAllRetai return NewItemChatsGetAllRetainedMessagesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Post create new navigation property to chats for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Chatable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemChatsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Chatable, requestConfiguration *ItemChatsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Chatable, error) { @@ -135,6 +138,7 @@ func (m *ItemChatsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4 return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Chatable), nil } // ToGetRequestInformation retrieve the list of chats that the user is part of. This method supports federation. When a user ID is provided, the calling application must belong to the same tenant that the user belongs to. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemChatsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -149,6 +153,7 @@ func (m *ItemChatsRequestBuilder) ToGetRequestInformation(ctx context.Context, r return requestInfo, nil } // ToPostRequestInformation create new navigation property to chats for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemChatsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Chatable, requestConfiguration *ItemChatsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -164,6 +169,7 @@ func (m *ItemChatsRequestBuilder) ToPostRequestInformation(ctx context.Context, return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemChatsRequestBuilder when successful func (m *ItemChatsRequestBuilder) WithUrl(rawUrl string)(*ItemChatsRequestBuilder) { return NewItemChatsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_check_member_groups_request_builder.go b/users/item_check_member_groups_request_builder.go index 47f6abf634c..b41d1f052e0 100644 --- a/users/item_check_member_groups_request_builder.go +++ b/users/item_check_member_groups_request_builder.go @@ -55,6 +55,7 @@ func (m *ItemCheckMemberGroupsRequestBuilder) Post(ctx context.Context, body Ite return res.(ItemCheckMemberGroupsResponseable), nil } // PostAsCheckMemberGroupsPostResponse check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCheckMemberGroupsPostResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -78,6 +79,7 @@ func (m *ItemCheckMemberGroupsRequestBuilder) PostAsCheckMemberGroupsPostRespons return res.(ItemCheckMemberGroupsPostResponseable), nil } // ToPostRequestInformation check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCheckMemberGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCheckMemberGroupsPostRequestBodyable, requestConfiguration *ItemCheckMemberGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -93,6 +95,7 @@ func (m *ItemCheckMemberGroupsRequestBuilder) ToPostRequestInformation(ctx conte return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCheckMemberGroupsRequestBuilder when successful func (m *ItemCheckMemberGroupsRequestBuilder) WithUrl(rawUrl string)(*ItemCheckMemberGroupsRequestBuilder) { return NewItemCheckMemberGroupsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_check_member_objects_request_builder.go b/users/item_check_member_objects_request_builder.go index 01ed414b067..108b3f4fd8b 100644 --- a/users/item_check_member_objects_request_builder.go +++ b/users/item_check_member_objects_request_builder.go @@ -52,6 +52,7 @@ func (m *ItemCheckMemberObjectsRequestBuilder) Post(ctx context.Context, body It return res.(ItemCheckMemberObjectsResponseable), nil } // PostAsCheckMemberObjectsPostResponse invoke action checkMemberObjects +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCheckMemberObjectsPostResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCheckMemberObjectsRequestBuilder) PostAsCheckMemberObjectsPostResponse(ctx context.Context, body ItemCheckMemberObjectsPostRequestBodyable, requestConfiguration *ItemCheckMemberObjectsRequestBuilderPostRequestConfiguration)(ItemCheckMemberObjectsPostResponseable, error) { @@ -72,6 +73,7 @@ func (m *ItemCheckMemberObjectsRequestBuilder) PostAsCheckMemberObjectsPostRespo return res.(ItemCheckMemberObjectsPostResponseable), nil } // ToPostRequestInformation invoke action checkMemberObjects +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCheckMemberObjectsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCheckMemberObjectsPostRequestBodyable, requestConfiguration *ItemCheckMemberObjectsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -87,6 +89,7 @@ func (m *ItemCheckMemberObjectsRequestBuilder) ToPostRequestInformation(ctx cont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCheckMemberObjectsRequestBuilder when successful func (m *ItemCheckMemberObjectsRequestBuilder) WithUrl(rawUrl string)(*ItemCheckMemberObjectsRequestBuilder) { return NewItemCheckMemberObjectsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_cloud_clipboard_items_cloud_clipboard_item_item_request_builder.go b/users/item_cloud_clipboard_items_cloud_clipboard_item_item_request_builder.go index 2ab0bc4ead9..056d153530d 100644 --- a/users/item_cloud_clipboard_items_cloud_clipboard_item_item_request_builder.go +++ b/users/item_cloud_clipboard_items_cloud_clipboard_item_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemCloudClipboardItemsCloudClipboardItemItemRequestBuilder(rawUrl strin return NewItemCloudClipboardItemsCloudClipboardItemItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property items for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCloudClipboardItemsCloudClipboardItemItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCloudClipboardItemsCloudClipboardItemItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemCloudClipboardItemsCloudClipboardItemItemRequestBuilder) Delete(ctx return nil } // Get represents a collection of Cloud Clipboard items. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a CloudClipboardItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCloudClipboardItemsCloudClipboardItemItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCloudClipboardItemsCloudClipboardItemItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudClipboardItemable, error) { @@ -91,6 +93,7 @@ func (m *ItemCloudClipboardItemsCloudClipboardItemItemRequestBuilder) Get(ctx co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudClipboardItemable), nil } // Patch update the navigation property items in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a CloudClipboardItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCloudClipboardItemsCloudClipboardItemItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudClipboardItemable, requestConfiguration *ItemCloudClipboardItemsCloudClipboardItemItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudClipboardItemable, error) { @@ -111,6 +114,7 @@ func (m *ItemCloudClipboardItemsCloudClipboardItemItemRequestBuilder) Patch(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudClipboardItemable), nil } // ToDeleteRequestInformation delete navigation property items for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCloudClipboardItemsCloudClipboardItemItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCloudClipboardItemsCloudClipboardItemItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemCloudClipboardItemsCloudClipboardItemItemRequestBuilder) ToDeleteRe return requestInfo, nil } // ToGetRequestInformation represents a collection of Cloud Clipboard items. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCloudClipboardItemsCloudClipboardItemItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCloudClipboardItemsCloudClipboardItemItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemCloudClipboardItemsCloudClipboardItemItemRequestBuilder) ToGetReque return requestInfo, nil } // ToPatchRequestInformation update the navigation property items in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCloudClipboardItemsCloudClipboardItemItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudClipboardItemable, requestConfiguration *ItemCloudClipboardItemsCloudClipboardItemItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemCloudClipboardItemsCloudClipboardItemItemRequestBuilder) ToPatchReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCloudClipboardItemsCloudClipboardItemItemRequestBuilder when successful func (m *ItemCloudClipboardItemsCloudClipboardItemItemRequestBuilder) WithUrl(rawUrl string)(*ItemCloudClipboardItemsCloudClipboardItemItemRequestBuilder) { return NewItemCloudClipboardItemsCloudClipboardItemItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_cloud_clipboard_items_count_request_builder.go b/users/item_cloud_clipboard_items_count_request_builder.go index 7e50c1b7656..df6ed4bfd2a 100644 --- a/users/item_cloud_clipboard_items_count_request_builder.go +++ b/users/item_cloud_clipboard_items_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCloudClipboardItemsCountRequestBuilder(rawUrl string, requestAdapter return NewItemCloudClipboardItemsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCloudClipboardItemsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCloudClipboardItemsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCloudClipboardItemsCountRequestBuilder) Get(ctx context.Context, re return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCloudClipboardItemsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCloudClipboardItemsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCloudClipboardItemsCountRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCloudClipboardItemsCountRequestBuilder when successful func (m *ItemCloudClipboardItemsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCloudClipboardItemsCountRequestBuilder) { return NewItemCloudClipboardItemsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_cloud_clipboard_items_request_builder.go b/users/item_cloud_clipboard_items_request_builder.go index 78c45bd05f7..a80125a2124 100644 --- a/users/item_cloud_clipboard_items_request_builder.go +++ b/users/item_cloud_clipboard_items_request_builder.go @@ -47,6 +47,7 @@ type ItemCloudClipboardItemsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByCloudClipboardItemId provides operations to manage the items property of the microsoft.graph.cloudClipboardRoot entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCloudClipboardItemsCloudClipboardItemItemRequestBuilder when successful func (m *ItemCloudClipboardItemsRequestBuilder) ByCloudClipboardItemId(cloudClipboardItemId string)(*ItemCloudClipboardItemsCloudClipboardItemItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemCloudClipboardItemsRequestBuilder) Count()(*ItemCloudClipboardItems return NewItemCloudClipboardItemsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get represents a collection of Cloud Clipboard items. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a CloudClipboardItemCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCloudClipboardItemsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCloudClipboardItemsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudClipboardItemCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemCloudClipboardItemsRequestBuilder) Get(ctx context.Context, request return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudClipboardItemCollectionResponseable), nil } // Post create new navigation property to items for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a CloudClipboardItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCloudClipboardItemsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudClipboardItemable, requestConfiguration *ItemCloudClipboardItemsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudClipboardItemable, error) { @@ -117,6 +120,7 @@ func (m *ItemCloudClipboardItemsRequestBuilder) Post(ctx context.Context, body i return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudClipboardItemable), nil } // ToGetRequestInformation represents a collection of Cloud Clipboard items. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCloudClipboardItemsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCloudClipboardItemsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemCloudClipboardItemsRequestBuilder) ToGetRequestInformation(ctx cont return requestInfo, nil } // ToPostRequestInformation create new navigation property to items for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCloudClipboardItemsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudClipboardItemable, requestConfiguration *ItemCloudClipboardItemsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemCloudClipboardItemsRequestBuilder) ToPostRequestInformation(ctx con return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCloudClipboardItemsRequestBuilder when successful func (m *ItemCloudClipboardItemsRequestBuilder) WithUrl(rawUrl string)(*ItemCloudClipboardItemsRequestBuilder) { return NewItemCloudClipboardItemsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_cloud_clipboard_request_builder.go b/users/item_cloud_clipboard_request_builder.go index e0e8980465b..4a767ecdbe7 100644 --- a/users/item_cloud_clipboard_request_builder.go +++ b/users/item_cloud_clipboard_request_builder.go @@ -55,6 +55,7 @@ func NewItemCloudClipboardRequestBuilder(rawUrl string, requestAdapter i2ae4187f return NewItemCloudClipboardRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property cloudClipboard for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCloudClipboardRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCloudClipboardRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemCloudClipboardRequestBuilder) Delete(ctx context.Context, requestCo return nil } // Get get cloudClipboard from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a CloudClipboardRootable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCloudClipboardRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCloudClipboardRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudClipboardRootable, error) { @@ -96,6 +98,7 @@ func (m *ItemCloudClipboardRequestBuilder) Items()(*ItemCloudClipboardItemsReque return NewItemCloudClipboardItemsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property cloudClipboard in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a CloudClipboardRootable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCloudClipboardRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudClipboardRootable, requestConfiguration *ItemCloudClipboardRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudClipboardRootable, error) { @@ -116,6 +119,7 @@ func (m *ItemCloudClipboardRequestBuilder) Patch(ctx context.Context, body ie233 return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudClipboardRootable), nil } // ToDeleteRequestInformation delete navigation property cloudClipboard for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCloudClipboardRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCloudClipboardRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -127,6 +131,7 @@ func (m *ItemCloudClipboardRequestBuilder) ToDeleteRequestInformation(ctx contex return requestInfo, nil } // ToGetRequestInformation get cloudClipboard from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCloudClipboardRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCloudClipboardRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,6 +146,7 @@ func (m *ItemCloudClipboardRequestBuilder) ToGetRequestInformation(ctx context.C return requestInfo, nil } // ToPatchRequestInformation update the navigation property cloudClipboard in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCloudClipboardRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudClipboardRootable, requestConfiguration *ItemCloudClipboardRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +162,7 @@ func (m *ItemCloudClipboardRequestBuilder) ToPatchRequestInformation(ctx context return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCloudClipboardRequestBuilder when successful func (m *ItemCloudClipboardRequestBuilder) WithUrl(rawUrl string)(*ItemCloudClipboardRequestBuilder) { return NewItemCloudClipboardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_cloud_p_cs_bulk_resize_request_builder.go b/users/item_cloud_p_cs_bulk_resize_request_builder.go index 09ccf23dfb0..d6909cd492b 100644 --- a/users/item_cloud_p_cs_bulk_resize_request_builder.go +++ b/users/item_cloud_p_cs_bulk_resize_request_builder.go @@ -55,7 +55,7 @@ func (m *ItemCloudPCsBulkResizeRequestBuilder) Post(ctx context.Context, body It return res.(ItemCloudPCsBulkResizeResponseable), nil } // PostAsBulkResizePostResponse perform a bulk resize action to resize a group of cloudPCs that successfully pass validation. If any devices can't be resized, those devices indicate 'resize failed'. The remaining devices are provisioned for the resize process. -// Deprecated: The bulkResize action is deprecated and will stop supporting on September 24, 2023. Please use bulk action entity api. as of 2023-05/bulkResize +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCloudPCsBulkResizePostResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -79,7 +79,7 @@ func (m *ItemCloudPCsBulkResizeRequestBuilder) PostAsBulkResizePostResponse(ctx return res.(ItemCloudPCsBulkResizePostResponseable), nil } // ToPostRequestInformation perform a bulk resize action to resize a group of cloudPCs that successfully pass validation. If any devices can't be resized, those devices indicate 'resize failed'. The remaining devices are provisioned for the resize process. -// Deprecated: The bulkResize action is deprecated and will stop supporting on September 24, 2023. Please use bulk action entity api. as of 2023-05/bulkResize +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCloudPCsBulkResizeRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCloudPCsBulkResizePostRequestBodyable, requestConfiguration *ItemCloudPCsBulkResizeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,7 +95,7 @@ func (m *ItemCloudPCsBulkResizeRequestBuilder) ToPostRequestInformation(ctx cont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The bulkResize action is deprecated and will stop supporting on September 24, 2023. Please use bulk action entity api. as of 2023-05/bulkResize +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCloudPCsBulkResizeRequestBuilder when successful func (m *ItemCloudPCsBulkResizeRequestBuilder) WithUrl(rawUrl string)(*ItemCloudPCsBulkResizeRequestBuilder) { return NewItemCloudPCsBulkResizeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_cloud_p_cs_cloud_p_c_item_request_builder.go b/users/item_cloud_p_cs_cloud_p_c_item_request_builder.go index 36ce42ce6f7..54d636a0c3c 100644 --- a/users/item_cloud_p_cs_cloud_p_c_item_request_builder.go +++ b/users/item_cloud_p_cs_cloud_p_c_item_request_builder.go @@ -65,6 +65,7 @@ func (m *ItemCloudPCsCloudPCItemRequestBuilder) CreateSnapshot()(*ItemCloudPCsIt return NewItemCloudPCsItemCreateSnapshotRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Delete delete navigation property cloudPCs for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCloudPCsCloudPCItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemCloudPCsCloudPCItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -86,6 +87,7 @@ func (m *ItemCloudPCsCloudPCItemRequestBuilder) EndGracePeriod()(*ItemCloudPCsIt return NewItemCloudPCsItemEndGracePeriodRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get cloudPCs from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a CloudPCable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCloudPCsCloudPCItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCloudPCsCloudPCItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPCable, error) { @@ -126,6 +128,7 @@ func (m *ItemCloudPCsCloudPCItemRequestBuilder) GetSupportedCloudPcRemoteActions return NewItemCloudPCsItemGetSupportedCloudPcRemoteActionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property cloudPCs in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a CloudPCable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCloudPCsCloudPCItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPCable, requestConfiguration *ItemCloudPCsCloudPCItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPCable, error) { @@ -211,6 +214,7 @@ func (m *ItemCloudPCsCloudPCItemRequestBuilder) Stop()(*ItemCloudPCsItemStopRequ return NewItemCloudPCsItemStopRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property cloudPCs for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCloudPCsCloudPCItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemCloudPCsCloudPCItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -222,6 +226,7 @@ func (m *ItemCloudPCsCloudPCItemRequestBuilder) ToDeleteRequestInformation(ctx c return requestInfo, nil } // ToGetRequestInformation get cloudPCs from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCloudPCsCloudPCItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCloudPCsCloudPCItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -236,6 +241,7 @@ func (m *ItemCloudPCsCloudPCItemRequestBuilder) ToGetRequestInformation(ctx cont return requestInfo, nil } // ToPatchRequestInformation update the navigation property cloudPCs in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCloudPCsCloudPCItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPCable, requestConfiguration *ItemCloudPCsCloudPCItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -256,6 +262,7 @@ func (m *ItemCloudPCsCloudPCItemRequestBuilder) Troubleshoot()(*ItemCloudPCsItem return NewItemCloudPCsItemTroubleshootRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCloudPCsCloudPCItemRequestBuilder when successful func (m *ItemCloudPCsCloudPCItemRequestBuilder) WithUrl(rawUrl string)(*ItemCloudPCsCloudPCItemRequestBuilder) { return NewItemCloudPCsCloudPCItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_cloud_p_cs_count_request_builder.go b/users/item_cloud_p_cs_count_request_builder.go index 3d4a45aaa03..0551f4857c3 100644 --- a/users/item_cloud_p_cs_count_request_builder.go +++ b/users/item_cloud_p_cs_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCloudPCsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7 return NewItemCloudPCsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCloudPCsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCloudPCsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCloudPCsCountRequestBuilder) Get(ctx context.Context, requestConfig return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCloudPCsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCloudPCsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCloudPCsCountRequestBuilder) ToGetRequestInformation(ctx context.Co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCloudPCsCountRequestBuilder when successful func (m *ItemCloudPCsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCloudPCsCountRequestBuilder) { return NewItemCloudPCsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_cloud_p_cs_get_provisioned_cloud_p_cs_with_group_id_with_service_plan_id_request_builder.go b/users/item_cloud_p_cs_get_provisioned_cloud_p_cs_with_group_id_with_service_plan_id_request_builder.go index ca9329791df..5e9dbbb490e 100644 --- a/users/item_cloud_p_cs_get_provisioned_cloud_p_cs_with_group_id_with_service_plan_id_request_builder.go +++ b/users/item_cloud_p_cs_get_provisioned_cloud_p_cs_with_group_id_with_service_plan_id_request_builder.go @@ -82,6 +82,7 @@ func (m *ItemCloudPCsGetProvisionedCloudPCsWithGroupIdWithServicePlanIdRequestBu return res.(ItemCloudPCsGetProvisionedCloudPCsWithGroupIdWithServicePlanIdResponseable), nil } // GetAsGetProvisionedCloudPCsWithGroupIdWithServicePlanIdGetResponse get all provisioned Cloud PCs of a specific service plan for users under a Microsoft Entra user group. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCloudPCsGetProvisionedCloudPCsWithGroupIdWithServicePlanIdGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -105,6 +106,7 @@ func (m *ItemCloudPCsGetProvisionedCloudPCsWithGroupIdWithServicePlanIdRequestBu return res.(ItemCloudPCsGetProvisionedCloudPCsWithGroupIdWithServicePlanIdGetResponseable), nil } // ToGetRequestInformation get all provisioned Cloud PCs of a specific service plan for users under a Microsoft Entra user group. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCloudPCsGetProvisionedCloudPCsWithGroupIdWithServicePlanIdRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCloudPCsGetProvisionedCloudPCsWithGroupIdWithServicePlanIdRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -119,6 +121,7 @@ func (m *ItemCloudPCsGetProvisionedCloudPCsWithGroupIdWithServicePlanIdRequestBu return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCloudPCsGetProvisionedCloudPCsWithGroupIdWithServicePlanIdRequestBuilder when successful func (m *ItemCloudPCsGetProvisionedCloudPCsWithGroupIdWithServicePlanIdRequestBuilder) WithUrl(rawUrl string)(*ItemCloudPCsGetProvisionedCloudPCsWithGroupIdWithServicePlanIdRequestBuilder) { return NewItemCloudPCsGetProvisionedCloudPCsWithGroupIdWithServicePlanIdRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_cloud_p_cs_item_change_user_account_type_request_builder.go b/users/item_cloud_p_cs_item_change_user_account_type_request_builder.go index db15c9ad576..8544d148cb7 100644 --- a/users/item_cloud_p_cs_item_change_user_account_type_request_builder.go +++ b/users/item_cloud_p_cs_item_change_user_account_type_request_builder.go @@ -31,6 +31,7 @@ func NewItemCloudPCsItemChangeUserAccountTypeRequestBuilder(rawUrl string, reque return NewItemCloudPCsItemChangeUserAccountTypeRequestBuilderInternal(urlParams, requestAdapter) } // Post change the account type of the user on a specific Cloud PC. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCloudPCsItemChangeUserAccountTypeRequestBuilder) Post(ctx context.C return nil } // ToPostRequestInformation change the account type of the user on a specific Cloud PC. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCloudPCsItemChangeUserAccountTypeRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCloudPCsItemChangeUserAccountTypePostRequestBodyable, requestConfiguration *ItemCloudPCsItemChangeUserAccountTypeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCloudPCsItemChangeUserAccountTypeRequestBuilder) ToPostRequestInfor return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCloudPCsItemChangeUserAccountTypeRequestBuilder when successful func (m *ItemCloudPCsItemChangeUserAccountTypeRequestBuilder) WithUrl(rawUrl string)(*ItemCloudPCsItemChangeUserAccountTypeRequestBuilder) { return NewItemCloudPCsItemChangeUserAccountTypeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_cloud_p_cs_item_create_snapshot_request_builder.go b/users/item_cloud_p_cs_item_create_snapshot_request_builder.go index 3d1ca18c14d..50fec9b896b 100644 --- a/users/item_cloud_p_cs_item_create_snapshot_request_builder.go +++ b/users/item_cloud_p_cs_item_create_snapshot_request_builder.go @@ -31,6 +31,7 @@ func NewItemCloudPCsItemCreateSnapshotRequestBuilder(rawUrl string, requestAdapt return NewItemCloudPCsItemCreateSnapshotRequestBuilderInternal(urlParams, requestAdapter) } // Post create a snapshot for a specific Cloud PC device. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCloudPCsItemCreateSnapshotRequestBuilder) Post(ctx context.Context, return nil } // ToPostRequestInformation create a snapshot for a specific Cloud PC device. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCloudPCsItemCreateSnapshotRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCloudPCsItemCreateSnapshotRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemCloudPCsItemCreateSnapshotRequestBuilder) ToPostRequestInformation( return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCloudPCsItemCreateSnapshotRequestBuilder when successful func (m *ItemCloudPCsItemCreateSnapshotRequestBuilder) WithUrl(rawUrl string)(*ItemCloudPCsItemCreateSnapshotRequestBuilder) { return NewItemCloudPCsItemCreateSnapshotRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_cloud_p_cs_item_end_grace_period_request_builder.go b/users/item_cloud_p_cs_item_end_grace_period_request_builder.go index 68a38711aff..359e73c6c2d 100644 --- a/users/item_cloud_p_cs_item_end_grace_period_request_builder.go +++ b/users/item_cloud_p_cs_item_end_grace_period_request_builder.go @@ -31,6 +31,7 @@ func NewItemCloudPCsItemEndGracePeriodRequestBuilder(rawUrl string, requestAdapt return NewItemCloudPCsItemEndGracePeriodRequestBuilderInternal(urlParams, requestAdapter) } // Post end the grace period for a specific Cloud PC. The grace period is triggered when the Cloud PC license is removed or the provisioning policy is unassigned. It allows users to access Cloud PCs for up to seven days before deprovisioning occurs. Ending the grace period immediately deprovisions the Cloud PC without waiting the seven days. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCloudPCsItemEndGracePeriodRequestBuilder) Post(ctx context.Context, return nil } // ToPostRequestInformation end the grace period for a specific Cloud PC. The grace period is triggered when the Cloud PC license is removed or the provisioning policy is unassigned. It allows users to access Cloud PCs for up to seven days before deprovisioning occurs. Ending the grace period immediately deprovisions the Cloud PC without waiting the seven days. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCloudPCsItemEndGracePeriodRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCloudPCsItemEndGracePeriodRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemCloudPCsItemEndGracePeriodRequestBuilder) ToPostRequestInformation( return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCloudPCsItemEndGracePeriodRequestBuilder when successful func (m *ItemCloudPCsItemEndGracePeriodRequestBuilder) WithUrl(rawUrl string)(*ItemCloudPCsItemEndGracePeriodRequestBuilder) { return NewItemCloudPCsItemEndGracePeriodRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_cloud_p_cs_item_get_cloud_pc_connectivity_history_request_builder.go b/users/item_cloud_p_cs_item_get_cloud_pc_connectivity_history_request_builder.go index 97f22d7f045..56da8faa317 100644 --- a/users/item_cloud_p_cs_item_get_cloud_pc_connectivity_history_request_builder.go +++ b/users/item_cloud_p_cs_item_get_cloud_pc_connectivity_history_request_builder.go @@ -70,6 +70,7 @@ func (m *ItemCloudPCsItemGetCloudPcConnectivityHistoryRequestBuilder) Get(ctx co return res.(ItemCloudPCsItemGetCloudPcConnectivityHistoryResponseable), nil } // GetAsGetCloudPcConnectivityHistoryGetResponse get the connectivity history of a specific Cloud PC. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCloudPCsItemGetCloudPcConnectivityHistoryGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -93,6 +94,7 @@ func (m *ItemCloudPCsItemGetCloudPcConnectivityHistoryRequestBuilder) GetAsGetCl return res.(ItemCloudPCsItemGetCloudPcConnectivityHistoryGetResponseable), nil } // ToGetRequestInformation get the connectivity history of a specific Cloud PC. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCloudPCsItemGetCloudPcConnectivityHistoryRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCloudPCsItemGetCloudPcConnectivityHistoryRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -107,6 +109,7 @@ func (m *ItemCloudPCsItemGetCloudPcConnectivityHistoryRequestBuilder) ToGetReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCloudPCsItemGetCloudPcConnectivityHistoryRequestBuilder when successful func (m *ItemCloudPCsItemGetCloudPcConnectivityHistoryRequestBuilder) WithUrl(rawUrl string)(*ItemCloudPCsItemGetCloudPcConnectivityHistoryRequestBuilder) { return NewItemCloudPCsItemGetCloudPcConnectivityHistoryRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_cloud_p_cs_item_get_cloud_pc_launch_info_request_builder.go b/users/item_cloud_p_cs_item_get_cloud_pc_launch_info_request_builder.go index d3adbefde9e..e0ec1002c7b 100644 --- a/users/item_cloud_p_cs_item_get_cloud_pc_launch_info_request_builder.go +++ b/users/item_cloud_p_cs_item_get_cloud_pc_launch_info_request_builder.go @@ -32,6 +32,7 @@ func NewItemCloudPCsItemGetCloudPcLaunchInfoRequestBuilder(rawUrl string, reques return NewItemCloudPCsItemGetCloudPcLaunchInfoRequestBuilderInternal(urlParams, requestAdapter) } // Get get the cloudPCLaunchInfo for the signed-in user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a CloudPcLaunchInfoable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemCloudPCsItemGetCloudPcLaunchInfoRequestBuilder) Get(ctx context.Con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcLaunchInfoable), nil } // ToGetRequestInformation get the cloudPCLaunchInfo for the signed-in user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCloudPCsItemGetCloudPcLaunchInfoRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCloudPCsItemGetCloudPcLaunchInfoRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -66,6 +68,7 @@ func (m *ItemCloudPCsItemGetCloudPcLaunchInfoRequestBuilder) ToGetRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCloudPCsItemGetCloudPcLaunchInfoRequestBuilder when successful func (m *ItemCloudPCsItemGetCloudPcLaunchInfoRequestBuilder) WithUrl(rawUrl string)(*ItemCloudPCsItemGetCloudPcLaunchInfoRequestBuilder) { return NewItemCloudPCsItemGetCloudPcLaunchInfoRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_cloud_p_cs_item_get_frontline_cloud_pc_access_state_request_builder.go b/users/item_cloud_p_cs_item_get_frontline_cloud_pc_access_state_request_builder.go index b5fa7f62f57..cd04edd0e7b 100644 --- a/users/item_cloud_p_cs_item_get_frontline_cloud_pc_access_state_request_builder.go +++ b/users/item_cloud_p_cs_item_get_frontline_cloud_pc_access_state_request_builder.go @@ -32,6 +32,7 @@ func NewItemCloudPCsItemGetFrontlineCloudPcAccessStateRequestBuilder(rawUrl stri return NewItemCloudPCsItemGetFrontlineCloudPcAccessStateRequestBuilderInternal(urlParams, requestAdapter) } // Get get the frontlineCloudPcAccessState of a frontline Cloud PC. This API only supports shared-use licenses. For more information, see cloudPcProvisioningPolicy. Shared-use licenses allow three users per license, with one user signed in at a time. Callers can get the latest frontline Cloud PC accessState and determine whether the frontline Cloud PC is accessible to a user. If a web client needs to connect to a frontline Cloud PC, the sharedCloudPcAccessState validates the bookmark scenario. If sharedCloudPcAccessState isn't active/activating/standbyMode, the web client shows a bad bookmark. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *FrontlineCloudPcAccessState when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemCloudPCsItemGetFrontlineCloudPcAccessStateRequestBuilder) Get(ctx c return res.(*ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.FrontlineCloudPcAccessState), nil } // ToGetRequestInformation get the frontlineCloudPcAccessState of a frontline Cloud PC. This API only supports shared-use licenses. For more information, see cloudPcProvisioningPolicy. Shared-use licenses allow three users per license, with one user signed in at a time. Callers can get the latest frontline Cloud PC accessState and determine whether the frontline Cloud PC is accessible to a user. If a web client needs to connect to a frontline Cloud PC, the sharedCloudPcAccessState validates the bookmark scenario. If sharedCloudPcAccessState isn't active/activating/standbyMode, the web client shows a bad bookmark. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCloudPCsItemGetFrontlineCloudPcAccessStateRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCloudPCsItemGetFrontlineCloudPcAccessStateRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -66,6 +68,7 @@ func (m *ItemCloudPCsItemGetFrontlineCloudPcAccessStateRequestBuilder) ToGetRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCloudPCsItemGetFrontlineCloudPcAccessStateRequestBuilder when successful func (m *ItemCloudPCsItemGetFrontlineCloudPcAccessStateRequestBuilder) WithUrl(rawUrl string)(*ItemCloudPCsItemGetFrontlineCloudPcAccessStateRequestBuilder) { return NewItemCloudPCsItemGetFrontlineCloudPcAccessStateRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_cloud_p_cs_item_get_supported_cloud_pc_remote_actions_request_builder.go b/users/item_cloud_p_cs_item_get_supported_cloud_pc_remote_actions_request_builder.go index f6b19c51426..d05a0a7ac21 100644 --- a/users/item_cloud_p_cs_item_get_supported_cloud_pc_remote_actions_request_builder.go +++ b/users/item_cloud_p_cs_item_get_supported_cloud_pc_remote_actions_request_builder.go @@ -70,6 +70,7 @@ func (m *ItemCloudPCsItemGetSupportedCloudPcRemoteActionsRequestBuilder) Get(ctx return res.(ItemCloudPCsItemGetSupportedCloudPcRemoteActionsResponseable), nil } // GetAsGetSupportedCloudPcRemoteActionsGetResponse get a list of supported Cloud PC remote actions for a specific Cloud PC device, including the action names and capabilities. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCloudPCsItemGetSupportedCloudPcRemoteActionsGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -93,6 +94,7 @@ func (m *ItemCloudPCsItemGetSupportedCloudPcRemoteActionsRequestBuilder) GetAsGe return res.(ItemCloudPCsItemGetSupportedCloudPcRemoteActionsGetResponseable), nil } // ToGetRequestInformation get a list of supported Cloud PC remote actions for a specific Cloud PC device, including the action names and capabilities. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCloudPCsItemGetSupportedCloudPcRemoteActionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCloudPCsItemGetSupportedCloudPcRemoteActionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -107,6 +109,7 @@ func (m *ItemCloudPCsItemGetSupportedCloudPcRemoteActionsRequestBuilder) ToGetRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCloudPCsItemGetSupportedCloudPcRemoteActionsRequestBuilder when successful func (m *ItemCloudPCsItemGetSupportedCloudPcRemoteActionsRequestBuilder) WithUrl(rawUrl string)(*ItemCloudPCsItemGetSupportedCloudPcRemoteActionsRequestBuilder) { return NewItemCloudPCsItemGetSupportedCloudPcRemoteActionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_cloud_p_cs_item_power_off_request_builder.go b/users/item_cloud_p_cs_item_power_off_request_builder.go index 6ceefc510d4..a2d5a3087fc 100644 --- a/users/item_cloud_p_cs_item_power_off_request_builder.go +++ b/users/item_cloud_p_cs_item_power_off_request_builder.go @@ -31,6 +31,7 @@ func NewItemCloudPCsItemPowerOffRequestBuilder(rawUrl string, requestAdapter i2a return NewItemCloudPCsItemPowerOffRequestBuilderInternal(urlParams, requestAdapter) } // Post power off a Windows 365 Frontline Cloud PC. This action supports Microsoft Endpoint Manager (MEM) admin scenarios. After a Windows 365 Frontline Cloud PC is powered off, it's deallocated, and licenses are revoked immediately. Only IT admin users can perform this action. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCloudPCsItemPowerOffRequestBuilder) Post(ctx context.Context, reque return nil } // ToPostRequestInformation power off a Windows 365 Frontline Cloud PC. This action supports Microsoft Endpoint Manager (MEM) admin scenarios. After a Windows 365 Frontline Cloud PC is powered off, it's deallocated, and licenses are revoked immediately. Only IT admin users can perform this action. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCloudPCsItemPowerOffRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCloudPCsItemPowerOffRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemCloudPCsItemPowerOffRequestBuilder) ToPostRequestInformation(ctx co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCloudPCsItemPowerOffRequestBuilder when successful func (m *ItemCloudPCsItemPowerOffRequestBuilder) WithUrl(rawUrl string)(*ItemCloudPCsItemPowerOffRequestBuilder) { return NewItemCloudPCsItemPowerOffRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_cloud_p_cs_item_power_on_request_builder.go b/users/item_cloud_p_cs_item_power_on_request_builder.go index 2db7b2bca64..704df0458d2 100644 --- a/users/item_cloud_p_cs_item_power_on_request_builder.go +++ b/users/item_cloud_p_cs_item_power_on_request_builder.go @@ -31,6 +31,7 @@ func NewItemCloudPCsItemPowerOnRequestBuilder(rawUrl string, requestAdapter i2ae return NewItemCloudPCsItemPowerOnRequestBuilderInternal(urlParams, requestAdapter) } // Post power on a Windows 365 Frontline Cloud PC. This action supports Microsoft Endpoint Manager (MEM) admin scenarios. After a Windows 365 Frontline Cloud PC is powered on, it is allocated to a user, and licenses are assigned immediately. Only IT admin users can perform this action. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCloudPCsItemPowerOnRequestBuilder) Post(ctx context.Context, reques return nil } // ToPostRequestInformation power on a Windows 365 Frontline Cloud PC. This action supports Microsoft Endpoint Manager (MEM) admin scenarios. After a Windows 365 Frontline Cloud PC is powered on, it is allocated to a user, and licenses are assigned immediately. Only IT admin users can perform this action. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCloudPCsItemPowerOnRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCloudPCsItemPowerOnRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemCloudPCsItemPowerOnRequestBuilder) ToPostRequestInformation(ctx con return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCloudPCsItemPowerOnRequestBuilder when successful func (m *ItemCloudPCsItemPowerOnRequestBuilder) WithUrl(rawUrl string)(*ItemCloudPCsItemPowerOnRequestBuilder) { return NewItemCloudPCsItemPowerOnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_cloud_p_cs_item_reboot_request_builder.go b/users/item_cloud_p_cs_item_reboot_request_builder.go index ecb95fa723d..9e56d0c976a 100644 --- a/users/item_cloud_p_cs_item_reboot_request_builder.go +++ b/users/item_cloud_p_cs_item_reboot_request_builder.go @@ -31,6 +31,7 @@ func NewItemCloudPCsItemRebootRequestBuilder(rawUrl string, requestAdapter i2ae4 return NewItemCloudPCsItemRebootRequestBuilderInternal(urlParams, requestAdapter) } // Post reboot a specific Cloud PC. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCloudPCsItemRebootRequestBuilder) Post(ctx context.Context, request return nil } // ToPostRequestInformation reboot a specific Cloud PC. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCloudPCsItemRebootRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCloudPCsItemRebootRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemCloudPCsItemRebootRequestBuilder) ToPostRequestInformation(ctx cont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCloudPCsItemRebootRequestBuilder when successful func (m *ItemCloudPCsItemRebootRequestBuilder) WithUrl(rawUrl string)(*ItemCloudPCsItemRebootRequestBuilder) { return NewItemCloudPCsItemRebootRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_cloud_p_cs_item_rename_request_builder.go b/users/item_cloud_p_cs_item_rename_request_builder.go index 64bd45c8c2e..74413904a00 100644 --- a/users/item_cloud_p_cs_item_rename_request_builder.go +++ b/users/item_cloud_p_cs_item_rename_request_builder.go @@ -31,6 +31,7 @@ func NewItemCloudPCsItemRenameRequestBuilder(rawUrl string, requestAdapter i2ae4 return NewItemCloudPCsItemRenameRequestBuilderInternal(urlParams, requestAdapter) } // Post rename a specific Cloud PC. Use this API to update the displayName for the Cloud PC entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCloudPCsItemRenameRequestBuilder) Post(ctx context.Context, body It return nil } // ToPostRequestInformation rename a specific Cloud PC. Use this API to update the displayName for the Cloud PC entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCloudPCsItemRenameRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCloudPCsItemRenamePostRequestBodyable, requestConfiguration *ItemCloudPCsItemRenameRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCloudPCsItemRenameRequestBuilder) ToPostRequestInformation(ctx cont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCloudPCsItemRenameRequestBuilder when successful func (m *ItemCloudPCsItemRenameRequestBuilder) WithUrl(rawUrl string)(*ItemCloudPCsItemRenameRequestBuilder) { return NewItemCloudPCsItemRenameRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_cloud_p_cs_item_reprovision_request_builder.go b/users/item_cloud_p_cs_item_reprovision_request_builder.go index f0f8f6f368e..64ee9256211 100644 --- a/users/item_cloud_p_cs_item_reprovision_request_builder.go +++ b/users/item_cloud_p_cs_item_reprovision_request_builder.go @@ -31,6 +31,7 @@ func NewItemCloudPCsItemReprovisionRequestBuilder(rawUrl string, requestAdapter return NewItemCloudPCsItemReprovisionRequestBuilderInternal(urlParams, requestAdapter) } // Post reprovision a specific Cloud PC. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCloudPCsItemReprovisionRequestBuilder) Post(ctx context.Context, bo return nil } // ToPostRequestInformation reprovision a specific Cloud PC. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCloudPCsItemReprovisionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCloudPCsItemReprovisionPostRequestBodyable, requestConfiguration *ItemCloudPCsItemReprovisionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCloudPCsItemReprovisionRequestBuilder) ToPostRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCloudPCsItemReprovisionRequestBuilder when successful func (m *ItemCloudPCsItemReprovisionRequestBuilder) WithUrl(rawUrl string)(*ItemCloudPCsItemReprovisionRequestBuilder) { return NewItemCloudPCsItemReprovisionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_cloud_p_cs_item_resize_request_builder.go b/users/item_cloud_p_cs_item_resize_request_builder.go index b31938f30c4..1784c99dca7 100644 --- a/users/item_cloud_p_cs_item_resize_request_builder.go +++ b/users/item_cloud_p_cs_item_resize_request_builder.go @@ -31,6 +31,7 @@ func NewItemCloudPCsItemResizeRequestBuilder(rawUrl string, requestAdapter i2ae4 return NewItemCloudPCsItemResizeRequestBuilderInternal(urlParams, requestAdapter) } // Post upgrade or downgrade an existing Cloud PC to a configuration with a new virtual CPU (vCPU) and storage size. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCloudPCsItemResizeRequestBuilder) Post(ctx context.Context, body It return nil } // ToPostRequestInformation upgrade or downgrade an existing Cloud PC to a configuration with a new virtual CPU (vCPU) and storage size. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCloudPCsItemResizeRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCloudPCsItemResizePostRequestBodyable, requestConfiguration *ItemCloudPCsItemResizeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCloudPCsItemResizeRequestBuilder) ToPostRequestInformation(ctx cont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCloudPCsItemResizeRequestBuilder when successful func (m *ItemCloudPCsItemResizeRequestBuilder) WithUrl(rawUrl string)(*ItemCloudPCsItemResizeRequestBuilder) { return NewItemCloudPCsItemResizeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_cloud_p_cs_item_restore_request_builder.go b/users/item_cloud_p_cs_item_restore_request_builder.go index c66b9eb4792..89ba12afda1 100644 --- a/users/item_cloud_p_cs_item_restore_request_builder.go +++ b/users/item_cloud_p_cs_item_restore_request_builder.go @@ -31,6 +31,7 @@ func NewItemCloudPCsItemRestoreRequestBuilder(rawUrl string, requestAdapter i2ae return NewItemCloudPCsItemRestoreRequestBuilderInternal(urlParams, requestAdapter) } // Post restore a specific Cloud PC. Use this API to trigger a remote action that restores a Cloud PC device to a previous state. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCloudPCsItemRestoreRequestBuilder) Post(ctx context.Context, body I return nil } // ToPostRequestInformation restore a specific Cloud PC. Use this API to trigger a remote action that restores a Cloud PC device to a previous state. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCloudPCsItemRestoreRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCloudPCsItemRestorePostRequestBodyable, requestConfiguration *ItemCloudPCsItemRestoreRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemCloudPCsItemRestoreRequestBuilder) ToPostRequestInformation(ctx con return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCloudPCsItemRestoreRequestBuilder when successful func (m *ItemCloudPCsItemRestoreRequestBuilder) WithUrl(rawUrl string)(*ItemCloudPCsItemRestoreRequestBuilder) { return NewItemCloudPCsItemRestoreRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_cloud_p_cs_item_retrieve_cloud_p_c_remote_action_results_request_builder.go b/users/item_cloud_p_cs_item_retrieve_cloud_p_c_remote_action_results_request_builder.go index b13d8494275..4ed79acb2e5 100644 --- a/users/item_cloud_p_cs_item_retrieve_cloud_p_c_remote_action_results_request_builder.go +++ b/users/item_cloud_p_cs_item_retrieve_cloud_p_c_remote_action_results_request_builder.go @@ -70,6 +70,7 @@ func (m *ItemCloudPCsItemRetrieveCloudPCRemoteActionResultsRequestBuilder) Get(c return res.(ItemCloudPCsItemRetrieveCloudPCRemoteActionResultsResponseable), nil } // GetAsRetrieveCloudPCRemoteActionResultsGetResponse retrieve remote action results and check the status of a specific remote action performed on the associated Cloud PC device. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCloudPCsItemRetrieveCloudPCRemoteActionResultsGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -93,6 +94,7 @@ func (m *ItemCloudPCsItemRetrieveCloudPCRemoteActionResultsRequestBuilder) GetAs return res.(ItemCloudPCsItemRetrieveCloudPCRemoteActionResultsGetResponseable), nil } // ToGetRequestInformation retrieve remote action results and check the status of a specific remote action performed on the associated Cloud PC device. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCloudPCsItemRetrieveCloudPCRemoteActionResultsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCloudPCsItemRetrieveCloudPCRemoteActionResultsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -107,6 +109,7 @@ func (m *ItemCloudPCsItemRetrieveCloudPCRemoteActionResultsRequestBuilder) ToGet return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCloudPCsItemRetrieveCloudPCRemoteActionResultsRequestBuilder when successful func (m *ItemCloudPCsItemRetrieveCloudPCRemoteActionResultsRequestBuilder) WithUrl(rawUrl string)(*ItemCloudPCsItemRetrieveCloudPCRemoteActionResultsRequestBuilder) { return NewItemCloudPCsItemRetrieveCloudPCRemoteActionResultsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_cloud_p_cs_item_retrieve_review_status_request_builder.go b/users/item_cloud_p_cs_item_retrieve_review_status_request_builder.go index 965d7bf915b..023adb67671 100644 --- a/users/item_cloud_p_cs_item_retrieve_review_status_request_builder.go +++ b/users/item_cloud_p_cs_item_retrieve_review_status_request_builder.go @@ -32,6 +32,7 @@ func NewItemCloudPCsItemRetrieveReviewStatusRequestBuilder(rawUrl string, reques return NewItemCloudPCsItemRetrieveReviewStatusRequestBuilderInternal(urlParams, requestAdapter) } // Get invoke function retrieveReviewStatus +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a CloudPcReviewStatusable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCloudPCsItemRetrieveReviewStatusRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCloudPCsItemRetrieveReviewStatusRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcReviewStatusable, error) { @@ -52,6 +53,7 @@ func (m *ItemCloudPCsItemRetrieveReviewStatusRequestBuilder) Get(ctx context.Con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcReviewStatusable), nil } // ToGetRequestInformation invoke function retrieveReviewStatus +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCloudPCsItemRetrieveReviewStatusRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCloudPCsItemRetrieveReviewStatusRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -63,6 +65,7 @@ func (m *ItemCloudPCsItemRetrieveReviewStatusRequestBuilder) ToGetRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCloudPCsItemRetrieveReviewStatusRequestBuilder when successful func (m *ItemCloudPCsItemRetrieveReviewStatusRequestBuilder) WithUrl(rawUrl string)(*ItemCloudPCsItemRetrieveReviewStatusRequestBuilder) { return NewItemCloudPCsItemRetrieveReviewStatusRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_cloud_p_cs_item_retry_partner_agent_installation_request_builder.go b/users/item_cloud_p_cs_item_retry_partner_agent_installation_request_builder.go index 27efb18fb5c..19953da38e4 100644 --- a/users/item_cloud_p_cs_item_retry_partner_agent_installation_request_builder.go +++ b/users/item_cloud_p_cs_item_retry_partner_agent_installation_request_builder.go @@ -31,6 +31,7 @@ func NewItemCloudPCsItemRetryPartnerAgentInstallationRequestBuilder(rawUrl strin return NewItemCloudPCsItemRetryPartnerAgentInstallationRequestBuilderInternal(urlParams, requestAdapter) } // Post retry installation for the partner agents that failed to install on the Cloud PC. Service side checks which agent installation failed firstly and retry. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCloudPCsItemRetryPartnerAgentInstallationRequestBuilder) Post(ctx c return nil } // ToPostRequestInformation retry installation for the partner agents that failed to install on the Cloud PC. Service side checks which agent installation failed firstly and retry. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCloudPCsItemRetryPartnerAgentInstallationRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCloudPCsItemRetryPartnerAgentInstallationRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemCloudPCsItemRetryPartnerAgentInstallationRequestBuilder) ToPostRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCloudPCsItemRetryPartnerAgentInstallationRequestBuilder when successful func (m *ItemCloudPCsItemRetryPartnerAgentInstallationRequestBuilder) WithUrl(rawUrl string)(*ItemCloudPCsItemRetryPartnerAgentInstallationRequestBuilder) { return NewItemCloudPCsItemRetryPartnerAgentInstallationRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_cloud_p_cs_item_set_review_status_request_builder.go b/users/item_cloud_p_cs_item_set_review_status_request_builder.go index a122b69f5af..39ec1f38bf2 100644 --- a/users/item_cloud_p_cs_item_set_review_status_request_builder.go +++ b/users/item_cloud_p_cs_item_set_review_status_request_builder.go @@ -31,6 +31,7 @@ func NewItemCloudPCsItemSetReviewStatusRequestBuilder(rawUrl string, requestAdap return NewItemCloudPCsItemSetReviewStatusRequestBuilderInternal(urlParams, requestAdapter) } // Post invoke action setReviewStatus +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCloudPCsItemSetReviewStatusRequestBuilder) Post(ctx context.Context, body ItemCloudPCsItemSetReviewStatusPostRequestBodyable, requestConfiguration *ItemCloudPCsItemSetReviewStatusRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemCloudPCsItemSetReviewStatusRequestBuilder) Post(ctx context.Context return nil } // ToPostRequestInformation invoke action setReviewStatus +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCloudPCsItemSetReviewStatusRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCloudPCsItemSetReviewStatusPostRequestBodyable, requestConfiguration *ItemCloudPCsItemSetReviewStatusRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -62,6 +64,7 @@ func (m *ItemCloudPCsItemSetReviewStatusRequestBuilder) ToPostRequestInformation return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCloudPCsItemSetReviewStatusRequestBuilder when successful func (m *ItemCloudPCsItemSetReviewStatusRequestBuilder) WithUrl(rawUrl string)(*ItemCloudPCsItemSetReviewStatusRequestBuilder) { return NewItemCloudPCsItemSetReviewStatusRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_cloud_p_cs_item_start_request_builder.go b/users/item_cloud_p_cs_item_start_request_builder.go index a5defee9c2e..96749546575 100644 --- a/users/item_cloud_p_cs_item_start_request_builder.go +++ b/users/item_cloud_p_cs_item_start_request_builder.go @@ -31,6 +31,7 @@ func NewItemCloudPCsItemStartRequestBuilder(rawUrl string, requestAdapter i2ae41 return NewItemCloudPCsItemStartRequestBuilderInternal(urlParams, requestAdapter) } // Post start a specific Cloud PC for a user. Currently, only Windows 365 Frontline Cloud PCs are supported. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCloudPCsItemStartRequestBuilder) Post(ctx context.Context, requestC return nil } // ToPostRequestInformation start a specific Cloud PC for a user. Currently, only Windows 365 Frontline Cloud PCs are supported. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCloudPCsItemStartRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCloudPCsItemStartRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemCloudPCsItemStartRequestBuilder) ToPostRequestInformation(ctx conte return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCloudPCsItemStartRequestBuilder when successful func (m *ItemCloudPCsItemStartRequestBuilder) WithUrl(rawUrl string)(*ItemCloudPCsItemStartRequestBuilder) { return NewItemCloudPCsItemStartRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_cloud_p_cs_item_stop_request_builder.go b/users/item_cloud_p_cs_item_stop_request_builder.go index effdad74077..eee776de719 100644 --- a/users/item_cloud_p_cs_item_stop_request_builder.go +++ b/users/item_cloud_p_cs_item_stop_request_builder.go @@ -31,6 +31,7 @@ func NewItemCloudPCsItemStopRequestBuilder(rawUrl string, requestAdapter i2ae418 return NewItemCloudPCsItemStopRequestBuilderInternal(urlParams, requestAdapter) } // Post stop a specific Cloud PC for a user. Currently, only Windows 365 Frontline Cloud PCs are supported. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCloudPCsItemStopRequestBuilder) Post(ctx context.Context, requestCo return nil } // ToPostRequestInformation stop a specific Cloud PC for a user. Currently, only Windows 365 Frontline Cloud PCs are supported. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCloudPCsItemStopRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCloudPCsItemStopRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemCloudPCsItemStopRequestBuilder) ToPostRequestInformation(ctx contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCloudPCsItemStopRequestBuilder when successful func (m *ItemCloudPCsItemStopRequestBuilder) WithUrl(rawUrl string)(*ItemCloudPCsItemStopRequestBuilder) { return NewItemCloudPCsItemStopRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_cloud_p_cs_item_troubleshoot_request_builder.go b/users/item_cloud_p_cs_item_troubleshoot_request_builder.go index c9629b7d534..3156e09cca5 100644 --- a/users/item_cloud_p_cs_item_troubleshoot_request_builder.go +++ b/users/item_cloud_p_cs_item_troubleshoot_request_builder.go @@ -31,6 +31,7 @@ func NewItemCloudPCsItemTroubleshootRequestBuilder(rawUrl string, requestAdapter return NewItemCloudPCsItemTroubleshootRequestBuilderInternal(urlParams, requestAdapter) } // Post troubleshoot a specific Cloud PC. Use this API to check the health status of the Cloud PC and the session host. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemCloudPCsItemTroubleshootRequestBuilder) Post(ctx context.Context, r return nil } // ToPostRequestInformation troubleshoot a specific Cloud PC. Use this API to check the health status of the Cloud PC and the session host. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCloudPCsItemTroubleshootRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemCloudPCsItemTroubleshootRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemCloudPCsItemTroubleshootRequestBuilder) ToPostRequestInformation(ct return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCloudPCsItemTroubleshootRequestBuilder when successful func (m *ItemCloudPCsItemTroubleshootRequestBuilder) WithUrl(rawUrl string)(*ItemCloudPCsItemTroubleshootRequestBuilder) { return NewItemCloudPCsItemTroubleshootRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_cloud_p_cs_request_builder.go b/users/item_cloud_p_cs_request_builder.go index aea30d09536..2cb4bc022bb 100644 --- a/users/item_cloud_p_cs_request_builder.go +++ b/users/item_cloud_p_cs_request_builder.go @@ -52,6 +52,7 @@ func (m *ItemCloudPCsRequestBuilder) BulkResize()(*ItemCloudPCsBulkResizeRequest return NewItemCloudPCsBulkResizeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ByCloudPCId provides operations to manage the cloudPCs property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCloudPCsCloudPCItemRequestBuilder when successful func (m *ItemCloudPCsRequestBuilder) ByCloudPCId(cloudPCId string)(*ItemCloudPCsCloudPCItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemCloudPCsRequestBuilder) Count()(*ItemCloudPCsCountRequestBuilder) { return NewItemCloudPCsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get cloudPCs from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a CloudPCCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCloudPCsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCloudPCsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPCCollectionResponseable, error) { @@ -102,11 +104,13 @@ func (m *ItemCloudPCsRequestBuilder) Get(ctx context.Context, requestConfigurati return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPCCollectionResponseable), nil } // GetProvisionedCloudPCsWithGroupIdWithServicePlanId provides operations to call the getProvisionedCloudPCs method. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCloudPCsGetProvisionedCloudPCsWithGroupIdWithServicePlanIdRequestBuilder when successful func (m *ItemCloudPCsRequestBuilder) GetProvisionedCloudPCsWithGroupIdWithServicePlanId(groupId *string, servicePlanId *string)(*ItemCloudPCsGetProvisionedCloudPCsWithGroupIdWithServicePlanIdRequestBuilder) { return NewItemCloudPCsGetProvisionedCloudPCsWithGroupIdWithServicePlanIdRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, groupId, servicePlanId) } // Post create new navigation property to cloudPCs for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a CloudPCable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCloudPCsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPCable, requestConfiguration *ItemCloudPCsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPCable, error) { @@ -127,6 +131,7 @@ func (m *ItemCloudPCsRequestBuilder) Post(ctx context.Context, body ie233ee762e2 return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPCable), nil } // ToGetRequestInformation get cloudPCs from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCloudPCsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCloudPCsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,6 +146,7 @@ func (m *ItemCloudPCsRequestBuilder) ToGetRequestInformation(ctx context.Context return requestInfo, nil } // ToPostRequestInformation create new navigation property to cloudPCs for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCloudPCsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPCable, requestConfiguration *ItemCloudPCsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -161,6 +167,7 @@ func (m *ItemCloudPCsRequestBuilder) ValidateBulkResize()(*ItemCloudPCsValidateB return NewItemCloudPCsValidateBulkResizeRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCloudPCsRequestBuilder when successful func (m *ItemCloudPCsRequestBuilder) WithUrl(rawUrl string)(*ItemCloudPCsRequestBuilder) { return NewItemCloudPCsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_cloud_p_cs_validate_bulk_resize_request_builder.go b/users/item_cloud_p_cs_validate_bulk_resize_request_builder.go index 006ebda04de..3d5a61d2422 100644 --- a/users/item_cloud_p_cs_validate_bulk_resize_request_builder.go +++ b/users/item_cloud_p_cs_validate_bulk_resize_request_builder.go @@ -55,6 +55,7 @@ func (m *ItemCloudPCsValidateBulkResizeRequestBuilder) Post(ctx context.Context, return res.(ItemCloudPCsValidateBulkResizeResponseable), nil } // PostAsValidateBulkResizePostResponse validate that a set of cloudPC devices meet the requirements to be bulk resized. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemCloudPCsValidateBulkResizePostResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -78,6 +79,7 @@ func (m *ItemCloudPCsValidateBulkResizeRequestBuilder) PostAsValidateBulkResizeP return res.(ItemCloudPCsValidateBulkResizePostResponseable), nil } // ToPostRequestInformation validate that a set of cloudPC devices meet the requirements to be bulk resized. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCloudPCsValidateBulkResizeRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemCloudPCsValidateBulkResizePostRequestBodyable, requestConfiguration *ItemCloudPCsValidateBulkResizeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -93,6 +95,7 @@ func (m *ItemCloudPCsValidateBulkResizeRequestBuilder) ToPostRequestInformation( return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCloudPCsValidateBulkResizeRequestBuilder when successful func (m *ItemCloudPCsValidateBulkResizeRequestBuilder) WithUrl(rawUrl string)(*ItemCloudPCsValidateBulkResizeRequestBuilder) { return NewItemCloudPCsValidateBulkResizeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_contact_folders_contact_folder_item_request_builder.go b/users/item_contact_folders_contact_folder_item_request_builder.go index cda0c35727a..c2e26b94f3f 100644 --- a/users/item_contact_folders_contact_folder_item_request_builder.go +++ b/users/item_contact_folders_contact_folder_item_request_builder.go @@ -65,6 +65,7 @@ func (m *ItemContactFoldersContactFolderItemRequestBuilder) Contacts()(*ItemCont return NewItemContactFoldersItemContactsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Delete delete navigation property contactFolders for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactFoldersContactFolderItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemContactFoldersContactFolderItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -81,6 +82,7 @@ func (m *ItemContactFoldersContactFolderItemRequestBuilder) Delete(ctx context.C return nil } // Get the user's contacts folders. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ContactFolderable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactFoldersContactFolderItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContactFoldersContactFolderItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContactFolderable, error) { @@ -101,6 +103,7 @@ func (m *ItemContactFoldersContactFolderItemRequestBuilder) Get(ctx context.Cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContactFolderable), nil } // Patch update the navigation property contactFolders in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ContactFolderable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactFoldersContactFolderItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContactFolderable, requestConfiguration *ItemContactFoldersContactFolderItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContactFolderable, error) { @@ -120,7 +123,13 @@ func (m *ItemContactFoldersContactFolderItemRequestBuilder) Patch(ctx context.Co } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContactFolderable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemContactFoldersItemPermanentDeleteRequestBuilder when successful +func (m *ItemContactFoldersContactFolderItemRequestBuilder) PermanentDelete()(*ItemContactFoldersItemPermanentDeleteRequestBuilder) { + return NewItemContactFoldersItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToDeleteRequestInformation delete navigation property contactFolders for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersContactFolderItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemContactFoldersContactFolderItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -132,6 +141,7 @@ func (m *ItemContactFoldersContactFolderItemRequestBuilder) ToDeleteRequestInfor return requestInfo, nil } // ToGetRequestInformation the user's contacts folders. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersContactFolderItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemContactFoldersContactFolderItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +156,7 @@ func (m *ItemContactFoldersContactFolderItemRequestBuilder) ToGetRequestInformat return requestInfo, nil } // ToPatchRequestInformation update the navigation property contactFolders in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersContactFolderItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContactFolderable, requestConfiguration *ItemContactFoldersContactFolderItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -161,6 +172,7 @@ func (m *ItemContactFoldersContactFolderItemRequestBuilder) ToPatchRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemContactFoldersContactFolderItemRequestBuilder when successful func (m *ItemContactFoldersContactFolderItemRequestBuilder) WithUrl(rawUrl string)(*ItemContactFoldersContactFolderItemRequestBuilder) { return NewItemContactFoldersContactFolderItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_contact_folders_count_request_builder.go b/users/item_contact_folders_count_request_builder.go index 75c08458ccd..67a630606e1 100644 --- a/users/item_contact_folders_count_request_builder.go +++ b/users/item_contact_folders_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemContactFoldersCountRequestBuilder(rawUrl string, requestAdapter i2ae return NewItemContactFoldersCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactFoldersCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContactFoldersCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemContactFoldersCountRequestBuilder) Get(ctx context.Context, request return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemContactFoldersCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemContactFoldersCountRequestBuilder) ToGetRequestInformation(ctx cont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemContactFoldersCountRequestBuilder when successful func (m *ItemContactFoldersCountRequestBuilder) WithUrl(rawUrl string)(*ItemContactFoldersCountRequestBuilder) { return NewItemContactFoldersCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_contact_folders_delta_request_builder.go b/users/item_contact_folders_delta_request_builder.go index 0b9defaafa3..ddffafdbc04 100644 --- a/users/item_contact_folders_delta_request_builder.go +++ b/users/item_contact_folders_delta_request_builder.go @@ -76,6 +76,7 @@ func (m *ItemContactFoldersDeltaRequestBuilder) Get(ctx context.Context, request return res.(ItemContactFoldersDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of contact folders that have been added, deleted, or removed from the user's mailbox. A delta function call for contact folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contact folders. This allows you to maintain and synchronize a local store of a user's contact folders without having to fetch all the contact folders of that mailbox from the server every time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemContactFoldersDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -99,6 +100,7 @@ func (m *ItemContactFoldersDeltaRequestBuilder) GetAsDeltaGetResponse(ctx contex return res.(ItemContactFoldersDeltaGetResponseable), nil } // ToGetRequestInformation get a set of contact folders that have been added, deleted, or removed from the user's mailbox. A delta function call for contact folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contact folders. This allows you to maintain and synchronize a local store of a user's contact folders without having to fetch all the contact folders of that mailbox from the server every time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemContactFoldersDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,6 +115,7 @@ func (m *ItemContactFoldersDeltaRequestBuilder) ToGetRequestInformation(ctx cont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemContactFoldersDeltaRequestBuilder when successful func (m *ItemContactFoldersDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemContactFoldersDeltaRequestBuilder) { return NewItemContactFoldersDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_contact_folders_item_child_folders_contact_folder_item_request_builder.go b/users/item_contact_folders_item_child_folders_contact_folder_item_request_builder.go index 8bbd179e131..694239dec68 100644 --- a/users/item_contact_folders_item_child_folders_contact_folder_item_request_builder.go +++ b/users/item_contact_folders_item_child_folders_contact_folder_item_request_builder.go @@ -60,6 +60,7 @@ func (m *ItemContactFoldersItemChildFoldersContactFolderItemRequestBuilder) Cont return NewItemContactFoldersItemChildFoldersItemContactsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Delete delete navigation property childFolders for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactFoldersItemChildFoldersContactFolderItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemContactFoldersItemChildFoldersContactFolderItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -76,6 +77,7 @@ func (m *ItemContactFoldersItemChildFoldersContactFolderItemRequestBuilder) Dele return nil } // Get the collection of child folders in the folder. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ContactFolderable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactFoldersItemChildFoldersContactFolderItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContactFoldersItemChildFoldersContactFolderItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContactFolderable, error) { @@ -96,6 +98,7 @@ func (m *ItemContactFoldersItemChildFoldersContactFolderItemRequestBuilder) Get( return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContactFolderable), nil } // Patch update the navigation property childFolders in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ContactFolderable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactFoldersItemChildFoldersContactFolderItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContactFolderable, requestConfiguration *ItemContactFoldersItemChildFoldersContactFolderItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContactFolderable, error) { @@ -115,7 +118,13 @@ func (m *ItemContactFoldersItemChildFoldersContactFolderItemRequestBuilder) Patc } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContactFolderable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemContactFoldersItemChildFoldersItemPermanentDeleteRequestBuilder when successful +func (m *ItemContactFoldersItemChildFoldersContactFolderItemRequestBuilder) PermanentDelete()(*ItemContactFoldersItemChildFoldersItemPermanentDeleteRequestBuilder) { + return NewItemContactFoldersItemChildFoldersItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToDeleteRequestInformation delete navigation property childFolders for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersItemChildFoldersContactFolderItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemContactFoldersItemChildFoldersContactFolderItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -127,6 +136,7 @@ func (m *ItemContactFoldersItemChildFoldersContactFolderItemRequestBuilder) ToDe return requestInfo, nil } // ToGetRequestInformation the collection of child folders in the folder. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersItemChildFoldersContactFolderItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemContactFoldersItemChildFoldersContactFolderItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,6 +151,7 @@ func (m *ItemContactFoldersItemChildFoldersContactFolderItemRequestBuilder) ToGe return requestInfo, nil } // ToPatchRequestInformation update the navigation property childFolders in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersItemChildFoldersContactFolderItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContactFolderable, requestConfiguration *ItemContactFoldersItemChildFoldersContactFolderItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +167,7 @@ func (m *ItemContactFoldersItemChildFoldersContactFolderItemRequestBuilder) ToPa return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemContactFoldersItemChildFoldersContactFolderItemRequestBuilder when successful func (m *ItemContactFoldersItemChildFoldersContactFolderItemRequestBuilder) WithUrl(rawUrl string)(*ItemContactFoldersItemChildFoldersContactFolderItemRequestBuilder) { return NewItemContactFoldersItemChildFoldersContactFolderItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_contact_folders_item_child_folders_count_request_builder.go b/users/item_contact_folders_item_child_folders_count_request_builder.go index a31a96f69eb..25b42a959f0 100644 --- a/users/item_contact_folders_item_child_folders_count_request_builder.go +++ b/users/item_contact_folders_item_child_folders_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemContactFoldersItemChildFoldersCountRequestBuilder(rawUrl string, req return NewItemContactFoldersItemChildFoldersCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactFoldersItemChildFoldersCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContactFoldersItemChildFoldersCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemContactFoldersItemChildFoldersCountRequestBuilder) Get(ctx context. return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersItemChildFoldersCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemContactFoldersItemChildFoldersCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemContactFoldersItemChildFoldersCountRequestBuilder) ToGetRequestInfo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemContactFoldersItemChildFoldersCountRequestBuilder when successful func (m *ItemContactFoldersItemChildFoldersCountRequestBuilder) WithUrl(rawUrl string)(*ItemContactFoldersItemChildFoldersCountRequestBuilder) { return NewItemContactFoldersItemChildFoldersCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_contact_folders_item_child_folders_delta_request_builder.go b/users/item_contact_folders_item_child_folders_delta_request_builder.go index 0525b486c28..60f7e0a32d1 100644 --- a/users/item_contact_folders_item_child_folders_delta_request_builder.go +++ b/users/item_contact_folders_item_child_folders_delta_request_builder.go @@ -76,6 +76,7 @@ func (m *ItemContactFoldersItemChildFoldersDeltaRequestBuilder) Get(ctx context. return res.(ItemContactFoldersItemChildFoldersDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of contact folders that have been added, deleted, or removed from the user's mailbox. A delta function call for contact folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contact folders. This allows you to maintain and synchronize a local store of a user's contact folders without having to fetch all the contact folders of that mailbox from the server every time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemContactFoldersItemChildFoldersDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -99,6 +100,7 @@ func (m *ItemContactFoldersItemChildFoldersDeltaRequestBuilder) GetAsDeltaGetRes return res.(ItemContactFoldersItemChildFoldersDeltaGetResponseable), nil } // ToGetRequestInformation get a set of contact folders that have been added, deleted, or removed from the user's mailbox. A delta function call for contact folders in a mailbox is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contact folders. This allows you to maintain and synchronize a local store of a user's contact folders without having to fetch all the contact folders of that mailbox from the server every time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersItemChildFoldersDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemContactFoldersItemChildFoldersDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,6 +115,7 @@ func (m *ItemContactFoldersItemChildFoldersDeltaRequestBuilder) ToGetRequestInfo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemContactFoldersItemChildFoldersDeltaRequestBuilder when successful func (m *ItemContactFoldersItemChildFoldersDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemContactFoldersItemChildFoldersDeltaRequestBuilder) { return NewItemContactFoldersItemChildFoldersDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_contact_folders_item_child_folders_item_contacts_contact_item_request_builder.go b/users/item_contact_folders_item_child_folders_item_contacts_contact_item_request_builder.go index f9ca8618c9b..663f7a5c7b2 100644 --- a/users/item_contact_folders_item_child_folders_item_contacts_contact_item_request_builder.go +++ b/users/item_contact_folders_item_child_folders_item_contacts_contact_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemContactFoldersItemChildFoldersItemContactsContactItemRequestBuilder( return NewItemContactFoldersItemChildFoldersItemContactsContactItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property contacts for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactFoldersItemChildFoldersItemContactsContactItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemContactFoldersItemChildFoldersItemContactsContactItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -76,6 +77,7 @@ func (m *ItemContactFoldersItemChildFoldersItemContactsContactItemRequestBuilder return NewItemContactFoldersItemChildFoldersItemContactsItemExtensionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the contacts in the folder. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Contactable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactFoldersItemChildFoldersItemContactsContactItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContactFoldersItemChildFoldersItemContactsContactItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Contactable, error) { @@ -96,6 +98,7 @@ func (m *ItemContactFoldersItemChildFoldersItemContactsContactItemRequestBuilder return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Contactable), nil } // Patch update the navigation property contacts in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Contactable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactFoldersItemChildFoldersItemContactsContactItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Contactable, requestConfiguration *ItemContactFoldersItemChildFoldersItemContactsContactItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Contactable, error) { @@ -115,12 +118,18 @@ func (m *ItemContactFoldersItemChildFoldersItemContactsContactItemRequestBuilder } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Contactable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemContactFoldersItemChildFoldersItemContactsItemPermanentDeleteRequestBuilder when successful +func (m *ItemContactFoldersItemChildFoldersItemContactsContactItemRequestBuilder) PermanentDelete()(*ItemContactFoldersItemChildFoldersItemContactsItemPermanentDeleteRequestBuilder) { + return NewItemContactFoldersItemChildFoldersItemContactsItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Photo provides operations to manage the photo property of the microsoft.graph.contact entity. // returns a *ItemContactFoldersItemChildFoldersItemContactsItemPhotoRequestBuilder when successful func (m *ItemContactFoldersItemChildFoldersItemContactsContactItemRequestBuilder) Photo()(*ItemContactFoldersItemChildFoldersItemContactsItemPhotoRequestBuilder) { return NewItemContactFoldersItemChildFoldersItemContactsItemPhotoRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property contacts for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersItemChildFoldersItemContactsContactItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemContactFoldersItemChildFoldersItemContactsContactItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -132,6 +141,7 @@ func (m *ItemContactFoldersItemChildFoldersItemContactsContactItemRequestBuilder return requestInfo, nil } // ToGetRequestInformation the contacts in the folder. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersItemChildFoldersItemContactsContactItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemContactFoldersItemChildFoldersItemContactsContactItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +156,7 @@ func (m *ItemContactFoldersItemChildFoldersItemContactsContactItemRequestBuilder return requestInfo, nil } // ToPatchRequestInformation update the navigation property contacts in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersItemChildFoldersItemContactsContactItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Contactable, requestConfiguration *ItemContactFoldersItemChildFoldersItemContactsContactItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -161,6 +172,7 @@ func (m *ItemContactFoldersItemChildFoldersItemContactsContactItemRequestBuilder return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemContactFoldersItemChildFoldersItemContactsContactItemRequestBuilder when successful func (m *ItemContactFoldersItemChildFoldersItemContactsContactItemRequestBuilder) WithUrl(rawUrl string)(*ItemContactFoldersItemChildFoldersItemContactsContactItemRequestBuilder) { return NewItemContactFoldersItemChildFoldersItemContactsContactItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_contact_folders_item_child_folders_item_contacts_count_request_builder.go b/users/item_contact_folders_item_child_folders_item_contacts_count_request_builder.go index 4e792d0afcb..34e157a3c4e 100644 --- a/users/item_contact_folders_item_child_folders_item_contacts_count_request_builder.go +++ b/users/item_contact_folders_item_child_folders_item_contacts_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemContactFoldersItemChildFoldersItemContactsCountRequestBuilder(rawUrl return NewItemContactFoldersItemChildFoldersItemContactsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactFoldersItemChildFoldersItemContactsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContactFoldersItemChildFoldersItemContactsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemContactFoldersItemChildFoldersItemContactsCountRequestBuilder) Get( return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersItemChildFoldersItemContactsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemContactFoldersItemChildFoldersItemContactsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemContactFoldersItemChildFoldersItemContactsCountRequestBuilder) ToGe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemContactFoldersItemChildFoldersItemContactsCountRequestBuilder when successful func (m *ItemContactFoldersItemChildFoldersItemContactsCountRequestBuilder) WithUrl(rawUrl string)(*ItemContactFoldersItemChildFoldersItemContactsCountRequestBuilder) { return NewItemContactFoldersItemChildFoldersItemContactsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_contact_folders_item_child_folders_item_contacts_delta_request_builder.go b/users/item_contact_folders_item_child_folders_item_contacts_delta_request_builder.go index a0941e6cb72..6b7c023a1a5 100644 --- a/users/item_contact_folders_item_child_folders_item_contacts_delta_request_builder.go +++ b/users/item_contact_folders_item_child_folders_item_contacts_delta_request_builder.go @@ -76,6 +76,7 @@ func (m *ItemContactFoldersItemChildFoldersItemContactsDeltaRequestBuilder) Get( return res.(ItemContactFoldersItemChildFoldersItemContactsDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemContactFoldersItemChildFoldersItemContactsDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -99,6 +100,7 @@ func (m *ItemContactFoldersItemChildFoldersItemContactsDeltaRequestBuilder) GetA return res.(ItemContactFoldersItemChildFoldersItemContactsDeltaGetResponseable), nil } // ToGetRequestInformation get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersItemChildFoldersItemContactsDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemContactFoldersItemChildFoldersItemContactsDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,6 +115,7 @@ func (m *ItemContactFoldersItemChildFoldersItemContactsDeltaRequestBuilder) ToGe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemContactFoldersItemChildFoldersItemContactsDeltaRequestBuilder when successful func (m *ItemContactFoldersItemChildFoldersItemContactsDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemContactFoldersItemChildFoldersItemContactsDeltaRequestBuilder) { return NewItemContactFoldersItemChildFoldersItemContactsDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_contact_folders_item_child_folders_item_contacts_item_extensions_count_request_builder.go b/users/item_contact_folders_item_child_folders_item_contacts_item_extensions_count_request_builder.go index 19885b68720..cb07ad2b663 100644 --- a/users/item_contact_folders_item_child_folders_item_contacts_item_extensions_count_request_builder.go +++ b/users/item_contact_folders_item_child_folders_item_contacts_item_extensions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemContactFoldersItemChildFoldersItemContactsItemExtensionsCountRequest return NewItemContactFoldersItemChildFoldersItemContactsItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactFoldersItemChildFoldersItemContactsItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContactFoldersItemChildFoldersItemContactsItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemContactFoldersItemChildFoldersItemContactsItemExtensionsCountReques return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersItemChildFoldersItemContactsItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemContactFoldersItemChildFoldersItemContactsItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemContactFoldersItemChildFoldersItemContactsItemExtensionsCountReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemContactFoldersItemChildFoldersItemContactsItemExtensionsCountRequestBuilder when successful func (m *ItemContactFoldersItemChildFoldersItemContactsItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemContactFoldersItemChildFoldersItemContactsItemExtensionsCountRequestBuilder) { return NewItemContactFoldersItemChildFoldersItemContactsItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_contact_folders_item_child_folders_item_contacts_item_extensions_extension_item_request_builder.go b/users/item_contact_folders_item_child_folders_item_contacts_item_extensions_extension_item_request_builder.go index ea3001a63c7..b8b622b4dee 100644 --- a/users/item_contact_folders_item_child_folders_item_contacts_item_extensions_extension_item_request_builder.go +++ b/users/item_contact_folders_item_child_folders_item_contacts_item_extensions_extension_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemContactFoldersItemChildFoldersItemContactsItemExtensionsExtensionIte return NewItemContactFoldersItemChildFoldersItemContactsItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactFoldersItemChildFoldersItemContactsItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemContactFoldersItemChildFoldersItemContactsItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemContactFoldersItemChildFoldersItemContactsItemExtensionsExtensionIt return nil } // Get the collection of open extensions defined for the contact. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactFoldersItemChildFoldersItemContactsItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContactFoldersItemChildFoldersItemContactsItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemContactFoldersItemChildFoldersItemContactsItemExtensionsExtensionIt return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactFoldersItemChildFoldersItemContactsItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemContactFoldersItemChildFoldersItemContactsItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemContactFoldersItemChildFoldersItemContactsItemExtensionsExtensionIt return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersItemChildFoldersItemContactsItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemContactFoldersItemChildFoldersItemContactsItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemContactFoldersItemChildFoldersItemContactsItemExtensionsExtensionIt return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the contact. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersItemChildFoldersItemContactsItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemContactFoldersItemChildFoldersItemContactsItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemContactFoldersItemChildFoldersItemContactsItemExtensionsExtensionIt return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersItemChildFoldersItemContactsItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemContactFoldersItemChildFoldersItemContactsItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemContactFoldersItemChildFoldersItemContactsItemExtensionsExtensionIt return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemContactFoldersItemChildFoldersItemContactsItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemContactFoldersItemChildFoldersItemContactsItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemContactFoldersItemChildFoldersItemContactsItemExtensionsExtensionItemRequestBuilder) { return NewItemContactFoldersItemChildFoldersItemContactsItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_contact_folders_item_child_folders_item_contacts_item_extensions_request_builder.go b/users/item_contact_folders_item_child_folders_item_contacts_item_extensions_request_builder.go index 8724bc97bb1..c6fa0e97c1b 100644 --- a/users/item_contact_folders_item_child_folders_item_contacts_item_extensions_request_builder.go +++ b/users/item_contact_folders_item_child_folders_item_contacts_item_extensions_request_builder.go @@ -47,6 +47,7 @@ type ItemContactFoldersItemChildFoldersItemContactsItemExtensionsRequestBuilderP Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.contact entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemContactFoldersItemChildFoldersItemContactsItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemContactFoldersItemChildFoldersItemContactsItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemContactFoldersItemChildFoldersItemContactsItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemContactFoldersItemChildFoldersItemContactsItemExtensionsRequestBuil return NewItemContactFoldersItemChildFoldersItemContactsItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the contact. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactFoldersItemChildFoldersItemContactsItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContactFoldersItemChildFoldersItemContactsItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemContactFoldersItemChildFoldersItemContactsItemExtensionsRequestBuil return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactFoldersItemChildFoldersItemContactsItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemContactFoldersItemChildFoldersItemContactsItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemContactFoldersItemChildFoldersItemContactsItemExtensionsRequestBuil return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the contact. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersItemChildFoldersItemContactsItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemContactFoldersItemChildFoldersItemContactsItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemContactFoldersItemChildFoldersItemContactsItemExtensionsRequestBuil return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersItemChildFoldersItemContactsItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemContactFoldersItemChildFoldersItemContactsItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemContactFoldersItemChildFoldersItemContactsItemExtensionsRequestBuil return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemContactFoldersItemChildFoldersItemContactsItemExtensionsRequestBuilder when successful func (m *ItemContactFoldersItemChildFoldersItemContactsItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemContactFoldersItemChildFoldersItemContactsItemExtensionsRequestBuilder) { return NewItemContactFoldersItemChildFoldersItemContactsItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_contact_folders_item_child_folders_item_contacts_item_permanent_delete_request_builder.go b/users/item_contact_folders_item_child_folders_item_contacts_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..16e443f578d --- /dev/null +++ b/users/item_contact_folders_item_child_folders_item_contacts_item_permanent_delete_request_builder.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemContactFoldersItemChildFoldersItemContactsItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemContactFoldersItemChildFoldersItemContactsItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemContactFoldersItemChildFoldersItemContactsItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemContactFoldersItemChildFoldersItemContactsItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemContactFoldersItemChildFoldersItemContactsItemPermanentDeleteRequestBuilderInternal instantiates a new ItemContactFoldersItemChildFoldersItemContactsItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemContactFoldersItemChildFoldersItemContactsItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContactFoldersItemChildFoldersItemContactsItemPermanentDeleteRequestBuilder) { + m := &ItemContactFoldersItemChildFoldersItemContactsItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/contactFolders/{contactFolder%2Did}/childFolders/{contactFolder%2Did1}/contacts/{contact%2Did}/permanentDelete", pathParameters), + } + return m +} +// NewItemContactFoldersItemChildFoldersItemContactsItemPermanentDeleteRequestBuilder instantiates a new ItemContactFoldersItemChildFoldersItemContactsItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemContactFoldersItemChildFoldersItemContactsItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContactFoldersItemChildFoldersItemContactsItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemContactFoldersItemChildFoldersItemContactsItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete a contact and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/contact-permanentdelete?view=graph-rest-beta +func (m *ItemContactFoldersItemChildFoldersItemContactsItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemContactFoldersItemChildFoldersItemContactsItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete a contact and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemContactFoldersItemChildFoldersItemContactsItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemContactFoldersItemChildFoldersItemContactsItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemContactFoldersItemChildFoldersItemContactsItemPermanentDeleteRequestBuilder when successful +func (m *ItemContactFoldersItemChildFoldersItemContactsItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemContactFoldersItemChildFoldersItemContactsItemPermanentDeleteRequestBuilder) { + return NewItemContactFoldersItemChildFoldersItemContactsItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_contact_folders_item_child_folders_item_contacts_item_photo_request_builder.go b/users/item_contact_folders_item_child_folders_item_contacts_item_photo_request_builder.go index c14b3425602..b501b61a7a3 100644 --- a/users/item_contact_folders_item_child_folders_item_contacts_item_photo_request_builder.go +++ b/users/item_contact_folders_item_child_folders_item_contacts_item_photo_request_builder.go @@ -53,6 +53,7 @@ func (m *ItemContactFoldersItemChildFoldersItemContactsItemPhotoRequestBuilder) return NewItemContactFoldersItemChildFoldersItemContactsItemPhotoValueContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get optional contact picture. You can get or set a photo for a contact. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ProfilePhotoable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactFoldersItemChildFoldersItemContactsItemPhotoRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContactFoldersItemChildFoldersItemContactsItemPhotoRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfilePhotoable, error) { @@ -73,6 +74,7 @@ func (m *ItemContactFoldersItemChildFoldersItemContactsItemPhotoRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfilePhotoable), nil } // Patch update the navigation property photo in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ProfilePhotoable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactFoldersItemChildFoldersItemContactsItemPhotoRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfilePhotoable, requestConfiguration *ItemContactFoldersItemChildFoldersItemContactsItemPhotoRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfilePhotoable, error) { @@ -93,6 +95,7 @@ func (m *ItemContactFoldersItemChildFoldersItemContactsItemPhotoRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfilePhotoable), nil } // ToGetRequestInformation optional contact picture. You can get or set a photo for a contact. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersItemChildFoldersItemContactsItemPhotoRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemContactFoldersItemChildFoldersItemContactsItemPhotoRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -107,6 +110,7 @@ func (m *ItemContactFoldersItemChildFoldersItemContactsItemPhotoRequestBuilder) return requestInfo, nil } // ToPatchRequestInformation update the navigation property photo in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersItemChildFoldersItemContactsItemPhotoRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfilePhotoable, requestConfiguration *ItemContactFoldersItemChildFoldersItemContactsItemPhotoRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemContactFoldersItemChildFoldersItemContactsItemPhotoRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemContactFoldersItemChildFoldersItemContactsItemPhotoRequestBuilder when successful func (m *ItemContactFoldersItemChildFoldersItemContactsItemPhotoRequestBuilder) WithUrl(rawUrl string)(*ItemContactFoldersItemChildFoldersItemContactsItemPhotoRequestBuilder) { return NewItemContactFoldersItemChildFoldersItemContactsItemPhotoRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_contact_folders_item_child_folders_item_contacts_item_photo_value_content_request_builder.go b/users/item_contact_folders_item_child_folders_item_contacts_item_photo_value_content_request_builder.go index 9f84adf9583..193dac05fd5 100644 --- a/users/item_contact_folders_item_child_folders_item_contacts_item_photo_value_content_request_builder.go +++ b/users/item_contact_folders_item_child_folders_item_contacts_item_photo_value_content_request_builder.go @@ -45,6 +45,7 @@ func NewItemContactFoldersItemChildFoldersItemContactsItemPhotoValueContentReque return NewItemContactFoldersItemChildFoldersItemContactsItemPhotoValueContentRequestBuilderInternal(urlParams, requestAdapter) } // Delete optional contact picture. You can get or set a photo for a contact. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactFoldersItemChildFoldersItemContactsItemPhotoValueContentRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemContactFoldersItemChildFoldersItemContactsItemPhotoValueContentRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -61,6 +62,7 @@ func (m *ItemContactFoldersItemChildFoldersItemContactsItemPhotoValueContentRequ return nil } // Get optional contact picture. You can get or set a photo for a contact. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactFoldersItemChildFoldersItemContactsItemPhotoValueContentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContactFoldersItemChildFoldersItemContactsItemPhotoValueContentRequestBuilderGetRequestConfiguration)([]byte, error) { @@ -81,6 +83,7 @@ func (m *ItemContactFoldersItemChildFoldersItemContactsItemPhotoValueContentRequ return res.([]byte), nil } // Put optional contact picture. You can get or set a photo for a contact. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactFoldersItemChildFoldersItemContactsItemPhotoValueContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemContactFoldersItemChildFoldersItemContactsItemPhotoValueContentRequestBuilderPutRequestConfiguration)([]byte, error) { @@ -101,6 +104,7 @@ func (m *ItemContactFoldersItemChildFoldersItemContactsItemPhotoValueContentRequ return res.([]byte), nil } // ToDeleteRequestInformation optional contact picture. You can get or set a photo for a contact. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersItemChildFoldersItemContactsItemPhotoValueContentRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemContactFoldersItemChildFoldersItemContactsItemPhotoValueContentRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -112,6 +116,7 @@ func (m *ItemContactFoldersItemChildFoldersItemContactsItemPhotoValueContentRequ return requestInfo, nil } // ToGetRequestInformation optional contact picture. You can get or set a photo for a contact. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersItemChildFoldersItemContactsItemPhotoValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemContactFoldersItemChildFoldersItemContactsItemPhotoValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -123,6 +128,7 @@ func (m *ItemContactFoldersItemChildFoldersItemContactsItemPhotoValueContentRequ return requestInfo, nil } // ToPutRequestInformation optional contact picture. You can get or set a photo for a contact. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersItemChildFoldersItemContactsItemPhotoValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemContactFoldersItemChildFoldersItemContactsItemPhotoValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -135,6 +141,7 @@ func (m *ItemContactFoldersItemChildFoldersItemContactsItemPhotoValueContentRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemContactFoldersItemChildFoldersItemContactsItemPhotoValueContentRequestBuilder when successful func (m *ItemContactFoldersItemChildFoldersItemContactsItemPhotoValueContentRequestBuilder) WithUrl(rawUrl string)(*ItemContactFoldersItemChildFoldersItemContactsItemPhotoValueContentRequestBuilder) { return NewItemContactFoldersItemChildFoldersItemContactsItemPhotoValueContentRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_contact_folders_item_child_folders_item_contacts_request_builder.go b/users/item_contact_folders_item_child_folders_item_contacts_request_builder.go index 152ab1c42cb..3159662fb4d 100644 --- a/users/item_contact_folders_item_child_folders_item_contacts_request_builder.go +++ b/users/item_contact_folders_item_child_folders_item_contacts_request_builder.go @@ -47,6 +47,7 @@ type ItemContactFoldersItemChildFoldersItemContactsRequestBuilderPostRequestConf Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByContactId provides operations to manage the contacts property of the microsoft.graph.contactFolder entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemContactFoldersItemChildFoldersItemContactsContactItemRequestBuilder when successful func (m *ItemContactFoldersItemChildFoldersItemContactsRequestBuilder) ByContactId(contactId string)(*ItemContactFoldersItemChildFoldersItemContactsContactItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemContactFoldersItemChildFoldersItemContactsRequestBuilder) Delta()(* return NewItemContactFoldersItemChildFoldersItemContactsDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the contacts in the folder. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ContactCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactFoldersItemChildFoldersItemContactsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContactFoldersItemChildFoldersItemContactsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContactCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemContactFoldersItemChildFoldersItemContactsRequestBuilder) Get(ctx c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContactCollectionResponseable), nil } // Post create new navigation property to contacts for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Contactable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactFoldersItemChildFoldersItemContactsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Contactable, requestConfiguration *ItemContactFoldersItemChildFoldersItemContactsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Contactable, error) { @@ -122,6 +125,7 @@ func (m *ItemContactFoldersItemChildFoldersItemContactsRequestBuilder) Post(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Contactable), nil } // ToGetRequestInformation the contacts in the folder. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersItemChildFoldersItemContactsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemContactFoldersItemChildFoldersItemContactsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemContactFoldersItemChildFoldersItemContactsRequestBuilder) ToGetRequ return requestInfo, nil } // ToPostRequestInformation create new navigation property to contacts for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersItemChildFoldersItemContactsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Contactable, requestConfiguration *ItemContactFoldersItemChildFoldersItemContactsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemContactFoldersItemChildFoldersItemContactsRequestBuilder) ToPostReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemContactFoldersItemChildFoldersItemContactsRequestBuilder when successful func (m *ItemContactFoldersItemChildFoldersItemContactsRequestBuilder) WithUrl(rawUrl string)(*ItemContactFoldersItemChildFoldersItemContactsRequestBuilder) { return NewItemContactFoldersItemChildFoldersItemContactsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_contact_folders_item_child_folders_item_permanent_delete_request_builder.go b/users/item_contact_folders_item_child_folders_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..37c686f07d9 --- /dev/null +++ b/users/item_contact_folders_item_child_folders_item_permanent_delete_request_builder.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemContactFoldersItemChildFoldersItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemContactFoldersItemChildFoldersItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemContactFoldersItemChildFoldersItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemContactFoldersItemChildFoldersItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemContactFoldersItemChildFoldersItemPermanentDeleteRequestBuilderInternal instantiates a new ItemContactFoldersItemChildFoldersItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemContactFoldersItemChildFoldersItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContactFoldersItemChildFoldersItemPermanentDeleteRequestBuilder) { + m := &ItemContactFoldersItemChildFoldersItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/contactFolders/{contactFolder%2Did}/childFolders/{contactFolder%2Did1}/permanentDelete", pathParameters), + } + return m +} +// NewItemContactFoldersItemChildFoldersItemPermanentDeleteRequestBuilder instantiates a new ItemContactFoldersItemChildFoldersItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemContactFoldersItemChildFoldersItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContactFoldersItemChildFoldersItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemContactFoldersItemChildFoldersItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete a contact folder and remove its items from the user's mailbox. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/contactfolder-permanentdelete?view=graph-rest-beta +func (m *ItemContactFoldersItemChildFoldersItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemContactFoldersItemChildFoldersItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete a contact folder and remove its items from the user's mailbox. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemContactFoldersItemChildFoldersItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemContactFoldersItemChildFoldersItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemContactFoldersItemChildFoldersItemPermanentDeleteRequestBuilder when successful +func (m *ItemContactFoldersItemChildFoldersItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemContactFoldersItemChildFoldersItemPermanentDeleteRequestBuilder) { + return NewItemContactFoldersItemChildFoldersItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_contact_folders_item_child_folders_request_builder.go b/users/item_contact_folders_item_child_folders_request_builder.go index 67950c06d6e..8b1cfb02a2b 100644 --- a/users/item_contact_folders_item_child_folders_request_builder.go +++ b/users/item_contact_folders_item_child_folders_request_builder.go @@ -47,6 +47,7 @@ type ItemContactFoldersItemChildFoldersRequestBuilderPostRequestConfiguration st Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByContactFolderId1 provides operations to manage the childFolders property of the microsoft.graph.contactFolder entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemContactFoldersItemChildFoldersContactFolderItemRequestBuilder when successful func (m *ItemContactFoldersItemChildFoldersRequestBuilder) ByContactFolderId1(contactFolderId1 string)(*ItemContactFoldersItemChildFoldersContactFolderItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemContactFoldersItemChildFoldersRequestBuilder) Delta()(*ItemContactF return NewItemContactFoldersItemChildFoldersDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of child folders in the folder. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ContactFolderCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactFoldersItemChildFoldersRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContactFoldersItemChildFoldersRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContactFolderCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemContactFoldersItemChildFoldersRequestBuilder) Get(ctx context.Conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContactFolderCollectionResponseable), nil } // Post create new navigation property to childFolders for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ContactFolderable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactFoldersItemChildFoldersRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContactFolderable, requestConfiguration *ItemContactFoldersItemChildFoldersRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContactFolderable, error) { @@ -122,6 +125,7 @@ func (m *ItemContactFoldersItemChildFoldersRequestBuilder) Post(ctx context.Cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContactFolderable), nil } // ToGetRequestInformation the collection of child folders in the folder. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersItemChildFoldersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemContactFoldersItemChildFoldersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemContactFoldersItemChildFoldersRequestBuilder) ToGetRequestInformati return requestInfo, nil } // ToPostRequestInformation create new navigation property to childFolders for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersItemChildFoldersRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContactFolderable, requestConfiguration *ItemContactFoldersItemChildFoldersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemContactFoldersItemChildFoldersRequestBuilder) ToPostRequestInformat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemContactFoldersItemChildFoldersRequestBuilder when successful func (m *ItemContactFoldersItemChildFoldersRequestBuilder) WithUrl(rawUrl string)(*ItemContactFoldersItemChildFoldersRequestBuilder) { return NewItemContactFoldersItemChildFoldersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_contact_folders_item_contacts_contact_item_request_builder.go b/users/item_contact_folders_item_contacts_contact_item_request_builder.go index 1a4bd556435..3a97d82614d 100644 --- a/users/item_contact_folders_item_contacts_contact_item_request_builder.go +++ b/users/item_contact_folders_item_contacts_contact_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemContactFoldersItemContactsContactItemRequestBuilder(rawUrl string, r return NewItemContactFoldersItemContactsContactItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property contacts for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactFoldersItemContactsContactItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemContactFoldersItemContactsContactItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -76,6 +77,7 @@ func (m *ItemContactFoldersItemContactsContactItemRequestBuilder) Extensions()(* return NewItemContactFoldersItemContactsItemExtensionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the contacts in the folder. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Contactable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactFoldersItemContactsContactItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContactFoldersItemContactsContactItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Contactable, error) { @@ -96,6 +98,7 @@ func (m *ItemContactFoldersItemContactsContactItemRequestBuilder) Get(ctx contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Contactable), nil } // Patch update the navigation property contacts in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Contactable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactFoldersItemContactsContactItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Contactable, requestConfiguration *ItemContactFoldersItemContactsContactItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Contactable, error) { @@ -115,12 +118,18 @@ func (m *ItemContactFoldersItemContactsContactItemRequestBuilder) Patch(ctx cont } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Contactable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemContactFoldersItemContactsItemPermanentDeleteRequestBuilder when successful +func (m *ItemContactFoldersItemContactsContactItemRequestBuilder) PermanentDelete()(*ItemContactFoldersItemContactsItemPermanentDeleteRequestBuilder) { + return NewItemContactFoldersItemContactsItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Photo provides operations to manage the photo property of the microsoft.graph.contact entity. // returns a *ItemContactFoldersItemContactsItemPhotoRequestBuilder when successful func (m *ItemContactFoldersItemContactsContactItemRequestBuilder) Photo()(*ItemContactFoldersItemContactsItemPhotoRequestBuilder) { return NewItemContactFoldersItemContactsItemPhotoRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property contacts for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersItemContactsContactItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemContactFoldersItemContactsContactItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -132,6 +141,7 @@ func (m *ItemContactFoldersItemContactsContactItemRequestBuilder) ToDeleteReques return requestInfo, nil } // ToGetRequestInformation the contacts in the folder. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersItemContactsContactItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemContactFoldersItemContactsContactItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +156,7 @@ func (m *ItemContactFoldersItemContactsContactItemRequestBuilder) ToGetRequestIn return requestInfo, nil } // ToPatchRequestInformation update the navigation property contacts in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersItemContactsContactItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Contactable, requestConfiguration *ItemContactFoldersItemContactsContactItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -161,6 +172,7 @@ func (m *ItemContactFoldersItemContactsContactItemRequestBuilder) ToPatchRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemContactFoldersItemContactsContactItemRequestBuilder when successful func (m *ItemContactFoldersItemContactsContactItemRequestBuilder) WithUrl(rawUrl string)(*ItemContactFoldersItemContactsContactItemRequestBuilder) { return NewItemContactFoldersItemContactsContactItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_contact_folders_item_contacts_count_request_builder.go b/users/item_contact_folders_item_contacts_count_request_builder.go index 7d00c065335..81069a95491 100644 --- a/users/item_contact_folders_item_contacts_count_request_builder.go +++ b/users/item_contact_folders_item_contacts_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemContactFoldersItemContactsCountRequestBuilder(rawUrl string, request return NewItemContactFoldersItemContactsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactFoldersItemContactsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContactFoldersItemContactsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemContactFoldersItemContactsCountRequestBuilder) Get(ctx context.Cont return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersItemContactsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemContactFoldersItemContactsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemContactFoldersItemContactsCountRequestBuilder) ToGetRequestInformat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemContactFoldersItemContactsCountRequestBuilder when successful func (m *ItemContactFoldersItemContactsCountRequestBuilder) WithUrl(rawUrl string)(*ItemContactFoldersItemContactsCountRequestBuilder) { return NewItemContactFoldersItemContactsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_contact_folders_item_contacts_delta_request_builder.go b/users/item_contact_folders_item_contacts_delta_request_builder.go index 960aa700ec0..d7c076a91e0 100644 --- a/users/item_contact_folders_item_contacts_delta_request_builder.go +++ b/users/item_contact_folders_item_contacts_delta_request_builder.go @@ -76,6 +76,7 @@ func (m *ItemContactFoldersItemContactsDeltaRequestBuilder) Get(ctx context.Cont return res.(ItemContactFoldersItemContactsDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemContactFoldersItemContactsDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -99,6 +100,7 @@ func (m *ItemContactFoldersItemContactsDeltaRequestBuilder) GetAsDeltaGetRespons return res.(ItemContactFoldersItemContactsDeltaGetResponseable), nil } // ToGetRequestInformation get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersItemContactsDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemContactFoldersItemContactsDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,6 +115,7 @@ func (m *ItemContactFoldersItemContactsDeltaRequestBuilder) ToGetRequestInformat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemContactFoldersItemContactsDeltaRequestBuilder when successful func (m *ItemContactFoldersItemContactsDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemContactFoldersItemContactsDeltaRequestBuilder) { return NewItemContactFoldersItemContactsDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_contact_folders_item_contacts_item_extensions_count_request_builder.go b/users/item_contact_folders_item_contacts_item_extensions_count_request_builder.go index 8871513a0c5..0e1ebe44693 100644 --- a/users/item_contact_folders_item_contacts_item_extensions_count_request_builder.go +++ b/users/item_contact_folders_item_contacts_item_extensions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemContactFoldersItemContactsItemExtensionsCountRequestBuilder(rawUrl s return NewItemContactFoldersItemContactsItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactFoldersItemContactsItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContactFoldersItemContactsItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemContactFoldersItemContactsItemExtensionsCountRequestBuilder) Get(ct return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersItemContactsItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemContactFoldersItemContactsItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemContactFoldersItemContactsItemExtensionsCountRequestBuilder) ToGetR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemContactFoldersItemContactsItemExtensionsCountRequestBuilder when successful func (m *ItemContactFoldersItemContactsItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemContactFoldersItemContactsItemExtensionsCountRequestBuilder) { return NewItemContactFoldersItemContactsItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_contact_folders_item_contacts_item_extensions_extension_item_request_builder.go b/users/item_contact_folders_item_contacts_item_extensions_extension_item_request_builder.go index 649fb2e5734..e84ae3a1093 100644 --- a/users/item_contact_folders_item_contacts_item_extensions_extension_item_request_builder.go +++ b/users/item_contact_folders_item_contacts_item_extensions_extension_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemContactFoldersItemContactsItemExtensionsExtensionItemRequestBuilder( return NewItemContactFoldersItemContactsItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactFoldersItemContactsItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemContactFoldersItemContactsItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemContactFoldersItemContactsItemExtensionsExtensionItemRequestBuilder return nil } // Get the collection of open extensions defined for the contact. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactFoldersItemContactsItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContactFoldersItemContactsItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemContactFoldersItemContactsItemExtensionsExtensionItemRequestBuilder return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactFoldersItemContactsItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemContactFoldersItemContactsItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemContactFoldersItemContactsItemExtensionsExtensionItemRequestBuilder return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersItemContactsItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemContactFoldersItemContactsItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemContactFoldersItemContactsItemExtensionsExtensionItemRequestBuilder return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the contact. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersItemContactsItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemContactFoldersItemContactsItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemContactFoldersItemContactsItemExtensionsExtensionItemRequestBuilder return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersItemContactsItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemContactFoldersItemContactsItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemContactFoldersItemContactsItemExtensionsExtensionItemRequestBuilder return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemContactFoldersItemContactsItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemContactFoldersItemContactsItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemContactFoldersItemContactsItemExtensionsExtensionItemRequestBuilder) { return NewItemContactFoldersItemContactsItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_contact_folders_item_contacts_item_extensions_request_builder.go b/users/item_contact_folders_item_contacts_item_extensions_request_builder.go index c0d153d237a..33255540f37 100644 --- a/users/item_contact_folders_item_contacts_item_extensions_request_builder.go +++ b/users/item_contact_folders_item_contacts_item_extensions_request_builder.go @@ -47,6 +47,7 @@ type ItemContactFoldersItemContactsItemExtensionsRequestBuilderPostRequestConfig Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.contact entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemContactFoldersItemContactsItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemContactFoldersItemContactsItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemContactFoldersItemContactsItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemContactFoldersItemContactsItemExtensionsRequestBuilder) Count()(*It return NewItemContactFoldersItemContactsItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the contact. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactFoldersItemContactsItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContactFoldersItemContactsItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemContactFoldersItemContactsItemExtensionsRequestBuilder) Get(ctx con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactFoldersItemContactsItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemContactFoldersItemContactsItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemContactFoldersItemContactsItemExtensionsRequestBuilder) Post(ctx co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the contact. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersItemContactsItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemContactFoldersItemContactsItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemContactFoldersItemContactsItemExtensionsRequestBuilder) ToGetReques return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersItemContactsItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemContactFoldersItemContactsItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemContactFoldersItemContactsItemExtensionsRequestBuilder) ToPostReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemContactFoldersItemContactsItemExtensionsRequestBuilder when successful func (m *ItemContactFoldersItemContactsItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemContactFoldersItemContactsItemExtensionsRequestBuilder) { return NewItemContactFoldersItemContactsItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_contact_folders_item_contacts_item_permanent_delete_request_builder.go b/users/item_contact_folders_item_contacts_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..b6f62fdcfe1 --- /dev/null +++ b/users/item_contact_folders_item_contacts_item_permanent_delete_request_builder.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemContactFoldersItemContactsItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemContactFoldersItemContactsItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemContactFoldersItemContactsItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemContactFoldersItemContactsItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemContactFoldersItemContactsItemPermanentDeleteRequestBuilderInternal instantiates a new ItemContactFoldersItemContactsItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemContactFoldersItemContactsItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContactFoldersItemContactsItemPermanentDeleteRequestBuilder) { + m := &ItemContactFoldersItemContactsItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/contactFolders/{contactFolder%2Did}/contacts/{contact%2Did}/permanentDelete", pathParameters), + } + return m +} +// NewItemContactFoldersItemContactsItemPermanentDeleteRequestBuilder instantiates a new ItemContactFoldersItemContactsItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemContactFoldersItemContactsItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContactFoldersItemContactsItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemContactFoldersItemContactsItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete a contact and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/contact-permanentdelete?view=graph-rest-beta +func (m *ItemContactFoldersItemContactsItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemContactFoldersItemContactsItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete a contact and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemContactFoldersItemContactsItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemContactFoldersItemContactsItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemContactFoldersItemContactsItemPermanentDeleteRequestBuilder when successful +func (m *ItemContactFoldersItemContactsItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemContactFoldersItemContactsItemPermanentDeleteRequestBuilder) { + return NewItemContactFoldersItemContactsItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_contact_folders_item_contacts_item_photo_request_builder.go b/users/item_contact_folders_item_contacts_item_photo_request_builder.go index 302a123193a..4f4cec4c79c 100644 --- a/users/item_contact_folders_item_contacts_item_photo_request_builder.go +++ b/users/item_contact_folders_item_contacts_item_photo_request_builder.go @@ -53,6 +53,7 @@ func (m *ItemContactFoldersItemContactsItemPhotoRequestBuilder) Content()(*ItemC return NewItemContactFoldersItemContactsItemPhotoValueContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get optional contact picture. You can get or set a photo for a contact. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ProfilePhotoable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactFoldersItemContactsItemPhotoRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContactFoldersItemContactsItemPhotoRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfilePhotoable, error) { @@ -73,6 +74,7 @@ func (m *ItemContactFoldersItemContactsItemPhotoRequestBuilder) Get(ctx context. return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfilePhotoable), nil } // Patch update the navigation property photo in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ProfilePhotoable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactFoldersItemContactsItemPhotoRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfilePhotoable, requestConfiguration *ItemContactFoldersItemContactsItemPhotoRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfilePhotoable, error) { @@ -93,6 +95,7 @@ func (m *ItemContactFoldersItemContactsItemPhotoRequestBuilder) Patch(ctx contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfilePhotoable), nil } // ToGetRequestInformation optional contact picture. You can get or set a photo for a contact. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersItemContactsItemPhotoRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemContactFoldersItemContactsItemPhotoRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -107,6 +110,7 @@ func (m *ItemContactFoldersItemContactsItemPhotoRequestBuilder) ToGetRequestInfo return requestInfo, nil } // ToPatchRequestInformation update the navigation property photo in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersItemContactsItemPhotoRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfilePhotoable, requestConfiguration *ItemContactFoldersItemContactsItemPhotoRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemContactFoldersItemContactsItemPhotoRequestBuilder) ToPatchRequestIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemContactFoldersItemContactsItemPhotoRequestBuilder when successful func (m *ItemContactFoldersItemContactsItemPhotoRequestBuilder) WithUrl(rawUrl string)(*ItemContactFoldersItemContactsItemPhotoRequestBuilder) { return NewItemContactFoldersItemContactsItemPhotoRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_contact_folders_item_contacts_item_photo_value_content_request_builder.go b/users/item_contact_folders_item_contacts_item_photo_value_content_request_builder.go index 8a78ce5d72f..17ef3edd693 100644 --- a/users/item_contact_folders_item_contacts_item_photo_value_content_request_builder.go +++ b/users/item_contact_folders_item_contacts_item_photo_value_content_request_builder.go @@ -45,6 +45,7 @@ func NewItemContactFoldersItemContactsItemPhotoValueContentRequestBuilder(rawUrl return NewItemContactFoldersItemContactsItemPhotoValueContentRequestBuilderInternal(urlParams, requestAdapter) } // Delete optional contact picture. You can get or set a photo for a contact. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactFoldersItemContactsItemPhotoValueContentRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemContactFoldersItemContactsItemPhotoValueContentRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -61,6 +62,7 @@ func (m *ItemContactFoldersItemContactsItemPhotoValueContentRequestBuilder) Dele return nil } // Get optional contact picture. You can get or set a photo for a contact. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactFoldersItemContactsItemPhotoValueContentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContactFoldersItemContactsItemPhotoValueContentRequestBuilderGetRequestConfiguration)([]byte, error) { @@ -81,6 +83,7 @@ func (m *ItemContactFoldersItemContactsItemPhotoValueContentRequestBuilder) Get( return res.([]byte), nil } // Put optional contact picture. You can get or set a photo for a contact. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactFoldersItemContactsItemPhotoValueContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemContactFoldersItemContactsItemPhotoValueContentRequestBuilderPutRequestConfiguration)([]byte, error) { @@ -101,6 +104,7 @@ func (m *ItemContactFoldersItemContactsItemPhotoValueContentRequestBuilder) Put( return res.([]byte), nil } // ToDeleteRequestInformation optional contact picture. You can get or set a photo for a contact. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersItemContactsItemPhotoValueContentRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemContactFoldersItemContactsItemPhotoValueContentRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -112,6 +116,7 @@ func (m *ItemContactFoldersItemContactsItemPhotoValueContentRequestBuilder) ToDe return requestInfo, nil } // ToGetRequestInformation optional contact picture. You can get or set a photo for a contact. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersItemContactsItemPhotoValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemContactFoldersItemContactsItemPhotoValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -123,6 +128,7 @@ func (m *ItemContactFoldersItemContactsItemPhotoValueContentRequestBuilder) ToGe return requestInfo, nil } // ToPutRequestInformation optional contact picture. You can get or set a photo for a contact. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersItemContactsItemPhotoValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemContactFoldersItemContactsItemPhotoValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -135,6 +141,7 @@ func (m *ItemContactFoldersItemContactsItemPhotoValueContentRequestBuilder) ToPu return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemContactFoldersItemContactsItemPhotoValueContentRequestBuilder when successful func (m *ItemContactFoldersItemContactsItemPhotoValueContentRequestBuilder) WithUrl(rawUrl string)(*ItemContactFoldersItemContactsItemPhotoValueContentRequestBuilder) { return NewItemContactFoldersItemContactsItemPhotoValueContentRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_contact_folders_item_contacts_request_builder.go b/users/item_contact_folders_item_contacts_request_builder.go index 4965fa004d2..29bd20ddf19 100644 --- a/users/item_contact_folders_item_contacts_request_builder.go +++ b/users/item_contact_folders_item_contacts_request_builder.go @@ -47,6 +47,7 @@ type ItemContactFoldersItemContactsRequestBuilderPostRequestConfiguration struct Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByContactId provides operations to manage the contacts property of the microsoft.graph.contactFolder entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemContactFoldersItemContactsContactItemRequestBuilder when successful func (m *ItemContactFoldersItemContactsRequestBuilder) ByContactId(contactId string)(*ItemContactFoldersItemContactsContactItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemContactFoldersItemContactsRequestBuilder) Delta()(*ItemContactFolde return NewItemContactFoldersItemContactsDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the contacts in the folder. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ContactCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactFoldersItemContactsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContactFoldersItemContactsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContactCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemContactFoldersItemContactsRequestBuilder) Get(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContactCollectionResponseable), nil } // Post create new navigation property to contacts for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Contactable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactFoldersItemContactsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Contactable, requestConfiguration *ItemContactFoldersItemContactsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Contactable, error) { @@ -122,6 +125,7 @@ func (m *ItemContactFoldersItemContactsRequestBuilder) Post(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Contactable), nil } // ToGetRequestInformation the contacts in the folder. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersItemContactsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemContactFoldersItemContactsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemContactFoldersItemContactsRequestBuilder) ToGetRequestInformation(c return requestInfo, nil } // ToPostRequestInformation create new navigation property to contacts for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersItemContactsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Contactable, requestConfiguration *ItemContactFoldersItemContactsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemContactFoldersItemContactsRequestBuilder) ToPostRequestInformation( return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemContactFoldersItemContactsRequestBuilder when successful func (m *ItemContactFoldersItemContactsRequestBuilder) WithUrl(rawUrl string)(*ItemContactFoldersItemContactsRequestBuilder) { return NewItemContactFoldersItemContactsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_contact_folders_item_permanent_delete_request_builder.go b/users/item_contact_folders_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..2dedfb7d81d --- /dev/null +++ b/users/item_contact_folders_item_permanent_delete_request_builder.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemContactFoldersItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemContactFoldersItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemContactFoldersItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemContactFoldersItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemContactFoldersItemPermanentDeleteRequestBuilderInternal instantiates a new ItemContactFoldersItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemContactFoldersItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContactFoldersItemPermanentDeleteRequestBuilder) { + m := &ItemContactFoldersItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/contactFolders/{contactFolder%2Did}/permanentDelete", pathParameters), + } + return m +} +// NewItemContactFoldersItemPermanentDeleteRequestBuilder instantiates a new ItemContactFoldersItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemContactFoldersItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContactFoldersItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemContactFoldersItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete a contact folder and remove its items from the user's mailbox. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/contactfolder-permanentdelete?view=graph-rest-beta +func (m *ItemContactFoldersItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemContactFoldersItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete a contact folder and remove its items from the user's mailbox. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemContactFoldersItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemContactFoldersItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemContactFoldersItemPermanentDeleteRequestBuilder when successful +func (m *ItemContactFoldersItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemContactFoldersItemPermanentDeleteRequestBuilder) { + return NewItemContactFoldersItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_contact_folders_request_builder.go b/users/item_contact_folders_request_builder.go index c84bbf051d9..3faeccd2ccb 100644 --- a/users/item_contact_folders_request_builder.go +++ b/users/item_contact_folders_request_builder.go @@ -47,6 +47,7 @@ type ItemContactFoldersRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByContactFolderId provides operations to manage the contactFolders property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemContactFoldersContactFolderItemRequestBuilder when successful func (m *ItemContactFoldersRequestBuilder) ByContactFolderId(contactFolderId string)(*ItemContactFoldersContactFolderItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemContactFoldersRequestBuilder) Delta()(*ItemContactFoldersDeltaReque return NewItemContactFoldersDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the user's contacts folders. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ContactFolderCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactFoldersRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContactFoldersRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContactFolderCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemContactFoldersRequestBuilder) Get(ctx context.Context, requestConfi return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContactFolderCollectionResponseable), nil } // Post create new navigation property to contactFolders for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ContactFolderable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactFoldersRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContactFolderable, requestConfiguration *ItemContactFoldersRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContactFolderable, error) { @@ -122,6 +125,7 @@ func (m *ItemContactFoldersRequestBuilder) Post(ctx context.Context, body ie233e return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContactFolderable), nil } // ToGetRequestInformation the user's contacts folders. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemContactFoldersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemContactFoldersRequestBuilder) ToGetRequestInformation(ctx context.C return requestInfo, nil } // ToPostRequestInformation create new navigation property to contactFolders for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactFoldersRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContactFolderable, requestConfiguration *ItemContactFoldersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemContactFoldersRequestBuilder) ToPostRequestInformation(ctx context. return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemContactFoldersRequestBuilder when successful func (m *ItemContactFoldersRequestBuilder) WithUrl(rawUrl string)(*ItemContactFoldersRequestBuilder) { return NewItemContactFoldersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_contacts_contact_item_request_builder.go b/users/item_contacts_contact_item_request_builder.go index d6e260557b7..be4bd46764d 100644 --- a/users/item_contacts_contact_item_request_builder.go +++ b/users/item_contacts_contact_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemContactsContactItemRequestBuilder(rawUrl string, requestAdapter i2ae return NewItemContactsContactItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property contacts for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactsContactItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemContactsContactItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -76,6 +77,7 @@ func (m *ItemContactsContactItemRequestBuilder) Extensions()(*ItemContactsItemEx return NewItemContactsItemExtensionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the user's contacts. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Contactable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactsContactItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContactsContactItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Contactable, error) { @@ -96,6 +98,7 @@ func (m *ItemContactsContactItemRequestBuilder) Get(ctx context.Context, request return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Contactable), nil } // Patch update the navigation property contacts in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Contactable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactsContactItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Contactable, requestConfiguration *ItemContactsContactItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Contactable, error) { @@ -115,12 +118,18 @@ func (m *ItemContactsContactItemRequestBuilder) Patch(ctx context.Context, body } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Contactable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemContactsItemPermanentDeleteRequestBuilder when successful +func (m *ItemContactsContactItemRequestBuilder) PermanentDelete()(*ItemContactsItemPermanentDeleteRequestBuilder) { + return NewItemContactsItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Photo provides operations to manage the photo property of the microsoft.graph.contact entity. // returns a *ItemContactsItemPhotoRequestBuilder when successful func (m *ItemContactsContactItemRequestBuilder) Photo()(*ItemContactsItemPhotoRequestBuilder) { return NewItemContactsItemPhotoRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property contacts for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactsContactItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemContactsContactItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -132,6 +141,7 @@ func (m *ItemContactsContactItemRequestBuilder) ToDeleteRequestInformation(ctx c return requestInfo, nil } // ToGetRequestInformation the user's contacts. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactsContactItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemContactsContactItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +156,7 @@ func (m *ItemContactsContactItemRequestBuilder) ToGetRequestInformation(ctx cont return requestInfo, nil } // ToPatchRequestInformation update the navigation property contacts in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactsContactItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Contactable, requestConfiguration *ItemContactsContactItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -161,6 +172,7 @@ func (m *ItemContactsContactItemRequestBuilder) ToPatchRequestInformation(ctx co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemContactsContactItemRequestBuilder when successful func (m *ItemContactsContactItemRequestBuilder) WithUrl(rawUrl string)(*ItemContactsContactItemRequestBuilder) { return NewItemContactsContactItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_contacts_count_request_builder.go b/users/item_contacts_count_request_builder.go index 616aeed53ec..7cd40c057f0 100644 --- a/users/item_contacts_count_request_builder.go +++ b/users/item_contacts_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemContactsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7 return NewItemContactsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContactsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemContactsCountRequestBuilder) Get(ctx context.Context, requestConfig return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemContactsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemContactsCountRequestBuilder) ToGetRequestInformation(ctx context.Co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemContactsCountRequestBuilder when successful func (m *ItemContactsCountRequestBuilder) WithUrl(rawUrl string)(*ItemContactsCountRequestBuilder) { return NewItemContactsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_contacts_delta_request_builder.go b/users/item_contacts_delta_request_builder.go index 20900454e5e..d16320420fd 100644 --- a/users/item_contacts_delta_request_builder.go +++ b/users/item_contacts_delta_request_builder.go @@ -76,6 +76,7 @@ func (m *ItemContactsDeltaRequestBuilder) Get(ctx context.Context, requestConfig return res.(ItemContactsDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemContactsDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -99,6 +100,7 @@ func (m *ItemContactsDeltaRequestBuilder) GetAsDeltaGetResponse(ctx context.Cont return res.(ItemContactsDeltaGetResponseable), nil } // ToGetRequestInformation get a set of contacts that have been added, deleted, or updated in a specified folder. A delta function call for contacts in a folder is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls, you can query for incremental changes in the contacts in that folder. This allows you to maintain and synchronize a local store of a user's contacts without having to fetch the entire set of contacts from the server every time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactsDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemContactsDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,6 +115,7 @@ func (m *ItemContactsDeltaRequestBuilder) ToGetRequestInformation(ctx context.Co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemContactsDeltaRequestBuilder when successful func (m *ItemContactsDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemContactsDeltaRequestBuilder) { return NewItemContactsDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_contacts_item_extensions_count_request_builder.go b/users/item_contacts_item_extensions_count_request_builder.go index 76ce5035205..c2f1defe9a4 100644 --- a/users/item_contacts_item_extensions_count_request_builder.go +++ b/users/item_contacts_item_extensions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemContactsItemExtensionsCountRequestBuilder(rawUrl string, requestAdap return NewItemContactsItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactsItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContactsItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemContactsItemExtensionsCountRequestBuilder) Get(ctx context.Context, return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactsItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemContactsItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemContactsItemExtensionsCountRequestBuilder) ToGetRequestInformation( return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemContactsItemExtensionsCountRequestBuilder when successful func (m *ItemContactsItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemContactsItemExtensionsCountRequestBuilder) { return NewItemContactsItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_contacts_item_extensions_extension_item_request_builder.go b/users/item_contacts_item_extensions_extension_item_request_builder.go index 856ce9b27d6..a6b531badad 100644 --- a/users/item_contacts_item_extensions_extension_item_request_builder.go +++ b/users/item_contacts_item_extensions_extension_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemContactsItemExtensionsExtensionItemRequestBuilder(rawUrl string, req return NewItemContactsItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactsItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemContactsItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemContactsItemExtensionsExtensionItemRequestBuilder) Delete(ctx conte return nil } // Get the collection of open extensions defined for the contact. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactsItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContactsItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemContactsItemExtensionsExtensionItemRequestBuilder) Get(ctx context. return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactsItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemContactsItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemContactsItemExtensionsExtensionItemRequestBuilder) Patch(ctx contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactsItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemContactsItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemContactsItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestI return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the contact. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactsItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemContactsItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemContactsItemExtensionsExtensionItemRequestBuilder) ToGetRequestInfo return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactsItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemContactsItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemContactsItemExtensionsExtensionItemRequestBuilder) ToPatchRequestIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemContactsItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemContactsItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemContactsItemExtensionsExtensionItemRequestBuilder) { return NewItemContactsItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_contacts_item_extensions_request_builder.go b/users/item_contacts_item_extensions_request_builder.go index c6180ce0e3b..8201af4bd39 100644 --- a/users/item_contacts_item_extensions_request_builder.go +++ b/users/item_contacts_item_extensions_request_builder.go @@ -47,6 +47,7 @@ type ItemContactsItemExtensionsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.contact entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemContactsItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemContactsItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemContactsItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemContactsItemExtensionsRequestBuilder) Count()(*ItemContactsItemExte return NewItemContactsItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the contact. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactsItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContactsItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemContactsItemExtensionsRequestBuilder) Get(ctx context.Context, requ return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactsItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemContactsItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemContactsItemExtensionsRequestBuilder) Post(ctx context.Context, bod return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the contact. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactsItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemContactsItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemContactsItemExtensionsRequestBuilder) ToGetRequestInformation(ctx c return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactsItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemContactsItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemContactsItemExtensionsRequestBuilder) ToPostRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemContactsItemExtensionsRequestBuilder when successful func (m *ItemContactsItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemContactsItemExtensionsRequestBuilder) { return NewItemContactsItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_contacts_item_permanent_delete_request_builder.go b/users/item_contacts_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..034bce85ddf --- /dev/null +++ b/users/item_contacts_item_permanent_delete_request_builder.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemContactsItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemContactsItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemContactsItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemContactsItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemContactsItemPermanentDeleteRequestBuilderInternal instantiates a new ItemContactsItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemContactsItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContactsItemPermanentDeleteRequestBuilder) { + m := &ItemContactsItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/contacts/{contact%2Did}/permanentDelete", pathParameters), + } + return m +} +// NewItemContactsItemPermanentDeleteRequestBuilder instantiates a new ItemContactsItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemContactsItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemContactsItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemContactsItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete a contact and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/contact-permanentdelete?view=graph-rest-beta +func (m *ItemContactsItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemContactsItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete a contact and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemContactsItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemContactsItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemContactsItemPermanentDeleteRequestBuilder when successful +func (m *ItemContactsItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemContactsItemPermanentDeleteRequestBuilder) { + return NewItemContactsItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_contacts_item_photo_request_builder.go b/users/item_contacts_item_photo_request_builder.go index cc022282de1..51ee28b433b 100644 --- a/users/item_contacts_item_photo_request_builder.go +++ b/users/item_contacts_item_photo_request_builder.go @@ -53,6 +53,7 @@ func (m *ItemContactsItemPhotoRequestBuilder) Content()(*ItemContactsItemPhotoVa return NewItemContactsItemPhotoValueContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get optional contact picture. You can get or set a photo for a contact. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ProfilePhotoable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactsItemPhotoRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContactsItemPhotoRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfilePhotoable, error) { @@ -73,6 +74,7 @@ func (m *ItemContactsItemPhotoRequestBuilder) Get(ctx context.Context, requestCo return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfilePhotoable), nil } // Patch update the navigation property photo in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ProfilePhotoable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactsItemPhotoRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfilePhotoable, requestConfiguration *ItemContactsItemPhotoRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfilePhotoable, error) { @@ -93,6 +95,7 @@ func (m *ItemContactsItemPhotoRequestBuilder) Patch(ctx context.Context, body ie return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfilePhotoable), nil } // ToGetRequestInformation optional contact picture. You can get or set a photo for a contact. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactsItemPhotoRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemContactsItemPhotoRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -107,6 +110,7 @@ func (m *ItemContactsItemPhotoRequestBuilder) ToGetRequestInformation(ctx contex return requestInfo, nil } // ToPatchRequestInformation update the navigation property photo in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactsItemPhotoRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfilePhotoable, requestConfiguration *ItemContactsItemPhotoRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemContactsItemPhotoRequestBuilder) ToPatchRequestInformation(ctx cont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemContactsItemPhotoRequestBuilder when successful func (m *ItemContactsItemPhotoRequestBuilder) WithUrl(rawUrl string)(*ItemContactsItemPhotoRequestBuilder) { return NewItemContactsItemPhotoRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_contacts_item_photo_value_content_request_builder.go b/users/item_contacts_item_photo_value_content_request_builder.go index ce5720529fc..820f600ad76 100644 --- a/users/item_contacts_item_photo_value_content_request_builder.go +++ b/users/item_contacts_item_photo_value_content_request_builder.go @@ -45,6 +45,7 @@ func NewItemContactsItemPhotoValueContentRequestBuilder(rawUrl string, requestAd return NewItemContactsItemPhotoValueContentRequestBuilderInternal(urlParams, requestAdapter) } // Delete optional contact picture. You can get or set a photo for a contact. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactsItemPhotoValueContentRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemContactsItemPhotoValueContentRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -61,6 +62,7 @@ func (m *ItemContactsItemPhotoValueContentRequestBuilder) Delete(ctx context.Con return nil } // Get optional contact picture. You can get or set a photo for a contact. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactsItemPhotoValueContentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContactsItemPhotoValueContentRequestBuilderGetRequestConfiguration)([]byte, error) { @@ -81,6 +83,7 @@ func (m *ItemContactsItemPhotoValueContentRequestBuilder) Get(ctx context.Contex return res.([]byte), nil } // Put optional contact picture. You can get or set a photo for a contact. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactsItemPhotoValueContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemContactsItemPhotoValueContentRequestBuilderPutRequestConfiguration)([]byte, error) { @@ -101,6 +104,7 @@ func (m *ItemContactsItemPhotoValueContentRequestBuilder) Put(ctx context.Contex return res.([]byte), nil } // ToDeleteRequestInformation optional contact picture. You can get or set a photo for a contact. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactsItemPhotoValueContentRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemContactsItemPhotoValueContentRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -112,6 +116,7 @@ func (m *ItemContactsItemPhotoValueContentRequestBuilder) ToDeleteRequestInforma return requestInfo, nil } // ToGetRequestInformation optional contact picture. You can get or set a photo for a contact. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactsItemPhotoValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemContactsItemPhotoValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -123,6 +128,7 @@ func (m *ItemContactsItemPhotoValueContentRequestBuilder) ToGetRequestInformatio return requestInfo, nil } // ToPutRequestInformation optional contact picture. You can get or set a photo for a contact. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactsItemPhotoValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemContactsItemPhotoValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -135,6 +141,7 @@ func (m *ItemContactsItemPhotoValueContentRequestBuilder) ToPutRequestInformatio return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemContactsItemPhotoValueContentRequestBuilder when successful func (m *ItemContactsItemPhotoValueContentRequestBuilder) WithUrl(rawUrl string)(*ItemContactsItemPhotoValueContentRequestBuilder) { return NewItemContactsItemPhotoValueContentRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_contacts_request_builder.go b/users/item_contacts_request_builder.go index 520d687bf14..23512ad2491 100644 --- a/users/item_contacts_request_builder.go +++ b/users/item_contacts_request_builder.go @@ -47,6 +47,7 @@ type ItemContactsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByContactId provides operations to manage the contacts property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemContactsContactItemRequestBuilder when successful func (m *ItemContactsRequestBuilder) ByContactId(contactId string)(*ItemContactsContactItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemContactsRequestBuilder) Delta()(*ItemContactsDeltaRequestBuilder) { return NewItemContactsDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the user's contacts. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ContactCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemContactsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContactCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemContactsRequestBuilder) Get(ctx context.Context, requestConfigurati return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContactCollectionResponseable), nil } // Post create new navigation property to contacts for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Contactable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemContactsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Contactable, requestConfiguration *ItemContactsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Contactable, error) { @@ -122,6 +125,7 @@ func (m *ItemContactsRequestBuilder) Post(ctx context.Context, body ie233ee762e2 return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Contactable), nil } // ToGetRequestInformation the user's contacts. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemContactsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemContactsRequestBuilder) ToGetRequestInformation(ctx context.Context return requestInfo, nil } // ToPostRequestInformation create new navigation property to contacts for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemContactsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Contactable, requestConfiguration *ItemContactsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemContactsRequestBuilder) ToPostRequestInformation(ctx context.Contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemContactsRequestBuilder when successful func (m *ItemContactsRequestBuilder) WithUrl(rawUrl string)(*ItemContactsRequestBuilder) { return NewItemContactsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_convert_external_to_internal_member_user_request_builder.go b/users/item_convert_external_to_internal_member_user_request_builder.go index 8d6225e97d4..c57c7c58356 100644 --- a/users/item_convert_external_to_internal_member_user_request_builder.go +++ b/users/item_convert_external_to_internal_member_user_request_builder.go @@ -32,6 +32,7 @@ func NewItemConvertExternalToInternalMemberUserRequestBuilder(rawUrl string, req return NewItemConvertExternalToInternalMemberUserRequestBuilderInternal(urlParams, requestAdapter) } // Post convert an externally authenticated user into an internal user. The user is able to sign into the host tenant as an internal user and access resources as a member. For more information about this conversion, see Convert external users to internal users. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ConversionUserDetailsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemConvertExternalToInternalMemberUserRequestBuilder) Post(ctx context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ConversionUserDetailsable), nil } // ToPostRequestInformation convert an externally authenticated user into an internal user. The user is able to sign into the host tenant as an internal user and access resources as a member. For more information about this conversion, see Convert external users to internal users. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemConvertExternalToInternalMemberUserRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemConvertExternalToInternalMemberUserPostRequestBodyable, requestConfiguration *ItemConvertExternalToInternalMemberUserRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemConvertExternalToInternalMemberUserRequestBuilder) ToPostRequestInf return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemConvertExternalToInternalMemberUserRequestBuilder when successful func (m *ItemConvertExternalToInternalMemberUserRequestBuilder) WithUrl(rawUrl string)(*ItemConvertExternalToInternalMemberUserRequestBuilder) { return NewItemConvertExternalToInternalMemberUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_created_objects_count_request_builder.go b/users/item_created_objects_count_request_builder.go index fea583a53fc..3e60d25c6c3 100644 --- a/users/item_created_objects_count_request_builder.go +++ b/users/item_created_objects_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCreatedObjectsCountRequestBuilder(rawUrl string, requestAdapter i2ae return NewItemCreatedObjectsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCreatedObjectsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCreatedObjectsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCreatedObjectsCountRequestBuilder) Get(ctx context.Context, request return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCreatedObjectsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCreatedObjectsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCreatedObjectsCountRequestBuilder) ToGetRequestInformation(ctx cont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCreatedObjectsCountRequestBuilder when successful func (m *ItemCreatedObjectsCountRequestBuilder) WithUrl(rawUrl string)(*ItemCreatedObjectsCountRequestBuilder) { return NewItemCreatedObjectsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_created_objects_directory_object_item_request_builder.go b/users/item_created_objects_directory_object_item_request_builder.go index eb9f9c0437a..2d11e54ad18 100644 --- a/users/item_created_objects_directory_object_item_request_builder.go +++ b/users/item_created_objects_directory_object_item_request_builder.go @@ -41,6 +41,7 @@ func NewItemCreatedObjectsDirectoryObjectItemRequestBuilder(rawUrl string, reque return NewItemCreatedObjectsDirectoryObjectItemRequestBuilderInternal(urlParams, requestAdapter) } // Get directory objects that the user created. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DirectoryObjectable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCreatedObjectsDirectoryObjectItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCreatedObjectsDirectoryObjectItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryObjectable, error) { @@ -66,6 +67,7 @@ func (m *ItemCreatedObjectsDirectoryObjectItemRequestBuilder) GraphServicePrinci return NewItemCreatedObjectsItemGraphServicePrincipalRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation directory objects that the user created. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCreatedObjectsDirectoryObjectItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCreatedObjectsDirectoryObjectItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -80,6 +82,7 @@ func (m *ItemCreatedObjectsDirectoryObjectItemRequestBuilder) ToGetRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCreatedObjectsDirectoryObjectItemRequestBuilder when successful func (m *ItemCreatedObjectsDirectoryObjectItemRequestBuilder) WithUrl(rawUrl string)(*ItemCreatedObjectsDirectoryObjectItemRequestBuilder) { return NewItemCreatedObjectsDirectoryObjectItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_created_objects_graph_service_principal_count_request_builder.go b/users/item_created_objects_graph_service_principal_count_request_builder.go index 8ab6f773013..4f6b93a22cd 100644 --- a/users/item_created_objects_graph_service_principal_count_request_builder.go +++ b/users/item_created_objects_graph_service_principal_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemCreatedObjectsGraphServicePrincipalCountRequestBuilder(rawUrl string return NewItemCreatedObjectsGraphServicePrincipalCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCreatedObjectsGraphServicePrincipalCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCreatedObjectsGraphServicePrincipalCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemCreatedObjectsGraphServicePrincipalCountRequestBuilder) Get(ctx con return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCreatedObjectsGraphServicePrincipalCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCreatedObjectsGraphServicePrincipalCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemCreatedObjectsGraphServicePrincipalCountRequestBuilder) ToGetReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCreatedObjectsGraphServicePrincipalCountRequestBuilder when successful func (m *ItemCreatedObjectsGraphServicePrincipalCountRequestBuilder) WithUrl(rawUrl string)(*ItemCreatedObjectsGraphServicePrincipalCountRequestBuilder) { return NewItemCreatedObjectsGraphServicePrincipalCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_created_objects_graph_service_principal_request_builder.go b/users/item_created_objects_graph_service_principal_request_builder.go index fa22f999670..45501e94194 100644 --- a/users/item_created_objects_graph_service_principal_request_builder.go +++ b/users/item_created_objects_graph_service_principal_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemCreatedObjectsGraphServicePrincipalRequestBuilder) Count()(*ItemCre return NewItemCreatedObjectsGraphServicePrincipalCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get the items of type microsoft.graph.servicePrincipal in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServicePrincipalCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCreatedObjectsGraphServicePrincipalRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCreatedObjectsGraphServicePrincipalRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServicePrincipalCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemCreatedObjectsGraphServicePrincipalRequestBuilder) Get(ctx context. return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServicePrincipalCollectionResponseable), nil } // ToGetRequestInformation get the items of type microsoft.graph.servicePrincipal in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCreatedObjectsGraphServicePrincipalRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCreatedObjectsGraphServicePrincipalRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemCreatedObjectsGraphServicePrincipalRequestBuilder) ToGetRequestInfo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCreatedObjectsGraphServicePrincipalRequestBuilder when successful func (m *ItemCreatedObjectsGraphServicePrincipalRequestBuilder) WithUrl(rawUrl string)(*ItemCreatedObjectsGraphServicePrincipalRequestBuilder) { return NewItemCreatedObjectsGraphServicePrincipalRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_created_objects_item_graph_service_principal_request_builder.go b/users/item_created_objects_item_graph_service_principal_request_builder.go index b75061b8900..ad2f2d31ea1 100644 --- a/users/item_created_objects_item_graph_service_principal_request_builder.go +++ b/users/item_created_objects_item_graph_service_principal_request_builder.go @@ -41,6 +41,7 @@ func NewItemCreatedObjectsItemGraphServicePrincipalRequestBuilder(rawUrl string, return NewItemCreatedObjectsItemGraphServicePrincipalRequestBuilderInternal(urlParams, requestAdapter) } // Get get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServicePrincipalable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCreatedObjectsItemGraphServicePrincipalRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCreatedObjectsItemGraphServicePrincipalRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServicePrincipalable, error) { @@ -61,6 +62,7 @@ func (m *ItemCreatedObjectsItemGraphServicePrincipalRequestBuilder) Get(ctx cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServicePrincipalable), nil } // ToGetRequestInformation get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCreatedObjectsItemGraphServicePrincipalRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCreatedObjectsItemGraphServicePrincipalRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemCreatedObjectsItemGraphServicePrincipalRequestBuilder) ToGetRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCreatedObjectsItemGraphServicePrincipalRequestBuilder when successful func (m *ItemCreatedObjectsItemGraphServicePrincipalRequestBuilder) WithUrl(rawUrl string)(*ItemCreatedObjectsItemGraphServicePrincipalRequestBuilder) { return NewItemCreatedObjectsItemGraphServicePrincipalRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_created_objects_request_builder.go b/users/item_created_objects_request_builder.go index ec121d137d8..bb2e761500c 100644 --- a/users/item_created_objects_request_builder.go +++ b/users/item_created_objects_request_builder.go @@ -40,6 +40,7 @@ type ItemCreatedObjectsRequestBuilderGetRequestConfiguration struct { QueryParameters *ItemCreatedObjectsRequestBuilderGetQueryParameters } // ByDirectoryObjectId provides operations to manage the createdObjects property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCreatedObjectsDirectoryObjectItemRequestBuilder when successful func (m *ItemCreatedObjectsRequestBuilder) ByDirectoryObjectId(directoryObjectId string)(*ItemCreatedObjectsDirectoryObjectItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -70,6 +71,7 @@ func (m *ItemCreatedObjectsRequestBuilder) Count()(*ItemCreatedObjectsCountReque return NewItemCreatedObjectsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get directory objects that the user created. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DirectoryObjectCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemCreatedObjectsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemCreatedObjectsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryObjectCollectionResponseable, error) { @@ -95,6 +97,7 @@ func (m *ItemCreatedObjectsRequestBuilder) GraphServicePrincipal()(*ItemCreatedO return NewItemCreatedObjectsGraphServicePrincipalRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation directory objects that the user created. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemCreatedObjectsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemCreatedObjectsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +112,7 @@ func (m *ItemCreatedObjectsRequestBuilder) ToGetRequestInformation(ctx context.C return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemCreatedObjectsRequestBuilder when successful func (m *ItemCreatedObjectsRequestBuilder) WithUrl(rawUrl string)(*ItemCreatedObjectsRequestBuilder) { return NewItemCreatedObjectsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_delete_password_single_sign_on_credentials_request_builder.go b/users/item_delete_password_single_sign_on_credentials_request_builder.go index e59c48ef5ea..f54d1c8fa59 100644 --- a/users/item_delete_password_single_sign_on_credentials_request_builder.go +++ b/users/item_delete_password_single_sign_on_credentials_request_builder.go @@ -31,6 +31,7 @@ func NewItemDeletePasswordSingleSignOnCredentialsRequestBuilder(rawUrl string, r return NewItemDeletePasswordSingleSignOnCredentialsRequestBuilderInternal(urlParams, requestAdapter) } // Post delete the password-based single sign-on credentials for a given user to a given service principal. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemDeletePasswordSingleSignOnCredentialsRequestBuilder) Post(ctx conte return nil } // ToPostRequestInformation delete the password-based single sign-on credentials for a given user to a given service principal. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDeletePasswordSingleSignOnCredentialsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemDeletePasswordSingleSignOnCredentialsPostRequestBodyable, requestConfiguration *ItemDeletePasswordSingleSignOnCredentialsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemDeletePasswordSingleSignOnCredentialsRequestBuilder) ToPostRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDeletePasswordSingleSignOnCredentialsRequestBuilder when successful func (m *ItemDeletePasswordSingleSignOnCredentialsRequestBuilder) WithUrl(rawUrl string)(*ItemDeletePasswordSingleSignOnCredentialsRequestBuilder) { return NewItemDeletePasswordSingleSignOnCredentialsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_device_enrollment_configurations_count_request_builder.go b/users/item_device_enrollment_configurations_count_request_builder.go index ae37ea71be1..4cbe8b0c8e9 100644 --- a/users/item_device_enrollment_configurations_count_request_builder.go +++ b/users/item_device_enrollment_configurations_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemDeviceEnrollmentConfigurationsCountRequestBuilder(rawUrl string, req return NewItemDeviceEnrollmentConfigurationsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDeviceEnrollmentConfigurationsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDeviceEnrollmentConfigurationsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemDeviceEnrollmentConfigurationsCountRequestBuilder) Get(ctx context. return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDeviceEnrollmentConfigurationsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDeviceEnrollmentConfigurationsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemDeviceEnrollmentConfigurationsCountRequestBuilder) ToGetRequestInfo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDeviceEnrollmentConfigurationsCountRequestBuilder when successful func (m *ItemDeviceEnrollmentConfigurationsCountRequestBuilder) WithUrl(rawUrl string)(*ItemDeviceEnrollmentConfigurationsCountRequestBuilder) { return NewItemDeviceEnrollmentConfigurationsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_device_enrollment_configurations_create_enrollment_notification_configuration_request_builder.go b/users/item_device_enrollment_configurations_create_enrollment_notification_configuration_request_builder.go index e42ddf7395f..c8d7904b54d 100644 --- a/users/item_device_enrollment_configurations_create_enrollment_notification_configuration_request_builder.go +++ b/users/item_device_enrollment_configurations_create_enrollment_notification_configuration_request_builder.go @@ -31,6 +31,7 @@ func NewItemDeviceEnrollmentConfigurationsCreateEnrollmentNotificationConfigurat return NewItemDeviceEnrollmentConfigurationsCreateEnrollmentNotificationConfigurationRequestBuilderInternal(urlParams, requestAdapter) } // Post invoke action createEnrollmentNotificationConfiguration +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDeviceEnrollmentConfigurationsCreateEnrollmentNotificationConfigurationRequestBuilder) Post(ctx context.Context, body ItemDeviceEnrollmentConfigurationsCreateEnrollmentNotificationConfigurationPostRequestBodyable, requestConfiguration *ItemDeviceEnrollmentConfigurationsCreateEnrollmentNotificationConfigurationRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemDeviceEnrollmentConfigurationsCreateEnrollmentNotificationConfigura return nil } // ToPostRequestInformation invoke action createEnrollmentNotificationConfiguration +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDeviceEnrollmentConfigurationsCreateEnrollmentNotificationConfigurationRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemDeviceEnrollmentConfigurationsCreateEnrollmentNotificationConfigurationPostRequestBodyable, requestConfiguration *ItemDeviceEnrollmentConfigurationsCreateEnrollmentNotificationConfigurationRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -62,6 +64,7 @@ func (m *ItemDeviceEnrollmentConfigurationsCreateEnrollmentNotificationConfigura return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDeviceEnrollmentConfigurationsCreateEnrollmentNotificationConfigurationRequestBuilder when successful func (m *ItemDeviceEnrollmentConfigurationsCreateEnrollmentNotificationConfigurationRequestBuilder) WithUrl(rawUrl string)(*ItemDeviceEnrollmentConfigurationsCreateEnrollmentNotificationConfigurationRequestBuilder) { return NewItemDeviceEnrollmentConfigurationsCreateEnrollmentNotificationConfigurationRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_device_enrollment_configurations_device_enrollment_configuration_item_request_builder.go b/users/item_device_enrollment_configurations_device_enrollment_configuration_item_request_builder.go index 8a21eb39773..47868d8b393 100644 --- a/users/item_device_enrollment_configurations_device_enrollment_configuration_item_request_builder.go +++ b/users/item_device_enrollment_configurations_device_enrollment_configuration_item_request_builder.go @@ -65,6 +65,7 @@ func NewItemDeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemReque return NewItemDeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property deviceEnrollmentConfigurations for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemDeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -81,6 +82,7 @@ func (m *ItemDeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequ return nil } // Get get enrollment configurations targeted to the user +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DeviceEnrollmentConfigurationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceEnrollmentConfigurationable, error) { @@ -101,6 +103,7 @@ func (m *ItemDeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequ return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceEnrollmentConfigurationable), nil } // Patch update the navigation property deviceEnrollmentConfigurations in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DeviceEnrollmentConfigurationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceEnrollmentConfigurationable, requestConfiguration *ItemDeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceEnrollmentConfigurationable, error) { @@ -126,6 +129,7 @@ func (m *ItemDeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequ return NewItemDeviceEnrollmentConfigurationsItemSetPriorityRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property deviceEnrollmentConfigurations for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemDeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -137,6 +141,7 @@ func (m *ItemDeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequ return requestInfo, nil } // ToGetRequestInformation get enrollment configurations targeted to the user +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemDeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequ return requestInfo, nil } // ToPatchRequestInformation update the navigation property deviceEnrollmentConfigurations in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceEnrollmentConfigurationable, requestConfiguration *ItemDeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -166,6 +172,7 @@ func (m *ItemDeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilder when successful func (m *ItemDeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilder) WithUrl(rawUrl string)(*ItemDeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilder) { return NewItemDeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_device_enrollment_configurations_has_payload_links_request_builder.go b/users/item_device_enrollment_configurations_has_payload_links_request_builder.go index f7f07bd8c57..5fea78cafdd 100644 --- a/users/item_device_enrollment_configurations_has_payload_links_request_builder.go +++ b/users/item_device_enrollment_configurations_has_payload_links_request_builder.go @@ -52,6 +52,7 @@ func (m *ItemDeviceEnrollmentConfigurationsHasPayloadLinksRequestBuilder) Post(c return res.(ItemDeviceEnrollmentConfigurationsHasPayloadLinksResponseable), nil } // PostAsHasPayloadLinksPostResponse invoke action hasPayloadLinks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemDeviceEnrollmentConfigurationsHasPayloadLinksPostResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDeviceEnrollmentConfigurationsHasPayloadLinksRequestBuilder) PostAsHasPayloadLinksPostResponse(ctx context.Context, body ItemDeviceEnrollmentConfigurationsHasPayloadLinksPostRequestBodyable, requestConfiguration *ItemDeviceEnrollmentConfigurationsHasPayloadLinksRequestBuilderPostRequestConfiguration)(ItemDeviceEnrollmentConfigurationsHasPayloadLinksPostResponseable, error) { @@ -72,6 +73,7 @@ func (m *ItemDeviceEnrollmentConfigurationsHasPayloadLinksRequestBuilder) PostAs return res.(ItemDeviceEnrollmentConfigurationsHasPayloadLinksPostResponseable), nil } // ToPostRequestInformation invoke action hasPayloadLinks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDeviceEnrollmentConfigurationsHasPayloadLinksRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemDeviceEnrollmentConfigurationsHasPayloadLinksPostRequestBodyable, requestConfiguration *ItemDeviceEnrollmentConfigurationsHasPayloadLinksRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -87,6 +89,7 @@ func (m *ItemDeviceEnrollmentConfigurationsHasPayloadLinksRequestBuilder) ToPost return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDeviceEnrollmentConfigurationsHasPayloadLinksRequestBuilder when successful func (m *ItemDeviceEnrollmentConfigurationsHasPayloadLinksRequestBuilder) WithUrl(rawUrl string)(*ItemDeviceEnrollmentConfigurationsHasPayloadLinksRequestBuilder) { return NewItemDeviceEnrollmentConfigurationsHasPayloadLinksRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_device_enrollment_configurations_item_assign_request_builder.go b/users/item_device_enrollment_configurations_item_assign_request_builder.go index 198704fc872..ce6cfbce0cd 100644 --- a/users/item_device_enrollment_configurations_item_assign_request_builder.go +++ b/users/item_device_enrollment_configurations_item_assign_request_builder.go @@ -31,6 +31,7 @@ func NewItemDeviceEnrollmentConfigurationsItemAssignRequestBuilder(rawUrl string return NewItemDeviceEnrollmentConfigurationsItemAssignRequestBuilderInternal(urlParams, requestAdapter) } // Post invoke action assign +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDeviceEnrollmentConfigurationsItemAssignRequestBuilder) Post(ctx context.Context, body ItemDeviceEnrollmentConfigurationsItemAssignPostRequestBodyable, requestConfiguration *ItemDeviceEnrollmentConfigurationsItemAssignRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemDeviceEnrollmentConfigurationsItemAssignRequestBuilder) Post(ctx co return nil } // ToPostRequestInformation invoke action assign +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDeviceEnrollmentConfigurationsItemAssignRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemDeviceEnrollmentConfigurationsItemAssignPostRequestBodyable, requestConfiguration *ItemDeviceEnrollmentConfigurationsItemAssignRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -62,6 +64,7 @@ func (m *ItemDeviceEnrollmentConfigurationsItemAssignRequestBuilder) ToPostReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDeviceEnrollmentConfigurationsItemAssignRequestBuilder when successful func (m *ItemDeviceEnrollmentConfigurationsItemAssignRequestBuilder) WithUrl(rawUrl string)(*ItemDeviceEnrollmentConfigurationsItemAssignRequestBuilder) { return NewItemDeviceEnrollmentConfigurationsItemAssignRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_device_enrollment_configurations_item_assignments_count_request_builder.go b/users/item_device_enrollment_configurations_item_assignments_count_request_builder.go index 6dde9debda0..8dbe864b449 100644 --- a/users/item_device_enrollment_configurations_item_assignments_count_request_builder.go +++ b/users/item_device_enrollment_configurations_item_assignments_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemDeviceEnrollmentConfigurationsItemAssignmentsCountRequestBuilder(raw return NewItemDeviceEnrollmentConfigurationsItemAssignmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDeviceEnrollmentConfigurationsItemAssignmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDeviceEnrollmentConfigurationsItemAssignmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemDeviceEnrollmentConfigurationsItemAssignmentsCountRequestBuilder) G return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDeviceEnrollmentConfigurationsItemAssignmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDeviceEnrollmentConfigurationsItemAssignmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemDeviceEnrollmentConfigurationsItemAssignmentsCountRequestBuilder) T return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDeviceEnrollmentConfigurationsItemAssignmentsCountRequestBuilder when successful func (m *ItemDeviceEnrollmentConfigurationsItemAssignmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemDeviceEnrollmentConfigurationsItemAssignmentsCountRequestBuilder) { return NewItemDeviceEnrollmentConfigurationsItemAssignmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_device_enrollment_configurations_item_assignments_request_builder.go b/users/item_device_enrollment_configurations_item_assignments_request_builder.go index bef8977ba37..6aa90bb84ea 100644 --- a/users/item_device_enrollment_configurations_item_assignments_request_builder.go +++ b/users/item_device_enrollment_configurations_item_assignments_request_builder.go @@ -47,6 +47,7 @@ type ItemDeviceEnrollmentConfigurationsItemAssignmentsRequestBuilderPostRequestC Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByEnrollmentConfigurationAssignmentId provides operations to manage the assignments property of the microsoft.graph.deviceEnrollmentConfiguration entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDeviceEnrollmentConfigurationsItemAssignmentsEnrollmentConfigurationAssignmentItemRequestBuilder when successful func (m *ItemDeviceEnrollmentConfigurationsItemAssignmentsRequestBuilder) ByEnrollmentConfigurationAssignmentId(enrollmentConfigurationAssignmentId string)(*ItemDeviceEnrollmentConfigurationsItemAssignmentsEnrollmentConfigurationAssignmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemDeviceEnrollmentConfigurationsItemAssignmentsRequestBuilder) Count( return NewItemDeviceEnrollmentConfigurationsItemAssignmentsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the list of group assignments for the device configuration profile +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EnrollmentConfigurationAssignmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDeviceEnrollmentConfigurationsItemAssignmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDeviceEnrollmentConfigurationsItemAssignmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EnrollmentConfigurationAssignmentCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemDeviceEnrollmentConfigurationsItemAssignmentsRequestBuilder) Get(ct return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EnrollmentConfigurationAssignmentCollectionResponseable), nil } // Post create new navigation property to assignments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EnrollmentConfigurationAssignmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDeviceEnrollmentConfigurationsItemAssignmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EnrollmentConfigurationAssignmentable, requestConfiguration *ItemDeviceEnrollmentConfigurationsItemAssignmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EnrollmentConfigurationAssignmentable, error) { @@ -117,6 +120,7 @@ func (m *ItemDeviceEnrollmentConfigurationsItemAssignmentsRequestBuilder) Post(c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EnrollmentConfigurationAssignmentable), nil } // ToGetRequestInformation the list of group assignments for the device configuration profile +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDeviceEnrollmentConfigurationsItemAssignmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDeviceEnrollmentConfigurationsItemAssignmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemDeviceEnrollmentConfigurationsItemAssignmentsRequestBuilder) ToGetR return requestInfo, nil } // ToPostRequestInformation create new navigation property to assignments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDeviceEnrollmentConfigurationsItemAssignmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EnrollmentConfigurationAssignmentable, requestConfiguration *ItemDeviceEnrollmentConfigurationsItemAssignmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemDeviceEnrollmentConfigurationsItemAssignmentsRequestBuilder) ToPost return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDeviceEnrollmentConfigurationsItemAssignmentsRequestBuilder when successful func (m *ItemDeviceEnrollmentConfigurationsItemAssignmentsRequestBuilder) WithUrl(rawUrl string)(*ItemDeviceEnrollmentConfigurationsItemAssignmentsRequestBuilder) { return NewItemDeviceEnrollmentConfigurationsItemAssignmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_device_enrollment_configurations_item_set_priority_request_builder.go b/users/item_device_enrollment_configurations_item_set_priority_request_builder.go index bf6f762828f..45010b0cef9 100644 --- a/users/item_device_enrollment_configurations_item_set_priority_request_builder.go +++ b/users/item_device_enrollment_configurations_item_set_priority_request_builder.go @@ -31,6 +31,7 @@ func NewItemDeviceEnrollmentConfigurationsItemSetPriorityRequestBuilder(rawUrl s return NewItemDeviceEnrollmentConfigurationsItemSetPriorityRequestBuilderInternal(urlParams, requestAdapter) } // Post invoke action setPriority +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDeviceEnrollmentConfigurationsItemSetPriorityRequestBuilder) Post(ctx context.Context, body ItemDeviceEnrollmentConfigurationsItemSetPriorityPostRequestBodyable, requestConfiguration *ItemDeviceEnrollmentConfigurationsItemSetPriorityRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemDeviceEnrollmentConfigurationsItemSetPriorityRequestBuilder) Post(c return nil } // ToPostRequestInformation invoke action setPriority +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDeviceEnrollmentConfigurationsItemSetPriorityRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemDeviceEnrollmentConfigurationsItemSetPriorityPostRequestBodyable, requestConfiguration *ItemDeviceEnrollmentConfigurationsItemSetPriorityRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -62,6 +64,7 @@ func (m *ItemDeviceEnrollmentConfigurationsItemSetPriorityRequestBuilder) ToPost return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDeviceEnrollmentConfigurationsItemSetPriorityRequestBuilder when successful func (m *ItemDeviceEnrollmentConfigurationsItemSetPriorityRequestBuilder) WithUrl(rawUrl string)(*ItemDeviceEnrollmentConfigurationsItemSetPriorityRequestBuilder) { return NewItemDeviceEnrollmentConfigurationsItemSetPriorityRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_device_enrollment_configurations_request_builder.go b/users/item_device_enrollment_configurations_request_builder.go index 5f76e264b3c..975d36dea0a 100644 --- a/users/item_device_enrollment_configurations_request_builder.go +++ b/users/item_device_enrollment_configurations_request_builder.go @@ -47,6 +47,7 @@ type ItemDeviceEnrollmentConfigurationsRequestBuilderPostRequestConfiguration st Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByDeviceEnrollmentConfigurationId provides operations to manage the deviceEnrollmentConfigurations property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilder when successful func (m *ItemDeviceEnrollmentConfigurationsRequestBuilder) ByDeviceEnrollmentConfigurationId(deviceEnrollmentConfigurationId string)(*ItemDeviceEnrollmentConfigurationsDeviceEnrollmentConfigurationItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemDeviceEnrollmentConfigurationsRequestBuilder) CreateEnrollmentNotif return NewItemDeviceEnrollmentConfigurationsCreateEnrollmentNotificationConfigurationRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get enrollment configurations targeted to the user +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DeviceEnrollmentConfigurationCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDeviceEnrollmentConfigurationsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDeviceEnrollmentConfigurationsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceEnrollmentConfigurationCollectionResponseable, error) { @@ -107,6 +109,7 @@ func (m *ItemDeviceEnrollmentConfigurationsRequestBuilder) HasPayloadLinks()(*It return NewItemDeviceEnrollmentConfigurationsHasPayloadLinksRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Post create new navigation property to deviceEnrollmentConfigurations for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DeviceEnrollmentConfigurationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDeviceEnrollmentConfigurationsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceEnrollmentConfigurationable, requestConfiguration *ItemDeviceEnrollmentConfigurationsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceEnrollmentConfigurationable, error) { @@ -127,6 +130,7 @@ func (m *ItemDeviceEnrollmentConfigurationsRequestBuilder) Post(ctx context.Cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceEnrollmentConfigurationable), nil } // ToGetRequestInformation get enrollment configurations targeted to the user +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDeviceEnrollmentConfigurationsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDeviceEnrollmentConfigurationsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,6 +145,7 @@ func (m *ItemDeviceEnrollmentConfigurationsRequestBuilder) ToGetRequestInformati return requestInfo, nil } // ToPostRequestInformation create new navigation property to deviceEnrollmentConfigurations for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDeviceEnrollmentConfigurationsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceEnrollmentConfigurationable, requestConfiguration *ItemDeviceEnrollmentConfigurationsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +161,7 @@ func (m *ItemDeviceEnrollmentConfigurationsRequestBuilder) ToPostRequestInformat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDeviceEnrollmentConfigurationsRequestBuilder when successful func (m *ItemDeviceEnrollmentConfigurationsRequestBuilder) WithUrl(rawUrl string)(*ItemDeviceEnrollmentConfigurationsRequestBuilder) { return NewItemDeviceEnrollmentConfigurationsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_device_management_troubleshooting_events_count_request_builder.go b/users/item_device_management_troubleshooting_events_count_request_builder.go index 4a562ac0251..c099bacd171 100644 --- a/users/item_device_management_troubleshooting_events_count_request_builder.go +++ b/users/item_device_management_troubleshooting_events_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemDeviceManagementTroubleshootingEventsCountRequestBuilder(rawUrl stri return NewItemDeviceManagementTroubleshootingEventsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDeviceManagementTroubleshootingEventsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDeviceManagementTroubleshootingEventsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemDeviceManagementTroubleshootingEventsCountRequestBuilder) Get(ctx c return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDeviceManagementTroubleshootingEventsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDeviceManagementTroubleshootingEventsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemDeviceManagementTroubleshootingEventsCountRequestBuilder) ToGetRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDeviceManagementTroubleshootingEventsCountRequestBuilder when successful func (m *ItemDeviceManagementTroubleshootingEventsCountRequestBuilder) WithUrl(rawUrl string)(*ItemDeviceManagementTroubleshootingEventsCountRequestBuilder) { return NewItemDeviceManagementTroubleshootingEventsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_device_management_troubleshooting_events_request_builder.go b/users/item_device_management_troubleshooting_events_request_builder.go index 5eaf626ddab..cb9dd4aa460 100644 --- a/users/item_device_management_troubleshooting_events_request_builder.go +++ b/users/item_device_management_troubleshooting_events_request_builder.go @@ -47,6 +47,7 @@ type ItemDeviceManagementTroubleshootingEventsRequestBuilderPostRequestConfigura Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByDeviceManagementTroubleshootingEventId provides operations to manage the deviceManagementTroubleshootingEvents property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDeviceManagementTroubleshootingEventsDeviceManagementTroubleshootingEventItemRequestBuilder when successful func (m *ItemDeviceManagementTroubleshootingEventsRequestBuilder) ByDeviceManagementTroubleshootingEventId(deviceManagementTroubleshootingEventId string)(*ItemDeviceManagementTroubleshootingEventsDeviceManagementTroubleshootingEventItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemDeviceManagementTroubleshootingEventsRequestBuilder) Count()(*ItemD return NewItemDeviceManagementTroubleshootingEventsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the list of troubleshooting events for this user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DeviceManagementTroubleshootingEventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDeviceManagementTroubleshootingEventsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDeviceManagementTroubleshootingEventsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceManagementTroubleshootingEventCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemDeviceManagementTroubleshootingEventsRequestBuilder) Get(ctx contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceManagementTroubleshootingEventCollectionResponseable), nil } // Post create new navigation property to deviceManagementTroubleshootingEvents for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DeviceManagementTroubleshootingEventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDeviceManagementTroubleshootingEventsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceManagementTroubleshootingEventable, requestConfiguration *ItemDeviceManagementTroubleshootingEventsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceManagementTroubleshootingEventable, error) { @@ -117,6 +120,7 @@ func (m *ItemDeviceManagementTroubleshootingEventsRequestBuilder) Post(ctx conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceManagementTroubleshootingEventable), nil } // ToGetRequestInformation the list of troubleshooting events for this user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDeviceManagementTroubleshootingEventsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDeviceManagementTroubleshootingEventsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemDeviceManagementTroubleshootingEventsRequestBuilder) ToGetRequestIn return requestInfo, nil } // ToPostRequestInformation create new navigation property to deviceManagementTroubleshootingEvents for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDeviceManagementTroubleshootingEventsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceManagementTroubleshootingEventable, requestConfiguration *ItemDeviceManagementTroubleshootingEventsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemDeviceManagementTroubleshootingEventsRequestBuilder) ToPostRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDeviceManagementTroubleshootingEventsRequestBuilder when successful func (m *ItemDeviceManagementTroubleshootingEventsRequestBuilder) WithUrl(rawUrl string)(*ItemDeviceManagementTroubleshootingEventsRequestBuilder) { return NewItemDeviceManagementTroubleshootingEventsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_count_request_builder.go b/users/item_devices_count_request_builder.go index ece2dcd73e9..788522fcf5a 100644 --- a/users/item_devices_count_request_builder.go +++ b/users/item_devices_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemDevicesCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7d return NewItemDevicesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemDevicesCountRequestBuilder) Get(ctx context.Context, requestConfigu return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemDevicesCountRequestBuilder) ToGetRequestInformation(ctx context.Con return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesCountRequestBuilder when successful func (m *ItemDevicesCountRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesCountRequestBuilder) { return NewItemDevicesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_delta_request_builder.go b/users/item_devices_delta_request_builder.go index 6634806faca..ce285a66459 100644 --- a/users/item_devices_delta_request_builder.go +++ b/users/item_devices_delta_request_builder.go @@ -76,6 +76,7 @@ func (m *ItemDevicesDeltaRequestBuilder) Get(ctx context.Context, requestConfigu return res.(ItemDevicesDeltaResponseable), nil } // GetAsDeltaGetResponse get newly created, updated, or deleted devices without performing a full read of the entire resource collection. For more information, see Using delta query. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemDevicesDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -99,6 +100,7 @@ func (m *ItemDevicesDeltaRequestBuilder) GetAsDeltaGetResponse(ctx context.Conte return res.(ItemDevicesDeltaGetResponseable), nil } // ToGetRequestInformation get newly created, updated, or deleted devices without performing a full read of the entire resource collection. For more information, see Using delta query. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,6 +115,7 @@ func (m *ItemDevicesDeltaRequestBuilder) ToGetRequestInformation(ctx context.Con return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesDeltaRequestBuilder when successful func (m *ItemDevicesDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesDeltaRequestBuilder) { return NewItemDevicesDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_device_item_request_builder.go b/users/item_devices_device_item_request_builder.go index d266ef58074..b32ee05b108 100644 --- a/users/item_devices_device_item_request_builder.go +++ b/users/item_devices_device_item_request_builder.go @@ -60,6 +60,7 @@ func NewItemDevicesDeviceItemRequestBuilder(rawUrl string, requestAdapter i2ae41 return NewItemDevicesDeviceItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property devices for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesDeviceItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemDevicesDeviceItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -81,6 +82,7 @@ func (m *ItemDevicesDeviceItemRequestBuilder) Extensions()(*ItemDevicesItemExten return NewItemDevicesItemExtensionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get devices from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Deviceable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesDeviceItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesDeviceItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Deviceable, error) { @@ -106,6 +108,7 @@ func (m *ItemDevicesDeviceItemRequestBuilder) MemberOf()(*ItemDevicesItemMemberO return NewItemDevicesItemMemberOfRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property devices in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Deviceable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesDeviceItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Deviceable, requestConfiguration *ItemDevicesDeviceItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Deviceable, error) { @@ -136,6 +139,7 @@ func (m *ItemDevicesDeviceItemRequestBuilder) RegisteredUsers()(*ItemDevicesItem return NewItemDevicesItemRegisteredUsersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property devices for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesDeviceItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesDeviceItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -147,6 +151,7 @@ func (m *ItemDevicesDeviceItemRequestBuilder) ToDeleteRequestInformation(ctx con return requestInfo, nil } // ToGetRequestInformation get devices from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesDeviceItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesDeviceItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -161,6 +166,7 @@ func (m *ItemDevicesDeviceItemRequestBuilder) ToGetRequestInformation(ctx contex return requestInfo, nil } // ToPatchRequestInformation update the navigation property devices in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesDeviceItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Deviceable, requestConfiguration *ItemDevicesDeviceItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -186,6 +192,7 @@ func (m *ItemDevicesDeviceItemRequestBuilder) UsageRights()(*ItemDevicesItemUsag return NewItemDevicesItemUsageRightsRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesDeviceItemRequestBuilder when successful func (m *ItemDevicesDeviceItemRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesDeviceItemRequestBuilder) { return NewItemDevicesDeviceItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_commands_command_item_request_builder.go b/users/item_devices_item_commands_command_item_request_builder.go index 7c9c1cad99d..d7e3328f7e5 100644 --- a/users/item_devices_item_commands_command_item_request_builder.go +++ b/users/item_devices_item_commands_command_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemDevicesItemCommandsCommandItemRequestBuilder(rawUrl string, requestA return NewItemDevicesItemCommandsCommandItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property commands for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemCommandsCommandItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemDevicesItemCommandsCommandItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemDevicesItemCommandsCommandItemRequestBuilder) Delete(ctx context.Co return nil } // Get set of commands sent to this device. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Commandable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemCommandsCommandItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemCommandsCommandItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Commandable, error) { @@ -91,6 +93,7 @@ func (m *ItemDevicesItemCommandsCommandItemRequestBuilder) Get(ctx context.Conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Commandable), nil } // Patch update the navigation property commands in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Commandable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemCommandsCommandItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Commandable, requestConfiguration *ItemDevicesItemCommandsCommandItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Commandable, error) { @@ -116,6 +119,7 @@ func (m *ItemDevicesItemCommandsCommandItemRequestBuilder) Responsepayload()(*It return NewItemDevicesItemCommandsItemResponsepayloadRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property commands for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemCommandsCommandItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemCommandsCommandItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -127,6 +131,7 @@ func (m *ItemDevicesItemCommandsCommandItemRequestBuilder) ToDeleteRequestInform return requestInfo, nil } // ToGetRequestInformation set of commands sent to this device. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemCommandsCommandItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemCommandsCommandItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,6 +146,7 @@ func (m *ItemDevicesItemCommandsCommandItemRequestBuilder) ToGetRequestInformati return requestInfo, nil } // ToPatchRequestInformation update the navigation property commands in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemCommandsCommandItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Commandable, requestConfiguration *ItemDevicesItemCommandsCommandItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +162,7 @@ func (m *ItemDevicesItemCommandsCommandItemRequestBuilder) ToPatchRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemCommandsCommandItemRequestBuilder when successful func (m *ItemDevicesItemCommandsCommandItemRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemCommandsCommandItemRequestBuilder) { return NewItemDevicesItemCommandsCommandItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_commands_count_request_builder.go b/users/item_devices_item_commands_count_request_builder.go index 39c57dc086a..d82f648d72c 100644 --- a/users/item_devices_item_commands_count_request_builder.go +++ b/users/item_devices_item_commands_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemDevicesItemCommandsCountRequestBuilder(rawUrl string, requestAdapter return NewItemDevicesItemCommandsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemCommandsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemCommandsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemDevicesItemCommandsCountRequestBuilder) Get(ctx context.Context, re return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemCommandsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemCommandsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemDevicesItemCommandsCountRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemCommandsCountRequestBuilder when successful func (m *ItemDevicesItemCommandsCountRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemCommandsCountRequestBuilder) { return NewItemDevicesItemCommandsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_commands_item_responsepayload_request_builder.go b/users/item_devices_item_commands_item_responsepayload_request_builder.go index 2d9851ce717..bd37823a0d9 100644 --- a/users/item_devices_item_commands_item_responsepayload_request_builder.go +++ b/users/item_devices_item_commands_item_responsepayload_request_builder.go @@ -41,6 +41,7 @@ func NewItemDevicesItemCommandsItemResponsepayloadRequestBuilder(rawUrl string, return NewItemDevicesItemCommandsItemResponsepayloadRequestBuilderInternal(urlParams, requestAdapter) } // Get get responsepayload from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PayloadResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemCommandsItemResponsepayloadRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemCommandsItemResponsepayloadRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PayloadResponseable, error) { @@ -61,6 +62,7 @@ func (m *ItemDevicesItemCommandsItemResponsepayloadRequestBuilder) Get(ctx conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PayloadResponseable), nil } // ToGetRequestInformation get responsepayload from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemCommandsItemResponsepayloadRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemCommandsItemResponsepayloadRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemDevicesItemCommandsItemResponsepayloadRequestBuilder) ToGetRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemCommandsItemResponsepayloadRequestBuilder when successful func (m *ItemDevicesItemCommandsItemResponsepayloadRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemCommandsItemResponsepayloadRequestBuilder) { return NewItemDevicesItemCommandsItemResponsepayloadRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_commands_request_builder.go b/users/item_devices_item_commands_request_builder.go index 5718032cf21..9a7de263cd1 100644 --- a/users/item_devices_item_commands_request_builder.go +++ b/users/item_devices_item_commands_request_builder.go @@ -47,6 +47,7 @@ type ItemDevicesItemCommandsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByCommandId provides operations to manage the commands property of the microsoft.graph.device entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemCommandsCommandItemRequestBuilder when successful func (m *ItemDevicesItemCommandsRequestBuilder) ByCommandId(commandId string)(*ItemDevicesItemCommandsCommandItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemDevicesItemCommandsRequestBuilder) Count()(*ItemDevicesItemCommands return NewItemDevicesItemCommandsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get set of commands sent to this device. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a CommandCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemCommandsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemCommandsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CommandCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemDevicesItemCommandsRequestBuilder) Get(ctx context.Context, request return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CommandCollectionResponseable), nil } // Post create new navigation property to commands for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Commandable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemCommandsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Commandable, requestConfiguration *ItemDevicesItemCommandsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Commandable, error) { @@ -117,6 +120,7 @@ func (m *ItemDevicesItemCommandsRequestBuilder) Post(ctx context.Context, body i return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Commandable), nil } // ToGetRequestInformation set of commands sent to this device. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemCommandsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemCommandsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemDevicesItemCommandsRequestBuilder) ToGetRequestInformation(ctx cont return requestInfo, nil } // ToPostRequestInformation create new navigation property to commands for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemCommandsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Commandable, requestConfiguration *ItemDevicesItemCommandsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemDevicesItemCommandsRequestBuilder) ToPostRequestInformation(ctx con return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemCommandsRequestBuilder when successful func (m *ItemDevicesItemCommandsRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemCommandsRequestBuilder) { return NewItemDevicesItemCommandsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_extensions_count_request_builder.go b/users/item_devices_item_extensions_count_request_builder.go index 60c5a09f35c..d81397e7761 100644 --- a/users/item_devices_item_extensions_count_request_builder.go +++ b/users/item_devices_item_extensions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemDevicesItemExtensionsCountRequestBuilder(rawUrl string, requestAdapt return NewItemDevicesItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemDevicesItemExtensionsCountRequestBuilder) Get(ctx context.Context, return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemDevicesItemExtensionsCountRequestBuilder) ToGetRequestInformation(c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemExtensionsCountRequestBuilder when successful func (m *ItemDevicesItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemExtensionsCountRequestBuilder) { return NewItemDevicesItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_extensions_extension_item_request_builder.go b/users/item_devices_item_extensions_extension_item_request_builder.go index 0f7d216a25a..a455d95beb4 100644 --- a/users/item_devices_item_extensions_extension_item_request_builder.go +++ b/users/item_devices_item_extensions_extension_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemDevicesItemExtensionsExtensionItemRequestBuilder(rawUrl string, requ return NewItemDevicesItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemDevicesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemDevicesItemExtensionsExtensionItemRequestBuilder) Delete(ctx contex return nil } // Get the collection of open extensions defined for the device. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemDevicesItemExtensionsExtensionItemRequestBuilder) Get(ctx context.C return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemDevicesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemDevicesItemExtensionsExtensionItemRequestBuilder) Patch(ctx context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemDevicesItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestIn return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the device. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemDevicesItemExtensionsExtensionItemRequestBuilder) ToGetRequestInfor return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemDevicesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemDevicesItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInf return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemDevicesItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemExtensionsExtensionItemRequestBuilder) { return NewItemDevicesItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_extensions_request_builder.go b/users/item_devices_item_extensions_request_builder.go index a6f374676f4..3e5cfc2cd1d 100644 --- a/users/item_devices_item_extensions_request_builder.go +++ b/users/item_devices_item_extensions_request_builder.go @@ -47,6 +47,7 @@ type ItemDevicesItemExtensionsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.device entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemDevicesItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemDevicesItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemDevicesItemExtensionsRequestBuilder) Count()(*ItemDevicesItemExtens return NewItemDevicesItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the device. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemDevicesItemExtensionsRequestBuilder) Get(ctx context.Context, reque return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemDevicesItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemDevicesItemExtensionsRequestBuilder) Post(ctx context.Context, body return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the device. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemDevicesItemExtensionsRequestBuilder) ToGetRequestInformation(ctx co return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemDevicesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemDevicesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemExtensionsRequestBuilder when successful func (m *ItemDevicesItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemExtensionsRequestBuilder) { return NewItemDevicesItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_member_of_count_request_builder.go b/users/item_devices_item_member_of_count_request_builder.go index fe5c33f8626..e1ade8fcc98 100644 --- a/users/item_devices_item_member_of_count_request_builder.go +++ b/users/item_devices_item_member_of_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemDevicesItemMemberOfCountRequestBuilder(rawUrl string, requestAdapter return NewItemDevicesItemMemberOfCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemMemberOfCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemMemberOfCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemDevicesItemMemberOfCountRequestBuilder) Get(ctx context.Context, re return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemMemberOfCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemMemberOfCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemDevicesItemMemberOfCountRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemMemberOfCountRequestBuilder when successful func (m *ItemDevicesItemMemberOfCountRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemMemberOfCountRequestBuilder) { return NewItemDevicesItemMemberOfCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_member_of_directory_object_item_request_builder.go b/users/item_devices_item_member_of_directory_object_item_request_builder.go index f89891d1c64..3dc2a859b04 100644 --- a/users/item_devices_item_member_of_directory_object_item_request_builder.go +++ b/users/item_devices_item_member_of_directory_object_item_request_builder.go @@ -41,6 +41,7 @@ func NewItemDevicesItemMemberOfDirectoryObjectItemRequestBuilder(rawUrl string, return NewItemDevicesItemMemberOfDirectoryObjectItemRequestBuilderInternal(urlParams, requestAdapter) } // Get groups and administrative units that this device is a member of. Read-only. Nullable. Supports $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DirectoryObjectable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemMemberOfDirectoryObjectItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemMemberOfDirectoryObjectItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryObjectable, error) { @@ -71,6 +72,7 @@ func (m *ItemDevicesItemMemberOfDirectoryObjectItemRequestBuilder) GraphGroup()( return NewItemDevicesItemMemberOfItemGraphGroupRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation groups and administrative units that this device is a member of. Read-only. Nullable. Supports $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemMemberOfDirectoryObjectItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemMemberOfDirectoryObjectItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemDevicesItemMemberOfDirectoryObjectItemRequestBuilder) ToGetRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemMemberOfDirectoryObjectItemRequestBuilder when successful func (m *ItemDevicesItemMemberOfDirectoryObjectItemRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemMemberOfDirectoryObjectItemRequestBuilder) { return NewItemDevicesItemMemberOfDirectoryObjectItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_member_of_graph_administrative_unit_count_request_builder.go b/users/item_devices_item_member_of_graph_administrative_unit_count_request_builder.go index c690f6794ed..9becfce08e0 100644 --- a/users/item_devices_item_member_of_graph_administrative_unit_count_request_builder.go +++ b/users/item_devices_item_member_of_graph_administrative_unit_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemDevicesItemMemberOfGraphAdministrativeUnitCountRequestBuilder(rawUrl return NewItemDevicesItemMemberOfGraphAdministrativeUnitCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemMemberOfGraphAdministrativeUnitCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemMemberOfGraphAdministrativeUnitCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemDevicesItemMemberOfGraphAdministrativeUnitCountRequestBuilder) Get( return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemMemberOfGraphAdministrativeUnitCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemMemberOfGraphAdministrativeUnitCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemDevicesItemMemberOfGraphAdministrativeUnitCountRequestBuilder) ToGe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemMemberOfGraphAdministrativeUnitCountRequestBuilder when successful func (m *ItemDevicesItemMemberOfGraphAdministrativeUnitCountRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemMemberOfGraphAdministrativeUnitCountRequestBuilder) { return NewItemDevicesItemMemberOfGraphAdministrativeUnitCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_member_of_graph_administrative_unit_request_builder.go b/users/item_devices_item_member_of_graph_administrative_unit_request_builder.go index 9fb14a97839..30266fed8f5 100644 --- a/users/item_devices_item_member_of_graph_administrative_unit_request_builder.go +++ b/users/item_devices_item_member_of_graph_administrative_unit_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemDevicesItemMemberOfGraphAdministrativeUnitRequestBuilder) Count()(* return NewItemDevicesItemMemberOfGraphAdministrativeUnitCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AdministrativeUnitCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemMemberOfGraphAdministrativeUnitRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemMemberOfGraphAdministrativeUnitRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdministrativeUnitCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemDevicesItemMemberOfGraphAdministrativeUnitRequestBuilder) Get(ctx c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdministrativeUnitCollectionResponseable), nil } // ToGetRequestInformation get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemMemberOfGraphAdministrativeUnitRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemMemberOfGraphAdministrativeUnitRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemDevicesItemMemberOfGraphAdministrativeUnitRequestBuilder) ToGetRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemMemberOfGraphAdministrativeUnitRequestBuilder when successful func (m *ItemDevicesItemMemberOfGraphAdministrativeUnitRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemMemberOfGraphAdministrativeUnitRequestBuilder) { return NewItemDevicesItemMemberOfGraphAdministrativeUnitRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_member_of_graph_group_count_request_builder.go b/users/item_devices_item_member_of_graph_group_count_request_builder.go index ef107ba781a..1817839ad6a 100644 --- a/users/item_devices_item_member_of_graph_group_count_request_builder.go +++ b/users/item_devices_item_member_of_graph_group_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemDevicesItemMemberOfGraphGroupCountRequestBuilder(rawUrl string, requ return NewItemDevicesItemMemberOfGraphGroupCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemMemberOfGraphGroupCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemMemberOfGraphGroupCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemDevicesItemMemberOfGraphGroupCountRequestBuilder) Get(ctx context.C return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemMemberOfGraphGroupCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemMemberOfGraphGroupCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemDevicesItemMemberOfGraphGroupCountRequestBuilder) ToGetRequestInfor return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemMemberOfGraphGroupCountRequestBuilder when successful func (m *ItemDevicesItemMemberOfGraphGroupCountRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemMemberOfGraphGroupCountRequestBuilder) { return NewItemDevicesItemMemberOfGraphGroupCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_member_of_graph_group_request_builder.go b/users/item_devices_item_member_of_graph_group_request_builder.go index ab0597d7a58..8ecb24cfd26 100644 --- a/users/item_devices_item_member_of_graph_group_request_builder.go +++ b/users/item_devices_item_member_of_graph_group_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemDevicesItemMemberOfGraphGroupRequestBuilder) Count()(*ItemDevicesIt return NewItemDevicesItemMemberOfGraphGroupCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a GroupCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemMemberOfGraphGroupRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemMemberOfGraphGroupRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GroupCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemDevicesItemMemberOfGraphGroupRequestBuilder) Get(ctx context.Contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GroupCollectionResponseable), nil } // ToGetRequestInformation get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemMemberOfGraphGroupRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemMemberOfGraphGroupRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemDevicesItemMemberOfGraphGroupRequestBuilder) ToGetRequestInformatio return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemMemberOfGraphGroupRequestBuilder when successful func (m *ItemDevicesItemMemberOfGraphGroupRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemMemberOfGraphGroupRequestBuilder) { return NewItemDevicesItemMemberOfGraphGroupRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_member_of_item_graph_administrative_unit_request_builder.go b/users/item_devices_item_member_of_item_graph_administrative_unit_request_builder.go index 9d0feb378b0..17a5c75dd9e 100644 --- a/users/item_devices_item_member_of_item_graph_administrative_unit_request_builder.go +++ b/users/item_devices_item_member_of_item_graph_administrative_unit_request_builder.go @@ -41,6 +41,7 @@ func NewItemDevicesItemMemberOfItemGraphAdministrativeUnitRequestBuilder(rawUrl return NewItemDevicesItemMemberOfItemGraphAdministrativeUnitRequestBuilderInternal(urlParams, requestAdapter) } // Get get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AdministrativeUnitable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemMemberOfItemGraphAdministrativeUnitRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemMemberOfItemGraphAdministrativeUnitRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdministrativeUnitable, error) { @@ -61,6 +62,7 @@ func (m *ItemDevicesItemMemberOfItemGraphAdministrativeUnitRequestBuilder) Get(c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdministrativeUnitable), nil } // ToGetRequestInformation get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemMemberOfItemGraphAdministrativeUnitRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemMemberOfItemGraphAdministrativeUnitRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemDevicesItemMemberOfItemGraphAdministrativeUnitRequestBuilder) ToGet return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemMemberOfItemGraphAdministrativeUnitRequestBuilder when successful func (m *ItemDevicesItemMemberOfItemGraphAdministrativeUnitRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemMemberOfItemGraphAdministrativeUnitRequestBuilder) { return NewItemDevicesItemMemberOfItemGraphAdministrativeUnitRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_member_of_item_graph_group_request_builder.go b/users/item_devices_item_member_of_item_graph_group_request_builder.go index 1c27033ef82..7395b5e291c 100644 --- a/users/item_devices_item_member_of_item_graph_group_request_builder.go +++ b/users/item_devices_item_member_of_item_graph_group_request_builder.go @@ -41,6 +41,7 @@ func NewItemDevicesItemMemberOfItemGraphGroupRequestBuilder(rawUrl string, reque return NewItemDevicesItemMemberOfItemGraphGroupRequestBuilderInternal(urlParams, requestAdapter) } // Get get the item of type microsoft.graph.directoryObject as microsoft.graph.group +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Groupable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemMemberOfItemGraphGroupRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemMemberOfItemGraphGroupRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Groupable, error) { @@ -61,6 +62,7 @@ func (m *ItemDevicesItemMemberOfItemGraphGroupRequestBuilder) Get(ctx context.Co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Groupable), nil } // ToGetRequestInformation get the item of type microsoft.graph.directoryObject as microsoft.graph.group +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemMemberOfItemGraphGroupRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemMemberOfItemGraphGroupRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemDevicesItemMemberOfItemGraphGroupRequestBuilder) ToGetRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemMemberOfItemGraphGroupRequestBuilder when successful func (m *ItemDevicesItemMemberOfItemGraphGroupRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemMemberOfItemGraphGroupRequestBuilder) { return NewItemDevicesItemMemberOfItemGraphGroupRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_member_of_request_builder.go b/users/item_devices_item_member_of_request_builder.go index 940b0df9b26..528081795f6 100644 --- a/users/item_devices_item_member_of_request_builder.go +++ b/users/item_devices_item_member_of_request_builder.go @@ -40,6 +40,7 @@ type ItemDevicesItemMemberOfRequestBuilderGetRequestConfiguration struct { QueryParameters *ItemDevicesItemMemberOfRequestBuilderGetQueryParameters } // ByDirectoryObjectId provides operations to manage the memberOf property of the microsoft.graph.device entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemMemberOfDirectoryObjectItemRequestBuilder when successful func (m *ItemDevicesItemMemberOfRequestBuilder) ByDirectoryObjectId(directoryObjectId string)(*ItemDevicesItemMemberOfDirectoryObjectItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -70,6 +71,7 @@ func (m *ItemDevicesItemMemberOfRequestBuilder) Count()(*ItemDevicesItemMemberOf return NewItemDevicesItemMemberOfCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get groups and administrative units that this device is a member of. Read-only. Nullable. Supports $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DirectoryObjectCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemMemberOfRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemMemberOfRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryObjectCollectionResponseable, error) { @@ -100,6 +102,7 @@ func (m *ItemDevicesItemMemberOfRequestBuilder) GraphGroup()(*ItemDevicesItemMem return NewItemDevicesItemMemberOfGraphGroupRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation groups and administrative units that this device is a member of. Read-only. Nullable. Supports $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemMemberOfRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemMemberOfRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -114,6 +117,7 @@ func (m *ItemDevicesItemMemberOfRequestBuilder) ToGetRequestInformation(ctx cont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemMemberOfRequestBuilder when successful func (m *ItemDevicesItemMemberOfRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemMemberOfRequestBuilder) { return NewItemDevicesItemMemberOfRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_registered_owners_count_request_builder.go b/users/item_devices_item_registered_owners_count_request_builder.go index a5a4baea784..8560d9a1d99 100644 --- a/users/item_devices_item_registered_owners_count_request_builder.go +++ b/users/item_devices_item_registered_owners_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemDevicesItemRegisteredOwnersCountRequestBuilder(rawUrl string, reques return NewItemDevicesItemRegisteredOwnersCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemRegisteredOwnersCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredOwnersCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemDevicesItemRegisteredOwnersCountRequestBuilder) Get(ctx context.Con return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemRegisteredOwnersCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredOwnersCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemDevicesItemRegisteredOwnersCountRequestBuilder) ToGetRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemRegisteredOwnersCountRequestBuilder when successful func (m *ItemDevicesItemRegisteredOwnersCountRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemRegisteredOwnersCountRequestBuilder) { return NewItemDevicesItemRegisteredOwnersCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_registered_owners_graph_endpoint_count_request_builder.go b/users/item_devices_item_registered_owners_graph_endpoint_count_request_builder.go index a82725951a6..d027e9b1dd9 100644 --- a/users/item_devices_item_registered_owners_graph_endpoint_count_request_builder.go +++ b/users/item_devices_item_registered_owners_graph_endpoint_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemDevicesItemRegisteredOwnersGraphEndpointCountRequestBuilder(rawUrl s return NewItemDevicesItemRegisteredOwnersGraphEndpointCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemRegisteredOwnersGraphEndpointCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredOwnersGraphEndpointCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemDevicesItemRegisteredOwnersGraphEndpointCountRequestBuilder) Get(ct return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemRegisteredOwnersGraphEndpointCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredOwnersGraphEndpointCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemDevicesItemRegisteredOwnersGraphEndpointCountRequestBuilder) ToGetR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemRegisteredOwnersGraphEndpointCountRequestBuilder when successful func (m *ItemDevicesItemRegisteredOwnersGraphEndpointCountRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemRegisteredOwnersGraphEndpointCountRequestBuilder) { return NewItemDevicesItemRegisteredOwnersGraphEndpointCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_registered_owners_graph_endpoint_request_builder.go b/users/item_devices_item_registered_owners_graph_endpoint_request_builder.go index eeea5a9bff0..7ad39187f67 100644 --- a/users/item_devices_item_registered_owners_graph_endpoint_request_builder.go +++ b/users/item_devices_item_registered_owners_graph_endpoint_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemDevicesItemRegisteredOwnersGraphEndpointRequestBuilder) Count()(*It return NewItemDevicesItemRegisteredOwnersGraphEndpointCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get the items of type microsoft.graph.endpoint in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EndpointCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemRegisteredOwnersGraphEndpointRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredOwnersGraphEndpointRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EndpointCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemDevicesItemRegisteredOwnersGraphEndpointRequestBuilder) Get(ctx con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EndpointCollectionResponseable), nil } // ToGetRequestInformation get the items of type microsoft.graph.endpoint in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemRegisteredOwnersGraphEndpointRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredOwnersGraphEndpointRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemDevicesItemRegisteredOwnersGraphEndpointRequestBuilder) ToGetReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemRegisteredOwnersGraphEndpointRequestBuilder when successful func (m *ItemDevicesItemRegisteredOwnersGraphEndpointRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemRegisteredOwnersGraphEndpointRequestBuilder) { return NewItemDevicesItemRegisteredOwnersGraphEndpointRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_registered_owners_graph_service_principal_count_request_builder.go b/users/item_devices_item_registered_owners_graph_service_principal_count_request_builder.go index 9695fa718c4..512fd763283 100644 --- a/users/item_devices_item_registered_owners_graph_service_principal_count_request_builder.go +++ b/users/item_devices_item_registered_owners_graph_service_principal_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemDevicesItemRegisteredOwnersGraphServicePrincipalCountRequestBuilder( return NewItemDevicesItemRegisteredOwnersGraphServicePrincipalCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemRegisteredOwnersGraphServicePrincipalCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredOwnersGraphServicePrincipalCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemDevicesItemRegisteredOwnersGraphServicePrincipalCountRequestBuilder return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemRegisteredOwnersGraphServicePrincipalCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredOwnersGraphServicePrincipalCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemDevicesItemRegisteredOwnersGraphServicePrincipalCountRequestBuilder return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemRegisteredOwnersGraphServicePrincipalCountRequestBuilder when successful func (m *ItemDevicesItemRegisteredOwnersGraphServicePrincipalCountRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemRegisteredOwnersGraphServicePrincipalCountRequestBuilder) { return NewItemDevicesItemRegisteredOwnersGraphServicePrincipalCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_registered_owners_graph_service_principal_request_builder.go b/users/item_devices_item_registered_owners_graph_service_principal_request_builder.go index 52892e0fcfd..26249bcf5c2 100644 --- a/users/item_devices_item_registered_owners_graph_service_principal_request_builder.go +++ b/users/item_devices_item_registered_owners_graph_service_principal_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemDevicesItemRegisteredOwnersGraphServicePrincipalRequestBuilder) Cou return NewItemDevicesItemRegisteredOwnersGraphServicePrincipalCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get the items of type microsoft.graph.servicePrincipal in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServicePrincipalCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemRegisteredOwnersGraphServicePrincipalRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredOwnersGraphServicePrincipalRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServicePrincipalCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemDevicesItemRegisteredOwnersGraphServicePrincipalRequestBuilder) Get return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServicePrincipalCollectionResponseable), nil } // ToGetRequestInformation get the items of type microsoft.graph.servicePrincipal in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemRegisteredOwnersGraphServicePrincipalRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredOwnersGraphServicePrincipalRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemDevicesItemRegisteredOwnersGraphServicePrincipalRequestBuilder) ToG return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemRegisteredOwnersGraphServicePrincipalRequestBuilder when successful func (m *ItemDevicesItemRegisteredOwnersGraphServicePrincipalRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemRegisteredOwnersGraphServicePrincipalRequestBuilder) { return NewItemDevicesItemRegisteredOwnersGraphServicePrincipalRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_registered_owners_graph_user_count_request_builder.go b/users/item_devices_item_registered_owners_graph_user_count_request_builder.go index af8f5a95e96..9633b9f3151 100644 --- a/users/item_devices_item_registered_owners_graph_user_count_request_builder.go +++ b/users/item_devices_item_registered_owners_graph_user_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemDevicesItemRegisteredOwnersGraphUserCountRequestBuilder(rawUrl strin return NewItemDevicesItemRegisteredOwnersGraphUserCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemRegisteredOwnersGraphUserCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredOwnersGraphUserCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemDevicesItemRegisteredOwnersGraphUserCountRequestBuilder) Get(ctx co return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemRegisteredOwnersGraphUserCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredOwnersGraphUserCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemDevicesItemRegisteredOwnersGraphUserCountRequestBuilder) ToGetReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemRegisteredOwnersGraphUserCountRequestBuilder when successful func (m *ItemDevicesItemRegisteredOwnersGraphUserCountRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemRegisteredOwnersGraphUserCountRequestBuilder) { return NewItemDevicesItemRegisteredOwnersGraphUserCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_registered_owners_graph_user_request_builder.go b/users/item_devices_item_registered_owners_graph_user_request_builder.go index d4aeae7b9b4..977ba21213a 100644 --- a/users/item_devices_item_registered_owners_graph_user_request_builder.go +++ b/users/item_devices_item_registered_owners_graph_user_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemDevicesItemRegisteredOwnersGraphUserRequestBuilder) Count()(*ItemDe return NewItemDevicesItemRegisteredOwnersGraphUserCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemRegisteredOwnersGraphUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredOwnersGraphUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemDevicesItemRegisteredOwnersGraphUserRequestBuilder) Get(ctx context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable), nil } // ToGetRequestInformation get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemRegisteredOwnersGraphUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredOwnersGraphUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemDevicesItemRegisteredOwnersGraphUserRequestBuilder) ToGetRequestInf return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemRegisteredOwnersGraphUserRequestBuilder when successful func (m *ItemDevicesItemRegisteredOwnersGraphUserRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemRegisteredOwnersGraphUserRequestBuilder) { return NewItemDevicesItemRegisteredOwnersGraphUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_registered_owners_item_graph_endpoint_request_builder.go b/users/item_devices_item_registered_owners_item_graph_endpoint_request_builder.go index f74557b4a46..fc697a33e47 100644 --- a/users/item_devices_item_registered_owners_item_graph_endpoint_request_builder.go +++ b/users/item_devices_item_registered_owners_item_graph_endpoint_request_builder.go @@ -41,6 +41,7 @@ func NewItemDevicesItemRegisteredOwnersItemGraphEndpointRequestBuilder(rawUrl st return NewItemDevicesItemRegisteredOwnersItemGraphEndpointRequestBuilderInternal(urlParams, requestAdapter) } // Get get the item of type microsoft.graph.directoryObject as microsoft.graph.endpoint +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Endpointable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemRegisteredOwnersItemGraphEndpointRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredOwnersItemGraphEndpointRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Endpointable, error) { @@ -61,6 +62,7 @@ func (m *ItemDevicesItemRegisteredOwnersItemGraphEndpointRequestBuilder) Get(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Endpointable), nil } // ToGetRequestInformation get the item of type microsoft.graph.directoryObject as microsoft.graph.endpoint +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemRegisteredOwnersItemGraphEndpointRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredOwnersItemGraphEndpointRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemDevicesItemRegisteredOwnersItemGraphEndpointRequestBuilder) ToGetRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemRegisteredOwnersItemGraphEndpointRequestBuilder when successful func (m *ItemDevicesItemRegisteredOwnersItemGraphEndpointRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemRegisteredOwnersItemGraphEndpointRequestBuilder) { return NewItemDevicesItemRegisteredOwnersItemGraphEndpointRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_registered_owners_item_graph_service_principal_request_builder.go b/users/item_devices_item_registered_owners_item_graph_service_principal_request_builder.go index cdba85d15e9..f54ad91746d 100644 --- a/users/item_devices_item_registered_owners_item_graph_service_principal_request_builder.go +++ b/users/item_devices_item_registered_owners_item_graph_service_principal_request_builder.go @@ -41,6 +41,7 @@ func NewItemDevicesItemRegisteredOwnersItemGraphServicePrincipalRequestBuilder(r return NewItemDevicesItemRegisteredOwnersItemGraphServicePrincipalRequestBuilderInternal(urlParams, requestAdapter) } // Get get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServicePrincipalable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemRegisteredOwnersItemGraphServicePrincipalRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredOwnersItemGraphServicePrincipalRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServicePrincipalable, error) { @@ -61,6 +62,7 @@ func (m *ItemDevicesItemRegisteredOwnersItemGraphServicePrincipalRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServicePrincipalable), nil } // ToGetRequestInformation get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemRegisteredOwnersItemGraphServicePrincipalRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredOwnersItemGraphServicePrincipalRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemDevicesItemRegisteredOwnersItemGraphServicePrincipalRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemRegisteredOwnersItemGraphServicePrincipalRequestBuilder when successful func (m *ItemDevicesItemRegisteredOwnersItemGraphServicePrincipalRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemRegisteredOwnersItemGraphServicePrincipalRequestBuilder) { return NewItemDevicesItemRegisteredOwnersItemGraphServicePrincipalRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_registered_owners_item_graph_user_request_builder.go b/users/item_devices_item_registered_owners_item_graph_user_request_builder.go index 05f9d527781..d63c52129fd 100644 --- a/users/item_devices_item_registered_owners_item_graph_user_request_builder.go +++ b/users/item_devices_item_registered_owners_item_graph_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemDevicesItemRegisteredOwnersItemGraphUserRequestBuilder(rawUrl string return NewItemDevicesItemRegisteredOwnersItemGraphUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get the item of type microsoft.graph.directoryObject as microsoft.graph.user +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemRegisteredOwnersItemGraphUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredOwnersItemGraphUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -61,6 +62,7 @@ func (m *ItemDevicesItemRegisteredOwnersItemGraphUserRequestBuilder) Get(ctx con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable), nil } // ToGetRequestInformation get the item of type microsoft.graph.directoryObject as microsoft.graph.user +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemRegisteredOwnersItemGraphUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredOwnersItemGraphUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemDevicesItemRegisteredOwnersItemGraphUserRequestBuilder) ToGetReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemRegisteredOwnersItemGraphUserRequestBuilder when successful func (m *ItemDevicesItemRegisteredOwnersItemGraphUserRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemRegisteredOwnersItemGraphUserRequestBuilder) { return NewItemDevicesItemRegisteredOwnersItemGraphUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_registered_owners_item_ref_request_builder.go b/users/item_devices_item_registered_owners_item_ref_request_builder.go index 9b450172aa7..c151ecfd5ec 100644 --- a/users/item_devices_item_registered_owners_item_ref_request_builder.go +++ b/users/item_devices_item_registered_owners_item_ref_request_builder.go @@ -31,6 +31,7 @@ func NewItemDevicesItemRegisteredOwnersItemRefRequestBuilder(rawUrl string, requ return NewItemDevicesItemRegisteredOwnersItemRefRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete ref of navigation property registeredOwners for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemRegisteredOwnersItemRefRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredOwnersItemRefRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemDevicesItemRegisteredOwnersItemRefRequestBuilder) Delete(ctx contex return nil } // ToDeleteRequestInformation delete ref of navigation property registeredOwners for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemRegisteredOwnersItemRefRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredOwnersItemRefRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -58,6 +60,7 @@ func (m *ItemDevicesItemRegisteredOwnersItemRefRequestBuilder) ToDeleteRequestIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemRegisteredOwnersItemRefRequestBuilder when successful func (m *ItemDevicesItemRegisteredOwnersItemRefRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemRegisteredOwnersItemRefRequestBuilder) { return NewItemDevicesItemRegisteredOwnersItemRefRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_registered_owners_ref_request_builder.go b/users/item_devices_item_registered_owners_ref_request_builder.go index bf5574c0bbc..53eeb43c7e6 100644 --- a/users/item_devices_item_registered_owners_ref_request_builder.go +++ b/users/item_devices_item_registered_owners_ref_request_builder.go @@ -70,6 +70,7 @@ func NewItemDevicesItemRegisteredOwnersRefRequestBuilder(rawUrl string, requestA return NewItemDevicesItemRegisteredOwnersRefRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete ref of navigation property registeredOwners for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemRegisteredOwnersRefRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredOwnersRefRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -86,6 +87,7 @@ func (m *ItemDevicesItemRegisteredOwnersRefRequestBuilder) Delete(ctx context.Co return nil } // Get the user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Read-only. Nullable. Supports $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a StringCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemRegisteredOwnersRefRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredOwnersRefRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.StringCollectionResponseable, error) { @@ -106,6 +108,7 @@ func (m *ItemDevicesItemRegisteredOwnersRefRequestBuilder) Get(ctx context.Conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.StringCollectionResponseable), nil } // Post create new navigation property ref to registeredOwners for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemRegisteredOwnersRefRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *ItemDevicesItemRegisteredOwnersRefRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); @@ -122,6 +125,7 @@ func (m *ItemDevicesItemRegisteredOwnersRefRequestBuilder) Post(ctx context.Cont return nil } // ToDeleteRequestInformation delete ref of navigation property registeredOwners for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemRegisteredOwnersRefRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredOwnersRefRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/users/{user%2Did}/devices/{device%2Did}/registeredOwners/$ref?@id={%40id}", m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemDevicesItemRegisteredOwnersRefRequestBuilder) ToDeleteRequestInform return requestInfo, nil } // ToGetRequestInformation the user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Read-only. Nullable. Supports $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemRegisteredOwnersRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredOwnersRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/users/{user%2Did}/devices/{device%2Did}/registeredOwners/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) @@ -150,6 +155,7 @@ func (m *ItemDevicesItemRegisteredOwnersRefRequestBuilder) ToGetRequestInformati return requestInfo, nil } // ToPostRequestInformation create new navigation property ref to registeredOwners for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemRegisteredOwnersRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *ItemDevicesItemRegisteredOwnersRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/users/{user%2Did}/devices/{device%2Did}/registeredOwners/$ref", m.BaseRequestBuilder.PathParameters) @@ -165,6 +171,7 @@ func (m *ItemDevicesItemRegisteredOwnersRefRequestBuilder) ToPostRequestInformat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemRegisteredOwnersRefRequestBuilder when successful func (m *ItemDevicesItemRegisteredOwnersRefRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemRegisteredOwnersRefRequestBuilder) { return NewItemDevicesItemRegisteredOwnersRefRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_registered_owners_request_builder.go b/users/item_devices_item_registered_owners_request_builder.go index 2108dd05921..02c95e53e91 100644 --- a/users/item_devices_item_registered_owners_request_builder.go +++ b/users/item_devices_item_registered_owners_request_builder.go @@ -70,6 +70,7 @@ func (m *ItemDevicesItemRegisteredOwnersRequestBuilder) Count()(*ItemDevicesItem return NewItemDevicesItemRegisteredOwnersCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Read-only. Nullable. Supports $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DirectoryObjectCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemRegisteredOwnersRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredOwnersRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryObjectCollectionResponseable, error) { @@ -110,6 +111,7 @@ func (m *ItemDevicesItemRegisteredOwnersRequestBuilder) Ref()(*ItemDevicesItemRe return NewItemDevicesItemRegisteredOwnersRefRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation the user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Read-only. Nullable. Supports $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemRegisteredOwnersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredOwnersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -124,6 +126,7 @@ func (m *ItemDevicesItemRegisteredOwnersRequestBuilder) ToGetRequestInformation( return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemRegisteredOwnersRequestBuilder when successful func (m *ItemDevicesItemRegisteredOwnersRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemRegisteredOwnersRequestBuilder) { return NewItemDevicesItemRegisteredOwnersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_registered_users_count_request_builder.go b/users/item_devices_item_registered_users_count_request_builder.go index 5b56417d182..53cf75d00bd 100644 --- a/users/item_devices_item_registered_users_count_request_builder.go +++ b/users/item_devices_item_registered_users_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemDevicesItemRegisteredUsersCountRequestBuilder(rawUrl string, request return NewItemDevicesItemRegisteredUsersCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemRegisteredUsersCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredUsersCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemDevicesItemRegisteredUsersCountRequestBuilder) Get(ctx context.Cont return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemRegisteredUsersCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredUsersCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemDevicesItemRegisteredUsersCountRequestBuilder) ToGetRequestInformat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemRegisteredUsersCountRequestBuilder when successful func (m *ItemDevicesItemRegisteredUsersCountRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemRegisteredUsersCountRequestBuilder) { return NewItemDevicesItemRegisteredUsersCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_registered_users_graph_endpoint_count_request_builder.go b/users/item_devices_item_registered_users_graph_endpoint_count_request_builder.go index c5fc284c569..0b3be7249af 100644 --- a/users/item_devices_item_registered_users_graph_endpoint_count_request_builder.go +++ b/users/item_devices_item_registered_users_graph_endpoint_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemDevicesItemRegisteredUsersGraphEndpointCountRequestBuilder(rawUrl st return NewItemDevicesItemRegisteredUsersGraphEndpointCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemRegisteredUsersGraphEndpointCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredUsersGraphEndpointCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemDevicesItemRegisteredUsersGraphEndpointCountRequestBuilder) Get(ctx return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemRegisteredUsersGraphEndpointCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredUsersGraphEndpointCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemDevicesItemRegisteredUsersGraphEndpointCountRequestBuilder) ToGetRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemRegisteredUsersGraphEndpointCountRequestBuilder when successful func (m *ItemDevicesItemRegisteredUsersGraphEndpointCountRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemRegisteredUsersGraphEndpointCountRequestBuilder) { return NewItemDevicesItemRegisteredUsersGraphEndpointCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_registered_users_graph_endpoint_request_builder.go b/users/item_devices_item_registered_users_graph_endpoint_request_builder.go index 4aaeb91f456..7faa47fd1b8 100644 --- a/users/item_devices_item_registered_users_graph_endpoint_request_builder.go +++ b/users/item_devices_item_registered_users_graph_endpoint_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemDevicesItemRegisteredUsersGraphEndpointRequestBuilder) Count()(*Ite return NewItemDevicesItemRegisteredUsersGraphEndpointCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get the items of type microsoft.graph.endpoint in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EndpointCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemRegisteredUsersGraphEndpointRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredUsersGraphEndpointRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EndpointCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemDevicesItemRegisteredUsersGraphEndpointRequestBuilder) Get(ctx cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EndpointCollectionResponseable), nil } // ToGetRequestInformation get the items of type microsoft.graph.endpoint in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemRegisteredUsersGraphEndpointRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredUsersGraphEndpointRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemDevicesItemRegisteredUsersGraphEndpointRequestBuilder) ToGetRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemRegisteredUsersGraphEndpointRequestBuilder when successful func (m *ItemDevicesItemRegisteredUsersGraphEndpointRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemRegisteredUsersGraphEndpointRequestBuilder) { return NewItemDevicesItemRegisteredUsersGraphEndpointRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_registered_users_graph_service_principal_count_request_builder.go b/users/item_devices_item_registered_users_graph_service_principal_count_request_builder.go index ec296fa6393..a59241077ce 100644 --- a/users/item_devices_item_registered_users_graph_service_principal_count_request_builder.go +++ b/users/item_devices_item_registered_users_graph_service_principal_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemDevicesItemRegisteredUsersGraphServicePrincipalCountRequestBuilder(r return NewItemDevicesItemRegisteredUsersGraphServicePrincipalCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemRegisteredUsersGraphServicePrincipalCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredUsersGraphServicePrincipalCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemDevicesItemRegisteredUsersGraphServicePrincipalCountRequestBuilder) return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemRegisteredUsersGraphServicePrincipalCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredUsersGraphServicePrincipalCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemDevicesItemRegisteredUsersGraphServicePrincipalCountRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemRegisteredUsersGraphServicePrincipalCountRequestBuilder when successful func (m *ItemDevicesItemRegisteredUsersGraphServicePrincipalCountRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemRegisteredUsersGraphServicePrincipalCountRequestBuilder) { return NewItemDevicesItemRegisteredUsersGraphServicePrincipalCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_registered_users_graph_service_principal_request_builder.go b/users/item_devices_item_registered_users_graph_service_principal_request_builder.go index 705a5c5af19..f661b280290 100644 --- a/users/item_devices_item_registered_users_graph_service_principal_request_builder.go +++ b/users/item_devices_item_registered_users_graph_service_principal_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemDevicesItemRegisteredUsersGraphServicePrincipalRequestBuilder) Coun return NewItemDevicesItemRegisteredUsersGraphServicePrincipalCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get the items of type microsoft.graph.servicePrincipal in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServicePrincipalCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemRegisteredUsersGraphServicePrincipalRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredUsersGraphServicePrincipalRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServicePrincipalCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemDevicesItemRegisteredUsersGraphServicePrincipalRequestBuilder) Get( return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServicePrincipalCollectionResponseable), nil } // ToGetRequestInformation get the items of type microsoft.graph.servicePrincipal in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemRegisteredUsersGraphServicePrincipalRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredUsersGraphServicePrincipalRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemDevicesItemRegisteredUsersGraphServicePrincipalRequestBuilder) ToGe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemRegisteredUsersGraphServicePrincipalRequestBuilder when successful func (m *ItemDevicesItemRegisteredUsersGraphServicePrincipalRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemRegisteredUsersGraphServicePrincipalRequestBuilder) { return NewItemDevicesItemRegisteredUsersGraphServicePrincipalRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_registered_users_graph_user_count_request_builder.go b/users/item_devices_item_registered_users_graph_user_count_request_builder.go index 2829ad802ae..4728eebe848 100644 --- a/users/item_devices_item_registered_users_graph_user_count_request_builder.go +++ b/users/item_devices_item_registered_users_graph_user_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemDevicesItemRegisteredUsersGraphUserCountRequestBuilder(rawUrl string return NewItemDevicesItemRegisteredUsersGraphUserCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemRegisteredUsersGraphUserCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredUsersGraphUserCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemDevicesItemRegisteredUsersGraphUserCountRequestBuilder) Get(ctx con return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemRegisteredUsersGraphUserCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredUsersGraphUserCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemDevicesItemRegisteredUsersGraphUserCountRequestBuilder) ToGetReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemRegisteredUsersGraphUserCountRequestBuilder when successful func (m *ItemDevicesItemRegisteredUsersGraphUserCountRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemRegisteredUsersGraphUserCountRequestBuilder) { return NewItemDevicesItemRegisteredUsersGraphUserCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_registered_users_graph_user_request_builder.go b/users/item_devices_item_registered_users_graph_user_request_builder.go index 299779ba567..2045abf48c2 100644 --- a/users/item_devices_item_registered_users_graph_user_request_builder.go +++ b/users/item_devices_item_registered_users_graph_user_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemDevicesItemRegisteredUsersGraphUserRequestBuilder) Count()(*ItemDev return NewItemDevicesItemRegisteredUsersGraphUserCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemRegisteredUsersGraphUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredUsersGraphUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemDevicesItemRegisteredUsersGraphUserRequestBuilder) Get(ctx context. return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable), nil } // ToGetRequestInformation get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemRegisteredUsersGraphUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredUsersGraphUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemDevicesItemRegisteredUsersGraphUserRequestBuilder) ToGetRequestInfo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemRegisteredUsersGraphUserRequestBuilder when successful func (m *ItemDevicesItemRegisteredUsersGraphUserRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemRegisteredUsersGraphUserRequestBuilder) { return NewItemDevicesItemRegisteredUsersGraphUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_registered_users_item_graph_endpoint_request_builder.go b/users/item_devices_item_registered_users_item_graph_endpoint_request_builder.go index cdaafb1a1ae..f1ccd9b5da2 100644 --- a/users/item_devices_item_registered_users_item_graph_endpoint_request_builder.go +++ b/users/item_devices_item_registered_users_item_graph_endpoint_request_builder.go @@ -41,6 +41,7 @@ func NewItemDevicesItemRegisteredUsersItemGraphEndpointRequestBuilder(rawUrl str return NewItemDevicesItemRegisteredUsersItemGraphEndpointRequestBuilderInternal(urlParams, requestAdapter) } // Get get the item of type microsoft.graph.directoryObject as microsoft.graph.endpoint +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Endpointable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemRegisteredUsersItemGraphEndpointRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredUsersItemGraphEndpointRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Endpointable, error) { @@ -61,6 +62,7 @@ func (m *ItemDevicesItemRegisteredUsersItemGraphEndpointRequestBuilder) Get(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Endpointable), nil } // ToGetRequestInformation get the item of type microsoft.graph.directoryObject as microsoft.graph.endpoint +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemRegisteredUsersItemGraphEndpointRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredUsersItemGraphEndpointRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemDevicesItemRegisteredUsersItemGraphEndpointRequestBuilder) ToGetReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemRegisteredUsersItemGraphEndpointRequestBuilder when successful func (m *ItemDevicesItemRegisteredUsersItemGraphEndpointRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemRegisteredUsersItemGraphEndpointRequestBuilder) { return NewItemDevicesItemRegisteredUsersItemGraphEndpointRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_registered_users_item_graph_service_principal_request_builder.go b/users/item_devices_item_registered_users_item_graph_service_principal_request_builder.go index c99a82713b5..39b16a3f23c 100644 --- a/users/item_devices_item_registered_users_item_graph_service_principal_request_builder.go +++ b/users/item_devices_item_registered_users_item_graph_service_principal_request_builder.go @@ -41,6 +41,7 @@ func NewItemDevicesItemRegisteredUsersItemGraphServicePrincipalRequestBuilder(ra return NewItemDevicesItemRegisteredUsersItemGraphServicePrincipalRequestBuilderInternal(urlParams, requestAdapter) } // Get get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServicePrincipalable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemRegisteredUsersItemGraphServicePrincipalRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredUsersItemGraphServicePrincipalRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServicePrincipalable, error) { @@ -61,6 +62,7 @@ func (m *ItemDevicesItemRegisteredUsersItemGraphServicePrincipalRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServicePrincipalable), nil } // ToGetRequestInformation get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemRegisteredUsersItemGraphServicePrincipalRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredUsersItemGraphServicePrincipalRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemDevicesItemRegisteredUsersItemGraphServicePrincipalRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemRegisteredUsersItemGraphServicePrincipalRequestBuilder when successful func (m *ItemDevicesItemRegisteredUsersItemGraphServicePrincipalRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemRegisteredUsersItemGraphServicePrincipalRequestBuilder) { return NewItemDevicesItemRegisteredUsersItemGraphServicePrincipalRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_registered_users_item_graph_user_request_builder.go b/users/item_devices_item_registered_users_item_graph_user_request_builder.go index 59510f56438..d4d26e8fa52 100644 --- a/users/item_devices_item_registered_users_item_graph_user_request_builder.go +++ b/users/item_devices_item_registered_users_item_graph_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemDevicesItemRegisteredUsersItemGraphUserRequestBuilder(rawUrl string, return NewItemDevicesItemRegisteredUsersItemGraphUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get the item of type microsoft.graph.directoryObject as microsoft.graph.user +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemRegisteredUsersItemGraphUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredUsersItemGraphUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -61,6 +62,7 @@ func (m *ItemDevicesItemRegisteredUsersItemGraphUserRequestBuilder) Get(ctx cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable), nil } // ToGetRequestInformation get the item of type microsoft.graph.directoryObject as microsoft.graph.user +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemRegisteredUsersItemGraphUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredUsersItemGraphUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemDevicesItemRegisteredUsersItemGraphUserRequestBuilder) ToGetRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemRegisteredUsersItemGraphUserRequestBuilder when successful func (m *ItemDevicesItemRegisteredUsersItemGraphUserRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemRegisteredUsersItemGraphUserRequestBuilder) { return NewItemDevicesItemRegisteredUsersItemGraphUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_registered_users_item_ref_request_builder.go b/users/item_devices_item_registered_users_item_ref_request_builder.go index 91cd836e61c..8b88035ad7c 100644 --- a/users/item_devices_item_registered_users_item_ref_request_builder.go +++ b/users/item_devices_item_registered_users_item_ref_request_builder.go @@ -31,6 +31,7 @@ func NewItemDevicesItemRegisteredUsersItemRefRequestBuilder(rawUrl string, reque return NewItemDevicesItemRegisteredUsersItemRefRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete ref of navigation property registeredUsers for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemRegisteredUsersItemRefRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredUsersItemRefRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemDevicesItemRegisteredUsersItemRefRequestBuilder) Delete(ctx context return nil } // ToDeleteRequestInformation delete ref of navigation property registeredUsers for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemRegisteredUsersItemRefRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredUsersItemRefRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -58,6 +60,7 @@ func (m *ItemDevicesItemRegisteredUsersItemRefRequestBuilder) ToDeleteRequestInf return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemRegisteredUsersItemRefRequestBuilder when successful func (m *ItemDevicesItemRegisteredUsersItemRefRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemRegisteredUsersItemRefRequestBuilder) { return NewItemDevicesItemRegisteredUsersItemRefRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_registered_users_ref_request_builder.go b/users/item_devices_item_registered_users_ref_request_builder.go index 62fff29540a..e2b2291a9a7 100644 --- a/users/item_devices_item_registered_users_ref_request_builder.go +++ b/users/item_devices_item_registered_users_ref_request_builder.go @@ -70,6 +70,7 @@ func NewItemDevicesItemRegisteredUsersRefRequestBuilder(rawUrl string, requestAd return NewItemDevicesItemRegisteredUsersRefRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete ref of navigation property registeredUsers for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemRegisteredUsersRefRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredUsersRefRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -86,6 +87,7 @@ func (m *ItemDevicesItemRegisteredUsersRefRequestBuilder) Delete(ctx context.Con return nil } // Get collection of registered users of the device. For cloud joined devices and registered personal devices, registered users are set to the same value as registered owners at the time of registration. Read-only. Nullable. Supports $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a StringCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemRegisteredUsersRefRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredUsersRefRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.StringCollectionResponseable, error) { @@ -106,6 +108,7 @@ func (m *ItemDevicesItemRegisteredUsersRefRequestBuilder) Get(ctx context.Contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.StringCollectionResponseable), nil } // Post create new navigation property ref to registeredUsers for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemRegisteredUsersRefRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *ItemDevicesItemRegisteredUsersRefRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); @@ -122,6 +125,7 @@ func (m *ItemDevicesItemRegisteredUsersRefRequestBuilder) Post(ctx context.Conte return nil } // ToDeleteRequestInformation delete ref of navigation property registeredUsers for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemRegisteredUsersRefRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredUsersRefRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, "{+baseurl}/users/{user%2Did}/devices/{device%2Did}/registeredUsers/$ref?@id={%40id}", m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemDevicesItemRegisteredUsersRefRequestBuilder) ToDeleteRequestInforma return requestInfo, nil } // ToGetRequestInformation collection of registered users of the device. For cloud joined devices and registered personal devices, registered users are set to the same value as registered owners at the time of registration. Read-only. Nullable. Supports $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemRegisteredUsersRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredUsersRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, "{+baseurl}/users/{user%2Did}/devices/{device%2Did}/registeredUsers/$ref{?%24count,%24filter,%24orderby,%24search,%24skip,%24top}", m.BaseRequestBuilder.PathParameters) @@ -150,6 +155,7 @@ func (m *ItemDevicesItemRegisteredUsersRefRequestBuilder) ToGetRequestInformatio return requestInfo, nil } // ToPostRequestInformation create new navigation property ref to registeredUsers for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemRegisteredUsersRefRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceCreateable, requestConfiguration *ItemDevicesItemRegisteredUsersRefRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, "{+baseurl}/users/{user%2Did}/devices/{device%2Did}/registeredUsers/$ref", m.BaseRequestBuilder.PathParameters) @@ -165,6 +171,7 @@ func (m *ItemDevicesItemRegisteredUsersRefRequestBuilder) ToPostRequestInformati return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemRegisteredUsersRefRequestBuilder when successful func (m *ItemDevicesItemRegisteredUsersRefRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemRegisteredUsersRefRequestBuilder) { return NewItemDevicesItemRegisteredUsersRefRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_registered_users_request_builder.go b/users/item_devices_item_registered_users_request_builder.go index d85b7ee08fd..3233dbbece5 100644 --- a/users/item_devices_item_registered_users_request_builder.go +++ b/users/item_devices_item_registered_users_request_builder.go @@ -70,6 +70,7 @@ func (m *ItemDevicesItemRegisteredUsersRequestBuilder) Count()(*ItemDevicesItemR return NewItemDevicesItemRegisteredUsersCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get collection of registered users of the device. For cloud joined devices and registered personal devices, registered users are set to the same value as registered owners at the time of registration. Read-only. Nullable. Supports $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DirectoryObjectCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemRegisteredUsersRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredUsersRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryObjectCollectionResponseable, error) { @@ -110,6 +111,7 @@ func (m *ItemDevicesItemRegisteredUsersRequestBuilder) Ref()(*ItemDevicesItemReg return NewItemDevicesItemRegisteredUsersRefRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation collection of registered users of the device. For cloud joined devices and registered personal devices, registered users are set to the same value as registered owners at the time of registration. Read-only. Nullable. Supports $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemRegisteredUsersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemRegisteredUsersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -124,6 +126,7 @@ func (m *ItemDevicesItemRegisteredUsersRequestBuilder) ToGetRequestInformation(c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemRegisteredUsersRequestBuilder when successful func (m *ItemDevicesItemRegisteredUsersRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemRegisteredUsersRequestBuilder) { return NewItemDevicesItemRegisteredUsersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_transitive_member_of_count_request_builder.go b/users/item_devices_item_transitive_member_of_count_request_builder.go index 84a3fd14a54..dc925b95db5 100644 --- a/users/item_devices_item_transitive_member_of_count_request_builder.go +++ b/users/item_devices_item_transitive_member_of_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemDevicesItemTransitiveMemberOfCountRequestBuilder(rawUrl string, requ return NewItemDevicesItemTransitiveMemberOfCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemTransitiveMemberOfCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemTransitiveMemberOfCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemDevicesItemTransitiveMemberOfCountRequestBuilder) Get(ctx context.C return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemTransitiveMemberOfCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemTransitiveMemberOfCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemDevicesItemTransitiveMemberOfCountRequestBuilder) ToGetRequestInfor return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemTransitiveMemberOfCountRequestBuilder when successful func (m *ItemDevicesItemTransitiveMemberOfCountRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemTransitiveMemberOfCountRequestBuilder) { return NewItemDevicesItemTransitiveMemberOfCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_transitive_member_of_directory_object_item_request_builder.go b/users/item_devices_item_transitive_member_of_directory_object_item_request_builder.go index 8142f1f2d4b..3670453c1d8 100644 --- a/users/item_devices_item_transitive_member_of_directory_object_item_request_builder.go +++ b/users/item_devices_item_transitive_member_of_directory_object_item_request_builder.go @@ -41,6 +41,7 @@ func NewItemDevicesItemTransitiveMemberOfDirectoryObjectItemRequestBuilder(rawUr return NewItemDevicesItemTransitiveMemberOfDirectoryObjectItemRequestBuilderInternal(urlParams, requestAdapter) } // Get groups and administrative units that this device is a member of. This operation is transitive. Supports $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DirectoryObjectable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemTransitiveMemberOfDirectoryObjectItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemTransitiveMemberOfDirectoryObjectItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryObjectable, error) { @@ -71,6 +72,7 @@ func (m *ItemDevicesItemTransitiveMemberOfDirectoryObjectItemRequestBuilder) Gra return NewItemDevicesItemTransitiveMemberOfItemGraphGroupRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation groups and administrative units that this device is a member of. This operation is transitive. Supports $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemTransitiveMemberOfDirectoryObjectItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemTransitiveMemberOfDirectoryObjectItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemDevicesItemTransitiveMemberOfDirectoryObjectItemRequestBuilder) ToG return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemTransitiveMemberOfDirectoryObjectItemRequestBuilder when successful func (m *ItemDevicesItemTransitiveMemberOfDirectoryObjectItemRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemTransitiveMemberOfDirectoryObjectItemRequestBuilder) { return NewItemDevicesItemTransitiveMemberOfDirectoryObjectItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_transitive_member_of_graph_administrative_unit_count_request_builder.go b/users/item_devices_item_transitive_member_of_graph_administrative_unit_count_request_builder.go index 81ba596de1f..52d23321904 100644 --- a/users/item_devices_item_transitive_member_of_graph_administrative_unit_count_request_builder.go +++ b/users/item_devices_item_transitive_member_of_graph_administrative_unit_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemDevicesItemTransitiveMemberOfGraphAdministrativeUnitCountRequestBuil return NewItemDevicesItemTransitiveMemberOfGraphAdministrativeUnitCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemTransitiveMemberOfGraphAdministrativeUnitCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemTransitiveMemberOfGraphAdministrativeUnitCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemDevicesItemTransitiveMemberOfGraphAdministrativeUnitCountRequestBui return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemTransitiveMemberOfGraphAdministrativeUnitCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemTransitiveMemberOfGraphAdministrativeUnitCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemDevicesItemTransitiveMemberOfGraphAdministrativeUnitCountRequestBui return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemTransitiveMemberOfGraphAdministrativeUnitCountRequestBuilder when successful func (m *ItemDevicesItemTransitiveMemberOfGraphAdministrativeUnitCountRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemTransitiveMemberOfGraphAdministrativeUnitCountRequestBuilder) { return NewItemDevicesItemTransitiveMemberOfGraphAdministrativeUnitCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_transitive_member_of_graph_administrative_unit_request_builder.go b/users/item_devices_item_transitive_member_of_graph_administrative_unit_request_builder.go index b2f2fa847d8..54c35d9b1b8 100644 --- a/users/item_devices_item_transitive_member_of_graph_administrative_unit_request_builder.go +++ b/users/item_devices_item_transitive_member_of_graph_administrative_unit_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemDevicesItemTransitiveMemberOfGraphAdministrativeUnitRequestBuilder) return NewItemDevicesItemTransitiveMemberOfGraphAdministrativeUnitCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AdministrativeUnitCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemTransitiveMemberOfGraphAdministrativeUnitRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemTransitiveMemberOfGraphAdministrativeUnitRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdministrativeUnitCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemDevicesItemTransitiveMemberOfGraphAdministrativeUnitRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdministrativeUnitCollectionResponseable), nil } // ToGetRequestInformation get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemTransitiveMemberOfGraphAdministrativeUnitRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemTransitiveMemberOfGraphAdministrativeUnitRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemDevicesItemTransitiveMemberOfGraphAdministrativeUnitRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemTransitiveMemberOfGraphAdministrativeUnitRequestBuilder when successful func (m *ItemDevicesItemTransitiveMemberOfGraphAdministrativeUnitRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemTransitiveMemberOfGraphAdministrativeUnitRequestBuilder) { return NewItemDevicesItemTransitiveMemberOfGraphAdministrativeUnitRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_transitive_member_of_graph_group_count_request_builder.go b/users/item_devices_item_transitive_member_of_graph_group_count_request_builder.go index e518430ae70..b3d484cfcde 100644 --- a/users/item_devices_item_transitive_member_of_graph_group_count_request_builder.go +++ b/users/item_devices_item_transitive_member_of_graph_group_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemDevicesItemTransitiveMemberOfGraphGroupCountRequestBuilder(rawUrl st return NewItemDevicesItemTransitiveMemberOfGraphGroupCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemTransitiveMemberOfGraphGroupCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemTransitiveMemberOfGraphGroupCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemDevicesItemTransitiveMemberOfGraphGroupCountRequestBuilder) Get(ctx return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemTransitiveMemberOfGraphGroupCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemTransitiveMemberOfGraphGroupCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemDevicesItemTransitiveMemberOfGraphGroupCountRequestBuilder) ToGetRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemTransitiveMemberOfGraphGroupCountRequestBuilder when successful func (m *ItemDevicesItemTransitiveMemberOfGraphGroupCountRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemTransitiveMemberOfGraphGroupCountRequestBuilder) { return NewItemDevicesItemTransitiveMemberOfGraphGroupCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_transitive_member_of_graph_group_request_builder.go b/users/item_devices_item_transitive_member_of_graph_group_request_builder.go index 334c3a7aa40..ed29b5be315 100644 --- a/users/item_devices_item_transitive_member_of_graph_group_request_builder.go +++ b/users/item_devices_item_transitive_member_of_graph_group_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemDevicesItemTransitiveMemberOfGraphGroupRequestBuilder) Count()(*Ite return NewItemDevicesItemTransitiveMemberOfGraphGroupCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a GroupCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemTransitiveMemberOfGraphGroupRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemTransitiveMemberOfGraphGroupRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GroupCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemDevicesItemTransitiveMemberOfGraphGroupRequestBuilder) Get(ctx cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GroupCollectionResponseable), nil } // ToGetRequestInformation get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemTransitiveMemberOfGraphGroupRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemTransitiveMemberOfGraphGroupRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemDevicesItemTransitiveMemberOfGraphGroupRequestBuilder) ToGetRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemTransitiveMemberOfGraphGroupRequestBuilder when successful func (m *ItemDevicesItemTransitiveMemberOfGraphGroupRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemTransitiveMemberOfGraphGroupRequestBuilder) { return NewItemDevicesItemTransitiveMemberOfGraphGroupRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_transitive_member_of_item_graph_administrative_unit_request_builder.go b/users/item_devices_item_transitive_member_of_item_graph_administrative_unit_request_builder.go index a128fd66521..586c351eb1d 100644 --- a/users/item_devices_item_transitive_member_of_item_graph_administrative_unit_request_builder.go +++ b/users/item_devices_item_transitive_member_of_item_graph_administrative_unit_request_builder.go @@ -41,6 +41,7 @@ func NewItemDevicesItemTransitiveMemberOfItemGraphAdministrativeUnitRequestBuild return NewItemDevicesItemTransitiveMemberOfItemGraphAdministrativeUnitRequestBuilderInternal(urlParams, requestAdapter) } // Get get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AdministrativeUnitable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemTransitiveMemberOfItemGraphAdministrativeUnitRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemTransitiveMemberOfItemGraphAdministrativeUnitRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdministrativeUnitable, error) { @@ -61,6 +62,7 @@ func (m *ItemDevicesItemTransitiveMemberOfItemGraphAdministrativeUnitRequestBuil return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdministrativeUnitable), nil } // ToGetRequestInformation get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemTransitiveMemberOfItemGraphAdministrativeUnitRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemTransitiveMemberOfItemGraphAdministrativeUnitRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemDevicesItemTransitiveMemberOfItemGraphAdministrativeUnitRequestBuil return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemTransitiveMemberOfItemGraphAdministrativeUnitRequestBuilder when successful func (m *ItemDevicesItemTransitiveMemberOfItemGraphAdministrativeUnitRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemTransitiveMemberOfItemGraphAdministrativeUnitRequestBuilder) { return NewItemDevicesItemTransitiveMemberOfItemGraphAdministrativeUnitRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_transitive_member_of_item_graph_group_request_builder.go b/users/item_devices_item_transitive_member_of_item_graph_group_request_builder.go index f5eaeb727be..a188adc0321 100644 --- a/users/item_devices_item_transitive_member_of_item_graph_group_request_builder.go +++ b/users/item_devices_item_transitive_member_of_item_graph_group_request_builder.go @@ -41,6 +41,7 @@ func NewItemDevicesItemTransitiveMemberOfItemGraphGroupRequestBuilder(rawUrl str return NewItemDevicesItemTransitiveMemberOfItemGraphGroupRequestBuilderInternal(urlParams, requestAdapter) } // Get get the item of type microsoft.graph.directoryObject as microsoft.graph.group +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Groupable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemTransitiveMemberOfItemGraphGroupRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemTransitiveMemberOfItemGraphGroupRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Groupable, error) { @@ -61,6 +62,7 @@ func (m *ItemDevicesItemTransitiveMemberOfItemGraphGroupRequestBuilder) Get(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Groupable), nil } // ToGetRequestInformation get the item of type microsoft.graph.directoryObject as microsoft.graph.group +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemTransitiveMemberOfItemGraphGroupRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemTransitiveMemberOfItemGraphGroupRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemDevicesItemTransitiveMemberOfItemGraphGroupRequestBuilder) ToGetReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemTransitiveMemberOfItemGraphGroupRequestBuilder when successful func (m *ItemDevicesItemTransitiveMemberOfItemGraphGroupRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemTransitiveMemberOfItemGraphGroupRequestBuilder) { return NewItemDevicesItemTransitiveMemberOfItemGraphGroupRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_transitive_member_of_request_builder.go b/users/item_devices_item_transitive_member_of_request_builder.go index 8c184715c2f..b054cd6674a 100644 --- a/users/item_devices_item_transitive_member_of_request_builder.go +++ b/users/item_devices_item_transitive_member_of_request_builder.go @@ -40,6 +40,7 @@ type ItemDevicesItemTransitiveMemberOfRequestBuilderGetRequestConfiguration stru QueryParameters *ItemDevicesItemTransitiveMemberOfRequestBuilderGetQueryParameters } // ByDirectoryObjectId provides operations to manage the transitiveMemberOf property of the microsoft.graph.device entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemTransitiveMemberOfDirectoryObjectItemRequestBuilder when successful func (m *ItemDevicesItemTransitiveMemberOfRequestBuilder) ByDirectoryObjectId(directoryObjectId string)(*ItemDevicesItemTransitiveMemberOfDirectoryObjectItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -70,6 +71,7 @@ func (m *ItemDevicesItemTransitiveMemberOfRequestBuilder) Count()(*ItemDevicesIt return NewItemDevicesItemTransitiveMemberOfCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get groups and administrative units that this device is a member of. This operation is transitive. Supports $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DirectoryObjectCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemTransitiveMemberOfRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemTransitiveMemberOfRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryObjectCollectionResponseable, error) { @@ -100,6 +102,7 @@ func (m *ItemDevicesItemTransitiveMemberOfRequestBuilder) GraphGroup()(*ItemDevi return NewItemDevicesItemTransitiveMemberOfGraphGroupRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation groups and administrative units that this device is a member of. This operation is transitive. Supports $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemTransitiveMemberOfRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemTransitiveMemberOfRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -114,6 +117,7 @@ func (m *ItemDevicesItemTransitiveMemberOfRequestBuilder) ToGetRequestInformatio return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemTransitiveMemberOfRequestBuilder when successful func (m *ItemDevicesItemTransitiveMemberOfRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemTransitiveMemberOfRequestBuilder) { return NewItemDevicesItemTransitiveMemberOfRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_usage_rights_count_request_builder.go b/users/item_devices_item_usage_rights_count_request_builder.go index a9c8145d049..c9fb974044e 100644 --- a/users/item_devices_item_usage_rights_count_request_builder.go +++ b/users/item_devices_item_usage_rights_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemDevicesItemUsageRightsCountRequestBuilder(rawUrl string, requestAdap return NewItemDevicesItemUsageRightsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemUsageRightsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemUsageRightsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemDevicesItemUsageRightsCountRequestBuilder) Get(ctx context.Context, return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemUsageRightsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemUsageRightsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemDevicesItemUsageRightsCountRequestBuilder) ToGetRequestInformation( return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemUsageRightsCountRequestBuilder when successful func (m *ItemDevicesItemUsageRightsCountRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemUsageRightsCountRequestBuilder) { return NewItemDevicesItemUsageRightsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_usage_rights_request_builder.go b/users/item_devices_item_usage_rights_request_builder.go index da7723a29bf..42b45af3cf7 100644 --- a/users/item_devices_item_usage_rights_request_builder.go +++ b/users/item_devices_item_usage_rights_request_builder.go @@ -47,6 +47,7 @@ type ItemDevicesItemUsageRightsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByUsageRightId provides operations to manage the usageRights property of the microsoft.graph.device entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemUsageRightsUsageRightItemRequestBuilder when successful func (m *ItemDevicesItemUsageRightsRequestBuilder) ByUsageRightId(usageRightId string)(*ItemDevicesItemUsageRightsUsageRightItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemDevicesItemUsageRightsRequestBuilder) Count()(*ItemDevicesItemUsage return NewItemDevicesItemUsageRightsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get represents the usage rights a device has been granted. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UsageRightCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemUsageRightsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemUsageRightsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UsageRightCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemDevicesItemUsageRightsRequestBuilder) Get(ctx context.Context, requ return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UsageRightCollectionResponseable), nil } // Post create new navigation property to usageRights for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UsageRightable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemUsageRightsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UsageRightable, requestConfiguration *ItemDevicesItemUsageRightsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UsageRightable, error) { @@ -117,6 +120,7 @@ func (m *ItemDevicesItemUsageRightsRequestBuilder) Post(ctx context.Context, bod return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UsageRightable), nil } // ToGetRequestInformation represents the usage rights a device has been granted. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemUsageRightsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemUsageRightsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemDevicesItemUsageRightsRequestBuilder) ToGetRequestInformation(ctx c return requestInfo, nil } // ToPostRequestInformation create new navigation property to usageRights for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemUsageRightsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UsageRightable, requestConfiguration *ItemDevicesItemUsageRightsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemDevicesItemUsageRightsRequestBuilder) ToPostRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemUsageRightsRequestBuilder when successful func (m *ItemDevicesItemUsageRightsRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemUsageRightsRequestBuilder) { return NewItemDevicesItemUsageRightsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_item_usage_rights_usage_right_item_request_builder.go b/users/item_devices_item_usage_rights_usage_right_item_request_builder.go index 1d04ce9cbc8..6fa18e35448 100644 --- a/users/item_devices_item_usage_rights_usage_right_item_request_builder.go +++ b/users/item_devices_item_usage_rights_usage_right_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemDevicesItemUsageRightsUsageRightItemRequestBuilder(rawUrl string, re return NewItemDevicesItemUsageRightsUsageRightItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property usageRights for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemUsageRightsUsageRightItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemDevicesItemUsageRightsUsageRightItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemDevicesItemUsageRightsUsageRightItemRequestBuilder) Delete(ctx cont return nil } // Get represents the usage rights a device has been granted. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UsageRightable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemUsageRightsUsageRightItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesItemUsageRightsUsageRightItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UsageRightable, error) { @@ -91,6 +93,7 @@ func (m *ItemDevicesItemUsageRightsUsageRightItemRequestBuilder) Get(ctx context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UsageRightable), nil } // Patch update the navigation property usageRights in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UsageRightable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesItemUsageRightsUsageRightItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UsageRightable, requestConfiguration *ItemDevicesItemUsageRightsUsageRightItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UsageRightable, error) { @@ -111,6 +114,7 @@ func (m *ItemDevicesItemUsageRightsUsageRightItemRequestBuilder) Patch(ctx conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UsageRightable), nil } // ToDeleteRequestInformation delete navigation property usageRights for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemUsageRightsUsageRightItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemUsageRightsUsageRightItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemDevicesItemUsageRightsUsageRightItemRequestBuilder) ToDeleteRequest return requestInfo, nil } // ToGetRequestInformation represents the usage rights a device has been granted. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemUsageRightsUsageRightItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesItemUsageRightsUsageRightItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemDevicesItemUsageRightsUsageRightItemRequestBuilder) ToGetRequestInf return requestInfo, nil } // ToPatchRequestInformation update the navigation property usageRights in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesItemUsageRightsUsageRightItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UsageRightable, requestConfiguration *ItemDevicesItemUsageRightsUsageRightItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemDevicesItemUsageRightsUsageRightItemRequestBuilder) ToPatchRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesItemUsageRightsUsageRightItemRequestBuilder when successful func (m *ItemDevicesItemUsageRightsUsageRightItemRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesItemUsageRightsUsageRightItemRequestBuilder) { return NewItemDevicesItemUsageRightsUsageRightItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_request_builder.go b/users/item_devices_request_builder.go index ef75c08d6fe..dd251ffc050 100644 --- a/users/item_devices_request_builder.go +++ b/users/item_devices_request_builder.go @@ -47,6 +47,7 @@ type ItemDevicesRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByDeviceId provides operations to manage the devices property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesDeviceItemRequestBuilder when successful func (m *ItemDevicesRequestBuilder) ByDeviceId(deviceId string)(*ItemDevicesDeviceItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemDevicesRequestBuilder) Delta()(*ItemDevicesDeltaRequestBuilder) { return NewItemDevicesDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get devices from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DeviceCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemDevicesRequestBuilder) Get(ctx context.Context, requestConfiguratio return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceCollectionResponseable), nil } // Post create new navigation property to devices for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Deviceable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Deviceable, requestConfiguration *ItemDevicesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Deviceable, error) { @@ -122,6 +125,7 @@ func (m *ItemDevicesRequestBuilder) Post(ctx context.Context, body ie233ee762e29 return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Deviceable), nil } // ToGetRequestInformation get devices from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemDevicesRequestBuilder) ToGetRequestInformation(ctx context.Context, return requestInfo, nil } // ToPostRequestInformation create new navigation property to devices for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Deviceable, requestConfiguration *ItemDevicesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemDevicesRequestBuilder) ToPostRequestInformation(ctx context.Context return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesRequestBuilder when successful func (m *ItemDevicesRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesRequestBuilder) { return NewItemDevicesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_devices_with_device_id_request_builder.go b/users/item_devices_with_device_id_request_builder.go index d24b5fad9aa..09302250ee4 100644 --- a/users/item_devices_with_device_id_request_builder.go +++ b/users/item_devices_with_device_id_request_builder.go @@ -58,6 +58,7 @@ func NewItemDevicesWithDeviceIdRequestBuilder(rawUrl string, requestAdapter i2ae return NewItemDevicesWithDeviceIdRequestBuilderInternal(urlParams, requestAdapter, nil) } // Delete delete navigation property devices for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesWithDeviceIdRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemDevicesWithDeviceIdRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -74,6 +75,7 @@ func (m *ItemDevicesWithDeviceIdRequestBuilder) Delete(ctx context.Context, requ return nil } // Get get devices from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Deviceable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesWithDeviceIdRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDevicesWithDeviceIdRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Deviceable, error) { @@ -94,6 +96,7 @@ func (m *ItemDevicesWithDeviceIdRequestBuilder) Get(ctx context.Context, request return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Deviceable), nil } // Patch update the navigation property devices in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Deviceable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDevicesWithDeviceIdRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Deviceable, requestConfiguration *ItemDevicesWithDeviceIdRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Deviceable, error) { @@ -114,6 +117,7 @@ func (m *ItemDevicesWithDeviceIdRequestBuilder) Patch(ctx context.Context, body return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Deviceable), nil } // ToDeleteRequestInformation delete navigation property devices for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesWithDeviceIdRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesWithDeviceIdRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -125,6 +129,7 @@ func (m *ItemDevicesWithDeviceIdRequestBuilder) ToDeleteRequestInformation(ctx c return requestInfo, nil } // ToGetRequestInformation get devices from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesWithDeviceIdRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDevicesWithDeviceIdRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -139,6 +144,7 @@ func (m *ItemDevicesWithDeviceIdRequestBuilder) ToGetRequestInformation(ctx cont return requestInfo, nil } // ToPatchRequestInformation update the navigation property devices in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDevicesWithDeviceIdRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Deviceable, requestConfiguration *ItemDevicesWithDeviceIdRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -154,6 +160,7 @@ func (m *ItemDevicesWithDeviceIdRequestBuilder) ToPatchRequestInformation(ctx co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesWithDeviceIdRequestBuilder when successful func (m *ItemDevicesWithDeviceIdRequestBuilder) WithUrl(rawUrl string)(*ItemDevicesWithDeviceIdRequestBuilder) { return NewItemDevicesWithDeviceIdRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_direct_reports_count_request_builder.go b/users/item_direct_reports_count_request_builder.go index 2deae417e7e..13c9f146101 100644 --- a/users/item_direct_reports_count_request_builder.go +++ b/users/item_direct_reports_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemDirectReportsCountRequestBuilder(rawUrl string, requestAdapter i2ae4 return NewItemDirectReportsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDirectReportsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDirectReportsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemDirectReportsCountRequestBuilder) Get(ctx context.Context, requestC return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDirectReportsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDirectReportsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemDirectReportsCountRequestBuilder) ToGetRequestInformation(ctx conte return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDirectReportsCountRequestBuilder when successful func (m *ItemDirectReportsCountRequestBuilder) WithUrl(rawUrl string)(*ItemDirectReportsCountRequestBuilder) { return NewItemDirectReportsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_direct_reports_directory_object_item_request_builder.go b/users/item_direct_reports_directory_object_item_request_builder.go index 55bd1f371a5..5f9e1a09c9f 100644 --- a/users/item_direct_reports_directory_object_item_request_builder.go +++ b/users/item_direct_reports_directory_object_item_request_builder.go @@ -41,6 +41,7 @@ func NewItemDirectReportsDirectoryObjectItemRequestBuilder(rawUrl string, reques return NewItemDirectReportsDirectoryObjectItemRequestBuilderInternal(urlParams, requestAdapter) } // Get the users and contacts that report to the user. (The users and contacts with their manager property set to this user.) Read-only. Nullable. Supports $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DirectoryObjectable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDirectReportsDirectoryObjectItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDirectReportsDirectoryObjectItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryObjectable, error) { @@ -71,6 +72,7 @@ func (m *ItemDirectReportsDirectoryObjectItemRequestBuilder) GraphUser()(*ItemDi return NewItemDirectReportsItemGraphUserRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation the users and contacts that report to the user. (The users and contacts with their manager property set to this user.) Read-only. Nullable. Supports $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDirectReportsDirectoryObjectItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDirectReportsDirectoryObjectItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemDirectReportsDirectoryObjectItemRequestBuilder) ToGetRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDirectReportsDirectoryObjectItemRequestBuilder when successful func (m *ItemDirectReportsDirectoryObjectItemRequestBuilder) WithUrl(rawUrl string)(*ItemDirectReportsDirectoryObjectItemRequestBuilder) { return NewItemDirectReportsDirectoryObjectItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_direct_reports_graph_org_contact_count_request_builder.go b/users/item_direct_reports_graph_org_contact_count_request_builder.go index ac423babd0b..05e6775c89d 100644 --- a/users/item_direct_reports_graph_org_contact_count_request_builder.go +++ b/users/item_direct_reports_graph_org_contact_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemDirectReportsGraphOrgContactCountRequestBuilder(rawUrl string, reque return NewItemDirectReportsGraphOrgContactCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDirectReportsGraphOrgContactCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDirectReportsGraphOrgContactCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemDirectReportsGraphOrgContactCountRequestBuilder) Get(ctx context.Co return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDirectReportsGraphOrgContactCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDirectReportsGraphOrgContactCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemDirectReportsGraphOrgContactCountRequestBuilder) ToGetRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDirectReportsGraphOrgContactCountRequestBuilder when successful func (m *ItemDirectReportsGraphOrgContactCountRequestBuilder) WithUrl(rawUrl string)(*ItemDirectReportsGraphOrgContactCountRequestBuilder) { return NewItemDirectReportsGraphOrgContactCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_direct_reports_graph_org_contact_request_builder.go b/users/item_direct_reports_graph_org_contact_request_builder.go index 9c30c17c0ec..cc189b8bcba 100644 --- a/users/item_direct_reports_graph_org_contact_request_builder.go +++ b/users/item_direct_reports_graph_org_contact_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemDirectReportsGraphOrgContactRequestBuilder) Count()(*ItemDirectRepo return NewItemDirectReportsGraphOrgContactCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get the items of type microsoft.graph.orgContact in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OrgContactCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDirectReportsGraphOrgContactRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDirectReportsGraphOrgContactRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OrgContactCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemDirectReportsGraphOrgContactRequestBuilder) Get(ctx context.Context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OrgContactCollectionResponseable), nil } // ToGetRequestInformation get the items of type microsoft.graph.orgContact in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDirectReportsGraphOrgContactRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDirectReportsGraphOrgContactRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemDirectReportsGraphOrgContactRequestBuilder) ToGetRequestInformation return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDirectReportsGraphOrgContactRequestBuilder when successful func (m *ItemDirectReportsGraphOrgContactRequestBuilder) WithUrl(rawUrl string)(*ItemDirectReportsGraphOrgContactRequestBuilder) { return NewItemDirectReportsGraphOrgContactRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_direct_reports_graph_user_count_request_builder.go b/users/item_direct_reports_graph_user_count_request_builder.go index 0cccf5b770f..1a735a630bf 100644 --- a/users/item_direct_reports_graph_user_count_request_builder.go +++ b/users/item_direct_reports_graph_user_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemDirectReportsGraphUserCountRequestBuilder(rawUrl string, requestAdap return NewItemDirectReportsGraphUserCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDirectReportsGraphUserCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDirectReportsGraphUserCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemDirectReportsGraphUserCountRequestBuilder) Get(ctx context.Context, return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDirectReportsGraphUserCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDirectReportsGraphUserCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemDirectReportsGraphUserCountRequestBuilder) ToGetRequestInformation( return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDirectReportsGraphUserCountRequestBuilder when successful func (m *ItemDirectReportsGraphUserCountRequestBuilder) WithUrl(rawUrl string)(*ItemDirectReportsGraphUserCountRequestBuilder) { return NewItemDirectReportsGraphUserCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_direct_reports_graph_user_request_builder.go b/users/item_direct_reports_graph_user_request_builder.go index 4196a6b3041..8c64bf504e8 100644 --- a/users/item_direct_reports_graph_user_request_builder.go +++ b/users/item_direct_reports_graph_user_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemDirectReportsGraphUserRequestBuilder) Count()(*ItemDirectReportsGra return NewItemDirectReportsGraphUserCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDirectReportsGraphUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDirectReportsGraphUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemDirectReportsGraphUserRequestBuilder) Get(ctx context.Context, requ return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable), nil } // ToGetRequestInformation get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDirectReportsGraphUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDirectReportsGraphUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemDirectReportsGraphUserRequestBuilder) ToGetRequestInformation(ctx c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDirectReportsGraphUserRequestBuilder when successful func (m *ItemDirectReportsGraphUserRequestBuilder) WithUrl(rawUrl string)(*ItemDirectReportsGraphUserRequestBuilder) { return NewItemDirectReportsGraphUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_direct_reports_item_graph_org_contact_request_builder.go b/users/item_direct_reports_item_graph_org_contact_request_builder.go index 113e64333c5..bc69b185910 100644 --- a/users/item_direct_reports_item_graph_org_contact_request_builder.go +++ b/users/item_direct_reports_item_graph_org_contact_request_builder.go @@ -41,6 +41,7 @@ func NewItemDirectReportsItemGraphOrgContactRequestBuilder(rawUrl string, reques return NewItemDirectReportsItemGraphOrgContactRequestBuilderInternal(urlParams, requestAdapter) } // Get get the item of type microsoft.graph.directoryObject as microsoft.graph.orgContact +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OrgContactable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDirectReportsItemGraphOrgContactRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDirectReportsItemGraphOrgContactRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OrgContactable, error) { @@ -61,6 +62,7 @@ func (m *ItemDirectReportsItemGraphOrgContactRequestBuilder) Get(ctx context.Con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OrgContactable), nil } // ToGetRequestInformation get the item of type microsoft.graph.directoryObject as microsoft.graph.orgContact +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDirectReportsItemGraphOrgContactRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDirectReportsItemGraphOrgContactRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemDirectReportsItemGraphOrgContactRequestBuilder) ToGetRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDirectReportsItemGraphOrgContactRequestBuilder when successful func (m *ItemDirectReportsItemGraphOrgContactRequestBuilder) WithUrl(rawUrl string)(*ItemDirectReportsItemGraphOrgContactRequestBuilder) { return NewItemDirectReportsItemGraphOrgContactRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_direct_reports_item_graph_user_request_builder.go b/users/item_direct_reports_item_graph_user_request_builder.go index 0d8316c7dc7..b12a2a31542 100644 --- a/users/item_direct_reports_item_graph_user_request_builder.go +++ b/users/item_direct_reports_item_graph_user_request_builder.go @@ -41,6 +41,7 @@ func NewItemDirectReportsItemGraphUserRequestBuilder(rawUrl string, requestAdapt return NewItemDirectReportsItemGraphUserRequestBuilderInternal(urlParams, requestAdapter) } // Get get the item of type microsoft.graph.directoryObject as microsoft.graph.user +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDirectReportsItemGraphUserRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDirectReportsItemGraphUserRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, error) { @@ -61,6 +62,7 @@ func (m *ItemDirectReportsItemGraphUserRequestBuilder) Get(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable), nil } // ToGetRequestInformation get the item of type microsoft.graph.directoryObject as microsoft.graph.user +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDirectReportsItemGraphUserRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDirectReportsItemGraphUserRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemDirectReportsItemGraphUserRequestBuilder) ToGetRequestInformation(c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDirectReportsItemGraphUserRequestBuilder when successful func (m *ItemDirectReportsItemGraphUserRequestBuilder) WithUrl(rawUrl string)(*ItemDirectReportsItemGraphUserRequestBuilder) { return NewItemDirectReportsItemGraphUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_direct_reports_request_builder.go b/users/item_direct_reports_request_builder.go index 76e3319e176..62d1d857083 100644 --- a/users/item_direct_reports_request_builder.go +++ b/users/item_direct_reports_request_builder.go @@ -40,6 +40,7 @@ type ItemDirectReportsRequestBuilderGetRequestConfiguration struct { QueryParameters *ItemDirectReportsRequestBuilderGetQueryParameters } // ByDirectoryObjectId provides operations to manage the directReports property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDirectReportsDirectoryObjectItemRequestBuilder when successful func (m *ItemDirectReportsRequestBuilder) ByDirectoryObjectId(directoryObjectId string)(*ItemDirectReportsDirectoryObjectItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -70,6 +71,7 @@ func (m *ItemDirectReportsRequestBuilder) Count()(*ItemDirectReportsCountRequest return NewItemDirectReportsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the users and contacts that report to the user. (The users and contacts with their manager property set to this user.) Read-only. Nullable. Supports $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DirectoryObjectCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDirectReportsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDirectReportsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryObjectCollectionResponseable, error) { @@ -100,6 +102,7 @@ func (m *ItemDirectReportsRequestBuilder) GraphUser()(*ItemDirectReportsGraphUse return NewItemDirectReportsGraphUserRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation the users and contacts that report to the user. (The users and contacts with their manager property set to this user.) Read-only. Nullable. Supports $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDirectReportsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDirectReportsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -114,6 +117,7 @@ func (m *ItemDirectReportsRequestBuilder) ToGetRequestInformation(ctx context.Co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDirectReportsRequestBuilder when successful func (m *ItemDirectReportsRequestBuilder) WithUrl(rawUrl string)(*ItemDirectReportsRequestBuilder) { return NewItemDirectReportsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_drive_request_builder.go b/users/item_drive_request_builder.go index b3f166bbae4..ca7344747cd 100644 --- a/users/item_drive_request_builder.go +++ b/users/item_drive_request_builder.go @@ -41,6 +41,7 @@ func NewItemDriveRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee2633 return NewItemDriveRequestBuilderInternal(urlParams, requestAdapter) } // Get the user's OneDrive. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Driveable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDriveRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDriveRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Driveable, error) { @@ -61,6 +62,7 @@ func (m *ItemDriveRequestBuilder) Get(ctx context.Context, requestConfiguration return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Driveable), nil } // ToGetRequestInformation the user's OneDrive. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDriveRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDriveRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemDriveRequestBuilder) ToGetRequestInformation(ctx context.Context, r return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDriveRequestBuilder when successful func (m *ItemDriveRequestBuilder) WithUrl(rawUrl string)(*ItemDriveRequestBuilder) { return NewItemDriveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_drives_count_request_builder.go b/users/item_drives_count_request_builder.go index 4263767e7d6..f87fc1504f6 100644 --- a/users/item_drives_count_request_builder.go +++ b/users/item_drives_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemDrivesCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7da return NewItemDrivesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDrivesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDrivesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemDrivesCountRequestBuilder) Get(ctx context.Context, requestConfigur return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDrivesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDrivesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemDrivesCountRequestBuilder) ToGetRequestInformation(ctx context.Cont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDrivesCountRequestBuilder when successful func (m *ItemDrivesCountRequestBuilder) WithUrl(rawUrl string)(*ItemDrivesCountRequestBuilder) { return NewItemDrivesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_drives_drive_item_request_builder.go b/users/item_drives_drive_item_request_builder.go index 91fb65aba8c..667c2902e42 100644 --- a/users/item_drives_drive_item_request_builder.go +++ b/users/item_drives_drive_item_request_builder.go @@ -41,6 +41,7 @@ func NewItemDrivesDriveItemRequestBuilder(rawUrl string, requestAdapter i2ae4187 return NewItemDrivesDriveItemRequestBuilderInternal(urlParams, requestAdapter) } // Get a collection of drives available for this user. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Driveable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDrivesDriveItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDrivesDriveItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Driveable, error) { @@ -61,6 +62,7 @@ func (m *ItemDrivesDriveItemRequestBuilder) Get(ctx context.Context, requestConf return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Driveable), nil } // ToGetRequestInformation a collection of drives available for this user. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDrivesDriveItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDrivesDriveItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemDrivesDriveItemRequestBuilder) ToGetRequestInformation(ctx context. return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDrivesDriveItemRequestBuilder when successful func (m *ItemDrivesDriveItemRequestBuilder) WithUrl(rawUrl string)(*ItemDrivesDriveItemRequestBuilder) { return NewItemDrivesDriveItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_drives_request_builder.go b/users/item_drives_request_builder.go index 75141c8b621..944b5568b67 100644 --- a/users/item_drives_request_builder.go +++ b/users/item_drives_request_builder.go @@ -40,6 +40,7 @@ type ItemDrivesRequestBuilderGetRequestConfiguration struct { QueryParameters *ItemDrivesRequestBuilderGetQueryParameters } // ByDriveId provides operations to manage the drives property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDrivesDriveItemRequestBuilder when successful func (m *ItemDrivesRequestBuilder) ByDriveId(driveId string)(*ItemDrivesDriveItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -70,6 +71,7 @@ func (m *ItemDrivesRequestBuilder) Count()(*ItemDrivesCountRequestBuilder) { return NewItemDrivesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get a collection of drives available for this user. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DriveCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemDrivesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDrivesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveCollectionResponseable, error) { @@ -90,6 +92,7 @@ func (m *ItemDrivesRequestBuilder) Get(ctx context.Context, requestConfiguration return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DriveCollectionResponseable), nil } // ToGetRequestInformation a collection of drives available for this user. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemDrivesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDrivesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -104,6 +107,7 @@ func (m *ItemDrivesRequestBuilder) ToGetRequestInformation(ctx context.Context, return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDrivesRequestBuilder when successful func (m *ItemDrivesRequestBuilder) WithUrl(rawUrl string)(*ItemDrivesRequestBuilder) { return NewItemDrivesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_employee_experience_learning_course_activities_count_request_builder.go b/users/item_employee_experience_learning_course_activities_count_request_builder.go index 06620ff445a..9f75cfedcf5 100644 --- a/users/item_employee_experience_learning_course_activities_count_request_builder.go +++ b/users/item_employee_experience_learning_course_activities_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemEmployeeExperienceLearningCourseActivitiesCountRequestBuilder(rawUrl return NewItemEmployeeExperienceLearningCourseActivitiesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEmployeeExperienceLearningCourseActivitiesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEmployeeExperienceLearningCourseActivitiesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemEmployeeExperienceLearningCourseActivitiesCountRequestBuilder) Get( return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEmployeeExperienceLearningCourseActivitiesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEmployeeExperienceLearningCourseActivitiesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemEmployeeExperienceLearningCourseActivitiesCountRequestBuilder) ToGe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEmployeeExperienceLearningCourseActivitiesCountRequestBuilder when successful func (m *ItemEmployeeExperienceLearningCourseActivitiesCountRequestBuilder) WithUrl(rawUrl string)(*ItemEmployeeExperienceLearningCourseActivitiesCountRequestBuilder) { return NewItemEmployeeExperienceLearningCourseActivitiesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_employee_experience_learning_course_activities_learning_course_activity_item_request_builder.go b/users/item_employee_experience_learning_course_activities_learning_course_activity_item_request_builder.go index bb702822330..cd9e69d5913 100644 --- a/users/item_employee_experience_learning_course_activities_learning_course_activity_item_request_builder.go +++ b/users/item_employee_experience_learning_course_activities_learning_course_activity_item_request_builder.go @@ -41,6 +41,7 @@ func NewItemEmployeeExperienceLearningCourseActivitiesLearningCourseActivityItem return NewItemEmployeeExperienceLearningCourseActivitiesLearningCourseActivityItemRequestBuilderInternal(urlParams, requestAdapter) } // Get get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a LearningCourseActivityable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -64,6 +65,7 @@ func (m *ItemEmployeeExperienceLearningCourseActivitiesLearningCourseActivityIte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LearningCourseActivityable), nil } // ToGetRequestInformation get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEmployeeExperienceLearningCourseActivitiesLearningCourseActivityItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEmployeeExperienceLearningCourseActivitiesLearningCourseActivityItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -78,6 +80,7 @@ func (m *ItemEmployeeExperienceLearningCourseActivitiesLearningCourseActivityIte return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEmployeeExperienceLearningCourseActivitiesLearningCourseActivityItemRequestBuilder when successful func (m *ItemEmployeeExperienceLearningCourseActivitiesLearningCourseActivityItemRequestBuilder) WithUrl(rawUrl string)(*ItemEmployeeExperienceLearningCourseActivitiesLearningCourseActivityItemRequestBuilder) { return NewItemEmployeeExperienceLearningCourseActivitiesLearningCourseActivityItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_employee_experience_learning_course_activities_request_builder.go b/users/item_employee_experience_learning_course_activities_request_builder.go index ca9d3eb3911..10712dcba13 100644 --- a/users/item_employee_experience_learning_course_activities_request_builder.go +++ b/users/item_employee_experience_learning_course_activities_request_builder.go @@ -40,6 +40,7 @@ type ItemEmployeeExperienceLearningCourseActivitiesRequestBuilderGetRequestConfi QueryParameters *ItemEmployeeExperienceLearningCourseActivitiesRequestBuilderGetQueryParameters } // ByLearningCourseActivityId provides operations to manage the learningCourseActivities property of the microsoft.graph.employeeExperienceUser entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEmployeeExperienceLearningCourseActivitiesLearningCourseActivityItemRequestBuilder when successful func (m *ItemEmployeeExperienceLearningCourseActivitiesRequestBuilder) ByLearningCourseActivityId(learningCourseActivityId string)(*ItemEmployeeExperienceLearningCourseActivitiesLearningCourseActivityItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -70,6 +71,7 @@ func (m *ItemEmployeeExperienceLearningCourseActivitiesRequestBuilder) Count()(* return NewItemEmployeeExperienceLearningCourseActivitiesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get a list of the learningCourseActivity objects (assigned or self-initiated) for a user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a LearningCourseActivityCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -93,6 +95,7 @@ func (m *ItemEmployeeExperienceLearningCourseActivitiesRequestBuilder) Get(ctx c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LearningCourseActivityCollectionResponseable), nil } // ToGetRequestInformation get a list of the learningCourseActivity objects (assigned or self-initiated) for a user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEmployeeExperienceLearningCourseActivitiesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEmployeeExperienceLearningCourseActivitiesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -107,6 +110,7 @@ func (m *ItemEmployeeExperienceLearningCourseActivitiesRequestBuilder) ToGetRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEmployeeExperienceLearningCourseActivitiesRequestBuilder when successful func (m *ItemEmployeeExperienceLearningCourseActivitiesRequestBuilder) WithUrl(rawUrl string)(*ItemEmployeeExperienceLearningCourseActivitiesRequestBuilder) { return NewItemEmployeeExperienceLearningCourseActivitiesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_employee_experience_learning_course_activities_with_externalcourse_activity_id_request_builder.go b/users/item_employee_experience_learning_course_activities_with_externalcourse_activity_id_request_builder.go index d07f154330d..514ecb1e0c8 100644 --- a/users/item_employee_experience_learning_course_activities_with_externalcourse_activity_id_request_builder.go +++ b/users/item_employee_experience_learning_course_activities_with_externalcourse_activity_id_request_builder.go @@ -44,6 +44,7 @@ func NewItemEmployeeExperienceLearningCourseActivitiesWithExternalcourseActivity return NewItemEmployeeExperienceLearningCourseActivitiesWithExternalcourseActivityIdRequestBuilderInternal(urlParams, requestAdapter, nil) } // Get get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a LearningCourseActivityable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -67,6 +68,7 @@ func (m *ItemEmployeeExperienceLearningCourseActivitiesWithExternalcourseActivit return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LearningCourseActivityable), nil } // ToGetRequestInformation get the specified learningCourseActivity object using either an ID or an externalCourseActivityId of the learning provider, or a courseActivityId of a user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEmployeeExperienceLearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEmployeeExperienceLearningCourseActivitiesWithExternalcourseActivityIdRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -81,6 +83,7 @@ func (m *ItemEmployeeExperienceLearningCourseActivitiesWithExternalcourseActivit return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEmployeeExperienceLearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder when successful func (m *ItemEmployeeExperienceLearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder) WithUrl(rawUrl string)(*ItemEmployeeExperienceLearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder) { return NewItemEmployeeExperienceLearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_employee_experience_request_builder.go b/users/item_employee_experience_request_builder.go index a173a3903c1..18b667483a6 100644 --- a/users/item_employee_experience_request_builder.go +++ b/users/item_employee_experience_request_builder.go @@ -55,6 +55,7 @@ func NewItemEmployeeExperienceRequestBuilder(rawUrl string, requestAdapter i2ae4 return NewItemEmployeeExperienceRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property employeeExperience for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEmployeeExperienceRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemEmployeeExperienceRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemEmployeeExperienceRequestBuilder) Delete(ctx context.Context, reque return nil } // Get get employeeExperience from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EmployeeExperienceUserable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEmployeeExperienceRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEmployeeExperienceRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EmployeeExperienceUserable, error) { @@ -96,11 +98,13 @@ func (m *ItemEmployeeExperienceRequestBuilder) LearningCourseActivities()(*ItemE return NewItemEmployeeExperienceLearningCourseActivitiesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // LearningCourseActivitiesWithExternalcourseActivityId provides operations to manage the learningCourseActivities property of the microsoft.graph.employeeExperienceUser entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEmployeeExperienceLearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder when successful func (m *ItemEmployeeExperienceRequestBuilder) LearningCourseActivitiesWithExternalcourseActivityId(externalcourseActivityId *string)(*ItemEmployeeExperienceLearningCourseActivitiesWithExternalcourseActivityIdRequestBuilder) { return NewItemEmployeeExperienceLearningCourseActivitiesWithExternalcourseActivityIdRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, externalcourseActivityId) } // Patch update the navigation property employeeExperience in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EmployeeExperienceUserable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEmployeeExperienceRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EmployeeExperienceUserable, requestConfiguration *ItemEmployeeExperienceRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EmployeeExperienceUserable, error) { @@ -121,6 +125,7 @@ func (m *ItemEmployeeExperienceRequestBuilder) Patch(ctx context.Context, body i return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EmployeeExperienceUserable), nil } // ToDeleteRequestInformation delete navigation property employeeExperience for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEmployeeExperienceRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemEmployeeExperienceRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -132,6 +137,7 @@ func (m *ItemEmployeeExperienceRequestBuilder) ToDeleteRequestInformation(ctx co return requestInfo, nil } // ToGetRequestInformation get employeeExperience from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEmployeeExperienceRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEmployeeExperienceRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +152,7 @@ func (m *ItemEmployeeExperienceRequestBuilder) ToGetRequestInformation(ctx conte return requestInfo, nil } // ToPatchRequestInformation update the navigation property employeeExperience in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEmployeeExperienceRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EmployeeExperienceUserable, requestConfiguration *ItemEmployeeExperienceRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -161,6 +168,7 @@ func (m *ItemEmployeeExperienceRequestBuilder) ToPatchRequestInformation(ctx con return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEmployeeExperienceRequestBuilder when successful func (m *ItemEmployeeExperienceRequestBuilder) WithUrl(rawUrl string)(*ItemEmployeeExperienceRequestBuilder) { return NewItemEmployeeExperienceRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_count_request_builder.go b/users/item_events_count_request_builder.go index 29e12dca724..6579250808d 100644 --- a/users/item_events_count_request_builder.go +++ b/users/item_events_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemEventsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7da return NewItemEventsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemEventsCountRequestBuilder) Get(ctx context.Context, requestConfigur return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemEventsCountRequestBuilder) ToGetRequestInformation(ctx context.Cont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsCountRequestBuilder when successful func (m *ItemEventsCountRequestBuilder) WithUrl(rawUrl string)(*ItemEventsCountRequestBuilder) { return NewItemEventsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_delta_request_builder.go b/users/item_events_delta_request_builder.go index 78e13c99347..5479fb45f23 100644 --- a/users/item_events_delta_request_builder.go +++ b/users/item_events_delta_request_builder.go @@ -80,6 +80,7 @@ func (m *ItemEventsDeltaRequestBuilder) Get(ctx context.Context, requestConfigur return res.(ItemEventsDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemEventsDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -103,6 +104,7 @@ func (m *ItemEventsDeltaRequestBuilder) GetAsDeltaGetResponse(ctx context.Contex return res.(ItemEventsDeltaGetResponseable), nil } // ToGetRequestInformation get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +119,7 @@ func (m *ItemEventsDeltaRequestBuilder) ToGetRequestInformation(ctx context.Cont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsDeltaRequestBuilder when successful func (m *ItemEventsDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemEventsDeltaRequestBuilder) { return NewItemEventsDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_event_item_request_builder.go b/users/item_events_event_item_request_builder.go index 7c80e53b577..8214e58d754 100644 --- a/users/item_events_event_item_request_builder.go +++ b/users/item_events_event_item_request_builder.go @@ -80,6 +80,7 @@ func (m *ItemEventsEventItemRequestBuilder) Decline()(*ItemEventsItemDeclineRequ return NewItemEventsItemDeclineRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Delete delete navigation property events for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsEventItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemEventsEventItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -116,6 +117,7 @@ func (m *ItemEventsEventItemRequestBuilder) Forward()(*ItemEventsItemForwardRequ return NewItemEventsItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the user's events. The default is to show events under the Default Calendar. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -141,6 +143,7 @@ func (m *ItemEventsEventItemRequestBuilder) Instances()(*ItemEventsItemInstances return NewItemEventsItemInstancesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property events in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsEventItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, requestConfiguration *ItemEventsEventItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -160,6 +163,11 @@ func (m *ItemEventsEventItemRequestBuilder) Patch(ctx context.Context, body ie23 } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemEventsItemPermanentDeleteRequestBuilder when successful +func (m *ItemEventsEventItemRequestBuilder) PermanentDelete()(*ItemEventsItemPermanentDeleteRequestBuilder) { + return NewItemEventsItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemEventsItemSnoozeReminderRequestBuilder when successful func (m *ItemEventsEventItemRequestBuilder) SnoozeReminder()(*ItemEventsItemSnoozeReminderRequestBuilder) { @@ -171,6 +179,7 @@ func (m *ItemEventsEventItemRequestBuilder) TentativelyAccept()(*ItemEventsItemT return NewItemEventsItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property events for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsEventItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemEventsEventItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -182,6 +191,7 @@ func (m *ItemEventsEventItemRequestBuilder) ToDeleteRequestInformation(ctx conte return requestInfo, nil } // ToGetRequestInformation the user's events. The default is to show events under the Default Calendar. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -196,6 +206,7 @@ func (m *ItemEventsEventItemRequestBuilder) ToGetRequestInformation(ctx context. return requestInfo, nil } // ToPatchRequestInformation update the navigation property events in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsEventItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, requestConfiguration *ItemEventsEventItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -211,6 +222,7 @@ func (m *ItemEventsEventItemRequestBuilder) ToPatchRequestInformation(ctx contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsEventItemRequestBuilder when successful func (m *ItemEventsEventItemRequestBuilder) WithUrl(rawUrl string)(*ItemEventsEventItemRequestBuilder) { return NewItemEventsEventItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_accept_request_builder.go b/users/item_events_item_accept_request_builder.go index dc683e8db17..2f670849c80 100644 --- a/users/item_events_item_accept_request_builder.go +++ b/users/item_events_item_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemEventsItemAcceptRequestBuilder(rawUrl string, requestAdapter i2ae418 return NewItemEventsItemAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemEventsItemAcceptRequestBuilder) Post(ctx context.Context, body Item return nil } // ToPostRequestInformation accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemEventsItemAcceptPostRequestBodyable, requestConfiguration *ItemEventsItemAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemEventsItemAcceptRequestBuilder) ToPostRequestInformation(ctx contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemAcceptRequestBuilder when successful func (m *ItemEventsItemAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemAcceptRequestBuilder) { return NewItemEventsItemAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_attachments_attachment_item_request_builder.go b/users/item_events_item_attachments_attachment_item_request_builder.go index 29f7a2752fc..ca10b35791d 100644 --- a/users/item_events_item_attachments_attachment_item_request_builder.go +++ b/users/item_events_item_attachments_attachment_item_request_builder.go @@ -48,6 +48,7 @@ func NewItemEventsItemAttachmentsAttachmentItemRequestBuilder(rawUrl string, req return NewItemEventsItemAttachmentsAttachmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemEventsItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,6 +65,7 @@ func (m *ItemEventsItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx conte return nil } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -84,6 +86,7 @@ func (m *ItemEventsItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context. return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToDeleteRequestInformation delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +98,7 @@ func (m *ItemEventsItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestI return requestInfo, nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +113,7 @@ func (m *ItemEventsItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInfo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemEventsItemAttachmentsAttachmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemAttachmentsAttachmentItemRequestBuilder) { return NewItemEventsItemAttachmentsAttachmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_attachments_count_request_builder.go b/users/item_events_item_attachments_count_request_builder.go index e12923ba849..efefceb904a 100644 --- a/users/item_events_item_attachments_count_request_builder.go +++ b/users/item_events_item_attachments_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemEventsItemAttachmentsCountRequestBuilder(rawUrl string, requestAdapt return NewItemEventsItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemEventsItemAttachmentsCountRequestBuilder) Get(ctx context.Context, return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemEventsItemAttachmentsCountRequestBuilder) ToGetRequestInformation(c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemAttachmentsCountRequestBuilder when successful func (m *ItemEventsItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemAttachmentsCountRequestBuilder) { return NewItemEventsItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_attachments_create_upload_session_request_builder.go b/users/item_events_item_attachments_create_upload_session_request_builder.go index ad3c6fa4e76..03e087ced20 100644 --- a/users/item_events_item_attachments_create_upload_session_request_builder.go +++ b/users/item_events_item_attachments_create_upload_session_request_builder.go @@ -32,6 +32,7 @@ func NewItemEventsItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl string return NewItemEventsItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemEventsItemAttachmentsCreateUploadSessionRequestBuilder) Post(ctx co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemEventsItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemEventsItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemEventsItemAttachmentsCreateUploadSessionRequestBuilder) ToPostReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemEventsItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemEventsItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_attachments_request_builder.go b/users/item_events_item_attachments_request_builder.go index 61ed01380b8..9799011ad04 100644 --- a/users/item_events_item_attachments_request_builder.go +++ b/users/item_events_item_attachments_request_builder.go @@ -47,6 +47,7 @@ type ItemEventsItemAttachmentsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentId provides operations to manage the attachments property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemEventsItemAttachmentsRequestBuilder) ByAttachmentId(attachmentId string)(*ItemEventsItemAttachmentsAttachmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemEventsItemAttachmentsRequestBuilder) CreateUploadSession()(*ItemEve return NewItemEventsItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemEventsItemAttachmentsRequestBuilder) Get(ctx context.Context, reque return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } // Post create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -122,6 +125,7 @@ func (m *ItemEventsItemAttachmentsRequestBuilder) Post(ctx context.Context, body return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemEventsItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx co return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemEventsItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemAttachmentsRequestBuilder when successful func (m *ItemEventsItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemAttachmentsRequestBuilder) { return NewItemEventsItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_calendar_request_builder.go b/users/item_events_item_calendar_request_builder.go index 22cd178de13..860d3bf8392 100644 --- a/users/item_events_item_calendar_request_builder.go +++ b/users/item_events_item_calendar_request_builder.go @@ -41,6 +41,7 @@ func NewItemEventsItemCalendarRequestBuilder(rawUrl string, requestAdapter i2ae4 return NewItemEventsItemCalendarRequestBuilderInternal(urlParams, requestAdapter) } // Get the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemCalendarRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemCalendarRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -61,6 +62,7 @@ func (m *ItemEventsItemCalendarRequestBuilder) Get(ctx context.Context, requestC return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable), nil } // ToGetRequestInformation the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemCalendarRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemCalendarRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemEventsItemCalendarRequestBuilder) ToGetRequestInformation(ctx conte return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemCalendarRequestBuilder when successful func (m *ItemEventsItemCalendarRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemCalendarRequestBuilder) { return NewItemEventsItemCalendarRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_cancel_request_builder.go b/users/item_events_item_cancel_request_builder.go index a92438c1535..4d80331321a 100644 --- a/users/item_events_item_cancel_request_builder.go +++ b/users/item_events_item_cancel_request_builder.go @@ -31,6 +31,7 @@ func NewItemEventsItemCancelRequestBuilder(rawUrl string, requestAdapter i2ae418 return NewItemEventsItemCancelRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemEventsItemCancelRequestBuilder) Post(ctx context.Context, body Item return nil } // ToPostRequestInformation this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemEventsItemCancelPostRequestBodyable, requestConfiguration *ItemEventsItemCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemEventsItemCancelRequestBuilder) ToPostRequestInformation(ctx contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemCancelRequestBuilder when successful func (m *ItemEventsItemCancelRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemCancelRequestBuilder) { return NewItemEventsItemCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_decline_request_builder.go b/users/item_events_item_decline_request_builder.go index c492ef65087..7dea2e0b5d3 100644 --- a/users/item_events_item_decline_request_builder.go +++ b/users/item_events_item_decline_request_builder.go @@ -31,6 +31,7 @@ func NewItemEventsItemDeclineRequestBuilder(rawUrl string, requestAdapter i2ae41 return NewItemEventsItemDeclineRequestBuilderInternal(urlParams, requestAdapter) } // Post decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemEventsItemDeclineRequestBuilder) Post(ctx context.Context, body Ite return nil } // ToPostRequestInformation decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemDeclineRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemEventsItemDeclinePostRequestBodyable, requestConfiguration *ItemEventsItemDeclineRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemEventsItemDeclineRequestBuilder) ToPostRequestInformation(ctx conte return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemDeclineRequestBuilder when successful func (m *ItemEventsItemDeclineRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemDeclineRequestBuilder) { return NewItemEventsItemDeclineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_dismiss_reminder_request_builder.go b/users/item_events_item_dismiss_reminder_request_builder.go index 8bbebffde1c..d1a089e382c 100644 --- a/users/item_events_item_dismiss_reminder_request_builder.go +++ b/users/item_events_item_dismiss_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemEventsItemDismissReminderRequestBuilder(rawUrl string, requestAdapte return NewItemEventsItemDismissReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemEventsItemDismissReminderRequestBuilder) Post(ctx context.Context, return nil } // ToPostRequestInformation dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemDismissReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemDismissReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemEventsItemDismissReminderRequestBuilder) ToPostRequestInformation(c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemDismissReminderRequestBuilder when successful func (m *ItemEventsItemDismissReminderRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemDismissReminderRequestBuilder) { return NewItemEventsItemDismissReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_exception_occurrences_count_request_builder.go b/users/item_events_item_exception_occurrences_count_request_builder.go index 2e3a8a42442..f40afcdd14b 100644 --- a/users/item_events_item_exception_occurrences_count_request_builder.go +++ b/users/item_events_item_exception_occurrences_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemEventsItemExceptionOccurrencesCountRequestBuilder(rawUrl string, req return NewItemEventsItemExceptionOccurrencesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemExceptionOccurrencesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemEventsItemExceptionOccurrencesCountRequestBuilder) Get(ctx context. return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemEventsItemExceptionOccurrencesCountRequestBuilder) ToGetRequestInfo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExceptionOccurrencesCountRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesCountRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemExceptionOccurrencesCountRequestBuilder) { return NewItemEventsItemExceptionOccurrencesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_exception_occurrences_delta_request_builder.go b/users/item_events_item_exception_occurrences_delta_request_builder.go index 59fa0f447fa..797466d784e 100644 --- a/users/item_events_item_exception_occurrences_delta_request_builder.go +++ b/users/item_events_item_exception_occurrences_delta_request_builder.go @@ -80,6 +80,7 @@ func (m *ItemEventsItemExceptionOccurrencesDeltaRequestBuilder) Get(ctx context. return res.(ItemEventsItemExceptionOccurrencesDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemEventsItemExceptionOccurrencesDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -103,6 +104,7 @@ func (m *ItemEventsItemExceptionOccurrencesDeltaRequestBuilder) GetAsDeltaGetRes return res.(ItemEventsItemExceptionOccurrencesDeltaGetResponseable), nil } // ToGetRequestInformation get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +119,7 @@ func (m *ItemEventsItemExceptionOccurrencesDeltaRequestBuilder) ToGetRequestInfo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExceptionOccurrencesDeltaRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemExceptionOccurrencesDeltaRequestBuilder) { return NewItemEventsItemExceptionOccurrencesDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_exception_occurrences_event_item_request_builder.go b/users/item_events_item_exception_occurrences_event_item_request_builder.go index 76ad502eb80..40ffee45d2c 100644 --- a/users/item_events_item_exception_occurrences_event_item_request_builder.go +++ b/users/item_events_item_exception_occurrences_event_item_request_builder.go @@ -81,6 +81,7 @@ func (m *ItemEventsItemExceptionOccurrencesEventItemRequestBuilder) Forward()(*I return NewItemEventsItemExceptionOccurrencesItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemExceptionOccurrencesEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -105,6 +106,11 @@ func (m *ItemEventsItemExceptionOccurrencesEventItemRequestBuilder) Get(ctx cont func (m *ItemEventsItemExceptionOccurrencesEventItemRequestBuilder) Instances()(*ItemEventsItemExceptionOccurrencesItemInstancesRequestBuilder) { return NewItemEventsItemExceptionOccurrencesItemInstancesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemEventsItemExceptionOccurrencesEventItemRequestBuilder) PermanentDelete()(*ItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemEventsItemExceptionOccurrencesItemSnoozeReminderRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesEventItemRequestBuilder) SnoozeReminder()(*ItemEventsItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) { @@ -116,6 +122,7 @@ func (m *ItemEventsItemExceptionOccurrencesEventItemRequestBuilder) TentativelyA return NewItemEventsItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -130,6 +137,7 @@ func (m *ItemEventsItemExceptionOccurrencesEventItemRequestBuilder) ToGetRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExceptionOccurrencesEventItemRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesEventItemRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemExceptionOccurrencesEventItemRequestBuilder) { return NewItemEventsItemExceptionOccurrencesEventItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_exception_occurrences_item_accept_request_builder.go b/users/item_events_item_exception_occurrences_item_accept_request_builder.go index 76d9fdead00..16171867442 100644 --- a/users/item_events_item_exception_occurrences_item_accept_request_builder.go +++ b/users/item_events_item_exception_occurrences_item_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemEventsItemExceptionOccurrencesItemAcceptRequestBuilder(rawUrl string return NewItemEventsItemExceptionOccurrencesItemAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemAcceptRequestBuilder) Post(ctx co return nil } // ToPostRequestInformation accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesItemAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemEventsItemExceptionOccurrencesItemAcceptPostRequestBodyable, requestConfiguration *ItemEventsItemExceptionOccurrencesItemAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemAcceptRequestBuilder) ToPostReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExceptionOccurrencesItemAcceptRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesItemAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemExceptionOccurrencesItemAcceptRequestBuilder) { return NewItemEventsItemExceptionOccurrencesItemAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_exception_occurrences_item_attachments_attachment_item_request_builder.go b/users/item_events_item_exception_occurrences_item_attachments_attachment_item_request_builder.go index a6e7fcc4b20..909ea71bf78 100644 --- a/users/item_events_item_exception_occurrences_item_attachments_attachment_item_request_builder.go +++ b/users/item_events_item_exception_occurrences_item_attachments_attachment_item_request_builder.go @@ -48,6 +48,7 @@ func NewItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBu return NewItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,6 +65,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestB return nil } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -84,6 +86,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestB return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToDeleteRequestInformation delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +98,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestB return requestInfo, nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +113,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestB return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) { return NewItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_exception_occurrences_item_attachments_count_request_builder.go b/users/item_events_item_exception_occurrences_item_attachments_count_request_builder.go index d9386dca593..2db137ad4b6 100644 --- a/users/item_events_item_exception_occurrences_item_attachments_count_request_builder.go +++ b/users/item_events_item_exception_occurrences_item_attachments_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemEventsItemExceptionOccurrencesItemAttachmentsCountRequestBuilder(raw return NewItemEventsItemExceptionOccurrencesItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) G return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) T return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExceptionOccurrencesItemAttachmentsCountRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) { return NewItemEventsItemExceptionOccurrencesItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_exception_occurrences_item_attachments_create_upload_session_request_builder.go b/users/item_events_item_exception_occurrences_item_attachments_create_upload_session_request_builder.go index cda21ec5af3..da091dd5aca 100644 --- a/users/item_events_item_exception_occurrences_item_attachments_create_upload_session_request_builder.go +++ b/users/item_events_item_exception_occurrences_item_attachments_create_upload_session_request_builder.go @@ -32,6 +32,7 @@ func NewItemEventsItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequ return NewItemEventsItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsCreateUploadSessionReq return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemEventsItemExceptionOccurrencesItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemEventsItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsCreateUploadSessionReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemEventsItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_exception_occurrences_item_attachments_request_builder.go b/users/item_events_item_exception_occurrences_item_attachments_request_builder.go index 055331c613d..698af21522f 100644 --- a/users/item_events_item_exception_occurrences_item_attachments_request_builder.go +++ b/users/item_events_item_exception_occurrences_item_attachments_request_builder.go @@ -47,6 +47,7 @@ type ItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestC Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentId provides operations to manage the attachments property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) ByAttachmentId(attachmentId string)(*ItemEventsItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) Create return NewItemEventsItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) Get(ct return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } // Post create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -122,6 +125,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToGetR return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPost return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder) { return NewItemEventsItemExceptionOccurrencesItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_exception_occurrences_item_calendar_request_builder.go b/users/item_events_item_exception_occurrences_item_calendar_request_builder.go index c138d30e6de..a44d4dffd6d 100644 --- a/users/item_events_item_exception_occurrences_item_calendar_request_builder.go +++ b/users/item_events_item_exception_occurrences_item_calendar_request_builder.go @@ -41,6 +41,7 @@ func NewItemEventsItemExceptionOccurrencesItemCalendarRequestBuilder(rawUrl stri return NewItemEventsItemExceptionOccurrencesItemCalendarRequestBuilderInternal(urlParams, requestAdapter) } // Get the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemExceptionOccurrencesItemCalendarRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemCalendarRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -61,6 +62,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemCalendarRequestBuilder) Get(ctx c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable), nil } // ToGetRequestInformation the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesItemCalendarRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemCalendarRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemCalendarRequestBuilder) ToGetRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExceptionOccurrencesItemCalendarRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesItemCalendarRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemExceptionOccurrencesItemCalendarRequestBuilder) { return NewItemEventsItemExceptionOccurrencesItemCalendarRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_exception_occurrences_item_cancel_request_builder.go b/users/item_events_item_exception_occurrences_item_cancel_request_builder.go index 17f19b299a1..878ec024544 100644 --- a/users/item_events_item_exception_occurrences_item_cancel_request_builder.go +++ b/users/item_events_item_exception_occurrences_item_cancel_request_builder.go @@ -31,6 +31,7 @@ func NewItemEventsItemExceptionOccurrencesItemCancelRequestBuilder(rawUrl string return NewItemEventsItemExceptionOccurrencesItemCancelRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemCancelRequestBuilder) Post(ctx co return nil } // ToPostRequestInformation this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesItemCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemEventsItemExceptionOccurrencesItemCancelPostRequestBodyable, requestConfiguration *ItemEventsItemExceptionOccurrencesItemCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemCancelRequestBuilder) ToPostReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExceptionOccurrencesItemCancelRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesItemCancelRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemExceptionOccurrencesItemCancelRequestBuilder) { return NewItemEventsItemExceptionOccurrencesItemCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_exception_occurrences_item_decline_request_builder.go b/users/item_events_item_exception_occurrences_item_decline_request_builder.go index c24e216df72..a4105314479 100644 --- a/users/item_events_item_exception_occurrences_item_decline_request_builder.go +++ b/users/item_events_item_exception_occurrences_item_decline_request_builder.go @@ -31,6 +31,7 @@ func NewItemEventsItemExceptionOccurrencesItemDeclineRequestBuilder(rawUrl strin return NewItemEventsItemExceptionOccurrencesItemDeclineRequestBuilderInternal(urlParams, requestAdapter) } // Post decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemDeclineRequestBuilder) Post(ctx c return nil } // ToPostRequestInformation decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesItemDeclineRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemEventsItemExceptionOccurrencesItemDeclinePostRequestBodyable, requestConfiguration *ItemEventsItemExceptionOccurrencesItemDeclineRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemDeclineRequestBuilder) ToPostRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExceptionOccurrencesItemDeclineRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesItemDeclineRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemExceptionOccurrencesItemDeclineRequestBuilder) { return NewItemEventsItemExceptionOccurrencesItemDeclineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_exception_occurrences_item_dismiss_reminder_request_builder.go b/users/item_events_item_exception_occurrences_item_dismiss_reminder_request_builder.go index 0de8cc295e2..94d327abfe3 100644 --- a/users/item_events_item_exception_occurrences_item_dismiss_reminder_request_builder.go +++ b/users/item_events_item_exception_occurrences_item_dismiss_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemEventsItemExceptionOccurrencesItemDismissReminderRequestBuilder(rawU return NewItemEventsItemExceptionOccurrencesItemDismissReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemDismissReminderRequestBuilder) Po return nil } // ToPostRequestInformation dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesItemDismissReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemDismissReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemDismissReminderRequestBuilder) To return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExceptionOccurrencesItemDismissReminderRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesItemDismissReminderRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemExceptionOccurrencesItemDismissReminderRequestBuilder) { return NewItemEventsItemExceptionOccurrencesItemDismissReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_exception_occurrences_item_extensions_count_request_builder.go b/users/item_events_item_exception_occurrences_item_extensions_count_request_builder.go index 7a454ef0b2a..ade4b3cf584 100644 --- a/users/item_events_item_exception_occurrences_item_extensions_count_request_builder.go +++ b/users/item_events_item_exception_occurrences_item_extensions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemEventsItemExceptionOccurrencesItemExtensionsCountRequestBuilder(rawU return NewItemEventsItemExceptionOccurrencesItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemExceptionOccurrencesItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemExtensionsCountRequestBuilder) Ge return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemExtensionsCountRequestBuilder) To return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExceptionOccurrencesItemExtensionsCountRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemExceptionOccurrencesItemExtensionsCountRequestBuilder) { return NewItemEventsItemExceptionOccurrencesItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_exception_occurrences_item_extensions_extension_item_request_builder.go b/users/item_events_item_exception_occurrences_item_extensions_extension_item_request_builder.go index 95fa5bf0108..cb1d86d01b6 100644 --- a/users/item_events_item_exception_occurrences_item_extensions_extension_item_request_builder.go +++ b/users/item_events_item_exception_occurrences_item_extensions_extension_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuil return NewItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBui return nil } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBui return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBui return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBui return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBui return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBui return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) { return NewItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_exception_occurrences_item_extensions_request_builder.go b/users/item_events_item_exception_occurrences_item_extensions_request_builder.go index 5261b6a520f..1a22829865e 100644 --- a/users/item_events_item_exception_occurrences_item_extensions_request_builder.go +++ b/users/item_events_item_exception_occurrences_item_extensions_request_builder.go @@ -47,6 +47,7 @@ type ItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestCo Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemEventsItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) Count() return NewItemEventsItemExceptionOccurrencesItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) Get(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) Post(ct return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) ToGetRe return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) ToPostR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilder) { return NewItemEventsItemExceptionOccurrencesItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_exception_occurrences_item_forward_request_builder.go b/users/item_events_item_exception_occurrences_item_forward_request_builder.go index 0c425646750..f418f96f744 100644 --- a/users/item_events_item_exception_occurrences_item_forward_request_builder.go +++ b/users/item_events_item_exception_occurrences_item_forward_request_builder.go @@ -31,6 +31,7 @@ func NewItemEventsItemExceptionOccurrencesItemForwardRequestBuilder(rawUrl strin return NewItemEventsItemExceptionOccurrencesItemForwardRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemForwardRequestBuilder) Post(ctx c return nil } // ToPostRequestInformation this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesItemForwardRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemEventsItemExceptionOccurrencesItemForwardPostRequestBodyable, requestConfiguration *ItemEventsItemExceptionOccurrencesItemForwardRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemForwardRequestBuilder) ToPostRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExceptionOccurrencesItemForwardRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesItemForwardRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemExceptionOccurrencesItemForwardRequestBuilder) { return NewItemEventsItemExceptionOccurrencesItemForwardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_exception_occurrences_item_instances_count_request_builder.go b/users/item_events_item_exception_occurrences_item_instances_count_request_builder.go index 21633f38d23..1a736e12ede 100644 --- a/users/item_events_item_exception_occurrences_item_instances_count_request_builder.go +++ b/users/item_events_item_exception_occurrences_item_instances_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemEventsItemExceptionOccurrencesItemInstancesCountRequestBuilder(rawUr return NewItemEventsItemExceptionOccurrencesItemInstancesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemExceptionOccurrencesItemInstancesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesCountRequestBuilder) Get return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesCountRequestBuilder) ToG return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExceptionOccurrencesItemInstancesCountRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesCountRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemExceptionOccurrencesItemInstancesCountRequestBuilder) { return NewItemEventsItemExceptionOccurrencesItemInstancesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_exception_occurrences_item_instances_delta_request_builder.go b/users/item_events_item_exception_occurrences_item_instances_delta_request_builder.go index d1ef70eba9c..6541b93b3da 100644 --- a/users/item_events_item_exception_occurrences_item_instances_delta_request_builder.go +++ b/users/item_events_item_exception_occurrences_item_instances_delta_request_builder.go @@ -80,6 +80,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesDeltaRequestBuilder) Get return res.(ItemEventsItemExceptionOccurrencesItemInstancesDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemEventsItemExceptionOccurrencesItemInstancesDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -103,6 +104,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesDeltaRequestBuilder) Get return res.(ItemEventsItemExceptionOccurrencesItemInstancesDeltaGetResponseable), nil } // ToGetRequestInformation get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +119,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesDeltaRequestBuilder) ToG return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExceptionOccurrencesItemInstancesDeltaRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemExceptionOccurrencesItemInstancesDeltaRequestBuilder) { return NewItemEventsItemExceptionOccurrencesItemInstancesDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_exception_occurrences_item_instances_event_item_request_builder.go b/users/item_events_item_exception_occurrences_item_instances_event_item_request_builder.go index c8b3537f8d0..52726ae7706 100644 --- a/users/item_events_item_exception_occurrences_item_instances_event_item_request_builder.go +++ b/users/item_events_item_exception_occurrences_item_instances_event_item_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetQueryParameters struct { // The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 EndDateTime *string `uriparametername:"endDateTime"` @@ -84,7 +84,8 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) func (m *ItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) Forward()(*ItemEventsItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder) { return NewItemEventsItemExceptionOccurrencesItemInstancesItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -104,6 +105,11 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) PermanentDelete()(*ItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) SnoozeReminder()(*ItemEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder) { @@ -114,7 +120,8 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) func (m *ItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) TentativelyAccept()(*ItemEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder) { return NewItemEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -129,6 +136,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) { return NewItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_exception_occurrences_item_instances_item_accept_request_builder.go b/users/item_events_item_exception_occurrences_item_instances_item_accept_request_builder.go index d717db2952a..7f0c1c8a0d3 100644 --- a/users/item_events_item_exception_occurrences_item_instances_item_accept_request_builder.go +++ b/users/item_events_item_exception_occurrences_item_instances_item_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemEventsItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilder( return NewItemEventsItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilder return nil } // ToPostRequestInformation accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemEventsItemExceptionOccurrencesItemInstancesItemAcceptPostRequestBodyable, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilder return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilder) { return NewItemEventsItemExceptionOccurrencesItemInstancesItemAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_exception_occurrences_item_instances_item_attachments_count_request_builder.go b/users/item_events_item_exception_occurrences_item_instances_item_attachments_count_request_builder.go index e241502867e..dd9d9905bf4 100644 --- a/users/item_events_item_exception_occurrences_item_instances_item_attachments_count_request_builder.go +++ b/users/item_events_item_exception_occurrences_item_instances_item_attachments_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCountReque return NewItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequ return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder) { return NewItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go b/users/item_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go index 16bf34541ff..f92502fdabc 100644 --- a/users/item_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go +++ b/users/item_events_item_exception_occurrences_item_instances_item_attachments_request_builder.go @@ -47,6 +47,7 @@ type ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilde Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentId provides operations to manage the attachments property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ByAttachmentId(attachmentId string)(*ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsAttachmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBu return NewItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBu return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } // Post create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -122,6 +125,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBu return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBu return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBu return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder) { return NewItemEventsItemExceptionOccurrencesItemInstancesItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_exception_occurrences_item_instances_item_calendar_request_builder.go b/users/item_events_item_exception_occurrences_item_instances_item_calendar_request_builder.go index b2b26fe51f3..2f11a02af43 100644 --- a/users/item_events_item_exception_occurrences_item_instances_item_calendar_request_builder.go +++ b/users/item_events_item_exception_occurrences_item_instances_item_calendar_request_builder.go @@ -41,6 +41,7 @@ func NewItemEventsItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilde return NewItemEventsItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilderInternal(urlParams, requestAdapter) } // Get the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -61,6 +62,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemCalendarRequestBuild return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable), nil } // ToGetRequestInformation the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemCalendarRequestBuild return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder) { return NewItemEventsItemExceptionOccurrencesItemInstancesItemCalendarRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_exception_occurrences_item_instances_item_cancel_request_builder.go b/users/item_events_item_exception_occurrences_item_instances_item_cancel_request_builder.go index 06d5775ab07..b2d7c924ab8 100644 --- a/users/item_events_item_exception_occurrences_item_instances_item_cancel_request_builder.go +++ b/users/item_events_item_exception_occurrences_item_instances_item_cancel_request_builder.go @@ -31,6 +31,7 @@ func NewItemEventsItemExceptionOccurrencesItemInstancesItemCancelRequestBuilder( return NewItemEventsItemExceptionOccurrencesItemInstancesItemCancelRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemCancelRequestBuilder return nil } // ToPostRequestInformation this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemEventsItemExceptionOccurrencesItemInstancesItemCancelPostRequestBodyable, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesItemCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemCancelRequestBuilder return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExceptionOccurrencesItemInstancesItemCancelRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemCancelRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemExceptionOccurrencesItemInstancesItemCancelRequestBuilder) { return NewItemEventsItemExceptionOccurrencesItemInstancesItemCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_exception_occurrences_item_instances_item_decline_request_builder.go b/users/item_events_item_exception_occurrences_item_instances_item_decline_request_builder.go index 5d7d93390a9..b8d1cd1d37b 100644 --- a/users/item_events_item_exception_occurrences_item_instances_item_decline_request_builder.go +++ b/users/item_events_item_exception_occurrences_item_instances_item_decline_request_builder.go @@ -31,6 +31,7 @@ func NewItemEventsItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilder return NewItemEventsItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilderInternal(urlParams, requestAdapter) } // Post decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilde return nil } // ToPostRequestInformation decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemEventsItemExceptionOccurrencesItemInstancesItemDeclinePostRequestBodyable, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilde return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilder) { return NewItemEventsItemExceptionOccurrencesItemInstancesItemDeclineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_exception_occurrences_item_instances_item_dismiss_reminder_request_builder.go b/users/item_events_item_exception_occurrences_item_instances_item_dismiss_reminder_request_builder.go index 77d8cb14aa6..6bd5649b2d1 100644 --- a/users/item_events_item_exception_occurrences_item_instances_item_dismiss_reminder_request_builder.go +++ b/users/item_events_item_exception_occurrences_item_instances_item_dismiss_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemEventsItemExceptionOccurrencesItemInstancesItemDismissReminderReques return NewItemEventsItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemDismissReminderReque return nil } // ToPostRequestInformation dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemDismissReminderReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilder) { return NewItemEventsItemExceptionOccurrencesItemInstancesItemDismissReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_exception_occurrences_item_instances_item_extensions_count_request_builder.go b/users/item_events_item_exception_occurrences_item_instances_item_extensions_count_request_builder.go index db8f6309004..0a57ed49fa9 100644 --- a/users/item_events_item_exception_occurrences_item_instances_item_extensions_count_request_builder.go +++ b/users/item_events_item_exception_occurrences_item_instances_item_extensions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsCountReques return NewItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsCountReque return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsCountReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder) { return NewItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_exception_occurrences_item_instances_item_extensions_extension_item_request_builder.go b/users/item_events_item_exception_occurrences_item_instances_item_extensions_extension_item_request_builder.go index 24b3d1f9155..9aaa9dbf8e4 100644 --- a/users/item_events_item_exception_occurrences_item_instances_item_extensions_extension_item_request_builder.go +++ b/users/item_events_item_exception_occurrences_item_instances_item_extensions_extension_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionIt return NewItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionI return nil } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionI return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionI return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionI return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionI return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) { return NewItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_exception_occurrences_item_instances_item_extensions_request_builder.go b/users/item_events_item_exception_occurrences_item_instances_item_extensions_request_builder.go index 872e01980b3..46963d5cc5e 100644 --- a/users/item_events_item_exception_occurrences_item_instances_item_extensions_request_builder.go +++ b/users/item_events_item_exception_occurrences_item_instances_item_extensions_request_builder.go @@ -47,6 +47,7 @@ type ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBui return NewItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBui return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBui return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBui return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBui return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder) { return NewItemEventsItemExceptionOccurrencesItemInstancesItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_exception_occurrences_item_instances_item_forward_request_builder.go b/users/item_events_item_exception_occurrences_item_instances_item_forward_request_builder.go index 35d4515daa2..783896b098c 100644 --- a/users/item_events_item_exception_occurrences_item_instances_item_forward_request_builder.go +++ b/users/item_events_item_exception_occurrences_item_instances_item_forward_request_builder.go @@ -31,6 +31,7 @@ func NewItemEventsItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder return NewItemEventsItemExceptionOccurrencesItemInstancesItemForwardRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemForwardRequestBuilde return nil } // ToPostRequestInformation this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemEventsItemExceptionOccurrencesItemInstancesItemForwardPostRequestBodyable, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesItemForwardRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemForwardRequestBuilde return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder) { return NewItemEventsItemExceptionOccurrencesItemInstancesItemForwardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_exception_occurrences_item_instances_item_permanent_delete_request_builder.go b/users/item_events_item_exception_occurrences_item_instances_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..680cf684add --- /dev/null +++ b/users/item_events_item_exception_occurrences_item_instances_item_permanent_delete_request_builder.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + m := &ItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/exceptionOccurrences/{event%2Did1}/instances/{event%2Did2}/permanentDelete", pathParameters), + } + return m +} +// NewItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder instantiates a new ItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemEventsItemExceptionOccurrencesItemInstancesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_events_item_exception_occurrences_item_instances_item_snooze_reminder_request_builder.go b/users/item_events_item_exception_occurrences_item_instances_item_snooze_reminder_request_builder.go index eafdf808693..5f203b4636b 100644 --- a/users/item_events_item_exception_occurrences_item_instances_item_snooze_reminder_request_builder.go +++ b/users/item_events_item_exception_occurrences_item_instances_item_snooze_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequest return NewItemEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderReques return nil } // ToPostRequestInformation postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderPostRequestBodyable, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder) { return NewItemEventsItemExceptionOccurrencesItemInstancesItemSnoozeReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_exception_occurrences_item_instances_item_tentatively_accept_request_builder.go b/users/item_events_item_exception_occurrences_item_instances_item_tentatively_accept_request_builder.go index 5940a0f6e91..c1d73b78581 100644 --- a/users/item_events_item_exception_occurrences_item_instances_item_tentatively_accept_request_builder.go +++ b/users/item_events_item_exception_occurrences_item_instances_item_tentatively_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequ return NewItemEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptReq return nil } // ToPostRequestInformation tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptPostRequestBodyable, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder) { return NewItemEventsItemExceptionOccurrencesItemInstancesItemTentativelyAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_exception_occurrences_item_instances_request_builder.go b/users/item_events_item_exception_occurrences_item_instances_request_builder.go index 0f033f03703..9baa77a962e 100644 --- a/users/item_events_item_exception_occurrences_item_instances_request_builder.go +++ b/users/item_events_item_exception_occurrences_item_instances_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemEventsItemExceptionOccurrencesItemInstancesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemEventsItemExceptionOccurrencesItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemEventsItemExceptionOccurrencesItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemEventsItemExceptionOccurrencesItemInstancesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -44,6 +44,7 @@ type ItemEventsItemExceptionOccurrencesItemInstancesRequestBuilderGetRequestConf QueryParameters *ItemEventsItemExceptionOccurrencesItemInstancesRequestBuilderGetQueryParameters } // ByEventId2 provides operations to manage the instances property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesRequestBuilder) ByEventId2(eventId2 string)(*ItemEventsItemExceptionOccurrencesItemInstancesEventItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -78,7 +79,8 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesRequestBuilder) Count()( func (m *ItemEventsItemExceptionOccurrencesItemInstancesRequestBuilder) Delta()(*ItemEventsItemExceptionOccurrencesItemInstancesDeltaRequestBuilder) { return NewItemEventsItemExceptionOccurrencesItemInstancesDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemExceptionOccurrencesItemInstancesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -98,7 +100,8 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesRequestBuilder) Get(ctx } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemInstancesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,6 +116,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemInstancesRequestBuilder) ToGetReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExceptionOccurrencesItemInstancesRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesItemInstancesRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemExceptionOccurrencesItemInstancesRequestBuilder) { return NewItemEventsItemExceptionOccurrencesItemInstancesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_exception_occurrences_item_permanent_delete_request_builder.go b/users/item_events_item_exception_occurrences_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..6b3c1a370ef --- /dev/null +++ b/users/item_events_item_exception_occurrences_item_permanent_delete_request_builder.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + m := &ItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/exceptionOccurrences/{event%2Did1}/permanentDelete", pathParameters), + } + return m +} +// NewItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder instantiates a new ItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemEventsItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_events_item_exception_occurrences_item_snooze_reminder_request_builder.go b/users/item_events_item_exception_occurrences_item_snooze_reminder_request_builder.go index db6908c62de..5bd30db4073 100644 --- a/users/item_events_item_exception_occurrences_item_snooze_reminder_request_builder.go +++ b/users/item_events_item_exception_occurrences_item_snooze_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemEventsItemExceptionOccurrencesItemSnoozeReminderRequestBuilder(rawUr return NewItemEventsItemExceptionOccurrencesItemSnoozeReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) Pos return nil } // ToPostRequestInformation postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemEventsItemExceptionOccurrencesItemSnoozeReminderPostRequestBodyable, requestConfiguration *ItemEventsItemExceptionOccurrencesItemSnoozeReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) ToP return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExceptionOccurrencesItemSnoozeReminderRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) { return NewItemEventsItemExceptionOccurrencesItemSnoozeReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_exception_occurrences_item_tentatively_accept_request_builder.go b/users/item_events_item_exception_occurrences_item_tentatively_accept_request_builder.go index c16407992d9..eb0f9d9346a 100644 --- a/users/item_events_item_exception_occurrences_item_tentatively_accept_request_builder.go +++ b/users/item_events_item_exception_occurrences_item_tentatively_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemEventsItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder(ra return NewItemEventsItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) return nil } // ToPostRequestInformation tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemEventsItemExceptionOccurrencesItemTentativelyAcceptPostRequestBodyable, requestConfiguration *ItemEventsItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemEventsItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) { return NewItemEventsItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_exception_occurrences_request_builder.go b/users/item_events_item_exception_occurrences_request_builder.go index 0ab7cdecd08..4794b9d91f2 100644 --- a/users/item_events_item_exception_occurrences_request_builder.go +++ b/users/item_events_item_exception_occurrences_request_builder.go @@ -40,6 +40,7 @@ type ItemEventsItemExceptionOccurrencesRequestBuilderGetRequestConfiguration str QueryParameters *ItemEventsItemExceptionOccurrencesRequestBuilderGetQueryParameters } // ByEventId1 provides operations to manage the exceptionOccurrences property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExceptionOccurrencesEventItemRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesRequestBuilder) ByEventId1(eventId1 string)(*ItemEventsItemExceptionOccurrencesEventItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -75,6 +76,7 @@ func (m *ItemEventsItemExceptionOccurrencesRequestBuilder) Delta()(*ItemEventsIt return NewItemEventsItemExceptionOccurrencesDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemExceptionOccurrencesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -95,6 +97,7 @@ func (m *ItemEventsItemExceptionOccurrencesRequestBuilder) Get(ctx context.Conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } // ToGetRequestInformation get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExceptionOccurrencesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemExceptionOccurrencesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +112,7 @@ func (m *ItemEventsItemExceptionOccurrencesRequestBuilder) ToGetRequestInformati return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExceptionOccurrencesRequestBuilder when successful func (m *ItemEventsItemExceptionOccurrencesRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemExceptionOccurrencesRequestBuilder) { return NewItemEventsItemExceptionOccurrencesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_extensions_count_request_builder.go b/users/item_events_item_extensions_count_request_builder.go index 640aa9fabe1..107d01ee7d7 100644 --- a/users/item_events_item_extensions_count_request_builder.go +++ b/users/item_events_item_extensions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemEventsItemExtensionsCountRequestBuilder(rawUrl string, requestAdapte return NewItemEventsItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemEventsItemExtensionsCountRequestBuilder) Get(ctx context.Context, r return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemEventsItemExtensionsCountRequestBuilder) ToGetRequestInformation(ct return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExtensionsCountRequestBuilder when successful func (m *ItemEventsItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemExtensionsCountRequestBuilder) { return NewItemEventsItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_extensions_extension_item_request_builder.go b/users/item_events_item_extensions_extension_item_request_builder.go index 992033352c4..67d15215b5c 100644 --- a/users/item_events_item_extensions_extension_item_request_builder.go +++ b/users/item_events_item_extensions_extension_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemEventsItemExtensionsExtensionItemRequestBuilder(rawUrl string, reque return NewItemEventsItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemEventsItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemEventsItemExtensionsExtensionItemRequestBuilder) Delete(ctx context return nil } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemEventsItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemEventsItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemEventsItemExtensionsExtensionItemRequestBuilder) Patch(ctx context. return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemEventsItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInf return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemEventsItemExtensionsExtensionItemRequestBuilder) ToGetRequestInform return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemEventsItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemEventsItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInfo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemEventsItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemExtensionsExtensionItemRequestBuilder) { return NewItemEventsItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_extensions_request_builder.go b/users/item_events_item_extensions_request_builder.go index d551dea5440..f28b7e3d2d0 100644 --- a/users/item_events_item_extensions_request_builder.go +++ b/users/item_events_item_extensions_request_builder.go @@ -47,6 +47,7 @@ type ItemEventsItemExtensionsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemEventsItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemEventsItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemEventsItemExtensionsRequestBuilder) Count()(*ItemEventsItemExtensio return NewItemEventsItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemEventsItemExtensionsRequestBuilder) Get(ctx context.Context, reques return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemEventsItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemEventsItemExtensionsRequestBuilder) Post(ctx context.Context, body return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemEventsItemExtensionsRequestBuilder) ToGetRequestInformation(ctx con return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemEventsItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemEventsItemExtensionsRequestBuilder) ToPostRequestInformation(ctx co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemExtensionsRequestBuilder when successful func (m *ItemEventsItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemExtensionsRequestBuilder) { return NewItemEventsItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_forward_request_builder.go b/users/item_events_item_forward_request_builder.go index 2f06b1414d0..32e6ed971db 100644 --- a/users/item_events_item_forward_request_builder.go +++ b/users/item_events_item_forward_request_builder.go @@ -31,6 +31,7 @@ func NewItemEventsItemForwardRequestBuilder(rawUrl string, requestAdapter i2ae41 return NewItemEventsItemForwardRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemEventsItemForwardRequestBuilder) Post(ctx context.Context, body Ite return nil } // ToPostRequestInformation this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemForwardRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemEventsItemForwardPostRequestBodyable, requestConfiguration *ItemEventsItemForwardRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemEventsItemForwardRequestBuilder) ToPostRequestInformation(ctx conte return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemForwardRequestBuilder when successful func (m *ItemEventsItemForwardRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemForwardRequestBuilder) { return NewItemEventsItemForwardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_instances_count_request_builder.go b/users/item_events_item_instances_count_request_builder.go index 9c9a12ec0a4..c50225f1ef9 100644 --- a/users/item_events_item_instances_count_request_builder.go +++ b/users/item_events_item_instances_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemEventsItemInstancesCountRequestBuilder(rawUrl string, requestAdapter return NewItemEventsItemInstancesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemInstancesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemInstancesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemEventsItemInstancesCountRequestBuilder) Get(ctx context.Context, re return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemInstancesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemEventsItemInstancesCountRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemInstancesCountRequestBuilder when successful func (m *ItemEventsItemInstancesCountRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemInstancesCountRequestBuilder) { return NewItemEventsItemInstancesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_instances_delta_request_builder.go b/users/item_events_item_instances_delta_request_builder.go index 8dddbdac8e5..23802d258f8 100644 --- a/users/item_events_item_instances_delta_request_builder.go +++ b/users/item_events_item_instances_delta_request_builder.go @@ -80,6 +80,7 @@ func (m *ItemEventsItemInstancesDeltaRequestBuilder) Get(ctx context.Context, re return res.(ItemEventsItemInstancesDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemEventsItemInstancesDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -103,6 +104,7 @@ func (m *ItemEventsItemInstancesDeltaRequestBuilder) GetAsDeltaGetResponse(ctx c return res.(ItemEventsItemInstancesDeltaGetResponseable), nil } // ToGetRequestInformation get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemInstancesDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +119,7 @@ func (m *ItemEventsItemInstancesDeltaRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemInstancesDeltaRequestBuilder when successful func (m *ItemEventsItemInstancesDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemInstancesDeltaRequestBuilder) { return NewItemEventsItemInstancesDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_instances_event_item_request_builder.go b/users/item_events_item_instances_event_item_request_builder.go index 56313a4ae2e..e344c565821 100644 --- a/users/item_events_item_instances_event_item_request_builder.go +++ b/users/item_events_item_instances_event_item_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemEventsItemInstancesEventItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemEventsItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemEventsItemInstancesEventItemRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemEventsItemInstancesEventItemRequestBuilderGetQueryParameters struct { // The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 EndDateTime *string `uriparametername:"endDateTime"` @@ -89,7 +89,8 @@ func (m *ItemEventsItemInstancesEventItemRequestBuilder) Extensions()(*ItemEvent func (m *ItemEventsItemInstancesEventItemRequestBuilder) Forward()(*ItemEventsItemInstancesItemForwardRequestBuilder) { return NewItemEventsItemInstancesItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemInstancesEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemInstancesEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -109,6 +110,11 @@ func (m *ItemEventsItemInstancesEventItemRequestBuilder) Get(ctx context.Context } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemEventsItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemEventsItemInstancesEventItemRequestBuilder) PermanentDelete()(*ItemEventsItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemEventsItemInstancesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemEventsItemInstancesItemSnoozeReminderRequestBuilder when successful func (m *ItemEventsItemInstancesEventItemRequestBuilder) SnoozeReminder()(*ItemEventsItemInstancesItemSnoozeReminderRequestBuilder) { @@ -119,7 +125,8 @@ func (m *ItemEventsItemInstancesEventItemRequestBuilder) SnoozeReminder()(*ItemE func (m *ItemEventsItemInstancesEventItemRequestBuilder) TentativelyAccept()(*ItemEventsItemInstancesItemTentativelyAcceptRequestBuilder) { return NewItemEventsItemInstancesItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemInstancesEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -134,6 +141,7 @@ func (m *ItemEventsItemInstancesEventItemRequestBuilder) ToGetRequestInformation return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemInstancesEventItemRequestBuilder when successful func (m *ItemEventsItemInstancesEventItemRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemInstancesEventItemRequestBuilder) { return NewItemEventsItemInstancesEventItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_instances_item_accept_request_builder.go b/users/item_events_item_instances_item_accept_request_builder.go index 3f2707838c3..3ec4537c1e5 100644 --- a/users/item_events_item_instances_item_accept_request_builder.go +++ b/users/item_events_item_instances_item_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemEventsItemInstancesItemAcceptRequestBuilder(rawUrl string, requestAd return NewItemEventsItemInstancesItemAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemEventsItemInstancesItemAcceptRequestBuilder) Post(ctx context.Conte return nil } // ToPostRequestInformation accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesItemAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemEventsItemInstancesItemAcceptPostRequestBodyable, requestConfiguration *ItemEventsItemInstancesItemAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemEventsItemInstancesItemAcceptRequestBuilder) ToPostRequestInformati return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemInstancesItemAcceptRequestBuilder when successful func (m *ItemEventsItemInstancesItemAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemInstancesItemAcceptRequestBuilder) { return NewItemEventsItemInstancesItemAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_instances_item_attachments_attachment_item_request_builder.go b/users/item_events_item_instances_item_attachments_attachment_item_request_builder.go index 9106c9c73f6..87501b4d57b 100644 --- a/users/item_events_item_instances_item_attachments_attachment_item_request_builder.go +++ b/users/item_events_item_instances_item_attachments_attachment_item_request_builder.go @@ -48,6 +48,7 @@ func NewItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilder(rawUr return NewItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,6 +65,7 @@ func (m *ItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilder) Del return nil } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -84,6 +86,7 @@ func (m *ItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilder) Get return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToDeleteRequestInformation delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +98,7 @@ func (m *ItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilder) ToD return requestInfo, nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +113,7 @@ func (m *ItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilder) ToG return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilder) { return NewItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_instances_item_attachments_count_request_builder.go b/users/item_events_item_instances_item_attachments_count_request_builder.go index 47879b121fe..88119e8a05e 100644 --- a/users/item_events_item_instances_item_attachments_count_request_builder.go +++ b/users/item_events_item_instances_item_attachments_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemEventsItemInstancesItemAttachmentsCountRequestBuilder(rawUrl string, return NewItemEventsItemInstancesItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemInstancesItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemEventsItemInstancesItemAttachmentsCountRequestBuilder) Get(ctx cont return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemEventsItemInstancesItemAttachmentsCountRequestBuilder) ToGetRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemInstancesItemAttachmentsCountRequestBuilder when successful func (m *ItemEventsItemInstancesItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemInstancesItemAttachmentsCountRequestBuilder) { return NewItemEventsItemInstancesItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_instances_item_attachments_create_upload_session_request_builder.go b/users/item_events_item_instances_item_attachments_create_upload_session_request_builder.go index 872b27a5443..a0b250d6023 100644 --- a/users/item_events_item_instances_item_attachments_create_upload_session_request_builder.go +++ b/users/item_events_item_instances_item_attachments_create_upload_session_request_builder.go @@ -32,6 +32,7 @@ func NewItemEventsItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder( return NewItemEventsItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemEventsItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemEventsItemInstancesItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemEventsItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemEventsItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemEventsItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemEventsItemInstancesItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_instances_item_attachments_request_builder.go b/users/item_events_item_instances_item_attachments_request_builder.go index 4526749b63d..8eafa9e38ff 100644 --- a/users/item_events_item_instances_item_attachments_request_builder.go +++ b/users/item_events_item_instances_item_attachments_request_builder.go @@ -47,6 +47,7 @@ type ItemEventsItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguratio Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentId provides operations to manage the attachments property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemEventsItemInstancesItemAttachmentsRequestBuilder) ByAttachmentId(attachmentId string)(*ItemEventsItemInstancesItemAttachmentsAttachmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemEventsItemInstancesItemAttachmentsRequestBuilder) CreateUploadSessi return NewItemEventsItemInstancesItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemInstancesItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemEventsItemInstancesItemAttachmentsRequestBuilder) Get(ctx context.C return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } // Post create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemInstancesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -122,6 +125,7 @@ func (m *ItemEventsItemInstancesItemAttachmentsRequestBuilder) Post(ctx context. return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemEventsItemInstancesItemAttachmentsRequestBuilder) ToGetRequestInfor return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemInstancesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemEventsItemInstancesItemAttachmentsRequestBuilder) ToPostRequestInfo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemInstancesItemAttachmentsRequestBuilder when successful func (m *ItemEventsItemInstancesItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemInstancesItemAttachmentsRequestBuilder) { return NewItemEventsItemInstancesItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_instances_item_calendar_request_builder.go b/users/item_events_item_instances_item_calendar_request_builder.go index 6b0693b1810..0d4baeba8f3 100644 --- a/users/item_events_item_instances_item_calendar_request_builder.go +++ b/users/item_events_item_instances_item_calendar_request_builder.go @@ -41,6 +41,7 @@ func NewItemEventsItemInstancesItemCalendarRequestBuilder(rawUrl string, request return NewItemEventsItemInstancesItemCalendarRequestBuilderInternal(urlParams, requestAdapter) } // Get the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemInstancesItemCalendarRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemCalendarRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -61,6 +62,7 @@ func (m *ItemEventsItemInstancesItemCalendarRequestBuilder) Get(ctx context.Cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable), nil } // ToGetRequestInformation the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesItemCalendarRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemCalendarRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemEventsItemInstancesItemCalendarRequestBuilder) ToGetRequestInformat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemInstancesItemCalendarRequestBuilder when successful func (m *ItemEventsItemInstancesItemCalendarRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemInstancesItemCalendarRequestBuilder) { return NewItemEventsItemInstancesItemCalendarRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_instances_item_cancel_request_builder.go b/users/item_events_item_instances_item_cancel_request_builder.go index 0bdd2538eca..d9ce69cc479 100644 --- a/users/item_events_item_instances_item_cancel_request_builder.go +++ b/users/item_events_item_instances_item_cancel_request_builder.go @@ -31,6 +31,7 @@ func NewItemEventsItemInstancesItemCancelRequestBuilder(rawUrl string, requestAd return NewItemEventsItemInstancesItemCancelRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemEventsItemInstancesItemCancelRequestBuilder) Post(ctx context.Conte return nil } // ToPostRequestInformation this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesItemCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemEventsItemInstancesItemCancelPostRequestBodyable, requestConfiguration *ItemEventsItemInstancesItemCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemEventsItemInstancesItemCancelRequestBuilder) ToPostRequestInformati return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemInstancesItemCancelRequestBuilder when successful func (m *ItemEventsItemInstancesItemCancelRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemInstancesItemCancelRequestBuilder) { return NewItemEventsItemInstancesItemCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_instances_item_decline_request_builder.go b/users/item_events_item_instances_item_decline_request_builder.go index 3565acf705f..cab7de1951d 100644 --- a/users/item_events_item_instances_item_decline_request_builder.go +++ b/users/item_events_item_instances_item_decline_request_builder.go @@ -31,6 +31,7 @@ func NewItemEventsItemInstancesItemDeclineRequestBuilder(rawUrl string, requestA return NewItemEventsItemInstancesItemDeclineRequestBuilderInternal(urlParams, requestAdapter) } // Post decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemEventsItemInstancesItemDeclineRequestBuilder) Post(ctx context.Cont return nil } // ToPostRequestInformation decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesItemDeclineRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemEventsItemInstancesItemDeclinePostRequestBodyable, requestConfiguration *ItemEventsItemInstancesItemDeclineRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemEventsItemInstancesItemDeclineRequestBuilder) ToPostRequestInformat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemInstancesItemDeclineRequestBuilder when successful func (m *ItemEventsItemInstancesItemDeclineRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemInstancesItemDeclineRequestBuilder) { return NewItemEventsItemInstancesItemDeclineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_instances_item_dismiss_reminder_request_builder.go b/users/item_events_item_instances_item_dismiss_reminder_request_builder.go index 8aa0e443483..e2645ec0d8b 100644 --- a/users/item_events_item_instances_item_dismiss_reminder_request_builder.go +++ b/users/item_events_item_instances_item_dismiss_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemEventsItemInstancesItemDismissReminderRequestBuilder(rawUrl string, return NewItemEventsItemInstancesItemDismissReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemEventsItemInstancesItemDismissReminderRequestBuilder) Post(ctx cont return nil } // ToPostRequestInformation dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesItemDismissReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemDismissReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemEventsItemInstancesItemDismissReminderRequestBuilder) ToPostRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemInstancesItemDismissReminderRequestBuilder when successful func (m *ItemEventsItemInstancesItemDismissReminderRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemInstancesItemDismissReminderRequestBuilder) { return NewItemEventsItemInstancesItemDismissReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_instances_item_exception_occurrences_count_request_builder.go b/users/item_events_item_instances_item_exception_occurrences_count_request_builder.go index 17f60517ba8..a00b4a09dba 100644 --- a/users/item_events_item_instances_item_exception_occurrences_count_request_builder.go +++ b/users/item_events_item_instances_item_exception_occurrences_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemEventsItemInstancesItemExceptionOccurrencesCountRequestBuilder(rawUr return NewItemEventsItemInstancesItemExceptionOccurrencesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemInstancesItemExceptionOccurrencesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesCountRequestBuilder) Get return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesCountRequestBuilder) ToG return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemInstancesItemExceptionOccurrencesCountRequestBuilder when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesCountRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemInstancesItemExceptionOccurrencesCountRequestBuilder) { return NewItemEventsItemInstancesItemExceptionOccurrencesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_instances_item_exception_occurrences_delta_request_builder.go b/users/item_events_item_instances_item_exception_occurrences_delta_request_builder.go index b40efe8507d..6ed71831d1d 100644 --- a/users/item_events_item_instances_item_exception_occurrences_delta_request_builder.go +++ b/users/item_events_item_instances_item_exception_occurrences_delta_request_builder.go @@ -80,6 +80,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesDeltaRequestBuilder) Get return res.(ItemEventsItemInstancesItemExceptionOccurrencesDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemEventsItemInstancesItemExceptionOccurrencesDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -103,6 +104,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesDeltaRequestBuilder) Get return res.(ItemEventsItemInstancesItemExceptionOccurrencesDeltaGetResponseable), nil } // ToGetRequestInformation get a set of event resources that have been added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar of the user's. In the case of getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). This allows you to maintain and synchronize a local store of events in the specified calendar, without having to fetch all the events of that calendar from the server every time. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +119,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesDeltaRequestBuilder) ToG return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemInstancesItemExceptionOccurrencesDeltaRequestBuilder when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemInstancesItemExceptionOccurrencesDeltaRequestBuilder) { return NewItemEventsItemInstancesItemExceptionOccurrencesDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_instances_item_exception_occurrences_event_item_request_builder.go b/users/item_events_item_instances_item_exception_occurrences_event_item_request_builder.go index 02165c60b1e..6696572317d 100644 --- a/users/item_events_item_instances_item_exception_occurrences_event_item_request_builder.go +++ b/users/item_events_item_instances_item_exception_occurrences_event_item_request_builder.go @@ -81,6 +81,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) return NewItemEventsItemInstancesItemExceptionOccurrencesItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -100,6 +101,11 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) PermanentDelete()(*ItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // SnoozeReminder provides operations to call the snoozeReminder method. // returns a *ItemEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) SnoozeReminder()(*ItemEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) { @@ -111,6 +117,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) return NewItemEventsItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -125,6 +132,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) { return NewItemEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_instances_item_exception_occurrences_item_accept_request_builder.go b/users/item_events_item_instances_item_exception_occurrences_item_accept_request_builder.go index 79fc6ceb1b2..6bb1b5b7397 100644 --- a/users/item_events_item_instances_item_exception_occurrences_item_accept_request_builder.go +++ b/users/item_events_item_instances_item_exception_occurrences_item_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemEventsItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilder( return NewItemEventsItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilder return nil } // ToPostRequestInformation accept the specified event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemEventsItemInstancesItemExceptionOccurrencesItemAcceptPostRequestBodyable, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilder return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilder when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilder) { return NewItemEventsItemInstancesItemExceptionOccurrencesItemAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_instances_item_exception_occurrences_item_attachments_count_request_builder.go b/users/item_events_item_instances_item_exception_occurrences_item_attachments_count_request_builder.go index 06538572a77..ba506b41996 100644 --- a/users/item_events_item_instances_item_exception_occurrences_item_attachments_count_request_builder.go +++ b/users/item_events_item_instances_item_exception_occurrences_item_attachments_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCountReque return NewItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequ return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder) { return NewItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go b/users/item_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go index cee0b0480e7..2fc0379cc26 100644 --- a/users/item_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go +++ b/users/item_events_item_instances_item_exception_occurrences_item_attachments_request_builder.go @@ -47,6 +47,7 @@ type ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilde Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentId provides operations to manage the attachments property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ByAttachmentId(attachmentId string)(*ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsAttachmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBu return NewItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBu return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } // Post create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -122,6 +125,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBu return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToGetRequestInformation the collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBu return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBu return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder) { return NewItemEventsItemInstancesItemExceptionOccurrencesItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_instances_item_exception_occurrences_item_calendar_request_builder.go b/users/item_events_item_instances_item_exception_occurrences_item_calendar_request_builder.go index 0b54435f901..bb9707645f1 100644 --- a/users/item_events_item_instances_item_exception_occurrences_item_calendar_request_builder.go +++ b/users/item_events_item_instances_item_exception_occurrences_item_calendar_request_builder.go @@ -41,6 +41,7 @@ func NewItemEventsItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilde return NewItemEventsItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilderInternal(urlParams, requestAdapter) } // Get the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Calendarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable, error) { @@ -61,6 +62,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemCalendarRequestBuild return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Calendarable), nil } // ToGetRequestInformation the calendar that contains the event. Navigation property. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemCalendarRequestBuild return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder) { return NewItemEventsItemInstancesItemExceptionOccurrencesItemCalendarRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_instances_item_exception_occurrences_item_cancel_request_builder.go b/users/item_events_item_instances_item_exception_occurrences_item_cancel_request_builder.go index 5dc6c75b8a9..29f78c370bc 100644 --- a/users/item_events_item_instances_item_exception_occurrences_item_cancel_request_builder.go +++ b/users/item_events_item_instances_item_exception_occurrences_item_cancel_request_builder.go @@ -31,6 +31,7 @@ func NewItemEventsItemInstancesItemExceptionOccurrencesItemCancelRequestBuilder( return NewItemEventsItemInstancesItemExceptionOccurrencesItemCancelRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemCancelRequestBuilder return nil } // ToPostRequestInformation this action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemCancelRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemEventsItemInstancesItemExceptionOccurrencesItemCancelPostRequestBodyable, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesItemCancelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemCancelRequestBuilder return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemInstancesItemExceptionOccurrencesItemCancelRequestBuilder when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemCancelRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemInstancesItemExceptionOccurrencesItemCancelRequestBuilder) { return NewItemEventsItemInstancesItemExceptionOccurrencesItemCancelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_instances_item_exception_occurrences_item_decline_request_builder.go b/users/item_events_item_instances_item_exception_occurrences_item_decline_request_builder.go index 50b43107315..065c905e097 100644 --- a/users/item_events_item_instances_item_exception_occurrences_item_decline_request_builder.go +++ b/users/item_events_item_instances_item_exception_occurrences_item_decline_request_builder.go @@ -31,6 +31,7 @@ func NewItemEventsItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilder return NewItemEventsItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilderInternal(urlParams, requestAdapter) } // Post decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilde return nil } // ToPostRequestInformation decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemEventsItemInstancesItemExceptionOccurrencesItemDeclinePostRequestBodyable, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilde return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilder when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilder) { return NewItemEventsItemInstancesItemExceptionOccurrencesItemDeclineRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_instances_item_exception_occurrences_item_dismiss_reminder_request_builder.go b/users/item_events_item_instances_item_exception_occurrences_item_dismiss_reminder_request_builder.go index 678c643ca3e..547108c90c9 100644 --- a/users/item_events_item_instances_item_exception_occurrences_item_dismiss_reminder_request_builder.go +++ b/users/item_events_item_instances_item_exception_occurrences_item_dismiss_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemEventsItemInstancesItemExceptionOccurrencesItemDismissReminderReques return NewItemEventsItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemDismissReminderReque return nil } // ToPostRequestInformation dismiss a reminder that has been triggered for an event in a user calendar. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemDismissReminderReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilder when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilder) { return NewItemEventsItemInstancesItemExceptionOccurrencesItemDismissReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_instances_item_exception_occurrences_item_extensions_count_request_builder.go b/users/item_events_item_instances_item_exception_occurrences_item_extensions_count_request_builder.go index e9a710eb01d..b8e38bada23 100644 --- a/users/item_events_item_instances_item_exception_occurrences_item_extensions_count_request_builder.go +++ b/users/item_events_item_instances_item_exception_occurrences_item_extensions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsCountReques return NewItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsCountReque return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsCountReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder) { return NewItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_instances_item_exception_occurrences_item_extensions_extension_item_request_builder.go b/users/item_events_item_instances_item_exception_occurrences_item_extensions_extension_item_request_builder.go index 3d94923b186..a6fddc290b0 100644 --- a/users/item_events_item_instances_item_exception_occurrences_item_extensions_extension_item_request_builder.go +++ b/users/item_events_item_instances_item_exception_occurrences_item_extensions_extension_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionIt return NewItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionI return nil } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionI return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionI return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionI return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionI return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) { return NewItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_instances_item_exception_occurrences_item_extensions_request_builder.go b/users/item_events_item_instances_item_exception_occurrences_item_extensions_request_builder.go index 53986de701d..7668c092e36 100644 --- a/users/item_events_item_instances_item_exception_occurrences_item_extensions_request_builder.go +++ b/users/item_events_item_instances_item_exception_occurrences_item_extensions_request_builder.go @@ -47,6 +47,7 @@ type ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBui return NewItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBui return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBui return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBui return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBui return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder) { return NewItemEventsItemInstancesItemExceptionOccurrencesItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_instances_item_exception_occurrences_item_forward_request_builder.go b/users/item_events_item_instances_item_exception_occurrences_item_forward_request_builder.go index ba476189f41..d4270ff521f 100644 --- a/users/item_events_item_instances_item_exception_occurrences_item_forward_request_builder.go +++ b/users/item_events_item_instances_item_exception_occurrences_item_forward_request_builder.go @@ -31,6 +31,7 @@ func NewItemEventsItemInstancesItemExceptionOccurrencesItemForwardRequestBuilder return NewItemEventsItemInstancesItemExceptionOccurrencesItemForwardRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemForwardRequestBuilde return nil } // ToPostRequestInformation this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemForwardRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemEventsItemInstancesItemExceptionOccurrencesItemForwardPostRequestBodyable, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesItemForwardRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemForwardRequestBuilde return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemInstancesItemExceptionOccurrencesItemForwardRequestBuilder when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemForwardRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemInstancesItemExceptionOccurrencesItemForwardRequestBuilder) { return NewItemEventsItemInstancesItemExceptionOccurrencesItemForwardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_instances_item_exception_occurrences_item_permanent_delete_request_builder.go b/users/item_events_item_instances_item_exception_occurrences_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..43150edd449 --- /dev/null +++ b/users/item_events_item_instances_item_exception_occurrences_item_permanent_delete_request_builder.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + m := &ItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/instances/{event%2Did1}/exceptionOccurrences/{event%2Did2}/permanentDelete", pathParameters), + } + return m +} +// NewItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder instantiates a new ItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder when successful +func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder) { + return NewItemEventsItemInstancesItemExceptionOccurrencesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_events_item_instances_item_exception_occurrences_item_snooze_reminder_request_builder.go b/users/item_events_item_instances_item_exception_occurrences_item_snooze_reminder_request_builder.go index 7fccf14e95f..125b583b488 100644 --- a/users/item_events_item_instances_item_exception_occurrences_item_snooze_reminder_request_builder.go +++ b/users/item_events_item_instances_item_exception_occurrences_item_snooze_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequest return NewItemEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderReques return nil } // ToPostRequestInformation postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderPostRequestBodyable, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder) { return NewItemEventsItemInstancesItemExceptionOccurrencesItemSnoozeReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_instances_item_exception_occurrences_item_tentatively_accept_request_builder.go b/users/item_events_item_instances_item_exception_occurrences_item_tentatively_accept_request_builder.go index 0b0b60bc800..c7016ef6a23 100644 --- a/users/item_events_item_instances_item_exception_occurrences_item_tentatively_accept_request_builder.go +++ b/users/item_events_item_instances_item_exception_occurrences_item_tentatively_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemEventsItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequ return NewItemEventsItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemTentativelyAcceptReq return nil } // ToPostRequestInformation tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemEventsItemInstancesItemExceptionOccurrencesItemTentativelyAcceptPostRequestBodyable, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemTentativelyAcceptReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder) { return NewItemEventsItemInstancesItemExceptionOccurrencesItemTentativelyAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_instances_item_exception_occurrences_request_builder.go b/users/item_events_item_instances_item_exception_occurrences_request_builder.go index af6af2b980a..518a1b0a023 100644 --- a/users/item_events_item_instances_item_exception_occurrences_request_builder.go +++ b/users/item_events_item_instances_item_exception_occurrences_request_builder.go @@ -40,6 +40,7 @@ type ItemEventsItemInstancesItemExceptionOccurrencesRequestBuilderGetRequestConf QueryParameters *ItemEventsItemInstancesItemExceptionOccurrencesRequestBuilderGetQueryParameters } // ByEventId2 provides operations to manage the exceptionOccurrences property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesRequestBuilder) ByEventId2(eventId2 string)(*ItemEventsItemInstancesItemExceptionOccurrencesEventItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -75,6 +76,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesRequestBuilder) Delta()( return NewItemEventsItemInstancesItemExceptionOccurrencesDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemInstancesItemExceptionOccurrencesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -95,6 +97,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesRequestBuilder) Get(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } // ToGetRequestInformation get exceptionOccurrences from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemExceptionOccurrencesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +112,7 @@ func (m *ItemEventsItemInstancesItemExceptionOccurrencesRequestBuilder) ToGetReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemInstancesItemExceptionOccurrencesRequestBuilder when successful func (m *ItemEventsItemInstancesItemExceptionOccurrencesRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemInstancesItemExceptionOccurrencesRequestBuilder) { return NewItemEventsItemInstancesItemExceptionOccurrencesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_instances_item_extensions_count_request_builder.go b/users/item_events_item_instances_item_extensions_count_request_builder.go index a0d11390c62..1083127b907 100644 --- a/users/item_events_item_instances_item_extensions_count_request_builder.go +++ b/users/item_events_item_instances_item_extensions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemEventsItemInstancesItemExtensionsCountRequestBuilder(rawUrl string, return NewItemEventsItemInstancesItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemInstancesItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemEventsItemInstancesItemExtensionsCountRequestBuilder) Get(ctx conte return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemEventsItemInstancesItemExtensionsCountRequestBuilder) ToGetRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemInstancesItemExtensionsCountRequestBuilder when successful func (m *ItemEventsItemInstancesItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemInstancesItemExtensionsCountRequestBuilder) { return NewItemEventsItemInstancesItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_instances_item_extensions_extension_item_request_builder.go b/users/item_events_item_instances_item_extensions_extension_item_request_builder.go index ef2ceb23cc8..0314573b641 100644 --- a/users/item_events_item_instances_item_extensions_extension_item_request_builder.go +++ b/users/item_events_item_instances_item_extensions_extension_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilder(rawUrl return NewItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilder) Delet return nil } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilder) Get(c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilder) Patch return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilder) ToDel return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilder) ToGet return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilder) ToPat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilder) { return NewItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_instances_item_extensions_request_builder.go b/users/item_events_item_instances_item_extensions_request_builder.go index 42800f2d438..80157dd7835 100644 --- a/users/item_events_item_instances_item_extensions_request_builder.go +++ b/users/item_events_item_instances_item_extensions_request_builder.go @@ -47,6 +47,7 @@ type ItemEventsItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemEventsItemInstancesItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemEventsItemInstancesItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemEventsItemInstancesItemExtensionsRequestBuilder) Count()(*ItemEvent return NewItemEventsItemInstancesItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemInstancesItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemEventsItemInstancesItemExtensionsRequestBuilder) Get(ctx context.Co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemInstancesItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemEventsItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemEventsItemInstancesItemExtensionsRequestBuilder) Post(ctx context.C return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the event. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemEventsItemInstancesItemExtensionsRequestBuilder) ToGetRequestInform return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemEventsItemInstancesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemEventsItemInstancesItemExtensionsRequestBuilder) ToPostRequestInfor return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemInstancesItemExtensionsRequestBuilder when successful func (m *ItemEventsItemInstancesItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemInstancesItemExtensionsRequestBuilder) { return NewItemEventsItemInstancesItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_instances_item_forward_request_builder.go b/users/item_events_item_instances_item_forward_request_builder.go index d2fd98781b1..91d6b9a1b47 100644 --- a/users/item_events_item_instances_item_forward_request_builder.go +++ b/users/item_events_item_instances_item_forward_request_builder.go @@ -31,6 +31,7 @@ func NewItemEventsItemInstancesItemForwardRequestBuilder(rawUrl string, requestA return NewItemEventsItemInstancesItemForwardRequestBuilderInternal(urlParams, requestAdapter) } // Post this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemEventsItemInstancesItemForwardRequestBuilder) Post(ctx context.Cont return nil } // ToPostRequestInformation this action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesItemForwardRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemEventsItemInstancesItemForwardPostRequestBodyable, requestConfiguration *ItemEventsItemInstancesItemForwardRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemEventsItemInstancesItemForwardRequestBuilder) ToPostRequestInformat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemInstancesItemForwardRequestBuilder when successful func (m *ItemEventsItemInstancesItemForwardRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemInstancesItemForwardRequestBuilder) { return NewItemEventsItemInstancesItemForwardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_instances_item_permanent_delete_request_builder.go b/users/item_events_item_instances_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..c6ba3ccce45 --- /dev/null +++ b/users/item_events_item_instances_item_permanent_delete_request_builder.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemEventsItemInstancesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemEventsItemInstancesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemEventsItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemEventsItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemEventsItemInstancesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemEventsItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemEventsItemInstancesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemEventsItemInstancesItemPermanentDeleteRequestBuilder) { + m := &ItemEventsItemInstancesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/instances/{event%2Did1}/permanentDelete", pathParameters), + } + return m +} +// NewItemEventsItemInstancesItemPermanentDeleteRequestBuilder instantiates a new ItemEventsItemInstancesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemEventsItemInstancesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemEventsItemInstancesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemEventsItemInstancesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemEventsItemInstancesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemEventsItemInstancesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemInstancesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemEventsItemInstancesItemPermanentDeleteRequestBuilder when successful +func (m *ItemEventsItemInstancesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemInstancesItemPermanentDeleteRequestBuilder) { + return NewItemEventsItemInstancesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_events_item_instances_item_snooze_reminder_request_builder.go b/users/item_events_item_instances_item_snooze_reminder_request_builder.go index 24a5e15d788..edaf2c77d50 100644 --- a/users/item_events_item_instances_item_snooze_reminder_request_builder.go +++ b/users/item_events_item_instances_item_snooze_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemEventsItemInstancesItemSnoozeReminderRequestBuilder(rawUrl string, r return NewItemEventsItemInstancesItemSnoozeReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemEventsItemInstancesItemSnoozeReminderRequestBuilder) Post(ctx conte return nil } // ToPostRequestInformation postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesItemSnoozeReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemEventsItemInstancesItemSnoozeReminderPostRequestBodyable, requestConfiguration *ItemEventsItemInstancesItemSnoozeReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemEventsItemInstancesItemSnoozeReminderRequestBuilder) ToPostRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemInstancesItemSnoozeReminderRequestBuilder when successful func (m *ItemEventsItemInstancesItemSnoozeReminderRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemInstancesItemSnoozeReminderRequestBuilder) { return NewItemEventsItemInstancesItemSnoozeReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_instances_item_tentatively_accept_request_builder.go b/users/item_events_item_instances_item_tentatively_accept_request_builder.go index 83d98384f94..ba32e82d6f6 100644 --- a/users/item_events_item_instances_item_tentatively_accept_request_builder.go +++ b/users/item_events_item_instances_item_tentatively_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemEventsItemInstancesItemTentativelyAcceptRequestBuilder(rawUrl string return NewItemEventsItemInstancesItemTentativelyAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemEventsItemInstancesItemTentativelyAcceptRequestBuilder) Post(ctx co return nil } // ToPostRequestInformation tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesItemTentativelyAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemEventsItemInstancesItemTentativelyAcceptPostRequestBodyable, requestConfiguration *ItemEventsItemInstancesItemTentativelyAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemEventsItemInstancesItemTentativelyAcceptRequestBuilder) ToPostReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemInstancesItemTentativelyAcceptRequestBuilder when successful func (m *ItemEventsItemInstancesItemTentativelyAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemInstancesItemTentativelyAcceptRequestBuilder) { return NewItemEventsItemInstancesItemTentativelyAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_instances_request_builder.go b/users/item_events_item_instances_request_builder.go index af4bdd09b4b..3d7635c8e62 100644 --- a/users/item_events_item_instances_request_builder.go +++ b/users/item_events_item_instances_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemEventsItemInstancesRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemEventsItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ItemEventsItemInstancesRequestBuilderGetQueryParameters the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. type ItemEventsItemInstancesRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -44,6 +44,7 @@ type ItemEventsItemInstancesRequestBuilderGetRequestConfiguration struct { QueryParameters *ItemEventsItemInstancesRequestBuilderGetQueryParameters } // ByEventId1 provides operations to manage the instances property of the microsoft.graph.event entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemInstancesEventItemRequestBuilder when successful func (m *ItemEventsItemInstancesRequestBuilder) ByEventId1(eventId1 string)(*ItemEventsItemInstancesEventItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -78,7 +79,8 @@ func (m *ItemEventsItemInstancesRequestBuilder) Count()(*ItemEventsItemInstances func (m *ItemEventsItemInstancesRequestBuilder) Delta()(*ItemEventsItemInstancesDeltaRequestBuilder) { return NewItemEventsItemInstancesDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Get the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsItemInstancesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsItemInstancesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -98,7 +100,8 @@ func (m *ItemEventsItemInstancesRequestBuilder) Get(ctx context.Context, request } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } -// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern, and exceptions that have been modified, but doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// ToGetRequestInformation the occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemInstancesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemInstancesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,6 +116,7 @@ func (m *ItemEventsItemInstancesRequestBuilder) ToGetRequestInformation(ctx cont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemInstancesRequestBuilder when successful func (m *ItemEventsItemInstancesRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemInstancesRequestBuilder) { return NewItemEventsItemInstancesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_permanent_delete_request_builder.go b/users/item_events_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..f6f75e14967 --- /dev/null +++ b/users/item_events_item_permanent_delete_request_builder.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemEventsItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemEventsItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemEventsItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemEventsItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemEventsItemPermanentDeleteRequestBuilderInternal instantiates a new ItemEventsItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemEventsItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemEventsItemPermanentDeleteRequestBuilder) { + m := &ItemEventsItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/permanentDelete", pathParameters), + } + return m +} +// NewItemEventsItemPermanentDeleteRequestBuilder instantiates a new ItemEventsItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemEventsItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemEventsItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemEventsItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/event-permanentdelete?view=graph-rest-beta +func (m *ItemEventsItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemEventsItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemEventsItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemEventsItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemEventsItemPermanentDeleteRequestBuilder when successful +func (m *ItemEventsItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemPermanentDeleteRequestBuilder) { + return NewItemEventsItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_events_item_snooze_reminder_request_builder.go b/users/item_events_item_snooze_reminder_request_builder.go index 8e4880952e1..bcadd2bc60d 100644 --- a/users/item_events_item_snooze_reminder_request_builder.go +++ b/users/item_events_item_snooze_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemEventsItemSnoozeReminderRequestBuilder(rawUrl string, requestAdapter return NewItemEventsItemSnoozeReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemEventsItemSnoozeReminderRequestBuilder) Post(ctx context.Context, b return nil } // ToPostRequestInformation postpone a reminder for an event in a user calendar until a new time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemSnoozeReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemEventsItemSnoozeReminderPostRequestBodyable, requestConfiguration *ItemEventsItemSnoozeReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemEventsItemSnoozeReminderRequestBuilder) ToPostRequestInformation(ct return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemSnoozeReminderRequestBuilder when successful func (m *ItemEventsItemSnoozeReminderRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemSnoozeReminderRequestBuilder) { return NewItemEventsItemSnoozeReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_item_tentatively_accept_request_builder.go b/users/item_events_item_tentatively_accept_request_builder.go index 5acbc0cae45..44b509ebd4f 100644 --- a/users/item_events_item_tentatively_accept_request_builder.go +++ b/users/item_events_item_tentatively_accept_request_builder.go @@ -31,6 +31,7 @@ func NewItemEventsItemTentativelyAcceptRequestBuilder(rawUrl string, requestAdap return NewItemEventsItemTentativelyAcceptRequestBuilderInternal(urlParams, requestAdapter) } // Post tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemEventsItemTentativelyAcceptRequestBuilder) Post(ctx context.Context return nil } // ToPostRequestInformation tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsItemTentativelyAcceptRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemEventsItemTentativelyAcceptPostRequestBodyable, requestConfiguration *ItemEventsItemTentativelyAcceptRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemEventsItemTentativelyAcceptRequestBuilder) ToPostRequestInformation return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsItemTentativelyAcceptRequestBuilder when successful func (m *ItemEventsItemTentativelyAcceptRequestBuilder) WithUrl(rawUrl string)(*ItemEventsItemTentativelyAcceptRequestBuilder) { return NewItemEventsItemTentativelyAcceptRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_events_request_builder.go b/users/item_events_request_builder.go index 695b37b0ce4..c10cf8bf18c 100644 --- a/users/item_events_request_builder.go +++ b/users/item_events_request_builder.go @@ -47,6 +47,7 @@ type ItemEventsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByEventId provides operations to manage the events property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsEventItemRequestBuilder when successful func (m *ItemEventsRequestBuilder) ByEventId(eventId string)(*ItemEventsEventItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemEventsRequestBuilder) Delta()(*ItemEventsDeltaRequestBuilder) { return NewItemEventsDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the user's events. The default is to show events under the Default Calendar. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemEventsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemEventsRequestBuilder) Get(ctx context.Context, requestConfiguration return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EventCollectionResponseable), nil } // Post create new navigation property to events for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Eventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemEventsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, requestConfiguration *ItemEventsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, error) { @@ -122,6 +125,7 @@ func (m *ItemEventsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable), nil } // ToGetRequestInformation the user's events. The default is to show events under the Default Calendar. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemEventsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemEventsRequestBuilder) ToGetRequestInformation(ctx context.Context, return requestInfo, nil } // ToPostRequestInformation create new navigation property to events for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemEventsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Eventable, requestConfiguration *ItemEventsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemEventsRequestBuilder) ToPostRequestInformation(ctx context.Context, return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemEventsRequestBuilder when successful func (m *ItemEventsRequestBuilder) WithUrl(rawUrl string)(*ItemEventsRequestBuilder) { return NewItemEventsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_export_device_and_app_management_data_request_builder.go b/users/item_export_device_and_app_management_data_request_builder.go index ff3070469df..066783bd55a 100644 --- a/users/item_export_device_and_app_management_data_request_builder.go +++ b/users/item_export_device_and_app_management_data_request_builder.go @@ -32,6 +32,7 @@ func NewItemExportDeviceAndAppManagementDataRequestBuilder(rawUrl string, reques return NewItemExportDeviceAndAppManagementDataRequestBuilderInternal(urlParams, requestAdapter) } // Get invoke function exportDeviceAndAppManagementData +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DeviceAndAppManagementDataable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemExportDeviceAndAppManagementDataRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemExportDeviceAndAppManagementDataRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceAndAppManagementDataable, error) { @@ -52,6 +53,7 @@ func (m *ItemExportDeviceAndAppManagementDataRequestBuilder) Get(ctx context.Con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceAndAppManagementDataable), nil } // ToGetRequestInformation invoke function exportDeviceAndAppManagementData +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemExportDeviceAndAppManagementDataRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemExportDeviceAndAppManagementDataRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -63,6 +65,7 @@ func (m *ItemExportDeviceAndAppManagementDataRequestBuilder) ToGetRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemExportDeviceAndAppManagementDataRequestBuilder when successful func (m *ItemExportDeviceAndAppManagementDataRequestBuilder) WithUrl(rawUrl string)(*ItemExportDeviceAndAppManagementDataRequestBuilder) { return NewItemExportDeviceAndAppManagementDataRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_export_device_and_app_management_data_with_skip_with_top_request_builder.go b/users/item_export_device_and_app_management_data_with_skip_with_top_request_builder.go index 1e179da8655..8ec7fe393ad 100644 --- a/users/item_export_device_and_app_management_data_with_skip_with_top_request_builder.go +++ b/users/item_export_device_and_app_management_data_with_skip_with_top_request_builder.go @@ -39,6 +39,7 @@ func NewItemExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder(rawUrl return NewItemExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilderInternal(urlParams, requestAdapter, nil, nil) } // Get invoke function exportDeviceAndAppManagementData +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DeviceAndAppManagementDataable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceAndAppManagementDataable, error) { @@ -59,6 +60,7 @@ func (m *ItemExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder) Get( return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceAndAppManagementDataable), nil } // ToGetRequestInformation invoke function exportDeviceAndAppManagementData +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder) ToGe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder when successful func (m *ItemExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder) WithUrl(rawUrl string)(*ItemExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder) { return NewItemExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_export_personal_data_request_builder.go b/users/item_export_personal_data_request_builder.go index 0cad55e2469..053c5bdbada 100644 --- a/users/item_export_personal_data_request_builder.go +++ b/users/item_export_personal_data_request_builder.go @@ -31,6 +31,7 @@ func NewItemExportPersonalDataRequestBuilder(rawUrl string, requestAdapter i2ae4 return NewItemExportPersonalDataRequestBuilderInternal(urlParams, requestAdapter) } // Post submit a data policy operation request from a company administrator or an application to export an organizational user's data. This data includes the user's data stored in OneDrive and their activity reports. For more information about exporting data while complying with regulations, see Data Subject Requests and the GDPR and CCPA. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemExportPersonalDataRequestBuilder) Post(ctx context.Context, body It return nil } // ToPostRequestInformation submit a data policy operation request from a company administrator or an application to export an organizational user's data. This data includes the user's data stored in OneDrive and their activity reports. For more information about exporting data while complying with regulations, see Data Subject Requests and the GDPR and CCPA. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemExportPersonalDataRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemExportPersonalDataPostRequestBodyable, requestConfiguration *ItemExportPersonalDataRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemExportPersonalDataRequestBuilder) ToPostRequestInformation(ctx cont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemExportPersonalDataRequestBuilder when successful func (m *ItemExportPersonalDataRequestBuilder) WithUrl(rawUrl string)(*ItemExportPersonalDataRequestBuilder) { return NewItemExportPersonalDataRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_extensions_count_request_builder.go b/users/item_extensions_count_request_builder.go index 5b9ee1aeb74..7c934c2d5ee 100644 --- a/users/item_extensions_count_request_builder.go +++ b/users/item_extensions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemExtensionsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187 return NewItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConf return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context. return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemExtensionsCountRequestBuilder when successful func (m *ItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemExtensionsCountRequestBuilder) { return NewItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_extensions_extension_item_request_builder.go b/users/item_extensions_extension_item_request_builder.go index 33e4f91359f..2f5935dd4aa 100644 --- a/users/item_extensions_extension_item_request_builder.go +++ b/users/item_extensions_extension_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemExtensionsExtensionItemRequestBuilder(rawUrl string, requestAdapter return NewItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, return nil } // Get the collection of open extensions defined for the user. Supports $expand. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, req return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, b return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(c return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the user. Supports $expand. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ct return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemExtensionsExtensionItemRequestBuilder) { return NewItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_extensions_request_builder.go b/users/item_extensions_request_builder.go index 4525fab0d90..33c025e7c1e 100644 --- a/users/item_extensions_request_builder.go +++ b/users/item_extensions_request_builder.go @@ -47,6 +47,7 @@ type ItemExtensionsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemExtensionsRequestBuilder) Count()(*ItemExtensionsCountRequestBuilde return NewItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the user. Supports $expand. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfigura return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762 return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the user. Supports $expand. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Conte return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Cont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemExtensionsRequestBuilder when successful func (m *ItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemExtensionsRequestBuilder) { return NewItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_find_meeting_times_request_builder.go b/users/item_find_meeting_times_request_builder.go index 9b928db87ac..be6b02c00b7 100644 --- a/users/item_find_meeting_times_request_builder.go +++ b/users/item_find_meeting_times_request_builder.go @@ -32,6 +32,7 @@ func NewItemFindMeetingTimesRequestBuilder(rawUrl string, requestAdapter i2ae418 return NewItemFindMeetingTimesRequestBuilderInternal(urlParams, requestAdapter) } // Post suggest meeting times and locations based on organizer and attendee availability, and time or location constraints specified as parameters. If findMeetingTimes cannot return any meeting suggestions, the response would indicate a reason in the emptySuggestionsReason property.Based on this value, you can better adjust the parameters and call findMeetingTimes again. The algorithm used to suggest meeting times and locations undergoes fine-tuning from time to time. In scenarios like test environments where the input parameters and calendar data remain static, expect that the suggested results may differ over time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MeetingTimeSuggestionsResultable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemFindMeetingTimesRequestBuilder) Post(ctx context.Context, body Item return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingTimeSuggestionsResultable), nil } // ToPostRequestInformation suggest meeting times and locations based on organizer and attendee availability, and time or location constraints specified as parameters. If findMeetingTimes cannot return any meeting suggestions, the response would indicate a reason in the emptySuggestionsReason property.Based on this value, you can better adjust the parameters and call findMeetingTimes again. The algorithm used to suggest meeting times and locations undergoes fine-tuning from time to time. In scenarios like test environments where the input parameters and calendar data remain static, expect that the suggested results may differ over time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemFindMeetingTimesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemFindMeetingTimesPostRequestBodyable, requestConfiguration *ItemFindMeetingTimesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemFindMeetingTimesRequestBuilder) ToPostRequestInformation(ctx contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemFindMeetingTimesRequestBuilder when successful func (m *ItemFindMeetingTimesRequestBuilder) WithUrl(rawUrl string)(*ItemFindMeetingTimesRequestBuilder) { return NewItemFindMeetingTimesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_find_room_lists_request_builder.go b/users/item_find_room_lists_request_builder.go index 4bf94ea4c38..ae997a1a65f 100644 --- a/users/item_find_room_lists_request_builder.go +++ b/users/item_find_room_lists_request_builder.go @@ -70,6 +70,7 @@ func (m *ItemFindRoomListsRequestBuilder) Get(ctx context.Context, requestConfig return res.(ItemFindRoomListsResponseable), nil } // GetAsFindRoomListsGetResponse get the room lists defined in a tenant, as represented by their emailAddress objects. Tenants can organize meeting rooms into room lists. In this API, each meeting room and room list is represented by an emailAddress instance.You can get all the room lists in the tenant, get all the rooms in the tenant, or get all the rooms in a specific room list. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemFindRoomListsGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -93,6 +94,7 @@ func (m *ItemFindRoomListsRequestBuilder) GetAsFindRoomListsGetResponse(ctx cont return res.(ItemFindRoomListsGetResponseable), nil } // ToGetRequestInformation get the room lists defined in a tenant, as represented by their emailAddress objects. Tenants can organize meeting rooms into room lists. In this API, each meeting room and room list is represented by an emailAddress instance.You can get all the room lists in the tenant, get all the rooms in the tenant, or get all the rooms in a specific room list. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemFindRoomListsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemFindRoomListsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -107,6 +109,7 @@ func (m *ItemFindRoomListsRequestBuilder) ToGetRequestInformation(ctx context.Co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemFindRoomListsRequestBuilder when successful func (m *ItemFindRoomListsRequestBuilder) WithUrl(rawUrl string)(*ItemFindRoomListsRequestBuilder) { return NewItemFindRoomListsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_find_rooms_request_builder.go b/users/item_find_rooms_request_builder.go index a798b78760f..dceb96c982b 100644 --- a/users/item_find_rooms_request_builder.go +++ b/users/item_find_rooms_request_builder.go @@ -67,6 +67,7 @@ func (m *ItemFindRoomsRequestBuilder) Get(ctx context.Context, requestConfigurat return res.(ItemFindRoomsResponseable), nil } // GetAsFindRoomsGetResponse invoke function findRooms +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemFindRoomsGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemFindRoomsRequestBuilder) GetAsFindRoomsGetResponse(ctx context.Context, requestConfiguration *ItemFindRoomsRequestBuilderGetRequestConfiguration)(ItemFindRoomsGetResponseable, error) { @@ -87,6 +88,7 @@ func (m *ItemFindRoomsRequestBuilder) GetAsFindRoomsGetResponse(ctx context.Cont return res.(ItemFindRoomsGetResponseable), nil } // ToGetRequestInformation invoke function findRooms +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemFindRoomsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemFindRoomsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -101,6 +103,7 @@ func (m *ItemFindRoomsRequestBuilder) ToGetRequestInformation(ctx context.Contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemFindRoomsRequestBuilder when successful func (m *ItemFindRoomsRequestBuilder) WithUrl(rawUrl string)(*ItemFindRoomsRequestBuilder) { return NewItemFindRoomsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_find_rooms_with_room_list_request_builder.go b/users/item_find_rooms_with_room_list_request_builder.go index 2498ffcdddf..79bf8f00f7b 100644 --- a/users/item_find_rooms_with_room_list_request_builder.go +++ b/users/item_find_rooms_with_room_list_request_builder.go @@ -70,6 +70,7 @@ func (m *ItemFindRoomsWithRoomListRequestBuilder) Get(ctx context.Context, reque return res.(ItemFindRoomsWithRoomListResponseable), nil } // GetAsFindRoomsWithRoomListGetResponse invoke function findRooms +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemFindRoomsWithRoomListGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemFindRoomsWithRoomListRequestBuilder) GetAsFindRoomsWithRoomListGetResponse(ctx context.Context, requestConfiguration *ItemFindRoomsWithRoomListRequestBuilderGetRequestConfiguration)(ItemFindRoomsWithRoomListGetResponseable, error) { @@ -90,6 +91,7 @@ func (m *ItemFindRoomsWithRoomListRequestBuilder) GetAsFindRoomsWithRoomListGetR return res.(ItemFindRoomsWithRoomListGetResponseable), nil } // ToGetRequestInformation invoke function findRooms +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemFindRoomsWithRoomListRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemFindRoomsWithRoomListRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -104,6 +106,7 @@ func (m *ItemFindRoomsWithRoomListRequestBuilder) ToGetRequestInformation(ctx co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemFindRoomsWithRoomListRequestBuilder when successful func (m *ItemFindRoomsWithRoomListRequestBuilder) WithUrl(rawUrl string)(*ItemFindRoomsWithRoomListRequestBuilder) { return NewItemFindRoomsWithRoomListRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_followed_sites_add_request_builder.go b/users/item_followed_sites_add_request_builder.go index b6fc2ee4c88..3c4667b202e 100644 --- a/users/item_followed_sites_add_request_builder.go +++ b/users/item_followed_sites_add_request_builder.go @@ -55,6 +55,7 @@ func (m *ItemFollowedSitesAddRequestBuilder) Post(ctx context.Context, body Item return res.(ItemFollowedSitesAddResponseable), nil } // PostAsAddPostResponse follow a user's site or multiple sites. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemFollowedSitesAddPostResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -78,6 +79,7 @@ func (m *ItemFollowedSitesAddRequestBuilder) PostAsAddPostResponse(ctx context.C return res.(ItemFollowedSitesAddPostResponseable), nil } // ToPostRequestInformation follow a user's site or multiple sites. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemFollowedSitesAddRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemFollowedSitesAddPostRequestBodyable, requestConfiguration *ItemFollowedSitesAddRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -93,6 +95,7 @@ func (m *ItemFollowedSitesAddRequestBuilder) ToPostRequestInformation(ctx contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemFollowedSitesAddRequestBuilder when successful func (m *ItemFollowedSitesAddRequestBuilder) WithUrl(rawUrl string)(*ItemFollowedSitesAddRequestBuilder) { return NewItemFollowedSitesAddRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_followed_sites_count_request_builder.go b/users/item_followed_sites_count_request_builder.go index 9e513235abf..af576a44fee 100644 --- a/users/item_followed_sites_count_request_builder.go +++ b/users/item_followed_sites_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemFollowedSitesCountRequestBuilder(rawUrl string, requestAdapter i2ae4 return NewItemFollowedSitesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemFollowedSitesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemFollowedSitesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemFollowedSitesCountRequestBuilder) Get(ctx context.Context, requestC return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemFollowedSitesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemFollowedSitesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemFollowedSitesCountRequestBuilder) ToGetRequestInformation(ctx conte return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemFollowedSitesCountRequestBuilder when successful func (m *ItemFollowedSitesCountRequestBuilder) WithUrl(rawUrl string)(*ItemFollowedSitesCountRequestBuilder) { return NewItemFollowedSitesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_followed_sites_remove_request_builder.go b/users/item_followed_sites_remove_request_builder.go index 534fefbbf41..cb6f8fb5514 100644 --- a/users/item_followed_sites_remove_request_builder.go +++ b/users/item_followed_sites_remove_request_builder.go @@ -55,6 +55,7 @@ func (m *ItemFollowedSitesRemoveRequestBuilder) Post(ctx context.Context, body I return res.(ItemFollowedSitesRemoveResponseable), nil } // PostAsRemovePostResponse unfollow a user's site or multiple sites. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemFollowedSitesRemovePostResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -78,6 +79,7 @@ func (m *ItemFollowedSitesRemoveRequestBuilder) PostAsRemovePostResponse(ctx con return res.(ItemFollowedSitesRemovePostResponseable), nil } // ToPostRequestInformation unfollow a user's site or multiple sites. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemFollowedSitesRemoveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemFollowedSitesRemovePostRequestBodyable, requestConfiguration *ItemFollowedSitesRemoveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -93,6 +95,7 @@ func (m *ItemFollowedSitesRemoveRequestBuilder) ToPostRequestInformation(ctx con return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemFollowedSitesRemoveRequestBuilder when successful func (m *ItemFollowedSitesRemoveRequestBuilder) WithUrl(rawUrl string)(*ItemFollowedSitesRemoveRequestBuilder) { return NewItemFollowedSitesRemoveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_followed_sites_request_builder.go b/users/item_followed_sites_request_builder.go index a177adbb666..672cb75844a 100644 --- a/users/item_followed_sites_request_builder.go +++ b/users/item_followed_sites_request_builder.go @@ -45,6 +45,7 @@ func (m *ItemFollowedSitesRequestBuilder) Add()(*ItemFollowedSitesAddRequestBuil return NewItemFollowedSitesAddRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // BySiteId provides operations to manage the followedSites property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemFollowedSitesSiteItemRequestBuilder when successful func (m *ItemFollowedSitesRequestBuilder) BySiteId(siteId string)(*ItemFollowedSitesSiteItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -75,6 +76,7 @@ func (m *ItemFollowedSitesRequestBuilder) Count()(*ItemFollowedSitesCountRequest return NewItemFollowedSitesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get followedSites from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SiteCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemFollowedSitesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemFollowedSitesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SiteCollectionResponseable, error) { @@ -100,6 +102,7 @@ func (m *ItemFollowedSitesRequestBuilder) Remove()(*ItemFollowedSitesRemoveReque return NewItemFollowedSitesRemoveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get followedSites from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemFollowedSitesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemFollowedSitesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -114,6 +117,7 @@ func (m *ItemFollowedSitesRequestBuilder) ToGetRequestInformation(ctx context.Co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemFollowedSitesRequestBuilder when successful func (m *ItemFollowedSitesRequestBuilder) WithUrl(rawUrl string)(*ItemFollowedSitesRequestBuilder) { return NewItemFollowedSitesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_followed_sites_site_item_request_builder.go b/users/item_followed_sites_site_item_request_builder.go index 59d5e12ad70..a36e94e7ff2 100644 --- a/users/item_followed_sites_site_item_request_builder.go +++ b/users/item_followed_sites_site_item_request_builder.go @@ -41,6 +41,7 @@ func NewItemFollowedSitesSiteItemRequestBuilder(rawUrl string, requestAdapter i2 return NewItemFollowedSitesSiteItemRequestBuilderInternal(urlParams, requestAdapter) } // Get get followedSites from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Siteable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemFollowedSitesSiteItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemFollowedSitesSiteItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable, error) { @@ -61,6 +62,7 @@ func (m *ItemFollowedSitesSiteItemRequestBuilder) Get(ctx context.Context, reque return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Siteable), nil } // ToGetRequestInformation get followedSites from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemFollowedSitesSiteItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemFollowedSitesSiteItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemFollowedSitesSiteItemRequestBuilder) ToGetRequestInformation(ctx co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemFollowedSitesSiteItemRequestBuilder when successful func (m *ItemFollowedSitesSiteItemRequestBuilder) WithUrl(rawUrl string)(*ItemFollowedSitesSiteItemRequestBuilder) { return NewItemFollowedSitesSiteItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_get_effective_device_enrollment_configurations_request_builder.go b/users/item_get_effective_device_enrollment_configurations_request_builder.go index 090ec01ad67..a88af2b2cc9 100644 --- a/users/item_get_effective_device_enrollment_configurations_request_builder.go +++ b/users/item_get_effective_device_enrollment_configurations_request_builder.go @@ -73,6 +73,7 @@ func (m *ItemGetEffectiveDeviceEnrollmentConfigurationsRequestBuilder) Get(ctx c return res.(ItemGetEffectiveDeviceEnrollmentConfigurationsResponseable), nil } // GetAsGetEffectiveDeviceEnrollmentConfigurationsGetResponse invoke function getEffectiveDeviceEnrollmentConfigurations +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemGetEffectiveDeviceEnrollmentConfigurationsGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemGetEffectiveDeviceEnrollmentConfigurationsRequestBuilder) GetAsGetEffectiveDeviceEnrollmentConfigurationsGetResponse(ctx context.Context, requestConfiguration *ItemGetEffectiveDeviceEnrollmentConfigurationsRequestBuilderGetRequestConfiguration)(ItemGetEffectiveDeviceEnrollmentConfigurationsGetResponseable, error) { @@ -93,6 +94,7 @@ func (m *ItemGetEffectiveDeviceEnrollmentConfigurationsRequestBuilder) GetAsGetE return res.(ItemGetEffectiveDeviceEnrollmentConfigurationsGetResponseable), nil } // ToGetRequestInformation invoke function getEffectiveDeviceEnrollmentConfigurations +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemGetEffectiveDeviceEnrollmentConfigurationsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemGetEffectiveDeviceEnrollmentConfigurationsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -107,6 +109,7 @@ func (m *ItemGetEffectiveDeviceEnrollmentConfigurationsRequestBuilder) ToGetRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemGetEffectiveDeviceEnrollmentConfigurationsRequestBuilder when successful func (m *ItemGetEffectiveDeviceEnrollmentConfigurationsRequestBuilder) WithUrl(rawUrl string)(*ItemGetEffectiveDeviceEnrollmentConfigurationsRequestBuilder) { return NewItemGetEffectiveDeviceEnrollmentConfigurationsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_get_logged_on_managed_devices_request_builder.go b/users/item_get_logged_on_managed_devices_request_builder.go index 9ff7f285c31..5effa4ca645 100644 --- a/users/item_get_logged_on_managed_devices_request_builder.go +++ b/users/item_get_logged_on_managed_devices_request_builder.go @@ -73,6 +73,7 @@ func (m *ItemGetLoggedOnManagedDevicesRequestBuilder) Get(ctx context.Context, r return res.(ItemGetLoggedOnManagedDevicesResponseable), nil } // GetAsGetLoggedOnManagedDevicesGetResponse invoke function getLoggedOnManagedDevices +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemGetLoggedOnManagedDevicesGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemGetLoggedOnManagedDevicesRequestBuilder) GetAsGetLoggedOnManagedDevicesGetResponse(ctx context.Context, requestConfiguration *ItemGetLoggedOnManagedDevicesRequestBuilderGetRequestConfiguration)(ItemGetLoggedOnManagedDevicesGetResponseable, error) { @@ -93,6 +94,7 @@ func (m *ItemGetLoggedOnManagedDevicesRequestBuilder) GetAsGetLoggedOnManagedDev return res.(ItemGetLoggedOnManagedDevicesGetResponseable), nil } // ToGetRequestInformation invoke function getLoggedOnManagedDevices +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemGetLoggedOnManagedDevicesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemGetLoggedOnManagedDevicesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -107,6 +109,7 @@ func (m *ItemGetLoggedOnManagedDevicesRequestBuilder) ToGetRequestInformation(ct return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemGetLoggedOnManagedDevicesRequestBuilder when successful func (m *ItemGetLoggedOnManagedDevicesRequestBuilder) WithUrl(rawUrl string)(*ItemGetLoggedOnManagedDevicesRequestBuilder) { return NewItemGetLoggedOnManagedDevicesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_get_mail_tips_request_builder.go b/users/item_get_mail_tips_request_builder.go index 74b6a3e1d5a..0fdec1b6d1f 100644 --- a/users/item_get_mail_tips_request_builder.go +++ b/users/item_get_mail_tips_request_builder.go @@ -55,6 +55,7 @@ func (m *ItemGetMailTipsRequestBuilder) Post(ctx context.Context, body ItemGetMa return res.(ItemGetMailTipsResponseable), nil } // PostAsGetMailTipsPostResponse get the MailTips of one or more recipients as available to the signed-in user. Note that by making a POST call to the getMailTips action, you can request specific types of MailTips tobe returned for more than one recipient at one time. The requested MailTips are returned in a mailTips collection. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemGetMailTipsPostResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -78,6 +79,7 @@ func (m *ItemGetMailTipsRequestBuilder) PostAsGetMailTipsPostResponse(ctx contex return res.(ItemGetMailTipsPostResponseable), nil } // ToPostRequestInformation get the MailTips of one or more recipients as available to the signed-in user. Note that by making a POST call to the getMailTips action, you can request specific types of MailTips tobe returned for more than one recipient at one time. The requested MailTips are returned in a mailTips collection. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemGetMailTipsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemGetMailTipsPostRequestBodyable, requestConfiguration *ItemGetMailTipsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -93,6 +95,7 @@ func (m *ItemGetMailTipsRequestBuilder) ToPostRequestInformation(ctx context.Con return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemGetMailTipsRequestBuilder when successful func (m *ItemGetMailTipsRequestBuilder) WithUrl(rawUrl string)(*ItemGetMailTipsRequestBuilder) { return NewItemGetMailTipsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_get_managed_app_diagnostic_statuses_request_builder.go b/users/item_get_managed_app_diagnostic_statuses_request_builder.go index bafb04e1fd5..e50835e7758 100644 --- a/users/item_get_managed_app_diagnostic_statuses_request_builder.go +++ b/users/item_get_managed_app_diagnostic_statuses_request_builder.go @@ -67,6 +67,7 @@ func (m *ItemGetManagedAppDiagnosticStatusesRequestBuilder) Get(ctx context.Cont return res.(ItemGetManagedAppDiagnosticStatusesResponseable), nil } // GetAsGetManagedAppDiagnosticStatusesGetResponse gets diagnostics validation status for a given user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemGetManagedAppDiagnosticStatusesGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemGetManagedAppDiagnosticStatusesRequestBuilder) GetAsGetManagedAppDiagnosticStatusesGetResponse(ctx context.Context, requestConfiguration *ItemGetManagedAppDiagnosticStatusesRequestBuilderGetRequestConfiguration)(ItemGetManagedAppDiagnosticStatusesGetResponseable, error) { @@ -87,6 +88,7 @@ func (m *ItemGetManagedAppDiagnosticStatusesRequestBuilder) GetAsGetManagedAppDi return res.(ItemGetManagedAppDiagnosticStatusesGetResponseable), nil } // ToGetRequestInformation gets diagnostics validation status for a given user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemGetManagedAppDiagnosticStatusesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemGetManagedAppDiagnosticStatusesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -101,6 +103,7 @@ func (m *ItemGetManagedAppDiagnosticStatusesRequestBuilder) ToGetRequestInformat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemGetManagedAppDiagnosticStatusesRequestBuilder when successful func (m *ItemGetManagedAppDiagnosticStatusesRequestBuilder) WithUrl(rawUrl string)(*ItemGetManagedAppDiagnosticStatusesRequestBuilder) { return NewItemGetManagedAppDiagnosticStatusesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_get_managed_app_policies_request_builder.go b/users/item_get_managed_app_policies_request_builder.go index 83d8519f5d1..792e665deed 100644 --- a/users/item_get_managed_app_policies_request_builder.go +++ b/users/item_get_managed_app_policies_request_builder.go @@ -73,6 +73,7 @@ func (m *ItemGetManagedAppPoliciesRequestBuilder) Get(ctx context.Context, reque return res.(ItemGetManagedAppPoliciesResponseable), nil } // GetAsGetManagedAppPoliciesGetResponse gets app restrictions for a given user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemGetManagedAppPoliciesGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemGetManagedAppPoliciesRequestBuilder) GetAsGetManagedAppPoliciesGetResponse(ctx context.Context, requestConfiguration *ItemGetManagedAppPoliciesRequestBuilderGetRequestConfiguration)(ItemGetManagedAppPoliciesGetResponseable, error) { @@ -93,6 +94,7 @@ func (m *ItemGetManagedAppPoliciesRequestBuilder) GetAsGetManagedAppPoliciesGetR return res.(ItemGetManagedAppPoliciesGetResponseable), nil } // ToGetRequestInformation gets app restrictions for a given user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemGetManagedAppPoliciesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemGetManagedAppPoliciesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -107,6 +109,7 @@ func (m *ItemGetManagedAppPoliciesRequestBuilder) ToGetRequestInformation(ctx co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemGetManagedAppPoliciesRequestBuilder when successful func (m *ItemGetManagedAppPoliciesRequestBuilder) WithUrl(rawUrl string)(*ItemGetManagedAppPoliciesRequestBuilder) { return NewItemGetManagedAppPoliciesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_get_managed_devices_with_app_failures_request_builder.go b/users/item_get_managed_devices_with_app_failures_request_builder.go index 219142fd460..0ddb2943f8e 100644 --- a/users/item_get_managed_devices_with_app_failures_request_builder.go +++ b/users/item_get_managed_devices_with_app_failures_request_builder.go @@ -67,6 +67,7 @@ func (m *ItemGetManagedDevicesWithAppFailuresRequestBuilder) Get(ctx context.Con return res.(ItemGetManagedDevicesWithAppFailuresResponseable), nil } // GetAsGetManagedDevicesWithAppFailuresGetResponse retrieves the list of devices with failed apps +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemGetManagedDevicesWithAppFailuresGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemGetManagedDevicesWithAppFailuresRequestBuilder) GetAsGetManagedDevicesWithAppFailuresGetResponse(ctx context.Context, requestConfiguration *ItemGetManagedDevicesWithAppFailuresRequestBuilderGetRequestConfiguration)(ItemGetManagedDevicesWithAppFailuresGetResponseable, error) { @@ -87,6 +88,7 @@ func (m *ItemGetManagedDevicesWithAppFailuresRequestBuilder) GetAsGetManagedDevi return res.(ItemGetManagedDevicesWithAppFailuresGetResponseable), nil } // ToGetRequestInformation retrieves the list of devices with failed apps +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemGetManagedDevicesWithAppFailuresRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemGetManagedDevicesWithAppFailuresRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -101,6 +103,7 @@ func (m *ItemGetManagedDevicesWithAppFailuresRequestBuilder) ToGetRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemGetManagedDevicesWithAppFailuresRequestBuilder when successful func (m *ItemGetManagedDevicesWithAppFailuresRequestBuilder) WithUrl(rawUrl string)(*ItemGetManagedDevicesWithAppFailuresRequestBuilder) { return NewItemGetManagedDevicesWithAppFailuresRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_get_managed_devices_with_failed_or_pending_apps_request_builder.go b/users/item_get_managed_devices_with_failed_or_pending_apps_request_builder.go index 68b6c2e8819..ef22dc4dc7c 100644 --- a/users/item_get_managed_devices_with_failed_or_pending_apps_request_builder.go +++ b/users/item_get_managed_devices_with_failed_or_pending_apps_request_builder.go @@ -67,6 +67,7 @@ func (m *ItemGetManagedDevicesWithFailedOrPendingAppsRequestBuilder) Get(ctx con return res.(ItemGetManagedDevicesWithFailedOrPendingAppsResponseable), nil } // GetAsGetManagedDevicesWithFailedOrPendingAppsGetResponse retrieves the list of devices with failed or pending apps +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemGetManagedDevicesWithFailedOrPendingAppsGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemGetManagedDevicesWithFailedOrPendingAppsRequestBuilder) GetAsGetManagedDevicesWithFailedOrPendingAppsGetResponse(ctx context.Context, requestConfiguration *ItemGetManagedDevicesWithFailedOrPendingAppsRequestBuilderGetRequestConfiguration)(ItemGetManagedDevicesWithFailedOrPendingAppsGetResponseable, error) { @@ -87,6 +88,7 @@ func (m *ItemGetManagedDevicesWithFailedOrPendingAppsRequestBuilder) GetAsGetMan return res.(ItemGetManagedDevicesWithFailedOrPendingAppsGetResponseable), nil } // ToGetRequestInformation retrieves the list of devices with failed or pending apps +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemGetManagedDevicesWithFailedOrPendingAppsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemGetManagedDevicesWithFailedOrPendingAppsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -101,6 +103,7 @@ func (m *ItemGetManagedDevicesWithFailedOrPendingAppsRequestBuilder) ToGetReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemGetManagedDevicesWithFailedOrPendingAppsRequestBuilder when successful func (m *ItemGetManagedDevicesWithFailedOrPendingAppsRequestBuilder) WithUrl(rawUrl string)(*ItemGetManagedDevicesWithFailedOrPendingAppsRequestBuilder) { return NewItemGetManagedDevicesWithFailedOrPendingAppsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_get_member_groups_request_builder.go b/users/item_get_member_groups_request_builder.go index 61dc837e1cf..ad33cccf272 100644 --- a/users/item_get_member_groups_request_builder.go +++ b/users/item_get_member_groups_request_builder.go @@ -55,6 +55,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 DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemGetMemberGroupsPostResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -78,6 +79,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 DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // 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) @@ -93,6 +95,7 @@ func (m *ItemGetMemberGroupsRequestBuilder) ToPostRequestInformation(ctx context return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemGetMemberGroupsRequestBuilder when successful func (m *ItemGetMemberGroupsRequestBuilder) WithUrl(rawUrl string)(*ItemGetMemberGroupsRequestBuilder) { return NewItemGetMemberGroupsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_get_member_objects_request_builder.go b/users/item_get_member_objects_request_builder.go index c34b4b84b1c..84209ded929 100644 --- a/users/item_get_member_objects_request_builder.go +++ b/users/item_get_member_objects_request_builder.go @@ -52,6 +52,7 @@ func (m *ItemGetMemberObjectsRequestBuilder) Post(ctx context.Context, body Item return res.(ItemGetMemberObjectsResponseable), nil } // PostAsGetMemberObjectsPostResponse invoke action getMemberObjects +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemGetMemberObjectsPostResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemGetMemberObjectsRequestBuilder) PostAsGetMemberObjectsPostResponse(ctx context.Context, body ItemGetMemberObjectsPostRequestBodyable, requestConfiguration *ItemGetMemberObjectsRequestBuilderPostRequestConfiguration)(ItemGetMemberObjectsPostResponseable, error) { @@ -72,6 +73,7 @@ func (m *ItemGetMemberObjectsRequestBuilder) PostAsGetMemberObjectsPostResponse( return res.(ItemGetMemberObjectsPostResponseable), nil } // ToPostRequestInformation invoke action getMemberObjects +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemGetMemberObjectsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemGetMemberObjectsPostRequestBodyable, requestConfiguration *ItemGetMemberObjectsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -87,6 +89,7 @@ func (m *ItemGetMemberObjectsRequestBuilder) ToPostRequestInformation(ctx contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemGetMemberObjectsRequestBuilder when successful func (m *ItemGetMemberObjectsRequestBuilder) WithUrl(rawUrl string)(*ItemGetMemberObjectsRequestBuilder) { return NewItemGetMemberObjectsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_get_password_single_sign_on_credentials_request_builder.go b/users/item_get_password_single_sign_on_credentials_request_builder.go index 0de88f3ff0c..27017d0dbbd 100644 --- a/users/item_get_password_single_sign_on_credentials_request_builder.go +++ b/users/item_get_password_single_sign_on_credentials_request_builder.go @@ -55,6 +55,7 @@ func (m *ItemGetPasswordSingleSignOnCredentialsRequestBuilder) Post(ctx context. return res.(ItemGetPasswordSingleSignOnCredentialsResponseable), nil } // PostAsGetPasswordSingleSignOnCredentialsPostResponse get the list of password-based single sign-on credentials for a given user. This API returns the encrypted passwords as null or empty strings. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemGetPasswordSingleSignOnCredentialsPostResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -78,6 +79,7 @@ func (m *ItemGetPasswordSingleSignOnCredentialsRequestBuilder) PostAsGetPassword return res.(ItemGetPasswordSingleSignOnCredentialsPostResponseable), nil } // ToPostRequestInformation get the list of password-based single sign-on credentials for a given user. This API returns the encrypted passwords as null or empty strings. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemGetPasswordSingleSignOnCredentialsRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemGetPasswordSingleSignOnCredentialsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -89,6 +91,7 @@ func (m *ItemGetPasswordSingleSignOnCredentialsRequestBuilder) ToPostRequestInfo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemGetPasswordSingleSignOnCredentialsRequestBuilder when successful func (m *ItemGetPasswordSingleSignOnCredentialsRequestBuilder) WithUrl(rawUrl string)(*ItemGetPasswordSingleSignOnCredentialsRequestBuilder) { return NewItemGetPasswordSingleSignOnCredentialsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_inference_classification_overrides_count_request_builder.go b/users/item_inference_classification_overrides_count_request_builder.go index 69c737310ec..45b7438404c 100644 --- a/users/item_inference_classification_overrides_count_request_builder.go +++ b/users/item_inference_classification_overrides_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemInferenceClassificationOverridesCountRequestBuilder(rawUrl string, r return NewItemInferenceClassificationOverridesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInferenceClassificationOverridesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInferenceClassificationOverridesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemInferenceClassificationOverridesCountRequestBuilder) Get(ctx contex return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInferenceClassificationOverridesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemInferenceClassificationOverridesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemInferenceClassificationOverridesCountRequestBuilder) ToGetRequestIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInferenceClassificationOverridesCountRequestBuilder when successful func (m *ItemInferenceClassificationOverridesCountRequestBuilder) WithUrl(rawUrl string)(*ItemInferenceClassificationOverridesCountRequestBuilder) { return NewItemInferenceClassificationOverridesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_inference_classification_overrides_inference_classification_override_item_request_builder.go b/users/item_inference_classification_overrides_inference_classification_override_item_request_builder.go index 986efddced5..7497b3379df 100644 --- a/users/item_inference_classification_overrides_inference_classification_override_item_request_builder.go +++ b/users/item_inference_classification_overrides_inference_classification_override_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemInferenceClassificationOverridesInferenceClassificationOverrideItemR return NewItemInferenceClassificationOverridesInferenceClassificationOverrideItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property overrides for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInferenceClassificationOverridesInferenceClassificationOverrideItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemInferenceClassificationOverridesInferenceClassificationOverrideItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemInferenceClassificationOverridesInferenceClassificationOverrideItem return nil } // Get a set of overrides for a user to always classify messages from specific senders in certain ways: focused, or other. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a InferenceClassificationOverrideable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInferenceClassificationOverridesInferenceClassificationOverrideItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInferenceClassificationOverridesInferenceClassificationOverrideItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InferenceClassificationOverrideable, error) { @@ -91,6 +93,7 @@ func (m *ItemInferenceClassificationOverridesInferenceClassificationOverrideItem return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InferenceClassificationOverrideable), nil } // Patch update the navigation property overrides in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a InferenceClassificationOverrideable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInferenceClassificationOverridesInferenceClassificationOverrideItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InferenceClassificationOverrideable, requestConfiguration *ItemInferenceClassificationOverridesInferenceClassificationOverrideItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InferenceClassificationOverrideable, error) { @@ -111,6 +114,7 @@ func (m *ItemInferenceClassificationOverridesInferenceClassificationOverrideItem return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InferenceClassificationOverrideable), nil } // ToDeleteRequestInformation delete navigation property overrides for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInferenceClassificationOverridesInferenceClassificationOverrideItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemInferenceClassificationOverridesInferenceClassificationOverrideItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemInferenceClassificationOverridesInferenceClassificationOverrideItem return requestInfo, nil } // ToGetRequestInformation a set of overrides for a user to always classify messages from specific senders in certain ways: focused, or other. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInferenceClassificationOverridesInferenceClassificationOverrideItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemInferenceClassificationOverridesInferenceClassificationOverrideItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemInferenceClassificationOverridesInferenceClassificationOverrideItem return requestInfo, nil } // ToPatchRequestInformation update the navigation property overrides in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInferenceClassificationOverridesInferenceClassificationOverrideItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InferenceClassificationOverrideable, requestConfiguration *ItemInferenceClassificationOverridesInferenceClassificationOverrideItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemInferenceClassificationOverridesInferenceClassificationOverrideItem return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInferenceClassificationOverridesInferenceClassificationOverrideItemRequestBuilder when successful func (m *ItemInferenceClassificationOverridesInferenceClassificationOverrideItemRequestBuilder) WithUrl(rawUrl string)(*ItemInferenceClassificationOverridesInferenceClassificationOverrideItemRequestBuilder) { return NewItemInferenceClassificationOverridesInferenceClassificationOverrideItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_inference_classification_overrides_request_builder.go b/users/item_inference_classification_overrides_request_builder.go index f2afa251c88..a5c12cd7326 100644 --- a/users/item_inference_classification_overrides_request_builder.go +++ b/users/item_inference_classification_overrides_request_builder.go @@ -47,6 +47,7 @@ type ItemInferenceClassificationOverridesRequestBuilderPostRequestConfiguration Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByInferenceClassificationOverrideId provides operations to manage the overrides property of the microsoft.graph.inferenceClassification entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInferenceClassificationOverridesInferenceClassificationOverrideItemRequestBuilder when successful func (m *ItemInferenceClassificationOverridesRequestBuilder) ByInferenceClassificationOverrideId(inferenceClassificationOverrideId string)(*ItemInferenceClassificationOverridesInferenceClassificationOverrideItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemInferenceClassificationOverridesRequestBuilder) Count()(*ItemInfere return NewItemInferenceClassificationOverridesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get a set of overrides for a user to always classify messages from specific senders in certain ways: focused, or other. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a InferenceClassificationOverrideCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInferenceClassificationOverridesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInferenceClassificationOverridesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InferenceClassificationOverrideCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemInferenceClassificationOverridesRequestBuilder) Get(ctx context.Con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InferenceClassificationOverrideCollectionResponseable), nil } // Post create new navigation property to overrides for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a InferenceClassificationOverrideable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInferenceClassificationOverridesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InferenceClassificationOverrideable, requestConfiguration *ItemInferenceClassificationOverridesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InferenceClassificationOverrideable, error) { @@ -117,6 +120,7 @@ func (m *ItemInferenceClassificationOverridesRequestBuilder) Post(ctx context.Co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InferenceClassificationOverrideable), nil } // ToGetRequestInformation a set of overrides for a user to always classify messages from specific senders in certain ways: focused, or other. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInferenceClassificationOverridesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemInferenceClassificationOverridesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemInferenceClassificationOverridesRequestBuilder) ToGetRequestInforma return requestInfo, nil } // ToPostRequestInformation create new navigation property to overrides for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInferenceClassificationOverridesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InferenceClassificationOverrideable, requestConfiguration *ItemInferenceClassificationOverridesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemInferenceClassificationOverridesRequestBuilder) ToPostRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInferenceClassificationOverridesRequestBuilder when successful func (m *ItemInferenceClassificationOverridesRequestBuilder) WithUrl(rawUrl string)(*ItemInferenceClassificationOverridesRequestBuilder) { return NewItemInferenceClassificationOverridesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_inference_classification_request_builder.go b/users/item_inference_classification_request_builder.go index 70c68a5d66d..89442128bb6 100644 --- a/users/item_inference_classification_request_builder.go +++ b/users/item_inference_classification_request_builder.go @@ -48,6 +48,7 @@ func NewItemInferenceClassificationRequestBuilder(rawUrl string, requestAdapter return NewItemInferenceClassificationRequestBuilderInternal(urlParams, requestAdapter) } // Get relevance classification of the user's messages based on explicit designations that override inferred relevance or importance. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a InferenceClassificationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInferenceClassificationRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInferenceClassificationRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InferenceClassificationable, error) { @@ -73,6 +74,7 @@ func (m *ItemInferenceClassificationRequestBuilder) Overrides()(*ItemInferenceCl return NewItemInferenceClassificationOverridesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property inferenceClassification in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a InferenceClassificationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInferenceClassificationRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InferenceClassificationable, requestConfiguration *ItemInferenceClassificationRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InferenceClassificationable, error) { @@ -93,6 +95,7 @@ func (m *ItemInferenceClassificationRequestBuilder) Patch(ctx context.Context, b return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InferenceClassificationable), nil } // ToGetRequestInformation relevance classification of the user's messages based on explicit designations that override inferred relevance or importance. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInferenceClassificationRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemInferenceClassificationRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -107,6 +110,7 @@ func (m *ItemInferenceClassificationRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // ToPatchRequestInformation update the navigation property inferenceClassification in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInferenceClassificationRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InferenceClassificationable, requestConfiguration *ItemInferenceClassificationRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemInferenceClassificationRequestBuilder) ToPatchRequestInformation(ct return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInferenceClassificationRequestBuilder when successful func (m *ItemInferenceClassificationRequestBuilder) WithUrl(rawUrl string)(*ItemInferenceClassificationRequestBuilder) { return NewItemInferenceClassificationRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_information_protection_bitlocker_recovery_keys_bitlocker_recovery_key_item_request_builder.go b/users/item_information_protection_bitlocker_recovery_keys_bitlocker_recovery_key_item_request_builder.go index 72ad7c5b7bc..9ee3b7ce361 100644 --- a/users/item_information_protection_bitlocker_recovery_keys_bitlocker_recovery_key_item_request_builder.go +++ b/users/item_information_protection_bitlocker_recovery_keys_bitlocker_recovery_key_item_request_builder.go @@ -41,6 +41,7 @@ func NewItemInformationProtectionBitlockerRecoveryKeysBitlockerRecoveryKeyItemRe return NewItemInformationProtectionBitlockerRecoveryKeysBitlockerRecoveryKeyItemRequestBuilderInternal(urlParams, requestAdapter) } // Get the recovery keys associated with the bitlocker entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a BitlockerRecoveryKeyable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionBitlockerRecoveryKeysBitlockerRecoveryKeyItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInformationProtectionBitlockerRecoveryKeysBitlockerRecoveryKeyItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BitlockerRecoveryKeyable, error) { @@ -61,6 +62,7 @@ func (m *ItemInformationProtectionBitlockerRecoveryKeysBitlockerRecoveryKeyItemR return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BitlockerRecoveryKeyable), nil } // ToGetRequestInformation the recovery keys associated with the bitlocker entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionBitlockerRecoveryKeysBitlockerRecoveryKeyItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemInformationProtectionBitlockerRecoveryKeysBitlockerRecoveryKeyItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemInformationProtectionBitlockerRecoveryKeysBitlockerRecoveryKeyItemR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInformationProtectionBitlockerRecoveryKeysBitlockerRecoveryKeyItemRequestBuilder when successful func (m *ItemInformationProtectionBitlockerRecoveryKeysBitlockerRecoveryKeyItemRequestBuilder) WithUrl(rawUrl string)(*ItemInformationProtectionBitlockerRecoveryKeysBitlockerRecoveryKeyItemRequestBuilder) { return NewItemInformationProtectionBitlockerRecoveryKeysBitlockerRecoveryKeyItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_information_protection_bitlocker_recovery_keys_count_request_builder.go b/users/item_information_protection_bitlocker_recovery_keys_count_request_builder.go index d55613f01f6..19c00a8c4cf 100644 --- a/users/item_information_protection_bitlocker_recovery_keys_count_request_builder.go +++ b/users/item_information_protection_bitlocker_recovery_keys_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemInformationProtectionBitlockerRecoveryKeysCountRequestBuilder(rawUrl return NewItemInformationProtectionBitlockerRecoveryKeysCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionBitlockerRecoveryKeysCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInformationProtectionBitlockerRecoveryKeysCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemInformationProtectionBitlockerRecoveryKeysCountRequestBuilder) Get( return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionBitlockerRecoveryKeysCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemInformationProtectionBitlockerRecoveryKeysCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemInformationProtectionBitlockerRecoveryKeysCountRequestBuilder) ToGe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInformationProtectionBitlockerRecoveryKeysCountRequestBuilder when successful func (m *ItemInformationProtectionBitlockerRecoveryKeysCountRequestBuilder) WithUrl(rawUrl string)(*ItemInformationProtectionBitlockerRecoveryKeysCountRequestBuilder) { return NewItemInformationProtectionBitlockerRecoveryKeysCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_information_protection_bitlocker_recovery_keys_request_builder.go b/users/item_information_protection_bitlocker_recovery_keys_request_builder.go index c6a3b7a57b7..530955eaa25 100644 --- a/users/item_information_protection_bitlocker_recovery_keys_request_builder.go +++ b/users/item_information_protection_bitlocker_recovery_keys_request_builder.go @@ -40,6 +40,7 @@ type ItemInformationProtectionBitlockerRecoveryKeysRequestBuilderGetRequestConfi QueryParameters *ItemInformationProtectionBitlockerRecoveryKeysRequestBuilderGetQueryParameters } // ByBitlockerRecoveryKeyId provides operations to manage the recoveryKeys property of the microsoft.graph.bitlocker entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInformationProtectionBitlockerRecoveryKeysBitlockerRecoveryKeyItemRequestBuilder when successful func (m *ItemInformationProtectionBitlockerRecoveryKeysRequestBuilder) ByBitlockerRecoveryKeyId(bitlockerRecoveryKeyId string)(*ItemInformationProtectionBitlockerRecoveryKeysBitlockerRecoveryKeyItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -70,6 +71,7 @@ func (m *ItemInformationProtectionBitlockerRecoveryKeysRequestBuilder) Count()(* return NewItemInformationProtectionBitlockerRecoveryKeysCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the recovery keys associated with the bitlocker entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a BitlockerRecoveryKeyCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionBitlockerRecoveryKeysRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInformationProtectionBitlockerRecoveryKeysRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BitlockerRecoveryKeyCollectionResponseable, error) { @@ -90,6 +92,7 @@ func (m *ItemInformationProtectionBitlockerRecoveryKeysRequestBuilder) Get(ctx c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BitlockerRecoveryKeyCollectionResponseable), nil } // ToGetRequestInformation the recovery keys associated with the bitlocker entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionBitlockerRecoveryKeysRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemInformationProtectionBitlockerRecoveryKeysRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -104,6 +107,7 @@ func (m *ItemInformationProtectionBitlockerRecoveryKeysRequestBuilder) ToGetRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInformationProtectionBitlockerRecoveryKeysRequestBuilder when successful func (m *ItemInformationProtectionBitlockerRecoveryKeysRequestBuilder) WithUrl(rawUrl string)(*ItemInformationProtectionBitlockerRecoveryKeysRequestBuilder) { return NewItemInformationProtectionBitlockerRecoveryKeysRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_information_protection_bitlocker_request_builder.go b/users/item_information_protection_bitlocker_request_builder.go index 7faded1f8ac..656b72f568e 100644 --- a/users/item_information_protection_bitlocker_request_builder.go +++ b/users/item_information_protection_bitlocker_request_builder.go @@ -41,6 +41,7 @@ func NewItemInformationProtectionBitlockerRequestBuilder(rawUrl string, requestA return NewItemInformationProtectionBitlockerRequestBuilderInternal(urlParams, requestAdapter) } // Get get bitlocker from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Bitlockerable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionBitlockerRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInformationProtectionBitlockerRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Bitlockerable, error) { @@ -66,6 +67,7 @@ func (m *ItemInformationProtectionBitlockerRequestBuilder) RecoveryKeys()(*ItemI return NewItemInformationProtectionBitlockerRecoveryKeysRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get bitlocker from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionBitlockerRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemInformationProtectionBitlockerRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -80,6 +82,7 @@ func (m *ItemInformationProtectionBitlockerRequestBuilder) ToGetRequestInformati return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInformationProtectionBitlockerRequestBuilder when successful func (m *ItemInformationProtectionBitlockerRequestBuilder) WithUrl(rawUrl string)(*ItemInformationProtectionBitlockerRequestBuilder) { return NewItemInformationProtectionBitlockerRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_information_protection_data_loss_prevention_policies_count_request_builder.go b/users/item_information_protection_data_loss_prevention_policies_count_request_builder.go index 06f40e55ea5..596579520c0 100644 --- a/users/item_information_protection_data_loss_prevention_policies_count_request_builder.go +++ b/users/item_information_protection_data_loss_prevention_policies_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemInformationProtectionDataLossPreventionPoliciesCountRequestBuilder(r return NewItemInformationProtectionDataLossPreventionPoliciesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionDataLossPreventionPoliciesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInformationProtectionDataLossPreventionPoliciesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemInformationProtectionDataLossPreventionPoliciesCountRequestBuilder) return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionDataLossPreventionPoliciesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemInformationProtectionDataLossPreventionPoliciesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemInformationProtectionDataLossPreventionPoliciesCountRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInformationProtectionDataLossPreventionPoliciesCountRequestBuilder when successful func (m *ItemInformationProtectionDataLossPreventionPoliciesCountRequestBuilder) WithUrl(rawUrl string)(*ItemInformationProtectionDataLossPreventionPoliciesCountRequestBuilder) { return NewItemInformationProtectionDataLossPreventionPoliciesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_information_protection_data_loss_prevention_policies_evaluate_request_builder.go b/users/item_information_protection_data_loss_prevention_policies_evaluate_request_builder.go index 431c1b10f1c..1b3e1c6a386 100644 --- a/users/item_information_protection_data_loss_prevention_policies_evaluate_request_builder.go +++ b/users/item_information_protection_data_loss_prevention_policies_evaluate_request_builder.go @@ -32,6 +32,7 @@ func NewItemInformationProtectionDataLossPreventionPoliciesEvaluateRequestBuilde return NewItemInformationProtectionDataLossPreventionPoliciesEvaluateRequestBuilderInternal(urlParams, requestAdapter) } // Post invoke action evaluate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DlpEvaluatePoliciesJobResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionDataLossPreventionPoliciesEvaluateRequestBuilder) Post(ctx context.Context, body ItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBodyable, requestConfiguration *ItemInformationProtectionDataLossPreventionPoliciesEvaluateRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DlpEvaluatePoliciesJobResponseable, error) { @@ -52,6 +53,7 @@ func (m *ItemInformationProtectionDataLossPreventionPoliciesEvaluateRequestBuild return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DlpEvaluatePoliciesJobResponseable), nil } // ToPostRequestInformation invoke action evaluate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionDataLossPreventionPoliciesEvaluateRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemInformationProtectionDataLossPreventionPoliciesEvaluatePostRequestBodyable, requestConfiguration *ItemInformationProtectionDataLossPreventionPoliciesEvaluateRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -67,6 +69,7 @@ func (m *ItemInformationProtectionDataLossPreventionPoliciesEvaluateRequestBuild return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInformationProtectionDataLossPreventionPoliciesEvaluateRequestBuilder when successful func (m *ItemInformationProtectionDataLossPreventionPoliciesEvaluateRequestBuilder) WithUrl(rawUrl string)(*ItemInformationProtectionDataLossPreventionPoliciesEvaluateRequestBuilder) { return NewItemInformationProtectionDataLossPreventionPoliciesEvaluateRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_information_protection_data_loss_prevention_policies_request_builder.go b/users/item_information_protection_data_loss_prevention_policies_request_builder.go index 1d577ea81c5..5132203b5ea 100644 --- a/users/item_information_protection_data_loss_prevention_policies_request_builder.go +++ b/users/item_information_protection_data_loss_prevention_policies_request_builder.go @@ -47,6 +47,7 @@ type ItemInformationProtectionDataLossPreventionPoliciesRequestBuilderPostReques Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByDataLossPreventionPolicyId provides operations to manage the dataLossPreventionPolicies property of the microsoft.graph.informationProtection entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilder when successful func (m *ItemInformationProtectionDataLossPreventionPoliciesRequestBuilder) ByDataLossPreventionPolicyId(dataLossPreventionPolicyId string)(*ItemInformationProtectionDataLossPreventionPoliciesDataLossPreventionPolicyItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemInformationProtectionDataLossPreventionPoliciesRequestBuilder) Eval return NewItemInformationProtectionDataLossPreventionPoliciesEvaluateRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get dataLossPreventionPolicies from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DataLossPreventionPolicyCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionDataLossPreventionPoliciesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInformationProtectionDataLossPreventionPoliciesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DataLossPreventionPolicyCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemInformationProtectionDataLossPreventionPoliciesRequestBuilder) Get( return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DataLossPreventionPolicyCollectionResponseable), nil } // Post create new navigation property to dataLossPreventionPolicies for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DataLossPreventionPolicyable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionDataLossPreventionPoliciesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DataLossPreventionPolicyable, requestConfiguration *ItemInformationProtectionDataLossPreventionPoliciesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DataLossPreventionPolicyable, error) { @@ -122,6 +125,7 @@ func (m *ItemInformationProtectionDataLossPreventionPoliciesRequestBuilder) Post return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DataLossPreventionPolicyable), nil } // ToGetRequestInformation get dataLossPreventionPolicies from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionDataLossPreventionPoliciesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemInformationProtectionDataLossPreventionPoliciesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemInformationProtectionDataLossPreventionPoliciesRequestBuilder) ToGe return requestInfo, nil } // ToPostRequestInformation create new navigation property to dataLossPreventionPolicies for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionDataLossPreventionPoliciesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DataLossPreventionPolicyable, requestConfiguration *ItemInformationProtectionDataLossPreventionPoliciesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemInformationProtectionDataLossPreventionPoliciesRequestBuilder) ToPo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInformationProtectionDataLossPreventionPoliciesRequestBuilder when successful func (m *ItemInformationProtectionDataLossPreventionPoliciesRequestBuilder) WithUrl(rawUrl string)(*ItemInformationProtectionDataLossPreventionPoliciesRequestBuilder) { return NewItemInformationProtectionDataLossPreventionPoliciesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_information_protection_decrypt_buffer_request_builder.go b/users/item_information_protection_decrypt_buffer_request_builder.go index 76051f50f3f..fc8f7ff0398 100644 --- a/users/item_information_protection_decrypt_buffer_request_builder.go +++ b/users/item_information_protection_decrypt_buffer_request_builder.go @@ -32,7 +32,7 @@ func NewItemInformationProtectionDecryptBufferRequestBuilder(rawUrl string, requ return NewItemInformationProtectionDecryptBufferRequestBuilderInternal(urlParams, requestAdapter) } // Post invoke action decryptBuffer -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a BufferDecryptionResultable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionDecryptBufferRequestBuilder) Post(ctx context.Context, body ItemInformationProtectionDecryptBufferPostRequestBodyable, requestConfiguration *ItemInformationProtectionDecryptBufferRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BufferDecryptionResultable, error) { @@ -53,7 +53,7 @@ func (m *ItemInformationProtectionDecryptBufferRequestBuilder) Post(ctx context. return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BufferDecryptionResultable), nil } // ToPostRequestInformation invoke action decryptBuffer -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionDecryptBufferRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemInformationProtectionDecryptBufferPostRequestBodyable, requestConfiguration *ItemInformationProtectionDecryptBufferRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -69,7 +69,7 @@ func (m *ItemInformationProtectionDecryptBufferRequestBuilder) ToPostRequestInfo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInformationProtectionDecryptBufferRequestBuilder when successful func (m *ItemInformationProtectionDecryptBufferRequestBuilder) WithUrl(rawUrl string)(*ItemInformationProtectionDecryptBufferRequestBuilder) { return NewItemInformationProtectionDecryptBufferRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_information_protection_encrypt_buffer_request_builder.go b/users/item_information_protection_encrypt_buffer_request_builder.go index 2671b62a6b8..bb312e11d25 100644 --- a/users/item_information_protection_encrypt_buffer_request_builder.go +++ b/users/item_information_protection_encrypt_buffer_request_builder.go @@ -32,7 +32,7 @@ func NewItemInformationProtectionEncryptBufferRequestBuilder(rawUrl string, requ return NewItemInformationProtectionEncryptBufferRequestBuilderInternal(urlParams, requestAdapter) } // Post invoke action encryptBuffer -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a BufferEncryptionResultable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionEncryptBufferRequestBuilder) Post(ctx context.Context, body ItemInformationProtectionEncryptBufferPostRequestBodyable, requestConfiguration *ItemInformationProtectionEncryptBufferRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BufferEncryptionResultable, error) { @@ -53,7 +53,7 @@ func (m *ItemInformationProtectionEncryptBufferRequestBuilder) Post(ctx context. return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BufferEncryptionResultable), nil } // ToPostRequestInformation invoke action encryptBuffer -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionEncryptBufferRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemInformationProtectionEncryptBufferPostRequestBodyable, requestConfiguration *ItemInformationProtectionEncryptBufferRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -69,7 +69,7 @@ func (m *ItemInformationProtectionEncryptBufferRequestBuilder) ToPostRequestInfo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInformationProtectionEncryptBufferRequestBuilder when successful func (m *ItemInformationProtectionEncryptBufferRequestBuilder) WithUrl(rawUrl string)(*ItemInformationProtectionEncryptBufferRequestBuilder) { return NewItemInformationProtectionEncryptBufferRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_information_protection_policy_labels_count_request_builder.go b/users/item_information_protection_policy_labels_count_request_builder.go index 7c2592ace30..6a497544968 100644 --- a/users/item_information_protection_policy_labels_count_request_builder.go +++ b/users/item_information_protection_policy_labels_count_request_builder.go @@ -40,7 +40,7 @@ func NewItemInformationProtectionPolicyLabelsCountRequestBuilder(rawUrl string, return NewItemInformationProtectionPolicyLabelsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionPolicyLabelsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInformationProtectionPolicyLabelsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -61,7 +61,7 @@ func (m *ItemInformationProtectionPolicyLabelsCountRequestBuilder) Get(ctx conte return res.(*int32), nil } // ToGetRequestInformation get the number of the resource -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionPolicyLabelsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemInformationProtectionPolicyLabelsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -76,7 +76,7 @@ func (m *ItemInformationProtectionPolicyLabelsCountRequestBuilder) ToGetRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInformationProtectionPolicyLabelsCountRequestBuilder when successful func (m *ItemInformationProtectionPolicyLabelsCountRequestBuilder) WithUrl(rawUrl string)(*ItemInformationProtectionPolicyLabelsCountRequestBuilder) { return NewItemInformationProtectionPolicyLabelsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_information_protection_policy_labels_evaluate_application_request_builder.go b/users/item_information_protection_policy_labels_evaluate_application_request_builder.go index 59a1aa918fa..927eec0936f 100644 --- a/users/item_information_protection_policy_labels_evaluate_application_request_builder.go +++ b/users/item_information_protection_policy_labels_evaluate_application_request_builder.go @@ -55,7 +55,7 @@ func (m *ItemInformationProtectionPolicyLabelsEvaluateApplicationRequestBuilder) return res.(ItemInformationProtectionPolicyLabelsEvaluateApplicationResponseable), nil } // PostAsEvaluateApplicationPostResponse compute the information protection label that should be applied and return the set of actions that must be taken to correctly label the information. This API is useful when a label should be set manually or explicitly by a user or service, rather than automatically based on file contents. Given contentInfo, which includes existing content metadata key/value pairs, and labelingOptions as an input, the API returns an informationProtectionAction object that contains one of more of the following: -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemInformationProtectionPolicyLabelsEvaluateApplicationPostResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -79,7 +79,7 @@ func (m *ItemInformationProtectionPolicyLabelsEvaluateApplicationRequestBuilder) return res.(ItemInformationProtectionPolicyLabelsEvaluateApplicationPostResponseable), nil } // ToPostRequestInformation compute the information protection label that should be applied and return the set of actions that must be taken to correctly label the information. This API is useful when a label should be set manually or explicitly by a user or service, rather than automatically based on file contents. Given contentInfo, which includes existing content metadata key/value pairs, and labelingOptions as an input, the API returns an informationProtectionAction object that contains one of more of the following: -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionPolicyLabelsEvaluateApplicationRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemInformationProtectionPolicyLabelsEvaluateApplicationPostRequestBodyable, requestConfiguration *ItemInformationProtectionPolicyLabelsEvaluateApplicationRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,7 +95,7 @@ func (m *ItemInformationProtectionPolicyLabelsEvaluateApplicationRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInformationProtectionPolicyLabelsEvaluateApplicationRequestBuilder when successful func (m *ItemInformationProtectionPolicyLabelsEvaluateApplicationRequestBuilder) WithUrl(rawUrl string)(*ItemInformationProtectionPolicyLabelsEvaluateApplicationRequestBuilder) { return NewItemInformationProtectionPolicyLabelsEvaluateApplicationRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_information_protection_policy_labels_evaluate_classification_results_request_builder.go b/users/item_information_protection_policy_labels_evaluate_classification_results_request_builder.go index 512240cfa3d..b639a39a93d 100644 --- a/users/item_information_protection_policy_labels_evaluate_classification_results_request_builder.go +++ b/users/item_information_protection_policy_labels_evaluate_classification_results_request_builder.go @@ -55,7 +55,7 @@ func (m *ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsReque return res.(ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsResponseable), nil } // PostAsEvaluateClassificationResultsPostResponse using classification results, compute the information protection label that should be applied and return the set of actions that must be taken to correctly label the information. This API is useful when a label should be set automatically based on classification of the file contents, rather than labeled directly by a user or service. To evaluate based on classification results, provide contentInfo, which includes existing content metadata key/value pairs, and classification results. The API returns an informationProtectionAction that contains one of more of the following: -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsPostResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -79,7 +79,7 @@ func (m *ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsReque return res.(ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsPostResponseable), nil } // ToPostRequestInformation using classification results, compute the information protection label that should be applied and return the set of actions that must be taken to correctly label the information. This API is useful when a label should be set automatically based on classification of the file contents, rather than labeled directly by a user or service. To evaluate based on classification results, provide contentInfo, which includes existing content metadata key/value pairs, and classification results. The API returns an informationProtectionAction that contains one of more of the following: -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsPostRequestBodyable, requestConfiguration *ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,7 +95,7 @@ func (m *ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsRequestBuilder when successful func (m *ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsRequestBuilder) WithUrl(rawUrl string)(*ItemInformationProtectionPolicyLabelsEvaluateClassificationResultsRequestBuilder) { return NewItemInformationProtectionPolicyLabelsEvaluateClassificationResultsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_information_protection_policy_labels_evaluate_removal_request_builder.go b/users/item_information_protection_policy_labels_evaluate_removal_request_builder.go index 478bafe9aa4..b6aa485f07c 100644 --- a/users/item_information_protection_policy_labels_evaluate_removal_request_builder.go +++ b/users/item_information_protection_policy_labels_evaluate_removal_request_builder.go @@ -55,7 +55,7 @@ func (m *ItemInformationProtectionPolicyLabelsEvaluateRemovalRequestBuilder) Pos return res.(ItemInformationProtectionPolicyLabelsEvaluateRemovalResponseable), nil } // PostAsEvaluateRemovalPostResponse indicate to the consuming application what actions it should take to remove the label information. Given contentInfo as an input, which includes existing content metadata key/value pairs, the API returns an informationProtectionAction that contains some combination of one of more of the following: -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemInformationProtectionPolicyLabelsEvaluateRemovalPostResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -79,7 +79,7 @@ func (m *ItemInformationProtectionPolicyLabelsEvaluateRemovalRequestBuilder) Pos return res.(ItemInformationProtectionPolicyLabelsEvaluateRemovalPostResponseable), nil } // ToPostRequestInformation indicate to the consuming application what actions it should take to remove the label information. Given contentInfo as an input, which includes existing content metadata key/value pairs, the API returns an informationProtectionAction that contains some combination of one of more of the following: -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionPolicyLabelsEvaluateRemovalRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemInformationProtectionPolicyLabelsEvaluateRemovalPostRequestBodyable, requestConfiguration *ItemInformationProtectionPolicyLabelsEvaluateRemovalRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,7 +95,7 @@ func (m *ItemInformationProtectionPolicyLabelsEvaluateRemovalRequestBuilder) ToP return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInformationProtectionPolicyLabelsEvaluateRemovalRequestBuilder when successful func (m *ItemInformationProtectionPolicyLabelsEvaluateRemovalRequestBuilder) WithUrl(rawUrl string)(*ItemInformationProtectionPolicyLabelsEvaluateRemovalRequestBuilder) { return NewItemInformationProtectionPolicyLabelsEvaluateRemovalRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_information_protection_policy_labels_extract_label_request_builder.go b/users/item_information_protection_policy_labels_extract_label_request_builder.go index 5f6e70c4737..6ea35e24c50 100644 --- a/users/item_information_protection_policy_labels_extract_label_request_builder.go +++ b/users/item_information_protection_policy_labels_extract_label_request_builder.go @@ -32,7 +32,7 @@ func NewItemInformationProtectionPolicyLabelsExtractLabelRequestBuilder(rawUrl s return NewItemInformationProtectionPolicyLabelsExtractLabelRequestBuilderInternal(urlParams, requestAdapter) } // Post using the metadata that exists on an already-labeled piece of information, resolve the metadata to a specific sensitivity label. The contentInfo input is resolved to informationProtectionContentLabel. -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a InformationProtectionContentLabelable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -56,7 +56,7 @@ func (m *ItemInformationProtectionPolicyLabelsExtractLabelRequestBuilder) Post(c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InformationProtectionContentLabelable), nil } // ToPostRequestInformation using the metadata that exists on an already-labeled piece of information, resolve the metadata to a specific sensitivity label. The contentInfo input is resolved to informationProtectionContentLabel. -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionPolicyLabelsExtractLabelRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemInformationProtectionPolicyLabelsExtractLabelPostRequestBodyable, requestConfiguration *ItemInformationProtectionPolicyLabelsExtractLabelRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -72,7 +72,7 @@ func (m *ItemInformationProtectionPolicyLabelsExtractLabelRequestBuilder) ToPost return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInformationProtectionPolicyLabelsExtractLabelRequestBuilder when successful func (m *ItemInformationProtectionPolicyLabelsExtractLabelRequestBuilder) WithUrl(rawUrl string)(*ItemInformationProtectionPolicyLabelsExtractLabelRequestBuilder) { return NewItemInformationProtectionPolicyLabelsExtractLabelRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_information_protection_policy_labels_information_protection_label_item_request_builder.go b/users/item_information_protection_policy_labels_information_protection_label_item_request_builder.go index c601cc69332..f2bde803b78 100644 --- a/users/item_information_protection_policy_labels_information_protection_label_item_request_builder.go +++ b/users/item_information_protection_policy_labels_information_protection_label_item_request_builder.go @@ -55,7 +55,7 @@ func NewItemInformationProtectionPolicyLabelsInformationProtectionLabelItemReque return NewItemInformationProtectionPolicyLabelsInformationProtectionLabelItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property labels for users -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionPolicyLabelsInformationProtectionLabelItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemInformationProtectionPolicyLabelsInformationProtectionLabelItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -72,7 +72,7 @@ func (m *ItemInformationProtectionPolicyLabelsInformationProtectionLabelItemRequ return nil } // Get get labels from users -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a InformationProtectionLabelable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionPolicyLabelsInformationProtectionLabelItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInformationProtectionPolicyLabelsInformationProtectionLabelItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InformationProtectionLabelable, error) { @@ -93,7 +93,7 @@ func (m *ItemInformationProtectionPolicyLabelsInformationProtectionLabelItemRequ return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InformationProtectionLabelable), nil } // Patch update the navigation property labels in users -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a InformationProtectionLabelable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionPolicyLabelsInformationProtectionLabelItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InformationProtectionLabelable, requestConfiguration *ItemInformationProtectionPolicyLabelsInformationProtectionLabelItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InformationProtectionLabelable, error) { @@ -114,7 +114,7 @@ func (m *ItemInformationProtectionPolicyLabelsInformationProtectionLabelItemRequ return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InformationProtectionLabelable), nil } // ToDeleteRequestInformation delete navigation property labels for users -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionPolicyLabelsInformationProtectionLabelItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemInformationProtectionPolicyLabelsInformationProtectionLabelItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -126,7 +126,7 @@ func (m *ItemInformationProtectionPolicyLabelsInformationProtectionLabelItemRequ return requestInfo, nil } // ToGetRequestInformation get labels from users -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionPolicyLabelsInformationProtectionLabelItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemInformationProtectionPolicyLabelsInformationProtectionLabelItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,7 +141,7 @@ func (m *ItemInformationProtectionPolicyLabelsInformationProtectionLabelItemRequ return requestInfo, nil } // ToPatchRequestInformation update the navigation property labels in users -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionPolicyLabelsInformationProtectionLabelItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InformationProtectionLabelable, requestConfiguration *ItemInformationProtectionPolicyLabelsInformationProtectionLabelItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -157,7 +157,7 @@ func (m *ItemInformationProtectionPolicyLabelsInformationProtectionLabelItemRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInformationProtectionPolicyLabelsInformationProtectionLabelItemRequestBuilder when successful func (m *ItemInformationProtectionPolicyLabelsInformationProtectionLabelItemRequestBuilder) WithUrl(rawUrl string)(*ItemInformationProtectionPolicyLabelsInformationProtectionLabelItemRequestBuilder) { return NewItemInformationProtectionPolicyLabelsInformationProtectionLabelItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_information_protection_policy_labels_request_builder.go b/users/item_information_protection_policy_labels_request_builder.go index 01fb50fca33..13caa62e615 100644 --- a/users/item_information_protection_policy_labels_request_builder.go +++ b/users/item_information_protection_policy_labels_request_builder.go @@ -47,7 +47,7 @@ type ItemInformationProtectionPolicyLabelsRequestBuilderPostRequestConfiguration Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByInformationProtectionLabelId provides operations to manage the labels property of the microsoft.graph.informationProtectionPolicy entity. -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInformationProtectionPolicyLabelsInformationProtectionLabelItemRequestBuilder when successful func (m *ItemInformationProtectionPolicyLabelsRequestBuilder) ByInformationProtectionLabelId(informationProtectionLabelId string)(*ItemInformationProtectionPolicyLabelsInformationProtectionLabelItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -98,7 +98,7 @@ func (m *ItemInformationProtectionPolicyLabelsRequestBuilder) ExtractLabel()(*It return NewItemInformationProtectionPolicyLabelsExtractLabelRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get labels from users -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a InformationProtectionLabelCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionPolicyLabelsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInformationProtectionPolicyLabelsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InformationProtectionLabelCollectionResponseable, error) { @@ -119,7 +119,7 @@ func (m *ItemInformationProtectionPolicyLabelsRequestBuilder) Get(ctx context.Co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InformationProtectionLabelCollectionResponseable), nil } // Post create new navigation property to labels for users -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a InformationProtectionLabelable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionPolicyLabelsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InformationProtectionLabelable, requestConfiguration *ItemInformationProtectionPolicyLabelsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InformationProtectionLabelable, error) { @@ -140,7 +140,7 @@ func (m *ItemInformationProtectionPolicyLabelsRequestBuilder) Post(ctx context.C return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InformationProtectionLabelable), nil } // ToGetRequestInformation get labels from users -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionPolicyLabelsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemInformationProtectionPolicyLabelsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -155,7 +155,7 @@ func (m *ItemInformationProtectionPolicyLabelsRequestBuilder) ToGetRequestInform return requestInfo, nil } // ToPostRequestInformation create new navigation property to labels for users -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionPolicyLabelsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InformationProtectionLabelable, requestConfiguration *ItemInformationProtectionPolicyLabelsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -171,7 +171,7 @@ func (m *ItemInformationProtectionPolicyLabelsRequestBuilder) ToPostRequestInfor return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInformationProtectionPolicyLabelsRequestBuilder when successful func (m *ItemInformationProtectionPolicyLabelsRequestBuilder) WithUrl(rawUrl string)(*ItemInformationProtectionPolicyLabelsRequestBuilder) { return NewItemInformationProtectionPolicyLabelsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_information_protection_policy_request_builder.go b/users/item_information_protection_policy_request_builder.go index 35c711d09fb..57282fc5e38 100644 --- a/users/item_information_protection_policy_request_builder.go +++ b/users/item_information_protection_policy_request_builder.go @@ -55,7 +55,7 @@ func NewItemInformationProtectionPolicyRequestBuilder(rawUrl string, requestAdap return NewItemInformationProtectionPolicyRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property policy for users -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionPolicyRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemInformationProtectionPolicyRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -72,7 +72,7 @@ func (m *ItemInformationProtectionPolicyRequestBuilder) Delete(ctx context.Conte return nil } // Get get policy from users -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a InformationProtectionPolicyable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionPolicyRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInformationProtectionPolicyRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InformationProtectionPolicyable, error) { @@ -98,7 +98,7 @@ func (m *ItemInformationProtectionPolicyRequestBuilder) Labels()(*ItemInformatio return NewItemInformationProtectionPolicyLabelsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property policy in users -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a InformationProtectionPolicyable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionPolicyRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InformationProtectionPolicyable, requestConfiguration *ItemInformationProtectionPolicyRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InformationProtectionPolicyable, error) { @@ -119,7 +119,7 @@ func (m *ItemInformationProtectionPolicyRequestBuilder) Patch(ctx context.Contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InformationProtectionPolicyable), nil } // ToDeleteRequestInformation delete navigation property policy for users -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionPolicyRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemInformationProtectionPolicyRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,7 +131,7 @@ func (m *ItemInformationProtectionPolicyRequestBuilder) ToDeleteRequestInformati return requestInfo, nil } // ToGetRequestInformation get policy from users -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionPolicyRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemInformationProtectionPolicyRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,7 +146,7 @@ func (m *ItemInformationProtectionPolicyRequestBuilder) ToGetRequestInformation( return requestInfo, nil } // ToPatchRequestInformation update the navigation property policy in users -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionPolicyRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InformationProtectionPolicyable, requestConfiguration *ItemInformationProtectionPolicyRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -162,7 +162,7 @@ func (m *ItemInformationProtectionPolicyRequestBuilder) ToPatchRequestInformatio return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInformationProtectionPolicyRequestBuilder when successful func (m *ItemInformationProtectionPolicyRequestBuilder) WithUrl(rawUrl string)(*ItemInformationProtectionPolicyRequestBuilder) { return NewItemInformationProtectionPolicyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_information_protection_request_builder.go b/users/item_information_protection_request_builder.go index a7ca00e0315..b27e03c27d3 100644 --- a/users/item_information_protection_request_builder.go +++ b/users/item_information_protection_request_builder.go @@ -70,6 +70,7 @@ func (m *ItemInformationProtectionRequestBuilder) DecryptBuffer()(*ItemInformati return NewItemInformationProtectionDecryptBufferRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Delete delete navigation property informationProtection for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemInformationProtectionRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -91,6 +92,7 @@ func (m *ItemInformationProtectionRequestBuilder) EncryptBuffer()(*ItemInformati return NewItemInformationProtectionEncryptBufferRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get informationProtection from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a InformationProtectionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInformationProtectionRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InformationProtectionable, error) { @@ -111,6 +113,7 @@ func (m *ItemInformationProtectionRequestBuilder) Get(ctx context.Context, reque return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InformationProtectionable), nil } // Patch update the navigation property informationProtection in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a InformationProtectionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InformationProtectionable, requestConfiguration *ItemInformationProtectionRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InformationProtectionable, error) { @@ -156,6 +159,7 @@ func (m *ItemInformationProtectionRequestBuilder) ThreatAssessmentRequests()(*It return NewItemInformationProtectionThreatAssessmentRequestsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property informationProtection for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemInformationProtectionRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -167,6 +171,7 @@ func (m *ItemInformationProtectionRequestBuilder) ToDeleteRequestInformation(ctx return requestInfo, nil } // ToGetRequestInformation get informationProtection from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemInformationProtectionRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -181,6 +186,7 @@ func (m *ItemInformationProtectionRequestBuilder) ToGetRequestInformation(ctx co return requestInfo, nil } // ToPatchRequestInformation update the navigation property informationProtection in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.InformationProtectionable, requestConfiguration *ItemInformationProtectionRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -201,6 +207,7 @@ func (m *ItemInformationProtectionRequestBuilder) VerifySignature()(*ItemInforma return NewItemInformationProtectionVerifySignatureRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInformationProtectionRequestBuilder when successful func (m *ItemInformationProtectionRequestBuilder) WithUrl(rawUrl string)(*ItemInformationProtectionRequestBuilder) { return NewItemInformationProtectionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_information_protection_sensitivity_labels_count_request_builder.go b/users/item_information_protection_sensitivity_labels_count_request_builder.go index 4ab6c167f40..78d4a2f53ce 100644 --- a/users/item_information_protection_sensitivity_labels_count_request_builder.go +++ b/users/item_information_protection_sensitivity_labels_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemInformationProtectionSensitivityLabelsCountRequestBuilder(rawUrl str return NewItemInformationProtectionSensitivityLabelsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionSensitivityLabelsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInformationProtectionSensitivityLabelsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemInformationProtectionSensitivityLabelsCountRequestBuilder) Get(ctx return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionSensitivityLabelsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemInformationProtectionSensitivityLabelsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemInformationProtectionSensitivityLabelsCountRequestBuilder) ToGetReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInformationProtectionSensitivityLabelsCountRequestBuilder when successful func (m *ItemInformationProtectionSensitivityLabelsCountRequestBuilder) WithUrl(rawUrl string)(*ItemInformationProtectionSensitivityLabelsCountRequestBuilder) { return NewItemInformationProtectionSensitivityLabelsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_information_protection_sensitivity_labels_evaluate_request_builder.go b/users/item_information_protection_sensitivity_labels_evaluate_request_builder.go index cb11b8d3f22..078b35eb813 100644 --- a/users/item_information_protection_sensitivity_labels_evaluate_request_builder.go +++ b/users/item_information_protection_sensitivity_labels_evaluate_request_builder.go @@ -32,6 +32,7 @@ func NewItemInformationProtectionSensitivityLabelsEvaluateRequestBuilder(rawUrl return NewItemInformationProtectionSensitivityLabelsEvaluateRequestBuilderInternal(urlParams, requestAdapter) } // Post invoke action evaluate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EvaluateLabelJobResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionSensitivityLabelsEvaluateRequestBuilder) Post(ctx context.Context, body ItemInformationProtectionSensitivityLabelsEvaluatePostRequestBodyable, requestConfiguration *ItemInformationProtectionSensitivityLabelsEvaluateRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EvaluateLabelJobResponseable, error) { @@ -52,6 +53,7 @@ func (m *ItemInformationProtectionSensitivityLabelsEvaluateRequestBuilder) Post( return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EvaluateLabelJobResponseable), nil } // ToPostRequestInformation invoke action evaluate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionSensitivityLabelsEvaluateRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemInformationProtectionSensitivityLabelsEvaluatePostRequestBodyable, requestConfiguration *ItemInformationProtectionSensitivityLabelsEvaluateRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -67,6 +69,7 @@ func (m *ItemInformationProtectionSensitivityLabelsEvaluateRequestBuilder) ToPos return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInformationProtectionSensitivityLabelsEvaluateRequestBuilder when successful func (m *ItemInformationProtectionSensitivityLabelsEvaluateRequestBuilder) WithUrl(rawUrl string)(*ItemInformationProtectionSensitivityLabelsEvaluateRequestBuilder) { return NewItemInformationProtectionSensitivityLabelsEvaluateRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_information_protection_sensitivity_labels_item_sublabels_count_request_builder.go b/users/item_information_protection_sensitivity_labels_item_sublabels_count_request_builder.go index ee3020905af..9ca4992b430 100644 --- a/users/item_information_protection_sensitivity_labels_item_sublabels_count_request_builder.go +++ b/users/item_information_protection_sensitivity_labels_item_sublabels_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemInformationProtectionSensitivityLabelsItemSublabelsCountRequestBuild return NewItemInformationProtectionSensitivityLabelsItemSublabelsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionSensitivityLabelsItemSublabelsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInformationProtectionSensitivityLabelsItemSublabelsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemInformationProtectionSensitivityLabelsItemSublabelsCountRequestBuil return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionSensitivityLabelsItemSublabelsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemInformationProtectionSensitivityLabelsItemSublabelsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemInformationProtectionSensitivityLabelsItemSublabelsCountRequestBuil return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInformationProtectionSensitivityLabelsItemSublabelsCountRequestBuilder when successful func (m *ItemInformationProtectionSensitivityLabelsItemSublabelsCountRequestBuilder) WithUrl(rawUrl string)(*ItemInformationProtectionSensitivityLabelsItemSublabelsCountRequestBuilder) { return NewItemInformationProtectionSensitivityLabelsItemSublabelsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_information_protection_sensitivity_labels_item_sublabels_evaluate_request_builder.go b/users/item_information_protection_sensitivity_labels_item_sublabels_evaluate_request_builder.go index 7be8d355c54..ba2285275c9 100644 --- a/users/item_information_protection_sensitivity_labels_item_sublabels_evaluate_request_builder.go +++ b/users/item_information_protection_sensitivity_labels_item_sublabels_evaluate_request_builder.go @@ -32,6 +32,7 @@ func NewItemInformationProtectionSensitivityLabelsItemSublabelsEvaluateRequestBu return NewItemInformationProtectionSensitivityLabelsItemSublabelsEvaluateRequestBuilderInternal(urlParams, requestAdapter) } // Post invoke action evaluate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EvaluateLabelJobResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionSensitivityLabelsItemSublabelsEvaluateRequestBuilder) Post(ctx context.Context, body ItemInformationProtectionSensitivityLabelsItemSublabelsEvaluatePostRequestBodyable, requestConfiguration *ItemInformationProtectionSensitivityLabelsItemSublabelsEvaluateRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EvaluateLabelJobResponseable, error) { @@ -52,6 +53,7 @@ func (m *ItemInformationProtectionSensitivityLabelsItemSublabelsEvaluateRequestB return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EvaluateLabelJobResponseable), nil } // ToPostRequestInformation invoke action evaluate +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionSensitivityLabelsItemSublabelsEvaluateRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemInformationProtectionSensitivityLabelsItemSublabelsEvaluatePostRequestBodyable, requestConfiguration *ItemInformationProtectionSensitivityLabelsItemSublabelsEvaluateRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -67,6 +69,7 @@ func (m *ItemInformationProtectionSensitivityLabelsItemSublabelsEvaluateRequestB return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInformationProtectionSensitivityLabelsItemSublabelsEvaluateRequestBuilder when successful func (m *ItemInformationProtectionSensitivityLabelsItemSublabelsEvaluateRequestBuilder) WithUrl(rawUrl string)(*ItemInformationProtectionSensitivityLabelsItemSublabelsEvaluateRequestBuilder) { return NewItemInformationProtectionSensitivityLabelsItemSublabelsEvaluateRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_information_protection_sensitivity_labels_item_sublabels_request_builder.go b/users/item_information_protection_sensitivity_labels_item_sublabels_request_builder.go index 9f419d03318..b1c106be073 100644 --- a/users/item_information_protection_sensitivity_labels_item_sublabels_request_builder.go +++ b/users/item_information_protection_sensitivity_labels_item_sublabels_request_builder.go @@ -47,6 +47,7 @@ type ItemInformationProtectionSensitivityLabelsItemSublabelsRequestBuilderPostRe Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // BySensitivityLabelId1 provides operations to manage the sublabels property of the microsoft.graph.sensitivityLabel entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInformationProtectionSensitivityLabelsItemSublabelsSensitivityLabelItemRequestBuilder when successful func (m *ItemInformationProtectionSensitivityLabelsItemSublabelsRequestBuilder) BySensitivityLabelId1(sensitivityLabelId1 string)(*ItemInformationProtectionSensitivityLabelsItemSublabelsSensitivityLabelItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemInformationProtectionSensitivityLabelsItemSublabelsRequestBuilder) return NewItemInformationProtectionSensitivityLabelsItemSublabelsEvaluateRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get sublabels from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SensitivityLabelCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionSensitivityLabelsItemSublabelsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInformationProtectionSensitivityLabelsItemSublabelsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SensitivityLabelCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemInformationProtectionSensitivityLabelsItemSublabelsRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SensitivityLabelCollectionResponseable), nil } // Post create new navigation property to sublabels for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SensitivityLabelable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionSensitivityLabelsItemSublabelsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SensitivityLabelable, requestConfiguration *ItemInformationProtectionSensitivityLabelsItemSublabelsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SensitivityLabelable, error) { @@ -122,6 +125,7 @@ func (m *ItemInformationProtectionSensitivityLabelsItemSublabelsRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SensitivityLabelable), nil } // ToGetRequestInformation get sublabels from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionSensitivityLabelsItemSublabelsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemInformationProtectionSensitivityLabelsItemSublabelsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemInformationProtectionSensitivityLabelsItemSublabelsRequestBuilder) return requestInfo, nil } // ToPostRequestInformation create new navigation property to sublabels for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionSensitivityLabelsItemSublabelsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SensitivityLabelable, requestConfiguration *ItemInformationProtectionSensitivityLabelsItemSublabelsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemInformationProtectionSensitivityLabelsItemSublabelsRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInformationProtectionSensitivityLabelsItemSublabelsRequestBuilder when successful func (m *ItemInformationProtectionSensitivityLabelsItemSublabelsRequestBuilder) WithUrl(rawUrl string)(*ItemInformationProtectionSensitivityLabelsItemSublabelsRequestBuilder) { return NewItemInformationProtectionSensitivityLabelsItemSublabelsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_information_protection_sensitivity_labels_item_sublabels_sensitivity_label_item_request_builder.go b/users/item_information_protection_sensitivity_labels_item_sublabels_sensitivity_label_item_request_builder.go index 43b9c165bfa..5bdf9a3bd78 100644 --- a/users/item_information_protection_sensitivity_labels_item_sublabels_sensitivity_label_item_request_builder.go +++ b/users/item_information_protection_sensitivity_labels_item_sublabels_sensitivity_label_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemInformationProtectionSensitivityLabelsItemSublabelsSensitivityLabelI return NewItemInformationProtectionSensitivityLabelsItemSublabelsSensitivityLabelItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property sublabels for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionSensitivityLabelsItemSublabelsSensitivityLabelItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemInformationProtectionSensitivityLabelsItemSublabelsSensitivityLabelItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemInformationProtectionSensitivityLabelsItemSublabelsSensitivityLabel return nil } // Get get sublabels from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SensitivityLabelable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionSensitivityLabelsItemSublabelsSensitivityLabelItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInformationProtectionSensitivityLabelsItemSublabelsSensitivityLabelItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SensitivityLabelable, error) { @@ -91,6 +93,7 @@ func (m *ItemInformationProtectionSensitivityLabelsItemSublabelsSensitivityLabel return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SensitivityLabelable), nil } // Patch update the navigation property sublabels in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SensitivityLabelable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionSensitivityLabelsItemSublabelsSensitivityLabelItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SensitivityLabelable, requestConfiguration *ItemInformationProtectionSensitivityLabelsItemSublabelsSensitivityLabelItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SensitivityLabelable, error) { @@ -111,6 +114,7 @@ func (m *ItemInformationProtectionSensitivityLabelsItemSublabelsSensitivityLabel return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SensitivityLabelable), nil } // ToDeleteRequestInformation delete navigation property sublabels for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionSensitivityLabelsItemSublabelsSensitivityLabelItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemInformationProtectionSensitivityLabelsItemSublabelsSensitivityLabelItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemInformationProtectionSensitivityLabelsItemSublabelsSensitivityLabel return requestInfo, nil } // ToGetRequestInformation get sublabels from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionSensitivityLabelsItemSublabelsSensitivityLabelItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemInformationProtectionSensitivityLabelsItemSublabelsSensitivityLabelItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemInformationProtectionSensitivityLabelsItemSublabelsSensitivityLabel return requestInfo, nil } // ToPatchRequestInformation update the navigation property sublabels in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionSensitivityLabelsItemSublabelsSensitivityLabelItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SensitivityLabelable, requestConfiguration *ItemInformationProtectionSensitivityLabelsItemSublabelsSensitivityLabelItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemInformationProtectionSensitivityLabelsItemSublabelsSensitivityLabel return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInformationProtectionSensitivityLabelsItemSublabelsSensitivityLabelItemRequestBuilder when successful func (m *ItemInformationProtectionSensitivityLabelsItemSublabelsSensitivityLabelItemRequestBuilder) WithUrl(rawUrl string)(*ItemInformationProtectionSensitivityLabelsItemSublabelsSensitivityLabelItemRequestBuilder) { return NewItemInformationProtectionSensitivityLabelsItemSublabelsSensitivityLabelItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_information_protection_sensitivity_labels_request_builder.go b/users/item_information_protection_sensitivity_labels_request_builder.go index 03620ae1c9d..89560c7a843 100644 --- a/users/item_information_protection_sensitivity_labels_request_builder.go +++ b/users/item_information_protection_sensitivity_labels_request_builder.go @@ -47,6 +47,7 @@ type ItemInformationProtectionSensitivityLabelsRequestBuilderPostRequestConfigur Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // BySensitivityLabelId provides operations to manage the sensitivityLabels property of the microsoft.graph.informationProtection entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInformationProtectionSensitivityLabelsSensitivityLabelItemRequestBuilder when successful func (m *ItemInformationProtectionSensitivityLabelsRequestBuilder) BySensitivityLabelId(sensitivityLabelId string)(*ItemInformationProtectionSensitivityLabelsSensitivityLabelItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemInformationProtectionSensitivityLabelsRequestBuilder) Evaluate()(*I return NewItemInformationProtectionSensitivityLabelsEvaluateRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get sensitivityLabels from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SensitivityLabelCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionSensitivityLabelsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInformationProtectionSensitivityLabelsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SensitivityLabelCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemInformationProtectionSensitivityLabelsRequestBuilder) Get(ctx conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SensitivityLabelCollectionResponseable), nil } // Post create new navigation property to sensitivityLabels for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SensitivityLabelable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionSensitivityLabelsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SensitivityLabelable, requestConfiguration *ItemInformationProtectionSensitivityLabelsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SensitivityLabelable, error) { @@ -122,6 +125,7 @@ func (m *ItemInformationProtectionSensitivityLabelsRequestBuilder) Post(ctx cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SensitivityLabelable), nil } // ToGetRequestInformation get sensitivityLabels from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionSensitivityLabelsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemInformationProtectionSensitivityLabelsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemInformationProtectionSensitivityLabelsRequestBuilder) ToGetRequestI return requestInfo, nil } // ToPostRequestInformation create new navigation property to sensitivityLabels for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionSensitivityLabelsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SensitivityLabelable, requestConfiguration *ItemInformationProtectionSensitivityLabelsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemInformationProtectionSensitivityLabelsRequestBuilder) ToPostRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInformationProtectionSensitivityLabelsRequestBuilder when successful func (m *ItemInformationProtectionSensitivityLabelsRequestBuilder) WithUrl(rawUrl string)(*ItemInformationProtectionSensitivityLabelsRequestBuilder) { return NewItemInformationProtectionSensitivityLabelsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_information_protection_sensitivity_labels_sensitivity_label_item_request_builder.go b/users/item_information_protection_sensitivity_labels_sensitivity_label_item_request_builder.go index 4648d90786a..9928510f466 100644 --- a/users/item_information_protection_sensitivity_labels_sensitivity_label_item_request_builder.go +++ b/users/item_information_protection_sensitivity_labels_sensitivity_label_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemInformationProtectionSensitivityLabelsSensitivityLabelItemRequestBui return NewItemInformationProtectionSensitivityLabelsSensitivityLabelItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property sensitivityLabels for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionSensitivityLabelsSensitivityLabelItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemInformationProtectionSensitivityLabelsSensitivityLabelItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemInformationProtectionSensitivityLabelsSensitivityLabelItemRequestBu return nil } // Get get sensitivityLabels from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SensitivityLabelable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionSensitivityLabelsSensitivityLabelItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInformationProtectionSensitivityLabelsSensitivityLabelItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SensitivityLabelable, error) { @@ -91,6 +93,7 @@ func (m *ItemInformationProtectionSensitivityLabelsSensitivityLabelItemRequestBu return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SensitivityLabelable), nil } // Patch update the navigation property sensitivityLabels in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SensitivityLabelable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionSensitivityLabelsSensitivityLabelItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SensitivityLabelable, requestConfiguration *ItemInformationProtectionSensitivityLabelsSensitivityLabelItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SensitivityLabelable, error) { @@ -116,6 +119,7 @@ func (m *ItemInformationProtectionSensitivityLabelsSensitivityLabelItemRequestBu return NewItemInformationProtectionSensitivityLabelsItemSublabelsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property sensitivityLabels for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionSensitivityLabelsSensitivityLabelItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemInformationProtectionSensitivityLabelsSensitivityLabelItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -127,6 +131,7 @@ func (m *ItemInformationProtectionSensitivityLabelsSensitivityLabelItemRequestBu return requestInfo, nil } // ToGetRequestInformation get sensitivityLabels from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionSensitivityLabelsSensitivityLabelItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemInformationProtectionSensitivityLabelsSensitivityLabelItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,6 +146,7 @@ func (m *ItemInformationProtectionSensitivityLabelsSensitivityLabelItemRequestBu return requestInfo, nil } // ToPatchRequestInformation update the navigation property sensitivityLabels in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionSensitivityLabelsSensitivityLabelItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SensitivityLabelable, requestConfiguration *ItemInformationProtectionSensitivityLabelsSensitivityLabelItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +162,7 @@ func (m *ItemInformationProtectionSensitivityLabelsSensitivityLabelItemRequestBu return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInformationProtectionSensitivityLabelsSensitivityLabelItemRequestBuilder when successful func (m *ItemInformationProtectionSensitivityLabelsSensitivityLabelItemRequestBuilder) WithUrl(rawUrl string)(*ItemInformationProtectionSensitivityLabelsSensitivityLabelItemRequestBuilder) { return NewItemInformationProtectionSensitivityLabelsSensitivityLabelItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_information_protection_sensitivity_policy_settings_request_builder.go b/users/item_information_protection_sensitivity_policy_settings_request_builder.go index 59601ff2fc1..f856035646b 100644 --- a/users/item_information_protection_sensitivity_policy_settings_request_builder.go +++ b/users/item_information_protection_sensitivity_policy_settings_request_builder.go @@ -55,6 +55,7 @@ func NewItemInformationProtectionSensitivityPolicySettingsRequestBuilder(rawUrl return NewItemInformationProtectionSensitivityPolicySettingsRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property sensitivityPolicySettings for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionSensitivityPolicySettingsRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemInformationProtectionSensitivityPolicySettingsRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemInformationProtectionSensitivityPolicySettingsRequestBuilder) Delet return nil } // Get get sensitivityPolicySettings from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SensitivityPolicySettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionSensitivityPolicySettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInformationProtectionSensitivityPolicySettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SensitivityPolicySettingsable, error) { @@ -91,6 +93,7 @@ func (m *ItemInformationProtectionSensitivityPolicySettingsRequestBuilder) Get(c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SensitivityPolicySettingsable), nil } // Patch update the navigation property sensitivityPolicySettings in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SensitivityPolicySettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionSensitivityPolicySettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SensitivityPolicySettingsable, requestConfiguration *ItemInformationProtectionSensitivityPolicySettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SensitivityPolicySettingsable, error) { @@ -111,6 +114,7 @@ func (m *ItemInformationProtectionSensitivityPolicySettingsRequestBuilder) Patch return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SensitivityPolicySettingsable), nil } // ToDeleteRequestInformation delete navigation property sensitivityPolicySettings for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionSensitivityPolicySettingsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemInformationProtectionSensitivityPolicySettingsRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemInformationProtectionSensitivityPolicySettingsRequestBuilder) ToDel return requestInfo, nil } // ToGetRequestInformation get sensitivityPolicySettings from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionSensitivityPolicySettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemInformationProtectionSensitivityPolicySettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemInformationProtectionSensitivityPolicySettingsRequestBuilder) ToGet return requestInfo, nil } // ToPatchRequestInformation update the navigation property sensitivityPolicySettings in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionSensitivityPolicySettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SensitivityPolicySettingsable, requestConfiguration *ItemInformationProtectionSensitivityPolicySettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemInformationProtectionSensitivityPolicySettingsRequestBuilder) ToPat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInformationProtectionSensitivityPolicySettingsRequestBuilder when successful func (m *ItemInformationProtectionSensitivityPolicySettingsRequestBuilder) WithUrl(rawUrl string)(*ItemInformationProtectionSensitivityPolicySettingsRequestBuilder) { return NewItemInformationProtectionSensitivityPolicySettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_information_protection_sign_digest_request_builder.go b/users/item_information_protection_sign_digest_request_builder.go index 9618f7a8961..0bf68baa23b 100644 --- a/users/item_information_protection_sign_digest_request_builder.go +++ b/users/item_information_protection_sign_digest_request_builder.go @@ -32,7 +32,7 @@ func NewItemInformationProtectionSignDigestRequestBuilder(rawUrl string, request return NewItemInformationProtectionSignDigestRequestBuilderInternal(urlParams, requestAdapter) } // Post invoke action signDigest -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SigningResultable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionSignDigestRequestBuilder) Post(ctx context.Context, body ItemInformationProtectionSignDigestPostRequestBodyable, requestConfiguration *ItemInformationProtectionSignDigestRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SigningResultable, error) { @@ -53,7 +53,7 @@ func (m *ItemInformationProtectionSignDigestRequestBuilder) Post(ctx context.Con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SigningResultable), nil } // ToPostRequestInformation invoke action signDigest -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionSignDigestRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemInformationProtectionSignDigestPostRequestBodyable, requestConfiguration *ItemInformationProtectionSignDigestRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -69,7 +69,7 @@ func (m *ItemInformationProtectionSignDigestRequestBuilder) ToPostRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInformationProtectionSignDigestRequestBuilder when successful func (m *ItemInformationProtectionSignDigestRequestBuilder) WithUrl(rawUrl string)(*ItemInformationProtectionSignDigestRequestBuilder) { return NewItemInformationProtectionSignDigestRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_information_protection_threat_assessment_requests_count_request_builder.go b/users/item_information_protection_threat_assessment_requests_count_request_builder.go index efb23b2473a..55006b35ecd 100644 --- a/users/item_information_protection_threat_assessment_requests_count_request_builder.go +++ b/users/item_information_protection_threat_assessment_requests_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemInformationProtectionThreatAssessmentRequestsCountRequestBuilder(raw return NewItemInformationProtectionThreatAssessmentRequestsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionThreatAssessmentRequestsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInformationProtectionThreatAssessmentRequestsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemInformationProtectionThreatAssessmentRequestsCountRequestBuilder) G return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionThreatAssessmentRequestsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemInformationProtectionThreatAssessmentRequestsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemInformationProtectionThreatAssessmentRequestsCountRequestBuilder) T return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInformationProtectionThreatAssessmentRequestsCountRequestBuilder when successful func (m *ItemInformationProtectionThreatAssessmentRequestsCountRequestBuilder) WithUrl(rawUrl string)(*ItemInformationProtectionThreatAssessmentRequestsCountRequestBuilder) { return NewItemInformationProtectionThreatAssessmentRequestsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_information_protection_threat_assessment_requests_item_results_count_request_builder.go b/users/item_information_protection_threat_assessment_requests_item_results_count_request_builder.go index 320e8443b49..fd6bf8eddca 100644 --- a/users/item_information_protection_threat_assessment_requests_item_results_count_request_builder.go +++ b/users/item_information_protection_threat_assessment_requests_item_results_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemInformationProtectionThreatAssessmentRequestsItemResultsCountRequest return NewItemInformationProtectionThreatAssessmentRequestsItemResultsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionThreatAssessmentRequestsItemResultsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInformationProtectionThreatAssessmentRequestsItemResultsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemInformationProtectionThreatAssessmentRequestsItemResultsCountReques return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionThreatAssessmentRequestsItemResultsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemInformationProtectionThreatAssessmentRequestsItemResultsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemInformationProtectionThreatAssessmentRequestsItemResultsCountReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInformationProtectionThreatAssessmentRequestsItemResultsCountRequestBuilder when successful func (m *ItemInformationProtectionThreatAssessmentRequestsItemResultsCountRequestBuilder) WithUrl(rawUrl string)(*ItemInformationProtectionThreatAssessmentRequestsItemResultsCountRequestBuilder) { return NewItemInformationProtectionThreatAssessmentRequestsItemResultsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_information_protection_threat_assessment_requests_item_results_request_builder.go b/users/item_information_protection_threat_assessment_requests_item_results_request_builder.go index 4c68aa955bc..93029b9f0c8 100644 --- a/users/item_information_protection_threat_assessment_requests_item_results_request_builder.go +++ b/users/item_information_protection_threat_assessment_requests_item_results_request_builder.go @@ -47,6 +47,7 @@ type ItemInformationProtectionThreatAssessmentRequestsItemResultsRequestBuilderP Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByThreatAssessmentResultId provides operations to manage the results property of the microsoft.graph.threatAssessmentRequest entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInformationProtectionThreatAssessmentRequestsItemResultsThreatAssessmentResultItemRequestBuilder when successful func (m *ItemInformationProtectionThreatAssessmentRequestsItemResultsRequestBuilder) ByThreatAssessmentResultId(threatAssessmentResultId string)(*ItemInformationProtectionThreatAssessmentRequestsItemResultsThreatAssessmentResultItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemInformationProtectionThreatAssessmentRequestsItemResultsRequestBuil return NewItemInformationProtectionThreatAssessmentRequestsItemResultsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get a collection of threat assessment results. Read-only. By default, a GET /threatAssessmentRequests/{id} does not return this property unless you apply $expand on it. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ThreatAssessmentResultCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionThreatAssessmentRequestsItemResultsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInformationProtectionThreatAssessmentRequestsItemResultsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ThreatAssessmentResultCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemInformationProtectionThreatAssessmentRequestsItemResultsRequestBuil return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ThreatAssessmentResultCollectionResponseable), nil } // Post create new navigation property to results for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ThreatAssessmentResultable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionThreatAssessmentRequestsItemResultsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ThreatAssessmentResultable, requestConfiguration *ItemInformationProtectionThreatAssessmentRequestsItemResultsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ThreatAssessmentResultable, error) { @@ -117,6 +120,7 @@ func (m *ItemInformationProtectionThreatAssessmentRequestsItemResultsRequestBuil return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ThreatAssessmentResultable), nil } // ToGetRequestInformation a collection of threat assessment results. Read-only. By default, a GET /threatAssessmentRequests/{id} does not return this property unless you apply $expand on it. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionThreatAssessmentRequestsItemResultsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemInformationProtectionThreatAssessmentRequestsItemResultsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemInformationProtectionThreatAssessmentRequestsItemResultsRequestBuil return requestInfo, nil } // ToPostRequestInformation create new navigation property to results for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionThreatAssessmentRequestsItemResultsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ThreatAssessmentResultable, requestConfiguration *ItemInformationProtectionThreatAssessmentRequestsItemResultsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemInformationProtectionThreatAssessmentRequestsItemResultsRequestBuil return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInformationProtectionThreatAssessmentRequestsItemResultsRequestBuilder when successful func (m *ItemInformationProtectionThreatAssessmentRequestsItemResultsRequestBuilder) WithUrl(rawUrl string)(*ItemInformationProtectionThreatAssessmentRequestsItemResultsRequestBuilder) { return NewItemInformationProtectionThreatAssessmentRequestsItemResultsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_information_protection_threat_assessment_requests_request_builder.go b/users/item_information_protection_threat_assessment_requests_request_builder.go index 834e84333cf..539392b9354 100644 --- a/users/item_information_protection_threat_assessment_requests_request_builder.go +++ b/users/item_information_protection_threat_assessment_requests_request_builder.go @@ -47,6 +47,7 @@ type ItemInformationProtectionThreatAssessmentRequestsRequestBuilderPostRequestC Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByThreatAssessmentRequestId provides operations to manage the threatAssessmentRequests property of the microsoft.graph.informationProtection entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInformationProtectionThreatAssessmentRequestsThreatAssessmentRequestItemRequestBuilder when successful func (m *ItemInformationProtectionThreatAssessmentRequestsRequestBuilder) ByThreatAssessmentRequestId(threatAssessmentRequestId string)(*ItemInformationProtectionThreatAssessmentRequestsThreatAssessmentRequestItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemInformationProtectionThreatAssessmentRequestsRequestBuilder) Count( return NewItemInformationProtectionThreatAssessmentRequestsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get threatAssessmentRequests from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ThreatAssessmentRequestCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionThreatAssessmentRequestsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInformationProtectionThreatAssessmentRequestsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ThreatAssessmentRequestCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemInformationProtectionThreatAssessmentRequestsRequestBuilder) Get(ct return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ThreatAssessmentRequestCollectionResponseable), nil } // Post create new navigation property to threatAssessmentRequests for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ThreatAssessmentRequestable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionThreatAssessmentRequestsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ThreatAssessmentRequestable, requestConfiguration *ItemInformationProtectionThreatAssessmentRequestsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ThreatAssessmentRequestable, error) { @@ -117,6 +120,7 @@ func (m *ItemInformationProtectionThreatAssessmentRequestsRequestBuilder) Post(c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ThreatAssessmentRequestable), nil } // ToGetRequestInformation get threatAssessmentRequests from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionThreatAssessmentRequestsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemInformationProtectionThreatAssessmentRequestsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemInformationProtectionThreatAssessmentRequestsRequestBuilder) ToGetR return requestInfo, nil } // ToPostRequestInformation create new navigation property to threatAssessmentRequests for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionThreatAssessmentRequestsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ThreatAssessmentRequestable, requestConfiguration *ItemInformationProtectionThreatAssessmentRequestsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemInformationProtectionThreatAssessmentRequestsRequestBuilder) ToPost return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInformationProtectionThreatAssessmentRequestsRequestBuilder when successful func (m *ItemInformationProtectionThreatAssessmentRequestsRequestBuilder) WithUrl(rawUrl string)(*ItemInformationProtectionThreatAssessmentRequestsRequestBuilder) { return NewItemInformationProtectionThreatAssessmentRequestsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_information_protection_verify_signature_request_builder.go b/users/item_information_protection_verify_signature_request_builder.go index 1221cc4fe27..7cf73617f5d 100644 --- a/users/item_information_protection_verify_signature_request_builder.go +++ b/users/item_information_protection_verify_signature_request_builder.go @@ -32,7 +32,7 @@ func NewItemInformationProtectionVerifySignatureRequestBuilder(rawUrl string, re return NewItemInformationProtectionVerifySignatureRequestBuilderInternal(urlParams, requestAdapter) } // Post invoke action verifySignature -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a VerificationResultable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInformationProtectionVerifySignatureRequestBuilder) Post(ctx context.Context, body ItemInformationProtectionVerifySignaturePostRequestBodyable, requestConfiguration *ItemInformationProtectionVerifySignatureRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VerificationResultable, error) { @@ -53,7 +53,7 @@ func (m *ItemInformationProtectionVerifySignatureRequestBuilder) Post(ctx contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VerificationResultable), nil } // ToPostRequestInformation invoke action verifySignature -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInformationProtectionVerifySignatureRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemInformationProtectionVerifySignaturePostRequestBodyable, requestConfiguration *ItemInformationProtectionVerifySignatureRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -69,7 +69,7 @@ func (m *ItemInformationProtectionVerifySignatureRequestBuilder) ToPostRequestIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: This API will no longer be accessible, please see microsoft.graph.security.informationProtection APIs. as of 2021-02/Beta_SensitivityLabels +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInformationProtectionVerifySignatureRequestBuilder when successful func (m *ItemInformationProtectionVerifySignatureRequestBuilder) WithUrl(rawUrl string)(*ItemInformationProtectionVerifySignatureRequestBuilder) { return NewItemInformationProtectionVerifySignatureRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_insights_request_builder.go b/users/item_insights_request_builder.go index 7c1dc3b8af4..1af06fa133c 100644 --- a/users/item_insights_request_builder.go +++ b/users/item_insights_request_builder.go @@ -18,7 +18,7 @@ type ItemInsightsRequestBuilderDeleteRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemInsightsRequestBuilderGetQueryParameters get insights from users +// ItemInsightsRequestBuilderGetQueryParameters represents relationships between a user and items such as OneDrive for work or school documents, calculated using advanced analytics and machine learning techniques. Read-only. Nullable. type ItemInsightsRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -55,6 +55,7 @@ func NewItemInsightsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee2 return NewItemInsightsRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property insights for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInsightsRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemInsightsRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -70,7 +71,8 @@ func (m *ItemInsightsRequestBuilder) Delete(ctx context.Context, requestConfigur } return nil } -// Get get insights from users +// Get represents relationships between a user and items such as OneDrive for work or school documents, calculated using advanced analytics and machine learning techniques. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // 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)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemInsightsable, error) { @@ -91,6 +93,7 @@ func (m *ItemInsightsRequestBuilder) Get(ctx context.Context, requestConfigurati return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemInsightsable), nil } // Patch update the navigation property insights in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // 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 ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemInsightsable, requestConfiguration *ItemInsightsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemInsightsable, error) { @@ -116,6 +119,7 @@ func (m *ItemInsightsRequestBuilder) Shared()(*ItemInsightsSharedRequestBuilder) return NewItemInsightsSharedRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property insights for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInsightsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemInsightsRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -126,7 +130,8 @@ func (m *ItemInsightsRequestBuilder) ToDeleteRequestInformation(ctx context.Cont requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get insights from users +// ToGetRequestInformation represents relationships between a user and items such as OneDrive for work or school documents, calculated using advanced analytics and machine learning techniques. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInsightsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemInsightsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,6 +146,7 @@ func (m *ItemInsightsRequestBuilder) ToGetRequestInformation(ctx context.Context return requestInfo, nil } // ToPatchRequestInformation update the navigation property insights in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInsightsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemInsightsable, requestConfiguration *ItemInsightsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -166,6 +172,7 @@ func (m *ItemInsightsRequestBuilder) Used()(*ItemInsightsUsedRequestBuilder) { return NewItemInsightsUsedRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInsightsRequestBuilder when successful func (m *ItemInsightsRequestBuilder) WithUrl(rawUrl string)(*ItemInsightsRequestBuilder) { return NewItemInsightsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_insights_shared_count_request_builder.go b/users/item_insights_shared_count_request_builder.go index 3e56391f4c0..e7837f69531 100644 --- a/users/item_insights_shared_count_request_builder.go +++ b/users/item_insights_shared_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemInsightsSharedCountRequestBuilder(rawUrl string, requestAdapter i2ae return NewItemInsightsSharedCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInsightsSharedCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInsightsSharedCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemInsightsSharedCountRequestBuilder) Get(ctx context.Context, request return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInsightsSharedCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemInsightsSharedCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemInsightsSharedCountRequestBuilder) ToGetRequestInformation(ctx cont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInsightsSharedCountRequestBuilder when successful func (m *ItemInsightsSharedCountRequestBuilder) WithUrl(rawUrl string)(*ItemInsightsSharedCountRequestBuilder) { return NewItemInsightsSharedCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_insights_shared_item_last_shared_method_request_builder.go b/users/item_insights_shared_item_last_shared_method_request_builder.go index fd2f70c8461..e164f5062ca 100644 --- a/users/item_insights_shared_item_last_shared_method_request_builder.go +++ b/users/item_insights_shared_item_last_shared_method_request_builder.go @@ -41,6 +41,7 @@ func NewItemInsightsSharedItemLastSharedMethodRequestBuilder(rawUrl string, requ return NewItemInsightsSharedItemLastSharedMethodRequestBuilderInternal(urlParams, requestAdapter) } // Get get lastSharedMethod from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Entityable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInsightsSharedItemLastSharedMethodRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInsightsSharedItemLastSharedMethodRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entityable, error) { @@ -61,6 +62,7 @@ func (m *ItemInsightsSharedItemLastSharedMethodRequestBuilder) Get(ctx context.C return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entityable), nil } // ToGetRequestInformation get lastSharedMethod from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInsightsSharedItemLastSharedMethodRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemInsightsSharedItemLastSharedMethodRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemInsightsSharedItemLastSharedMethodRequestBuilder) ToGetRequestInfor return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInsightsSharedItemLastSharedMethodRequestBuilder when successful func (m *ItemInsightsSharedItemLastSharedMethodRequestBuilder) WithUrl(rawUrl string)(*ItemInsightsSharedItemLastSharedMethodRequestBuilder) { return NewItemInsightsSharedItemLastSharedMethodRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_insights_shared_item_resource_request_builder.go b/users/item_insights_shared_item_resource_request_builder.go index 88f26337df9..be2f7ffeb90 100644 --- a/users/item_insights_shared_item_resource_request_builder.go +++ b/users/item_insights_shared_item_resource_request_builder.go @@ -41,6 +41,7 @@ func NewItemInsightsSharedItemResourceRequestBuilder(rawUrl string, requestAdapt return NewItemInsightsSharedItemResourceRequestBuilderInternal(urlParams, requestAdapter) } // Get used for navigating to the item that was shared. For file attachments, the type is fileAttachment. For linked attachments, the type is driveItem. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Entityable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInsightsSharedItemResourceRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInsightsSharedItemResourceRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entityable, error) { @@ -61,6 +62,7 @@ func (m *ItemInsightsSharedItemResourceRequestBuilder) Get(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entityable), nil } // ToGetRequestInformation used for navigating to the item that was shared. For file attachments, the type is fileAttachment. For linked attachments, the type is driveItem. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInsightsSharedItemResourceRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemInsightsSharedItemResourceRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemInsightsSharedItemResourceRequestBuilder) ToGetRequestInformation(c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInsightsSharedItemResourceRequestBuilder when successful func (m *ItemInsightsSharedItemResourceRequestBuilder) WithUrl(rawUrl string)(*ItemInsightsSharedItemResourceRequestBuilder) { return NewItemInsightsSharedItemResourceRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_insights_shared_request_builder.go b/users/item_insights_shared_request_builder.go index d008a8cc798..8ae1c6563e9 100644 --- a/users/item_insights_shared_request_builder.go +++ b/users/item_insights_shared_request_builder.go @@ -47,6 +47,7 @@ type ItemInsightsSharedRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // BySharedInsightId provides operations to manage the shared property of the microsoft.graph.officeGraphInsights entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInsightsSharedSharedInsightItemRequestBuilder when successful func (m *ItemInsightsSharedRequestBuilder) BySharedInsightId(sharedInsightId string)(*ItemInsightsSharedSharedInsightItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemInsightsSharedRequestBuilder) Count()(*ItemInsightsSharedCountReque return NewItemInsightsSharedCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get access this property from the derived type itemInsights. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SharedInsightCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInsightsSharedRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInsightsSharedRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SharedInsightCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemInsightsSharedRequestBuilder) Get(ctx context.Context, requestConfi return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SharedInsightCollectionResponseable), nil } // Post create new navigation property to shared for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SharedInsightable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInsightsSharedRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SharedInsightable, requestConfiguration *ItemInsightsSharedRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SharedInsightable, error) { @@ -117,6 +120,7 @@ func (m *ItemInsightsSharedRequestBuilder) Post(ctx context.Context, body ie233e return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SharedInsightable), nil } // ToGetRequestInformation access this property from the derived type itemInsights. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInsightsSharedRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemInsightsSharedRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemInsightsSharedRequestBuilder) ToGetRequestInformation(ctx context.C return requestInfo, nil } // ToPostRequestInformation create new navigation property to shared for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInsightsSharedRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SharedInsightable, requestConfiguration *ItemInsightsSharedRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemInsightsSharedRequestBuilder) ToPostRequestInformation(ctx context. return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInsightsSharedRequestBuilder when successful func (m *ItemInsightsSharedRequestBuilder) WithUrl(rawUrl string)(*ItemInsightsSharedRequestBuilder) { return NewItemInsightsSharedRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_insights_shared_shared_insight_item_request_builder.go b/users/item_insights_shared_shared_insight_item_request_builder.go index c960111c018..deb13cc175d 100644 --- a/users/item_insights_shared_shared_insight_item_request_builder.go +++ b/users/item_insights_shared_shared_insight_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemInsightsSharedSharedInsightItemRequestBuilder(rawUrl string, request return NewItemInsightsSharedSharedInsightItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property shared for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInsightsSharedSharedInsightItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemInsightsSharedSharedInsightItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemInsightsSharedSharedInsightItemRequestBuilder) Delete(ctx context.C return nil } // Get access this property from the derived type itemInsights. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SharedInsightable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInsightsSharedSharedInsightItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInsightsSharedSharedInsightItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SharedInsightable, error) { @@ -96,6 +98,7 @@ func (m *ItemInsightsSharedSharedInsightItemRequestBuilder) LastSharedMethod()(* return NewItemInsightsSharedItemLastSharedMethodRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property shared in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SharedInsightable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInsightsSharedSharedInsightItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SharedInsightable, requestConfiguration *ItemInsightsSharedSharedInsightItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SharedInsightable, error) { @@ -121,6 +124,7 @@ func (m *ItemInsightsSharedSharedInsightItemRequestBuilder) Resource()(*ItemInsi return NewItemInsightsSharedItemResourceRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property shared for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInsightsSharedSharedInsightItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemInsightsSharedSharedInsightItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -132,6 +136,7 @@ func (m *ItemInsightsSharedSharedInsightItemRequestBuilder) ToDeleteRequestInfor return requestInfo, nil } // ToGetRequestInformation access this property from the derived type itemInsights. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInsightsSharedSharedInsightItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemInsightsSharedSharedInsightItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemInsightsSharedSharedInsightItemRequestBuilder) ToGetRequestInformat return requestInfo, nil } // ToPatchRequestInformation update the navigation property shared in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInsightsSharedSharedInsightItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SharedInsightable, requestConfiguration *ItemInsightsSharedSharedInsightItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -161,6 +167,7 @@ func (m *ItemInsightsSharedSharedInsightItemRequestBuilder) ToPatchRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInsightsSharedSharedInsightItemRequestBuilder when successful func (m *ItemInsightsSharedSharedInsightItemRequestBuilder) WithUrl(rawUrl string)(*ItemInsightsSharedSharedInsightItemRequestBuilder) { return NewItemInsightsSharedSharedInsightItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_insights_trending_count_request_builder.go b/users/item_insights_trending_count_request_builder.go index 6212a0f8f7f..521faa750ad 100644 --- a/users/item_insights_trending_count_request_builder.go +++ b/users/item_insights_trending_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemInsightsTrendingCountRequestBuilder(rawUrl string, requestAdapter i2 return NewItemInsightsTrendingCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInsightsTrendingCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInsightsTrendingCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemInsightsTrendingCountRequestBuilder) Get(ctx context.Context, reque return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInsightsTrendingCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemInsightsTrendingCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemInsightsTrendingCountRequestBuilder) ToGetRequestInformation(ctx co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInsightsTrendingCountRequestBuilder when successful func (m *ItemInsightsTrendingCountRequestBuilder) WithUrl(rawUrl string)(*ItemInsightsTrendingCountRequestBuilder) { return NewItemInsightsTrendingCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_insights_trending_item_resource_request_builder.go b/users/item_insights_trending_item_resource_request_builder.go index 6732d8fc560..21fcd0fd37d 100644 --- a/users/item_insights_trending_item_resource_request_builder.go +++ b/users/item_insights_trending_item_resource_request_builder.go @@ -41,6 +41,7 @@ func NewItemInsightsTrendingItemResourceRequestBuilder(rawUrl string, requestAda return NewItemInsightsTrendingItemResourceRequestBuilderInternal(urlParams, requestAdapter) } // Get used for navigating to the trending document. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Entityable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInsightsTrendingItemResourceRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInsightsTrendingItemResourceRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entityable, error) { @@ -61,6 +62,7 @@ func (m *ItemInsightsTrendingItemResourceRequestBuilder) Get(ctx context.Context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entityable), nil } // ToGetRequestInformation used for navigating to the trending document. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInsightsTrendingItemResourceRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemInsightsTrendingItemResourceRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemInsightsTrendingItemResourceRequestBuilder) ToGetRequestInformation return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInsightsTrendingItemResourceRequestBuilder when successful func (m *ItemInsightsTrendingItemResourceRequestBuilder) WithUrl(rawUrl string)(*ItemInsightsTrendingItemResourceRequestBuilder) { return NewItemInsightsTrendingItemResourceRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_insights_trending_request_builder.go b/users/item_insights_trending_request_builder.go index 939056534ea..be9a22c81e8 100644 --- a/users/item_insights_trending_request_builder.go +++ b/users/item_insights_trending_request_builder.go @@ -47,6 +47,7 @@ type ItemInsightsTrendingRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByTrendingId provides operations to manage the trending property of the microsoft.graph.officeGraphInsights entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInsightsTrendingTrendingItemRequestBuilder when successful func (m *ItemInsightsTrendingRequestBuilder) ByTrendingId(trendingId string)(*ItemInsightsTrendingTrendingItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemInsightsTrendingRequestBuilder) Count()(*ItemInsightsTrendingCountR return NewItemInsightsTrendingCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get access this property from the derived type itemInsights. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a TrendingCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInsightsTrendingRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInsightsTrendingRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TrendingCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemInsightsTrendingRequestBuilder) Get(ctx context.Context, requestCon return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TrendingCollectionResponseable), nil } // Post create new navigation property to trending for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Trendingable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInsightsTrendingRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Trendingable, requestConfiguration *ItemInsightsTrendingRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Trendingable, error) { @@ -117,6 +120,7 @@ func (m *ItemInsightsTrendingRequestBuilder) Post(ctx context.Context, body ie23 return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Trendingable), nil } // ToGetRequestInformation access this property from the derived type itemInsights. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInsightsTrendingRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemInsightsTrendingRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemInsightsTrendingRequestBuilder) ToGetRequestInformation(ctx context return requestInfo, nil } // ToPostRequestInformation create new navigation property to trending for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInsightsTrendingRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Trendingable, requestConfiguration *ItemInsightsTrendingRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemInsightsTrendingRequestBuilder) ToPostRequestInformation(ctx contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInsightsTrendingRequestBuilder when successful func (m *ItemInsightsTrendingRequestBuilder) WithUrl(rawUrl string)(*ItemInsightsTrendingRequestBuilder) { return NewItemInsightsTrendingRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_insights_trending_trending_item_request_builder.go b/users/item_insights_trending_trending_item_request_builder.go index 7c0b2e374e5..25e65b96d51 100644 --- a/users/item_insights_trending_trending_item_request_builder.go +++ b/users/item_insights_trending_trending_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemInsightsTrendingTrendingItemRequestBuilder(rawUrl string, requestAda return NewItemInsightsTrendingTrendingItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property trending for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInsightsTrendingTrendingItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemInsightsTrendingTrendingItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemInsightsTrendingTrendingItemRequestBuilder) Delete(ctx context.Cont return nil } // Get access this property from the derived type itemInsights. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Trendingable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInsightsTrendingTrendingItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInsightsTrendingTrendingItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Trendingable, error) { @@ -91,6 +93,7 @@ func (m *ItemInsightsTrendingTrendingItemRequestBuilder) Get(ctx context.Context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Trendingable), nil } // Patch update the navigation property trending in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Trendingable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInsightsTrendingTrendingItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Trendingable, requestConfiguration *ItemInsightsTrendingTrendingItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Trendingable, error) { @@ -116,6 +119,7 @@ func (m *ItemInsightsTrendingTrendingItemRequestBuilder) Resource()(*ItemInsight return NewItemInsightsTrendingItemResourceRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property trending for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInsightsTrendingTrendingItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemInsightsTrendingTrendingItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -127,6 +131,7 @@ func (m *ItemInsightsTrendingTrendingItemRequestBuilder) ToDeleteRequestInformat return requestInfo, nil } // ToGetRequestInformation access this property from the derived type itemInsights. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInsightsTrendingTrendingItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemInsightsTrendingTrendingItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,6 +146,7 @@ func (m *ItemInsightsTrendingTrendingItemRequestBuilder) ToGetRequestInformation return requestInfo, nil } // ToPatchRequestInformation update the navigation property trending in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInsightsTrendingTrendingItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Trendingable, requestConfiguration *ItemInsightsTrendingTrendingItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +162,7 @@ func (m *ItemInsightsTrendingTrendingItemRequestBuilder) ToPatchRequestInformati return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInsightsTrendingTrendingItemRequestBuilder when successful func (m *ItemInsightsTrendingTrendingItemRequestBuilder) WithUrl(rawUrl string)(*ItemInsightsTrendingTrendingItemRequestBuilder) { return NewItemInsightsTrendingTrendingItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_insights_used_count_request_builder.go b/users/item_insights_used_count_request_builder.go index 424ce5b9746..2ededf45052 100644 --- a/users/item_insights_used_count_request_builder.go +++ b/users/item_insights_used_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemInsightsUsedCountRequestBuilder(rawUrl string, requestAdapter i2ae41 return NewItemInsightsUsedCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInsightsUsedCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInsightsUsedCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemInsightsUsedCountRequestBuilder) Get(ctx context.Context, requestCo return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInsightsUsedCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemInsightsUsedCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemInsightsUsedCountRequestBuilder) ToGetRequestInformation(ctx contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInsightsUsedCountRequestBuilder when successful func (m *ItemInsightsUsedCountRequestBuilder) WithUrl(rawUrl string)(*ItemInsightsUsedCountRequestBuilder) { return NewItemInsightsUsedCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_insights_used_item_resource_request_builder.go b/users/item_insights_used_item_resource_request_builder.go index 1e5a8bac6b3..bba9ac41de6 100644 --- a/users/item_insights_used_item_resource_request_builder.go +++ b/users/item_insights_used_item_resource_request_builder.go @@ -41,6 +41,7 @@ func NewItemInsightsUsedItemResourceRequestBuilder(rawUrl string, requestAdapter return NewItemInsightsUsedItemResourceRequestBuilderInternal(urlParams, requestAdapter) } // Get used for navigating to the item that was used. For file attachments, the type is fileAttachment. For linked attachments, the type is driveItem. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Entityable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInsightsUsedItemResourceRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInsightsUsedItemResourceRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entityable, error) { @@ -61,6 +62,7 @@ func (m *ItemInsightsUsedItemResourceRequestBuilder) Get(ctx context.Context, re return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Entityable), nil } // ToGetRequestInformation used for navigating to the item that was used. For file attachments, the type is fileAttachment. For linked attachments, the type is driveItem. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInsightsUsedItemResourceRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemInsightsUsedItemResourceRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemInsightsUsedItemResourceRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInsightsUsedItemResourceRequestBuilder when successful func (m *ItemInsightsUsedItemResourceRequestBuilder) WithUrl(rawUrl string)(*ItemInsightsUsedItemResourceRequestBuilder) { return NewItemInsightsUsedItemResourceRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_insights_used_request_builder.go b/users/item_insights_used_request_builder.go index 722a886ab92..31bd25b6dad 100644 --- a/users/item_insights_used_request_builder.go +++ b/users/item_insights_used_request_builder.go @@ -47,6 +47,7 @@ type ItemInsightsUsedRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByUsedInsightId provides operations to manage the used property of the microsoft.graph.officeGraphInsights entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInsightsUsedUsedInsightItemRequestBuilder when successful func (m *ItemInsightsUsedRequestBuilder) ByUsedInsightId(usedInsightId string)(*ItemInsightsUsedUsedInsightItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemInsightsUsedRequestBuilder) Count()(*ItemInsightsUsedCountRequestBu return NewItemInsightsUsedCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get access this property from the derived type itemInsights. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UsedInsightCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInsightsUsedRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInsightsUsedRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UsedInsightCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemInsightsUsedRequestBuilder) Get(ctx context.Context, requestConfigu return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UsedInsightCollectionResponseable), nil } // Post create new navigation property to used for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UsedInsightable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInsightsUsedRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UsedInsightable, requestConfiguration *ItemInsightsUsedRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UsedInsightable, error) { @@ -117,6 +120,7 @@ func (m *ItemInsightsUsedRequestBuilder) Post(ctx context.Context, body ie233ee7 return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UsedInsightable), nil } // ToGetRequestInformation access this property from the derived type itemInsights. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInsightsUsedRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemInsightsUsedRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemInsightsUsedRequestBuilder) ToGetRequestInformation(ctx context.Con return requestInfo, nil } // ToPostRequestInformation create new navigation property to used for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInsightsUsedRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UsedInsightable, requestConfiguration *ItemInsightsUsedRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemInsightsUsedRequestBuilder) ToPostRequestInformation(ctx context.Co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInsightsUsedRequestBuilder when successful func (m *ItemInsightsUsedRequestBuilder) WithUrl(rawUrl string)(*ItemInsightsUsedRequestBuilder) { return NewItemInsightsUsedRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_insights_used_used_insight_item_request_builder.go b/users/item_insights_used_used_insight_item_request_builder.go index ba646f59993..a3a7276f8d5 100644 --- a/users/item_insights_used_used_insight_item_request_builder.go +++ b/users/item_insights_used_used_insight_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemInsightsUsedUsedInsightItemRequestBuilder(rawUrl string, requestAdap return NewItemInsightsUsedUsedInsightItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property used for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInsightsUsedUsedInsightItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemInsightsUsedUsedInsightItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemInsightsUsedUsedInsightItemRequestBuilder) Delete(ctx context.Conte return nil } // Get access this property from the derived type itemInsights. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UsedInsightable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInsightsUsedUsedInsightItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInsightsUsedUsedInsightItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UsedInsightable, error) { @@ -91,6 +93,7 @@ func (m *ItemInsightsUsedUsedInsightItemRequestBuilder) Get(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UsedInsightable), nil } // Patch update the navigation property used in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UsedInsightable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemInsightsUsedUsedInsightItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UsedInsightable, requestConfiguration *ItemInsightsUsedUsedInsightItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UsedInsightable, error) { @@ -116,6 +119,7 @@ func (m *ItemInsightsUsedUsedInsightItemRequestBuilder) Resource()(*ItemInsights return NewItemInsightsUsedItemResourceRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property used for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInsightsUsedUsedInsightItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemInsightsUsedUsedInsightItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -127,6 +131,7 @@ func (m *ItemInsightsUsedUsedInsightItemRequestBuilder) ToDeleteRequestInformati return requestInfo, nil } // ToGetRequestInformation access this property from the derived type itemInsights. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInsightsUsedUsedInsightItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemInsightsUsedUsedInsightItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,6 +146,7 @@ func (m *ItemInsightsUsedUsedInsightItemRequestBuilder) ToGetRequestInformation( return requestInfo, nil } // ToPatchRequestInformation update the navigation property used in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInsightsUsedUsedInsightItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UsedInsightable, requestConfiguration *ItemInsightsUsedUsedInsightItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +162,7 @@ func (m *ItemInsightsUsedUsedInsightItemRequestBuilder) ToPatchRequestInformatio return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInsightsUsedUsedInsightItemRequestBuilder when successful func (m *ItemInsightsUsedUsedInsightItemRequestBuilder) WithUrl(rawUrl string)(*ItemInsightsUsedUsedInsightItemRequestBuilder) { return NewItemInsightsUsedUsedInsightItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_invalidate_all_refresh_tokens_request_builder.go b/users/item_invalidate_all_refresh_tokens_request_builder.go index 8bc166e8078..faf4deb56ae 100644 --- a/users/item_invalidate_all_refresh_tokens_request_builder.go +++ b/users/item_invalidate_all_refresh_tokens_request_builder.go @@ -55,6 +55,7 @@ func (m *ItemInvalidateAllRefreshTokensRequestBuilder) Post(ctx context.Context, return res.(ItemInvalidateAllRefreshTokensResponseable), nil } // PostAsInvalidateAllRefreshTokensPostResponse invalidates all of the user's refresh tokens issued to applications (as well as session cookies in a user's browser), by resetting the refreshTokensValidFromDateTime user property to the current date-time. Typically, this operation is performed (by the user or an administrator) if the user has a lost or stolen device. This operation would prevent access to any of the organization's data accessed through applications on the device without the user first being required to sign in again. In fact, this operation would force the user to sign in again for all applications that they have previously consented to, independent of device. For developers, if the application attempts to redeem a delegated access token for this user by using an invalidated refresh token, the application will get an error. If this happens, the application will need to acquire a new refresh token by making a request to the authorize endpoint, which will force the user to sign in. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemInvalidateAllRefreshTokensPostResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -78,6 +79,7 @@ func (m *ItemInvalidateAllRefreshTokensRequestBuilder) PostAsInvalidateAllRefres return res.(ItemInvalidateAllRefreshTokensPostResponseable), nil } // ToPostRequestInformation invalidates all of the user's refresh tokens issued to applications (as well as session cookies in a user's browser), by resetting the refreshTokensValidFromDateTime user property to the current date-time. Typically, this operation is performed (by the user or an administrator) if the user has a lost or stolen device. This operation would prevent access to any of the organization's data accessed through applications on the device without the user first being required to sign in again. In fact, this operation would force the user to sign in again for all applications that they have previously consented to, independent of device. For developers, if the application attempts to redeem a delegated access token for this user by using an invalidated refresh token, the application will get an error. If this happens, the application will need to acquire a new refresh token by making a request to the authorize endpoint, which will force the user to sign in. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInvalidateAllRefreshTokensRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemInvalidateAllRefreshTokensRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -89,6 +91,7 @@ func (m *ItemInvalidateAllRefreshTokensRequestBuilder) ToPostRequestInformation( return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInvalidateAllRefreshTokensRequestBuilder when successful func (m *ItemInvalidateAllRefreshTokensRequestBuilder) WithUrl(rawUrl string)(*ItemInvalidateAllRefreshTokensRequestBuilder) { return NewItemInvalidateAllRefreshTokensRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_invited_by_request_builder.go b/users/item_invited_by_request_builder.go index 3abad6f3e88..a46ca1a89cd 100644 --- a/users/item_invited_by_request_builder.go +++ b/users/item_invited_by_request_builder.go @@ -41,6 +41,7 @@ func NewItemInvitedByRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee return NewItemInvitedByRequestBuilderInternal(urlParams, requestAdapter) } // Get get the user or servicePrincipal that invited the specified user into the tenant. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DirectoryObjectable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -64,6 +65,7 @@ func (m *ItemInvitedByRequestBuilder) Get(ctx context.Context, requestConfigurat return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryObjectable), nil } // ToGetRequestInformation get the user or servicePrincipal that invited the specified user into the tenant. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemInvitedByRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemInvitedByRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -78,6 +80,7 @@ func (m *ItemInvitedByRequestBuilder) ToGetRequestInformation(ctx context.Contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemInvitedByRequestBuilder when successful func (m *ItemInvitedByRequestBuilder) WithUrl(rawUrl string)(*ItemInvitedByRequestBuilder) { return NewItemInvitedByRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_is_managed_app_user_blocked_request_builder.go b/users/item_is_managed_app_user_blocked_request_builder.go index fa26d10bce9..fd5088545f6 100644 --- a/users/item_is_managed_app_user_blocked_request_builder.go +++ b/users/item_is_managed_app_user_blocked_request_builder.go @@ -52,6 +52,7 @@ func (m *ItemIsManagedAppUserBlockedRequestBuilder) Get(ctx context.Context, req return res.(ItemIsManagedAppUserBlockedResponseable), nil } // GetAsIsManagedAppUserBlockedGetResponse gets the blocked state of a managed app user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemIsManagedAppUserBlockedGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemIsManagedAppUserBlockedRequestBuilder) GetAsIsManagedAppUserBlockedGetResponse(ctx context.Context, requestConfiguration *ItemIsManagedAppUserBlockedRequestBuilderGetRequestConfiguration)(ItemIsManagedAppUserBlockedGetResponseable, error) { @@ -72,6 +73,7 @@ func (m *ItemIsManagedAppUserBlockedRequestBuilder) GetAsIsManagedAppUserBlocked return res.(ItemIsManagedAppUserBlockedGetResponseable), nil } // ToGetRequestInformation gets the blocked state of a managed app user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemIsManagedAppUserBlockedRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemIsManagedAppUserBlockedRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -83,6 +85,7 @@ func (m *ItemIsManagedAppUserBlockedRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemIsManagedAppUserBlockedRequestBuilder when successful func (m *ItemIsManagedAppUserBlockedRequestBuilder) WithUrl(rawUrl string)(*ItemIsManagedAppUserBlockedRequestBuilder) { return NewItemIsManagedAppUserBlockedRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_joined_groups_delta_request_builder.go b/users/item_joined_groups_delta_request_builder.go index dfdeaae215e..cfdb4ae92de 100644 --- a/users/item_joined_groups_delta_request_builder.go +++ b/users/item_joined_groups_delta_request_builder.go @@ -76,6 +76,7 @@ func (m *ItemJoinedGroupsDeltaRequestBuilder) Get(ctx context.Context, requestCo return res.(ItemJoinedGroupsDeltaResponseable), nil } // GetAsDeltaGetResponse get newly created, updated, or deleted groups, including group membership changes, without having to perform a full read of the entire group collection. See Using Delta Query for details. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemJoinedGroupsDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -99,6 +100,7 @@ func (m *ItemJoinedGroupsDeltaRequestBuilder) GetAsDeltaGetResponse(ctx context. return res.(ItemJoinedGroupsDeltaGetResponseable), nil } // ToGetRequestInformation get newly created, updated, or deleted groups, including group membership changes, without having to perform a full read of the entire group collection. See Using Delta Query for details. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemJoinedGroupsDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemJoinedGroupsDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,6 +115,7 @@ func (m *ItemJoinedGroupsDeltaRequestBuilder) ToGetRequestInformation(ctx contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemJoinedGroupsDeltaRequestBuilder when successful func (m *ItemJoinedGroupsDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemJoinedGroupsDeltaRequestBuilder) { return NewItemJoinedGroupsDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_joined_groups_evaluate_dynamic_membership_request_builder.go b/users/item_joined_groups_evaluate_dynamic_membership_request_builder.go index 768dd63be95..95a4741728c 100644 --- a/users/item_joined_groups_evaluate_dynamic_membership_request_builder.go +++ b/users/item_joined_groups_evaluate_dynamic_membership_request_builder.go @@ -32,6 +32,7 @@ func NewItemJoinedGroupsEvaluateDynamicMembershipRequestBuilder(rawUrl string, r return NewItemJoinedGroupsEvaluateDynamicMembershipRequestBuilderInternal(urlParams, requestAdapter) } // Post invoke action evaluateDynamicMembership +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EvaluateDynamicMembershipResultable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemJoinedGroupsEvaluateDynamicMembershipRequestBuilder) Post(ctx conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EvaluateDynamicMembershipResultable), nil } // ToPostRequestInformation invoke action evaluateDynamicMembership +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemJoinedGroupsEvaluateDynamicMembershipRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemJoinedGroupsEvaluateDynamicMembershipPostRequestBodyable, requestConfiguration *ItemJoinedGroupsEvaluateDynamicMembershipRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemJoinedGroupsEvaluateDynamicMembershipRequestBuilder) ToPostRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemJoinedGroupsEvaluateDynamicMembershipRequestBuilder when successful func (m *ItemJoinedGroupsEvaluateDynamicMembershipRequestBuilder) WithUrl(rawUrl string)(*ItemJoinedGroupsEvaluateDynamicMembershipRequestBuilder) { return NewItemJoinedGroupsEvaluateDynamicMembershipRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_joined_groups_request_builder.go b/users/item_joined_groups_request_builder.go index 9682ca52c95..bfc9daeb4e1 100644 --- a/users/item_joined_groups_request_builder.go +++ b/users/item_joined_groups_request_builder.go @@ -63,6 +63,7 @@ func (m *ItemJoinedGroupsRequestBuilder) EvaluateDynamicMembership()(*ItemJoined return NewItemJoinedGroupsEvaluateDynamicMembershipRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get joinedGroups from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a GroupCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemJoinedGroupsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemJoinedGroupsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GroupCollectionResponseable, error) { @@ -83,6 +84,7 @@ func (m *ItemJoinedGroupsRequestBuilder) Get(ctx context.Context, requestConfigu return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GroupCollectionResponseable), nil } // ToGetRequestInformation get joinedGroups from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemJoinedGroupsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemJoinedGroupsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -97,6 +99,7 @@ func (m *ItemJoinedGroupsRequestBuilder) ToGetRequestInformation(ctx context.Con return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemJoinedGroupsRequestBuilder when successful func (m *ItemJoinedGroupsRequestBuilder) WithUrl(rawUrl string)(*ItemJoinedGroupsRequestBuilder) { return NewItemJoinedGroupsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_joined_teams_count_request_builder.go b/users/item_joined_teams_count_request_builder.go index e03b89c29a9..e212c9c7475 100644 --- a/users/item_joined_teams_count_request_builder.go +++ b/users/item_joined_teams_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemJoinedTeamsCountRequestBuilder(rawUrl string, requestAdapter i2ae418 return NewItemJoinedTeamsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemJoinedTeamsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemJoinedTeamsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemJoinedTeamsCountRequestBuilder) Get(ctx context.Context, requestCon return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemJoinedTeamsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemJoinedTeamsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemJoinedTeamsCountRequestBuilder) ToGetRequestInformation(ctx context return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemJoinedTeamsCountRequestBuilder when successful func (m *ItemJoinedTeamsCountRequestBuilder) WithUrl(rawUrl string)(*ItemJoinedTeamsCountRequestBuilder) { return NewItemJoinedTeamsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_joined_teams_request_builder.go b/users/item_joined_teams_request_builder.go index 6e22652cae2..383d92215fa 100644 --- a/users/item_joined_teams_request_builder.go +++ b/users/item_joined_teams_request_builder.go @@ -40,6 +40,7 @@ type ItemJoinedTeamsRequestBuilderGetRequestConfiguration struct { QueryParameters *ItemJoinedTeamsRequestBuilderGetQueryParameters } // ByTeamId provides operations to manage the joinedTeams property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemJoinedTeamsTeamItemRequestBuilder when successful func (m *ItemJoinedTeamsRequestBuilder) ByTeamId(teamId string)(*ItemJoinedTeamsTeamItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -70,6 +71,7 @@ func (m *ItemJoinedTeamsRequestBuilder) Count()(*ItemJoinedTeamsCountRequestBuil return NewItemJoinedTeamsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the Microsoft Teams teams the user is a member of. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a TeamCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemJoinedTeamsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemJoinedTeamsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamCollectionResponseable, error) { @@ -90,6 +92,7 @@ func (m *ItemJoinedTeamsRequestBuilder) Get(ctx context.Context, requestConfigur return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamCollectionResponseable), nil } // ToGetRequestInformation the Microsoft Teams teams the user is a member of. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemJoinedTeamsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemJoinedTeamsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -104,6 +107,7 @@ func (m *ItemJoinedTeamsRequestBuilder) ToGetRequestInformation(ctx context.Cont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemJoinedTeamsRequestBuilder when successful func (m *ItemJoinedTeamsRequestBuilder) WithUrl(rawUrl string)(*ItemJoinedTeamsRequestBuilder) { return NewItemJoinedTeamsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_joined_teams_team_item_request_builder.go b/users/item_joined_teams_team_item_request_builder.go index 9f3ede48d1d..5fb4429e931 100644 --- a/users/item_joined_teams_team_item_request_builder.go +++ b/users/item_joined_teams_team_item_request_builder.go @@ -41,6 +41,7 @@ func NewItemJoinedTeamsTeamItemRequestBuilder(rawUrl string, requestAdapter i2ae return NewItemJoinedTeamsTeamItemRequestBuilderInternal(urlParams, requestAdapter) } // Get the Microsoft Teams teams the user is a member of. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Teamable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemJoinedTeamsTeamItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemJoinedTeamsTeamItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Teamable, error) { @@ -61,6 +62,7 @@ func (m *ItemJoinedTeamsTeamItemRequestBuilder) Get(ctx context.Context, request return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Teamable), nil } // ToGetRequestInformation the Microsoft Teams teams the user is a member of. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemJoinedTeamsTeamItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemJoinedTeamsTeamItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemJoinedTeamsTeamItemRequestBuilder) ToGetRequestInformation(ctx cont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemJoinedTeamsTeamItemRequestBuilder when successful func (m *ItemJoinedTeamsTeamItemRequestBuilder) WithUrl(rawUrl string)(*ItemJoinedTeamsTeamItemRequestBuilder) { return NewItemJoinedTeamsTeamItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_license_details_count_request_builder.go b/users/item_license_details_count_request_builder.go index 935f54d0d36..d5c387e0d68 100644 --- a/users/item_license_details_count_request_builder.go +++ b/users/item_license_details_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemLicenseDetailsCountRequestBuilder(rawUrl string, requestAdapter i2ae return NewItemLicenseDetailsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemLicenseDetailsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemLicenseDetailsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemLicenseDetailsCountRequestBuilder) Get(ctx context.Context, request return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemLicenseDetailsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemLicenseDetailsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemLicenseDetailsCountRequestBuilder) ToGetRequestInformation(ctx cont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemLicenseDetailsCountRequestBuilder when successful func (m *ItemLicenseDetailsCountRequestBuilder) WithUrl(rawUrl string)(*ItemLicenseDetailsCountRequestBuilder) { return NewItemLicenseDetailsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_license_details_get_teams_licensing_details_request_builder.go b/users/item_license_details_get_teams_licensing_details_request_builder.go index 3100037b22b..9f478a04a0d 100644 --- a/users/item_license_details_get_teams_licensing_details_request_builder.go +++ b/users/item_license_details_get_teams_licensing_details_request_builder.go @@ -32,6 +32,7 @@ func NewItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder(rawUrl string, return NewItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilderInternal(urlParams, requestAdapter) } // Get get the license status of a user in Microsoft Teams. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a TeamsLicensingDetailsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder) Get(ctx conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsLicensingDetailsable), nil } // ToGetRequestInformation get the license status of a user in Microsoft Teams. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -66,6 +68,7 @@ func (m *ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder) ToGetRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder when successful func (m *ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder) WithUrl(rawUrl string)(*ItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder) { return NewItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_license_details_license_details_item_request_builder.go b/users/item_license_details_license_details_item_request_builder.go index 0a79ef491b8..febd095f1ab 100644 --- a/users/item_license_details_license_details_item_request_builder.go +++ b/users/item_license_details_license_details_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemLicenseDetailsLicenseDetailsItemRequestBuilder(rawUrl string, reques return NewItemLicenseDetailsLicenseDetailsItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property licenseDetails for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemLicenseDetailsLicenseDetailsItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemLicenseDetailsLicenseDetailsItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemLicenseDetailsLicenseDetailsItemRequestBuilder) Delete(ctx context. return nil } // Get get licenseDetails from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a LicenseDetailsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemLicenseDetailsLicenseDetailsItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemLicenseDetailsLicenseDetailsItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LicenseDetailsable, error) { @@ -91,6 +93,7 @@ func (m *ItemLicenseDetailsLicenseDetailsItemRequestBuilder) Get(ctx context.Con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LicenseDetailsable), nil } // Patch update the navigation property licenseDetails in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a LicenseDetailsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemLicenseDetailsLicenseDetailsItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LicenseDetailsable, requestConfiguration *ItemLicenseDetailsLicenseDetailsItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LicenseDetailsable, error) { @@ -111,6 +114,7 @@ func (m *ItemLicenseDetailsLicenseDetailsItemRequestBuilder) Patch(ctx context.C return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LicenseDetailsable), nil } // ToDeleteRequestInformation delete navigation property licenseDetails for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemLicenseDetailsLicenseDetailsItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemLicenseDetailsLicenseDetailsItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemLicenseDetailsLicenseDetailsItemRequestBuilder) ToDeleteRequestInfo return requestInfo, nil } // ToGetRequestInformation get licenseDetails from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemLicenseDetailsLicenseDetailsItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemLicenseDetailsLicenseDetailsItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemLicenseDetailsLicenseDetailsItemRequestBuilder) ToGetRequestInforma return requestInfo, nil } // ToPatchRequestInformation update the navigation property licenseDetails in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemLicenseDetailsLicenseDetailsItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LicenseDetailsable, requestConfiguration *ItemLicenseDetailsLicenseDetailsItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemLicenseDetailsLicenseDetailsItemRequestBuilder) ToPatchRequestInfor return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemLicenseDetailsLicenseDetailsItemRequestBuilder when successful func (m *ItemLicenseDetailsLicenseDetailsItemRequestBuilder) WithUrl(rawUrl string)(*ItemLicenseDetailsLicenseDetailsItemRequestBuilder) { return NewItemLicenseDetailsLicenseDetailsItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_license_details_request_builder.go b/users/item_license_details_request_builder.go index 873a47ed076..4f243fbf634 100644 --- a/users/item_license_details_request_builder.go +++ b/users/item_license_details_request_builder.go @@ -47,6 +47,7 @@ type ItemLicenseDetailsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByLicenseDetailsId provides operations to manage the licenseDetails property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemLicenseDetailsLicenseDetailsItemRequestBuilder when successful func (m *ItemLicenseDetailsRequestBuilder) ByLicenseDetailsId(licenseDetailsId string)(*ItemLicenseDetailsLicenseDetailsItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemLicenseDetailsRequestBuilder) Count()(*ItemLicenseDetailsCountReque return NewItemLicenseDetailsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get licenseDetails from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a LicenseDetailsCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemLicenseDetailsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemLicenseDetailsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LicenseDetailsCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemLicenseDetailsRequestBuilder) GetTeamsLicensingDetails()(*ItemLicen return NewItemLicenseDetailsGetTeamsLicensingDetailsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Post create new navigation property to licenseDetails for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a LicenseDetailsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemLicenseDetailsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LicenseDetailsable, requestConfiguration *ItemLicenseDetailsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LicenseDetailsable, error) { @@ -122,6 +125,7 @@ func (m *ItemLicenseDetailsRequestBuilder) Post(ctx context.Context, body ie233e return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LicenseDetailsable), nil } // ToGetRequestInformation get licenseDetails from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemLicenseDetailsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemLicenseDetailsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemLicenseDetailsRequestBuilder) ToGetRequestInformation(ctx context.C return requestInfo, nil } // ToPostRequestInformation create new navigation property to licenseDetails for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemLicenseDetailsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LicenseDetailsable, requestConfiguration *ItemLicenseDetailsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemLicenseDetailsRequestBuilder) ToPostRequestInformation(ctx context. return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemLicenseDetailsRequestBuilder when successful func (m *ItemLicenseDetailsRequestBuilder) WithUrl(rawUrl string)(*ItemLicenseDetailsRequestBuilder) { return NewItemLicenseDetailsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_count_request_builder.go b/users/item_mail_folders_count_request_builder.go index 28199795974..16cbb3fb61a 100644 --- a/users/item_mail_folders_count_request_builder.go +++ b/users/item_mail_folders_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemMailFoldersCountRequestBuilder(rawUrl string, requestAdapter i2ae418 return NewItemMailFoldersCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemMailFoldersCountRequestBuilder) Get(ctx context.Context, requestCon return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemMailFoldersCountRequestBuilder) ToGetRequestInformation(ctx context return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersCountRequestBuilder when successful func (m *ItemMailFoldersCountRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersCountRequestBuilder) { return NewItemMailFoldersCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_delta_request_builder.go b/users/item_mail_folders_delta_request_builder.go index 823db191e90..68457a97a67 100644 --- a/users/item_mail_folders_delta_request_builder.go +++ b/users/item_mail_folders_delta_request_builder.go @@ -76,6 +76,7 @@ func (m *ItemMailFoldersDeltaRequestBuilder) Get(ctx context.Context, requestCon return res.(ItemMailFoldersDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemMailFoldersDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -99,6 +100,7 @@ func (m *ItemMailFoldersDeltaRequestBuilder) GetAsDeltaGetResponse(ctx context.C return res.(ItemMailFoldersDeltaGetResponseable), nil } // ToGetRequestInformation get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,6 +115,7 @@ func (m *ItemMailFoldersDeltaRequestBuilder) ToGetRequestInformation(ctx context return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersDeltaRequestBuilder when successful func (m *ItemMailFoldersDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersDeltaRequestBuilder) { return NewItemMailFoldersDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_child_folders_count_request_builder.go b/users/item_mail_folders_item_child_folders_count_request_builder.go index 281670db834..eebb7ad8f23 100644 --- a/users/item_mail_folders_item_child_folders_count_request_builder.go +++ b/users/item_mail_folders_item_child_folders_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemMailFoldersItemChildFoldersCountRequestBuilder(rawUrl string, reques return NewItemMailFoldersItemChildFoldersCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemChildFoldersCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemMailFoldersItemChildFoldersCountRequestBuilder) Get(ctx context.Con return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemMailFoldersItemChildFoldersCountRequestBuilder) ToGetRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemChildFoldersCountRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersCountRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemChildFoldersCountRequestBuilder) { return NewItemMailFoldersItemChildFoldersCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_child_folders_delta_request_builder.go b/users/item_mail_folders_item_child_folders_delta_request_builder.go index 6267e1f70a3..49cd02d85ba 100644 --- a/users/item_mail_folders_item_child_folders_delta_request_builder.go +++ b/users/item_mail_folders_item_child_folders_delta_request_builder.go @@ -76,6 +76,7 @@ func (m *ItemMailFoldersItemChildFoldersDeltaRequestBuilder) Get(ctx context.Con return res.(ItemMailFoldersItemChildFoldersDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemMailFoldersItemChildFoldersDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -99,6 +100,7 @@ func (m *ItemMailFoldersItemChildFoldersDeltaRequestBuilder) GetAsDeltaGetRespon return res.(ItemMailFoldersItemChildFoldersDeltaGetResponseable), nil } // ToGetRequestInformation get a set of mail folders that have been added, deleted, or removed from the user's mailbox. A delta function call for mail folders in a mailbox is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls,you can query for incremental changes in the mail folders. This allows you to maintain and synchronizea local store of a user's mail folders without having to fetch all the mail folders of that mailbox from the server every time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,6 +115,7 @@ func (m *ItemMailFoldersItemChildFoldersDeltaRequestBuilder) ToGetRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemChildFoldersDeltaRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemChildFoldersDeltaRequestBuilder) { return NewItemMailFoldersItemChildFoldersDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_child_folders_item_copy_request_builder.go b/users/item_mail_folders_item_child_folders_item_copy_request_builder.go index 5ee231c6525..eace37e40cd 100644 --- a/users/item_mail_folders_item_child_folders_item_copy_request_builder.go +++ b/users/item_mail_folders_item_child_folders_item_copy_request_builder.go @@ -32,6 +32,7 @@ func NewItemMailFoldersItemChildFoldersItemCopyRequestBuilder(rawUrl string, req return NewItemMailFoldersItemChildFoldersItemCopyRequestBuilderInternal(urlParams, requestAdapter) } // Post copy a mail folder and its contents to another mail folder. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailFolderable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemMailFoldersItemChildFoldersItemCopyRequestBuilder) Post(ctx context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailFolderable), nil } // ToPostRequestInformation copy a mail folder and its contents to another mail folder. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemCopyRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemMailFoldersItemChildFoldersItemCopyPostRequestBodyable, requestConfiguration *ItemMailFoldersItemChildFoldersItemCopyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemMailFoldersItemChildFoldersItemCopyRequestBuilder) ToPostRequestInf return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemChildFoldersItemCopyRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersItemCopyRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemChildFoldersItemCopyRequestBuilder) { return NewItemMailFoldersItemChildFoldersItemCopyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_child_folders_item_message_rules_count_request_builder.go b/users/item_mail_folders_item_child_folders_item_message_rules_count_request_builder.go index a7c1491443e..46327acd8ee 100644 --- a/users/item_mail_folders_item_child_folders_item_message_rules_count_request_builder.go +++ b/users/item_mail_folders_item_child_folders_item_message_rules_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemMailFoldersItemChildFoldersItemMessageRulesCountRequestBuilder(rawUr return NewItemMailFoldersItemChildFoldersItemMessageRulesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemChildFoldersItemMessageRulesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessageRulesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessageRulesCountRequestBuilder) Get return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessageRulesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessageRulesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessageRulesCountRequestBuilder) ToG return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemChildFoldersItemMessageRulesCountRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersItemMessageRulesCountRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemChildFoldersItemMessageRulesCountRequestBuilder) { return NewItemMailFoldersItemChildFoldersItemMessageRulesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_child_folders_item_message_rules_message_rule_item_request_builder.go b/users/item_mail_folders_item_child_folders_item_message_rules_message_rule_item_request_builder.go index 09bc5deefe7..13fd76b435e 100644 --- a/users/item_mail_folders_item_child_folders_item_message_rules_message_rule_item_request_builder.go +++ b/users/item_mail_folders_item_child_folders_item_message_rules_message_rule_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemMailFoldersItemChildFoldersItemMessageRulesMessageRuleItemRequestBui return NewItemMailFoldersItemChildFoldersItemMessageRulesMessageRuleItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property messageRules for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemChildFoldersItemMessageRulesMessageRuleItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessageRulesMessageRuleItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessageRulesMessageRuleItemRequestBu return nil } // Get the collection of rules that apply to the user's Inbox folder. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MessageRuleable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemChildFoldersItemMessageRulesMessageRuleItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessageRulesMessageRuleItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MessageRuleable, error) { @@ -91,6 +93,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessageRulesMessageRuleItemRequestBu return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MessageRuleable), nil } // Patch update the navigation property messageRules in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MessageRuleable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemChildFoldersItemMessageRulesMessageRuleItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MessageRuleable, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessageRulesMessageRuleItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MessageRuleable, error) { @@ -111,6 +114,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessageRulesMessageRuleItemRequestBu return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MessageRuleable), nil } // ToDeleteRequestInformation delete navigation property messageRules for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessageRulesMessageRuleItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessageRulesMessageRuleItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessageRulesMessageRuleItemRequestBu return requestInfo, nil } // ToGetRequestInformation the collection of rules that apply to the user's Inbox folder. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessageRulesMessageRuleItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessageRulesMessageRuleItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessageRulesMessageRuleItemRequestBu return requestInfo, nil } // ToPatchRequestInformation update the navigation property messageRules in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessageRulesMessageRuleItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MessageRuleable, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessageRulesMessageRuleItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessageRulesMessageRuleItemRequestBu return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemChildFoldersItemMessageRulesMessageRuleItemRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersItemMessageRulesMessageRuleItemRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemChildFoldersItemMessageRulesMessageRuleItemRequestBuilder) { return NewItemMailFoldersItemChildFoldersItemMessageRulesMessageRuleItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_child_folders_item_message_rules_request_builder.go b/users/item_mail_folders_item_child_folders_item_message_rules_request_builder.go index 8377a3a43f4..eeb939b6dab 100644 --- a/users/item_mail_folders_item_child_folders_item_message_rules_request_builder.go +++ b/users/item_mail_folders_item_child_folders_item_message_rules_request_builder.go @@ -47,6 +47,7 @@ type ItemMailFoldersItemChildFoldersItemMessageRulesRequestBuilderPostRequestCon Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByMessageRuleId provides operations to manage the messageRules property of the microsoft.graph.mailFolder entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemChildFoldersItemMessageRulesMessageRuleItemRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersItemMessageRulesRequestBuilder) ByMessageRuleId(messageRuleId string)(*ItemMailFoldersItemChildFoldersItemMessageRulesMessageRuleItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessageRulesRequestBuilder) Count()( return NewItemMailFoldersItemChildFoldersItemMessageRulesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of rules that apply to the user's Inbox folder. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MessageRuleCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemChildFoldersItemMessageRulesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessageRulesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MessageRuleCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessageRulesRequestBuilder) Get(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MessageRuleCollectionResponseable), nil } // Post create new navigation property to messageRules for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MessageRuleable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemChildFoldersItemMessageRulesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MessageRuleable, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessageRulesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MessageRuleable, error) { @@ -117,6 +120,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessageRulesRequestBuilder) Post(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MessageRuleable), nil } // ToGetRequestInformation the collection of rules that apply to the user's Inbox folder. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessageRulesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessageRulesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessageRulesRequestBuilder) ToGetReq return requestInfo, nil } // ToPostRequestInformation create new navigation property to messageRules for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessageRulesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MessageRuleable, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessageRulesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessageRulesRequestBuilder) ToPostRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemChildFoldersItemMessageRulesRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersItemMessageRulesRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemChildFoldersItemMessageRulesRequestBuilder) { return NewItemMailFoldersItemChildFoldersItemMessageRulesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_child_folders_item_messages_count_request_builder.go b/users/item_mail_folders_item_child_folders_item_messages_count_request_builder.go index fcef7dbfb65..1a83c632678 100644 --- a/users/item_mail_folders_item_child_folders_item_messages_count_request_builder.go +++ b/users/item_mail_folders_item_child_folders_item_messages_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemMailFoldersItemChildFoldersItemMessagesCountRequestBuilder(rawUrl st return NewItemMailFoldersItemChildFoldersItemMessagesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemChildFoldersItemMessagesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesCountRequestBuilder) Get(ctx return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesCountRequestBuilder) ToGetRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemChildFoldersItemMessagesCountRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesCountRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemChildFoldersItemMessagesCountRequestBuilder) { return NewItemMailFoldersItemChildFoldersItemMessagesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_child_folders_item_messages_delta_request_builder.go b/users/item_mail_folders_item_child_folders_item_messages_delta_request_builder.go index bb4c7a9ddbe..fcfe62e1449 100644 --- a/users/item_mail_folders_item_child_folders_item_messages_delta_request_builder.go +++ b/users/item_mail_folders_item_child_folders_item_messages_delta_request_builder.go @@ -78,6 +78,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesDeltaRequestBuilder) Get(ctx return res.(ItemMailFoldersItemChildFoldersItemMessagesDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemMailFoldersItemChildFoldersItemMessagesDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -101,6 +102,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesDeltaRequestBuilder) GetAsDe return res.(ItemMailFoldersItemChildFoldersItemMessagesDeltaGetResponseable), nil } // ToGetRequestInformation get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -115,6 +117,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesDeltaRequestBuilder) ToGetRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemChildFoldersItemMessagesDeltaRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemChildFoldersItemMessagesDeltaRequestBuilder) { return NewItemMailFoldersItemChildFoldersItemMessagesDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_child_folders_item_messages_item_attachments_attachment_item_request_builder.go b/users/item_mail_folders_item_child_folders_item_messages_item_attachments_attachment_item_request_builder.go index 9a027f04867..2e295ba1ef6 100644 --- a/users/item_mail_folders_item_child_folders_item_messages_item_attachments_attachment_item_request_builder.go +++ b/users/item_mail_folders_item_child_folders_item_messages_item_attachments_attachment_item_request_builder.go @@ -48,6 +48,7 @@ func NewItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsAttachmentItem return NewItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsAttachmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,6 +65,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsAttachmentIte return nil } // Get the fileAttachment and itemAttachment attachments for the message. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -84,6 +86,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsAttachmentIte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToDeleteRequestInformation delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +98,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsAttachmentIte return requestInfo, nil } // ToGetRequestInformation the fileAttachment and itemAttachment attachments for the message. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +113,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsAttachmentIte return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsAttachmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsAttachmentItemRequestBuilder) { return NewItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsAttachmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_child_folders_item_messages_item_attachments_count_request_builder.go b/users/item_mail_folders_item_child_folders_item_messages_item_attachments_count_request_builder.go index 7c4149b39eb..cc5bb6c8d15 100644 --- a/users/item_mail_folders_item_child_folders_item_messages_item_attachments_count_request_builder.go +++ b/users/item_mail_folders_item_child_folders_item_messages_item_attachments_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsCountRequestBu return NewItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsCountRequestB return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsCountRequestB return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsCountRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsCountRequestBuilder) { return NewItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_child_folders_item_messages_item_attachments_request_builder.go b/users/item_mail_folders_item_child_folders_item_messages_item_attachments_request_builder.go index ece1b78afb6..fcea7a3a6ca 100644 --- a/users/item_mail_folders_item_child_folders_item_messages_item_attachments_request_builder.go +++ b/users/item_mail_folders_item_child_folders_item_messages_item_attachments_request_builder.go @@ -47,6 +47,7 @@ type ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilderPos Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentId provides operations to manage the attachments property of the microsoft.graph.message entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilder) ByAttachmentId(attachmentId string)(*ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsAttachmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilde return NewItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the fileAttachment and itemAttachment attachments for the message. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilde return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } // Post create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -122,6 +125,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilde return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToGetRequestInformation the fileAttachment and itemAttachment attachments for the message. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilde return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilde return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilder) { return NewItemMailFoldersItemChildFoldersItemMessagesItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_child_folders_item_messages_item_copy_request_builder.go b/users/item_mail_folders_item_child_folders_item_messages_item_copy_request_builder.go index 8b483c70899..37fcacdebd9 100644 --- a/users/item_mail_folders_item_child_folders_item_messages_item_copy_request_builder.go +++ b/users/item_mail_folders_item_child_folders_item_messages_item_copy_request_builder.go @@ -32,6 +32,7 @@ func NewItemMailFoldersItemChildFoldersItemMessagesItemCopyRequestBuilder(rawUrl return NewItemMailFoldersItemChildFoldersItemMessagesItemCopyRequestBuilderInternal(urlParams, requestAdapter) } // Post copy a message to a folder within the user's mailbox. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Messageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemCopyRequestBuilder) Post return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable), nil } // ToPostRequestInformation copy a message to a folder within the user's mailbox. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemCopyRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemMailFoldersItemChildFoldersItemMessagesItemCopyPostRequestBodyable, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemCopyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemCopyRequestBuilder) ToPo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemChildFoldersItemMessagesItemCopyRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemCopyRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemChildFoldersItemMessagesItemCopyRequestBuilder) { return NewItemMailFoldersItemChildFoldersItemMessagesItemCopyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_child_folders_item_messages_item_create_forward_request_builder.go b/users/item_mail_folders_item_child_folders_item_messages_item_create_forward_request_builder.go index b40d49b062a..08f5b2ff265 100644 --- a/users/item_mail_folders_item_child_folders_item_messages_item_create_forward_request_builder.go +++ b/users/item_mail_folders_item_child_folders_item_messages_item_create_forward_request_builder.go @@ -32,6 +32,7 @@ func NewItemMailFoldersItemChildFoldersItemMessagesItemCreateForwardRequestBuild return NewItemMailFoldersItemChildFoldersItemMessagesItemCreateForwardRequestBuilderInternal(urlParams, requestAdapter) } // Post create a draft to forward an existing message, in either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, forward a message in a single operation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Messageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemCreateForwardRequestBuil return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable), nil } // ToPostRequestInformation create a draft to forward an existing message, in either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, forward a message in a single operation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemCreateForwardRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemMailFoldersItemChildFoldersItemMessagesItemCreateForwardPostRequestBodyable, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemCreateForwardRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemCreateForwardRequestBuil return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemChildFoldersItemMessagesItemCreateForwardRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemCreateForwardRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemChildFoldersItemMessagesItemCreateForwardRequestBuilder) { return NewItemMailFoldersItemChildFoldersItemMessagesItemCreateForwardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_child_folders_item_messages_item_create_reply_all_request_builder.go b/users/item_mail_folders_item_child_folders_item_messages_item_create_reply_all_request_builder.go index 2da93ed7ec9..7039734b05a 100644 --- a/users/item_mail_folders_item_child_folders_item_messages_item_create_reply_all_request_builder.go +++ b/users/item_mail_folders_item_child_folders_item_messages_item_create_reply_all_request_builder.go @@ -32,6 +32,7 @@ func NewItemMailFoldersItemChildFoldersItemMessagesItemCreateReplyAllRequestBuil return NewItemMailFoldersItemChildFoldersItemMessagesItemCreateReplyAllRequestBuilderInternal(urlParams, requestAdapter) } // Post create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties.- You can update the draft message later. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Messageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemCreateReplyAllRequestBui return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable), nil } // ToPostRequestInformation create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties.- You can update the draft message later. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemCreateReplyAllRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemMailFoldersItemChildFoldersItemMessagesItemCreateReplyAllPostRequestBodyable, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemCreateReplyAllRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemCreateReplyAllRequestBui return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemChildFoldersItemMessagesItemCreateReplyAllRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemCreateReplyAllRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemChildFoldersItemMessagesItemCreateReplyAllRequestBuilder) { return NewItemMailFoldersItemChildFoldersItemMessagesItemCreateReplyAllRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_child_folders_item_messages_item_create_reply_request_builder.go b/users/item_mail_folders_item_child_folders_item_messages_item_create_reply_request_builder.go index 9d298fbbf44..d7d3bcac039 100644 --- a/users/item_mail_folders_item_child_folders_item_messages_item_create_reply_request_builder.go +++ b/users/item_mail_folders_item_child_folders_item_messages_item_create_reply_request_builder.go @@ -32,6 +32,7 @@ func NewItemMailFoldersItemChildFoldersItemMessagesItemCreateReplyRequestBuilder return NewItemMailFoldersItemChildFoldersItemMessagesItemCreateReplyRequestBuilderInternal(urlParams, requestAdapter) } // Post create a draft to reply to the sender of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If replyTo is specified in the original message, per Internet Message Format (RFC 2822), you should send the reply to the recipients in replyTo, and not the recipients in from.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply to a message in a single operation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Messageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemCreateReplyRequestBuilde return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable), nil } // ToPostRequestInformation create a draft to reply to the sender of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If replyTo is specified in the original message, per Internet Message Format (RFC 2822), you should send the reply to the recipients in replyTo, and not the recipients in from.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply to a message in a single operation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemCreateReplyRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemMailFoldersItemChildFoldersItemMessagesItemCreateReplyPostRequestBodyable, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemCreateReplyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemCreateReplyRequestBuilde return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemChildFoldersItemMessagesItemCreateReplyRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemCreateReplyRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemChildFoldersItemMessagesItemCreateReplyRequestBuilder) { return NewItemMailFoldersItemChildFoldersItemMessagesItemCreateReplyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_child_folders_item_messages_item_extensions_count_request_builder.go b/users/item_mail_folders_item_child_folders_item_messages_item_extensions_count_request_builder.go index 0c30ebd7a90..282fa85ad4f 100644 --- a/users/item_mail_folders_item_child_folders_item_messages_item_extensions_count_request_builder.go +++ b/users/item_mail_folders_item_child_folders_item_messages_item_extensions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemMailFoldersItemChildFoldersItemMessagesItemExtensionsCountRequestBui return NewItemMailFoldersItemChildFoldersItemMessagesItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsCountRequestBu return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsCountRequestBu return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsCountRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsCountRequestBuilder) { return NewItemMailFoldersItemChildFoldersItemMessagesItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_child_folders_item_messages_item_extensions_extension_item_request_builder.go b/users/item_mail_folders_item_child_folders_item_messages_item_extensions_extension_item_request_builder.go index fce0f447a47..78bcd7ee59c 100644 --- a/users/item_mail_folders_item_child_folders_item_messages_item_extensions_extension_item_request_builder.go +++ b/users/item_mail_folders_item_child_folders_item_messages_item_extensions_extension_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemMailFoldersItemChildFoldersItemMessagesItemExtensionsExtensionItemRe return NewItemMailFoldersItemChildFoldersItemMessagesItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsExtensionItemR return nil } // Get the collection of open extensions defined for the message. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsExtensionItemR return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsExtensionItemR return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsExtensionItemR return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the message. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsExtensionItemR return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsExtensionItemR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsExtensionItemRequestBuilder) { return NewItemMailFoldersItemChildFoldersItemMessagesItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_child_folders_item_messages_item_extensions_request_builder.go b/users/item_mail_folders_item_child_folders_item_messages_item_extensions_request_builder.go index 4277e9c0d54..c1b58a9245d 100644 --- a/users/item_mail_folders_item_child_folders_item_messages_item_extensions_request_builder.go +++ b/users/item_mail_folders_item_child_folders_item_messages_item_extensions_request_builder.go @@ -47,6 +47,7 @@ type ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsRequestBuilderPost Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.message entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsRequestBuilder return NewItemMailFoldersItemChildFoldersItemMessagesItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the message. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsRequestBuilder return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsRequestBuilder return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the message. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsRequestBuilder return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsRequestBuilder return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemChildFoldersItemMessagesItemExtensionsRequestBuilder) { return NewItemMailFoldersItemChildFoldersItemMessagesItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_child_folders_item_messages_item_forward_request_builder.go b/users/item_mail_folders_item_child_folders_item_messages_item_forward_request_builder.go index e2695edf335..fc2763d44d3 100644 --- a/users/item_mail_folders_item_child_folders_item_messages_item_forward_request_builder.go +++ b/users/item_mail_folders_item_child_folders_item_messages_item_forward_request_builder.go @@ -31,6 +31,7 @@ func NewItemMailFoldersItemChildFoldersItemMessagesItemForwardRequestBuilder(raw return NewItemMailFoldersItemChildFoldersItemMessagesItemForwardRequestBuilderInternal(urlParams, requestAdapter) } // Post forward a message using either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to forward a message, and send it later. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemForwardRequestBuilder) P return nil } // ToPostRequestInformation forward a message using either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to forward a message, and send it later. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemForwardRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemMailFoldersItemChildFoldersItemMessagesItemForwardPostRequestBodyable, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemForwardRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemForwardRequestBuilder) T return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemChildFoldersItemMessagesItemForwardRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemForwardRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemChildFoldersItemMessagesItemForwardRequestBuilder) { return NewItemMailFoldersItemChildFoldersItemMessagesItemForwardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_child_folders_item_messages_item_mark_as_junk_request_builder.go b/users/item_mail_folders_item_child_folders_item_messages_item_mark_as_junk_request_builder.go index d44c1812bdb..7006b5bdd2e 100644 --- a/users/item_mail_folders_item_child_folders_item_messages_item_mark_as_junk_request_builder.go +++ b/users/item_mail_folders_item_child_folders_item_messages_item_mark_as_junk_request_builder.go @@ -32,6 +32,7 @@ func NewItemMailFoldersItemChildFoldersItemMessagesItemMarkAsJunkRequestBuilder( return NewItemMailFoldersItemChildFoldersItemMessagesItemMarkAsJunkRequestBuilderInternal(urlParams, requestAdapter) } // Post mark a message as junk. This API adds the sender to the list of blocked senders and moves the message to the Junk Email folder, when moveToJunk is true. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Messageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemMarkAsJunkRequestBuilder return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable), nil } // ToPostRequestInformation mark a message as junk. This API adds the sender to the list of blocked senders and moves the message to the Junk Email folder, when moveToJunk is true. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemMarkAsJunkRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemMailFoldersItemChildFoldersItemMessagesItemMarkAsJunkPostRequestBodyable, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemMarkAsJunkRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemMarkAsJunkRequestBuilder return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemChildFoldersItemMessagesItemMarkAsJunkRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemMarkAsJunkRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemChildFoldersItemMessagesItemMarkAsJunkRequestBuilder) { return NewItemMailFoldersItemChildFoldersItemMessagesItemMarkAsJunkRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_child_folders_item_messages_item_mark_as_not_junk_request_builder.go b/users/item_mail_folders_item_child_folders_item_messages_item_mark_as_not_junk_request_builder.go index 994c6a8f649..a9895dbf81b 100644 --- a/users/item_mail_folders_item_child_folders_item_messages_item_mark_as_not_junk_request_builder.go +++ b/users/item_mail_folders_item_child_folders_item_messages_item_mark_as_not_junk_request_builder.go @@ -32,6 +32,7 @@ func NewItemMailFoldersItemChildFoldersItemMessagesItemMarkAsNotJunkRequestBuild return NewItemMailFoldersItemChildFoldersItemMessagesItemMarkAsNotJunkRequestBuilderInternal(urlParams, requestAdapter) } // Post mark a message as not junk. This API removes the sender from the list of blocked senders and moves the message to the Inbox folder, when moveToInbox is true. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Messageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemMarkAsNotJunkRequestBuil return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable), nil } // ToPostRequestInformation mark a message as not junk. This API removes the sender from the list of blocked senders and moves the message to the Inbox folder, when moveToInbox is true. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemMarkAsNotJunkRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemMailFoldersItemChildFoldersItemMessagesItemMarkAsNotJunkPostRequestBodyable, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemMarkAsNotJunkRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemMarkAsNotJunkRequestBuil return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemChildFoldersItemMessagesItemMarkAsNotJunkRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemMarkAsNotJunkRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemChildFoldersItemMessagesItemMarkAsNotJunkRequestBuilder) { return NewItemMailFoldersItemChildFoldersItemMessagesItemMarkAsNotJunkRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_child_folders_item_messages_item_mentions_count_request_builder.go b/users/item_mail_folders_item_child_folders_item_messages_item_mentions_count_request_builder.go index 9c77b0baac0..1fc7c1fd845 100644 --- a/users/item_mail_folders_item_child_folders_item_messages_item_mentions_count_request_builder.go +++ b/users/item_mail_folders_item_child_folders_item_messages_item_mentions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemMailFoldersItemChildFoldersItemMessagesItemMentionsCountRequestBuild return NewItemMailFoldersItemChildFoldersItemMessagesItemMentionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemChildFoldersItemMessagesItemMentionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemMentionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemMentionsCountRequestBuil return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemMentionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemMentionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemMentionsCountRequestBuil return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemChildFoldersItemMessagesItemMentionsCountRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemMentionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemChildFoldersItemMessagesItemMentionsCountRequestBuilder) { return NewItemMailFoldersItemChildFoldersItemMessagesItemMentionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_child_folders_item_messages_item_mentions_mention_item_request_builder.go b/users/item_mail_folders_item_child_folders_item_messages_item_mentions_mention_item_request_builder.go index dab6ea5b678..fef32b91a4a 100644 --- a/users/item_mail_folders_item_child_folders_item_messages_item_mentions_mention_item_request_builder.go +++ b/users/item_mail_folders_item_child_folders_item_messages_item_mentions_mention_item_request_builder.go @@ -48,6 +48,7 @@ func NewItemMailFoldersItemChildFoldersItemMessagesItemMentionsMentionItemReques return NewItemMailFoldersItemChildFoldersItemMessagesItemMentionsMentionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property mentions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemChildFoldersItemMessagesItemMentionsMentionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemMentionsMentionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,6 +65,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemMentionsMentionItemReque return nil } // Get a collection of mentions in the message, ordered by the createdDateTime from the newest to the oldest. By default, a GET /messages does not return this property unless you apply $expand on the property. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Mentionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemChildFoldersItemMessagesItemMentionsMentionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemMentionsMentionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Mentionable, error) { @@ -84,6 +86,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemMentionsMentionItemReque return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Mentionable), nil } // ToDeleteRequestInformation delete navigation property mentions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemMentionsMentionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemMentionsMentionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +98,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemMentionsMentionItemReque return requestInfo, nil } // ToGetRequestInformation a collection of mentions in the message, ordered by the createdDateTime from the newest to the oldest. By default, a GET /messages does not return this property unless you apply $expand on the property. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemMentionsMentionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemMentionsMentionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +113,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemMentionsMentionItemReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemChildFoldersItemMessagesItemMentionsMentionItemRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemMentionsMentionItemRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemChildFoldersItemMessagesItemMentionsMentionItemRequestBuilder) { return NewItemMailFoldersItemChildFoldersItemMessagesItemMentionsMentionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_child_folders_item_messages_item_mentions_request_builder.go b/users/item_mail_folders_item_child_folders_item_messages_item_mentions_request_builder.go index c2c475cc747..5a5d105436f 100644 --- a/users/item_mail_folders_item_child_folders_item_messages_item_mentions_request_builder.go +++ b/users/item_mail_folders_item_child_folders_item_messages_item_mentions_request_builder.go @@ -47,6 +47,7 @@ type ItemMailFoldersItemChildFoldersItemMessagesItemMentionsRequestBuilderPostRe Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByMentionId provides operations to manage the mentions property of the microsoft.graph.message entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemChildFoldersItemMessagesItemMentionsMentionItemRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemMentionsRequestBuilder) ByMentionId(mentionId string)(*ItemMailFoldersItemChildFoldersItemMessagesItemMentionsMentionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemMentionsRequestBuilder) return NewItemMailFoldersItemChildFoldersItemMessagesItemMentionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get a collection of mentions in the message, ordered by the createdDateTime from the newest to the oldest. By default, a GET /messages does not return this property unless you apply $expand on the property. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MentionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemChildFoldersItemMessagesItemMentionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemMentionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MentionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemMentionsRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MentionCollectionResponseable), nil } // Post create new navigation property to mentions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Mentionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemChildFoldersItemMessagesItemMentionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Mentionable, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemMentionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Mentionable, error) { @@ -117,6 +120,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemMentionsRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Mentionable), nil } // ToGetRequestInformation a collection of mentions in the message, ordered by the createdDateTime from the newest to the oldest. By default, a GET /messages does not return this property unless you apply $expand on the property. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemMentionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemMentionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemMentionsRequestBuilder) return requestInfo, nil } // ToPostRequestInformation create new navigation property to mentions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemMentionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Mentionable, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemMentionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemMentionsRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemChildFoldersItemMessagesItemMentionsRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemMentionsRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemChildFoldersItemMessagesItemMentionsRequestBuilder) { return NewItemMailFoldersItemChildFoldersItemMessagesItemMentionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_child_folders_item_messages_item_move_request_builder.go b/users/item_mail_folders_item_child_folders_item_messages_item_move_request_builder.go index 99954995b0c..7bf8b370b24 100644 --- a/users/item_mail_folders_item_child_folders_item_messages_item_move_request_builder.go +++ b/users/item_mail_folders_item_child_folders_item_messages_item_move_request_builder.go @@ -32,6 +32,7 @@ func NewItemMailFoldersItemChildFoldersItemMessagesItemMoveRequestBuilder(rawUrl return NewItemMailFoldersItemChildFoldersItemMessagesItemMoveRequestBuilderInternal(urlParams, requestAdapter) } // Post move a message to another folder within the specified user's mailbox. This creates a new copy of the message in the destination folder and removes the original message. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Messageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemMoveRequestBuilder) Post return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable), nil } // ToPostRequestInformation move a message to another folder within the specified user's mailbox. This creates a new copy of the message in the destination folder and removes the original message. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemMoveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemMailFoldersItemChildFoldersItemMessagesItemMovePostRequestBodyable, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemMoveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemMoveRequestBuilder) ToPo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemChildFoldersItemMessagesItemMoveRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemMoveRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemChildFoldersItemMessagesItemMoveRequestBuilder) { return NewItemMailFoldersItemChildFoldersItemMessagesItemMoveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_child_folders_item_messages_item_permanent_delete_request_builder.go b/users/item_mail_folders_item_child_folders_item_messages_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..11a829eed5d --- /dev/null +++ b/users/item_mail_folders_item_child_folders_item_messages_item_permanent_delete_request_builder.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemMailFoldersItemChildFoldersItemMessagesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemMailFoldersItemChildFoldersItemMessagesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemMailFoldersItemChildFoldersItemMessagesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemMailFoldersItemChildFoldersItemMessagesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemMailFoldersItemChildFoldersItemMessagesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemMailFoldersItemChildFoldersItemMessagesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemMailFoldersItemChildFoldersItemMessagesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemMailFoldersItemChildFoldersItemMessagesItemPermanentDeleteRequestBuilder) { + m := &ItemMailFoldersItemChildFoldersItemMessagesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/permanentDelete", pathParameters), + } + return m +} +// NewItemMailFoldersItemChildFoldersItemMessagesItemPermanentDeleteRequestBuilder instantiates a new ItemMailFoldersItemChildFoldersItemMessagesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemMailFoldersItemChildFoldersItemMessagesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemMailFoldersItemChildFoldersItemMessagesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemMailFoldersItemChildFoldersItemMessagesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete a message and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/message-permanentdelete?view=graph-rest-beta +func (m *ItemMailFoldersItemChildFoldersItemMessagesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete a message and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemMailFoldersItemChildFoldersItemMessagesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemMailFoldersItemChildFoldersItemMessagesItemPermanentDeleteRequestBuilder when successful +func (m *ItemMailFoldersItemChildFoldersItemMessagesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemChildFoldersItemMessagesItemPermanentDeleteRequestBuilder) { + return NewItemMailFoldersItemChildFoldersItemMessagesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_mail_folders_item_child_folders_item_messages_item_reply_all_request_builder.go b/users/item_mail_folders_item_child_folders_item_messages_item_reply_all_request_builder.go index 317abd7b787..4460a720db6 100644 --- a/users/item_mail_folders_item_child_folders_item_messages_item_reply_all_request_builder.go +++ b/users/item_mail_folders_item_child_folders_item_messages_item_reply_all_request_builder.go @@ -31,6 +31,7 @@ func NewItemMailFoldersItemChildFoldersItemMessagesItemReplyAllRequestBuilder(ra return NewItemMailFoldersItemChildFoldersItemMessagesItemReplyAllRequestBuilderInternal(urlParams, requestAdapter) } // Post reply to all recipients of a message using either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply-all to a message, and send it later. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemReplyAllRequestBuilder) return nil } // ToPostRequestInformation reply to all recipients of a message using either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply-all to a message, and send it later. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemReplyAllRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemMailFoldersItemChildFoldersItemMessagesItemReplyAllPostRequestBodyable, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemReplyAllRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemReplyAllRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemChildFoldersItemMessagesItemReplyAllRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemReplyAllRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemChildFoldersItemMessagesItemReplyAllRequestBuilder) { return NewItemMailFoldersItemChildFoldersItemMessagesItemReplyAllRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_child_folders_item_messages_item_reply_request_builder.go b/users/item_mail_folders_item_child_folders_item_messages_item_reply_request_builder.go index 403fab144f8..f746727cebd 100644 --- a/users/item_mail_folders_item_child_folders_item_messages_item_reply_request_builder.go +++ b/users/item_mail_folders_item_child_folders_item_messages_item_reply_request_builder.go @@ -31,6 +31,7 @@ func NewItemMailFoldersItemChildFoldersItemMessagesItemReplyRequestBuilder(rawUr return NewItemMailFoldersItemChildFoldersItemMessagesItemReplyRequestBuilderInternal(urlParams, requestAdapter) } // Post reply to the sender of a message using either JSON or MIME format. When using JSON format:* Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.* If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply to a message, and send it later. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemReplyRequestBuilder) Pos return nil } // ToPostRequestInformation reply to the sender of a message using either JSON or MIME format. When using JSON format:* Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.* If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply to a message, and send it later. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemReplyRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemMailFoldersItemChildFoldersItemMessagesItemReplyPostRequestBodyable, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemReplyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemReplyRequestBuilder) ToP return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemChildFoldersItemMessagesItemReplyRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemReplyRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemChildFoldersItemMessagesItemReplyRequestBuilder) { return NewItemMailFoldersItemChildFoldersItemMessagesItemReplyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_child_folders_item_messages_item_send_request_builder.go b/users/item_mail_folders_item_child_folders_item_messages_item_send_request_builder.go index 768d40095f5..bbcbbc9b400 100644 --- a/users/item_mail_folders_item_child_folders_item_messages_item_send_request_builder.go +++ b/users/item_mail_folders_item_child_folders_item_messages_item_send_request_builder.go @@ -31,6 +31,7 @@ func NewItemMailFoldersItemChildFoldersItemMessagesItemSendRequestBuilder(rawUrl return NewItemMailFoldersItemChildFoldersItemMessagesItemSendRequestBuilderInternal(urlParams, requestAdapter) } // Post send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemSendRequestBuilder) Post return nil } // ToPostRequestInformation send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemSendRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemSendRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemSendRequestBuilder) ToPo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemChildFoldersItemMessagesItemSendRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemSendRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemChildFoldersItemMessagesItemSendRequestBuilder) { return NewItemMailFoldersItemChildFoldersItemMessagesItemSendRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_child_folders_item_messages_item_unsubscribe_request_builder.go b/users/item_mail_folders_item_child_folders_item_messages_item_unsubscribe_request_builder.go index d3445c2fd32..6d0d9db6521 100644 --- a/users/item_mail_folders_item_child_folders_item_messages_item_unsubscribe_request_builder.go +++ b/users/item_mail_folders_item_child_folders_item_messages_item_unsubscribe_request_builder.go @@ -31,6 +31,7 @@ func NewItemMailFoldersItemChildFoldersItemMessagesItemUnsubscribeRequestBuilder return NewItemMailFoldersItemChildFoldersItemMessagesItemUnsubscribeRequestBuilderInternal(urlParams, requestAdapter) } // Post submits an email request on behalf of the signed-in user to unsubscribe from an email distribution list. Uses the information in the List-Unsubscribe header. Message senders can use mailing lists in a user-friendly way by including an option for recipients to opt out. They can do so by specifying the List-Unsubscribe header in each message following RFC-2369. Note In particular, for the unsubscribe action to work, the sender must specify mailto: and not URL-based unsubscribe information. Setting that header would also set the unsubscribeEnabled property of the message instance to true, and the unsubscribeData property to the header data. If the unsubscribeEnabled property of a message is true, you can use the unsubscribe action to unsubscribe the user from similar future messages as managed by the message sender. A successful unsubscribe action moves the message to the Deleted Items folder. The actual exclusion of the user from future mail distribution is managed by the sender. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemUnsubscribeRequestBuilde return nil } // ToPostRequestInformation submits an email request on behalf of the signed-in user to unsubscribe from an email distribution list. Uses the information in the List-Unsubscribe header. Message senders can use mailing lists in a user-friendly way by including an option for recipients to opt out. They can do so by specifying the List-Unsubscribe header in each message following RFC-2369. Note In particular, for the unsubscribe action to work, the sender must specify mailto: and not URL-based unsubscribe information. Setting that header would also set the unsubscribeEnabled property of the message instance to true, and the unsubscribeData property to the header data. If the unsubscribeEnabled property of a message is true, you can use the unsubscribe action to unsubscribe the user from similar future messages as managed by the message sender. A successful unsubscribe action moves the message to the Deleted Items folder. The actual exclusion of the user from future mail distribution is managed by the sender. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemUnsubscribeRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemUnsubscribeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemUnsubscribeRequestBuilde return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemChildFoldersItemMessagesItemUnsubscribeRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemUnsubscribeRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemChildFoldersItemMessagesItemUnsubscribeRequestBuilder) { return NewItemMailFoldersItemChildFoldersItemMessagesItemUnsubscribeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_child_folders_item_messages_item_value_content_request_builder.go b/users/item_mail_folders_item_child_folders_item_messages_item_value_content_request_builder.go index 2e8ecf9fce6..2f1efaa3cf3 100644 --- a/users/item_mail_folders_item_child_folders_item_messages_item_value_content_request_builder.go +++ b/users/item_mail_folders_item_child_folders_item_messages_item_value_content_request_builder.go @@ -45,6 +45,7 @@ func NewItemMailFoldersItemChildFoldersItemMessagesItemValueContentRequestBuilde return NewItemMailFoldersItemChildFoldersItemMessagesItemValueContentRequestBuilderInternal(urlParams, requestAdapter) } // Delete the unique identifier for an entity. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemChildFoldersItemMessagesItemValueContentRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemValueContentRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -61,6 +62,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemValueContentRequestBuild return nil } // Get the unique identifier for an entity. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemChildFoldersItemMessagesItemValueContentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemValueContentRequestBuilderGetRequestConfiguration)([]byte, error) { @@ -81,6 +83,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemValueContentRequestBuild return res.([]byte), nil } // Put the unique identifier for an entity. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemChildFoldersItemMessagesItemValueContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemValueContentRequestBuilderPutRequestConfiguration)([]byte, error) { @@ -101,6 +104,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemValueContentRequestBuild return res.([]byte), nil } // ToDeleteRequestInformation the unique identifier for an entity. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemValueContentRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemValueContentRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -112,6 +116,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemValueContentRequestBuild return requestInfo, nil } // ToGetRequestInformation the unique identifier for an entity. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -123,6 +128,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemValueContentRequestBuild return requestInfo, nil } // ToPutRequestInformation the unique identifier for an entity. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesItemValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -135,6 +141,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesItemValueContentRequestBuild return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemChildFoldersItemMessagesItemValueContentRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesItemValueContentRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemChildFoldersItemMessagesItemValueContentRequestBuilder) { return NewItemMailFoldersItemChildFoldersItemMessagesItemValueContentRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_child_folders_item_messages_message_item_request_builder.go b/users/item_mail_folders_item_child_folders_item_messages_message_item_request_builder.go index 9297e0a473c..9346389a19e 100644 --- a/users/item_mail_folders_item_child_folders_item_messages_message_item_request_builder.go +++ b/users/item_mail_folders_item_child_folders_item_messages_message_item_request_builder.go @@ -85,6 +85,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesMessageItemRequestBuilder) C return NewItemMailFoldersItemChildFoldersItemMessagesItemCreateReplyAllRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Delete delete navigation property messages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemChildFoldersItemMessagesMessageItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesMessageItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -111,6 +112,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesMessageItemRequestBuilder) F return NewItemMailFoldersItemChildFoldersItemMessagesItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of messages in the mailFolder. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Messageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemChildFoldersItemMessagesMessageItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesMessageItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable, error) { @@ -151,6 +153,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesMessageItemRequestBuilder) M return NewItemMailFoldersItemChildFoldersItemMessagesItemMoveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property messages in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Messageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemChildFoldersItemMessagesMessageItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesMessageItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable, error) { @@ -170,6 +173,11 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesMessageItemRequestBuilder) P } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemMailFoldersItemChildFoldersItemMessagesItemPermanentDeleteRequestBuilder when successful +func (m *ItemMailFoldersItemChildFoldersItemMessagesMessageItemRequestBuilder) PermanentDelete()(*ItemMailFoldersItemChildFoldersItemMessagesItemPermanentDeleteRequestBuilder) { + return NewItemMailFoldersItemChildFoldersItemMessagesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Reply provides operations to call the reply method. // returns a *ItemMailFoldersItemChildFoldersItemMessagesItemReplyRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesMessageItemRequestBuilder) Reply()(*ItemMailFoldersItemChildFoldersItemMessagesItemReplyRequestBuilder) { @@ -186,6 +194,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesMessageItemRequestBuilder) S return NewItemMailFoldersItemChildFoldersItemMessagesItemSendRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property messages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesMessageItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesMessageItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -197,6 +206,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesMessageItemRequestBuilder) T return requestInfo, nil } // ToGetRequestInformation the collection of messages in the mailFolder. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesMessageItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesMessageItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -211,6 +221,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesMessageItemRequestBuilder) T return requestInfo, nil } // ToPatchRequestInformation update the navigation property messages in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesMessageItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesMessageItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -231,6 +242,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesMessageItemRequestBuilder) U return NewItemMailFoldersItemChildFoldersItemMessagesItemUnsubscribeRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemChildFoldersItemMessagesMessageItemRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesMessageItemRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemChildFoldersItemMessagesMessageItemRequestBuilder) { return NewItemMailFoldersItemChildFoldersItemMessagesMessageItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_child_folders_item_messages_request_builder.go b/users/item_mail_folders_item_child_folders_item_messages_request_builder.go index 55535839816..c777d76b4c1 100644 --- a/users/item_mail_folders_item_child_folders_item_messages_request_builder.go +++ b/users/item_mail_folders_item_child_folders_item_messages_request_builder.go @@ -47,6 +47,7 @@ type ItemMailFoldersItemChildFoldersItemMessagesRequestBuilderPostRequestConfigu Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByMessageId provides operations to manage the messages property of the microsoft.graph.mailFolder entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemChildFoldersItemMessagesMessageItemRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesRequestBuilder) ByMessageId(messageId string)(*ItemMailFoldersItemChildFoldersItemMessagesMessageItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesRequestBuilder) Delta()(*Ite return NewItemMailFoldersItemChildFoldersItemMessagesDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of messages in the mailFolder. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MessageCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemChildFoldersItemMessagesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MessageCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesRequestBuilder) Get(ctx cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MessageCollectionResponseable), nil } // Post create new navigation property to messages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Messageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemChildFoldersItemMessagesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable, error) { @@ -122,6 +125,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesRequestBuilder) Post(ctx con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable), nil } // ToGetRequestInformation the collection of messages in the mailFolder. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesRequestBuilder) ToGetRequest return requestInfo, nil } // ToPostRequestInformation create new navigation property to messages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable, requestConfiguration *ItemMailFoldersItemChildFoldersItemMessagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMessagesRequestBuilder) ToPostReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemChildFoldersItemMessagesRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersItemMessagesRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemChildFoldersItemMessagesRequestBuilder) { return NewItemMailFoldersItemChildFoldersItemMessagesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_child_folders_item_move_request_builder.go b/users/item_mail_folders_item_child_folders_item_move_request_builder.go index b6ba3554a59..abc24606c34 100644 --- a/users/item_mail_folders_item_child_folders_item_move_request_builder.go +++ b/users/item_mail_folders_item_child_folders_item_move_request_builder.go @@ -32,6 +32,7 @@ func NewItemMailFoldersItemChildFoldersItemMoveRequestBuilder(rawUrl string, req return NewItemMailFoldersItemChildFoldersItemMoveRequestBuilderInternal(urlParams, requestAdapter) } // Post move a mail folder and its contents to another mail folder. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailFolderable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMoveRequestBuilder) Post(ctx context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailFolderable), nil } // ToPostRequestInformation move a mail folder and its contents to another mail folder. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemMoveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemMailFoldersItemChildFoldersItemMovePostRequestBodyable, requestConfiguration *ItemMailFoldersItemChildFoldersItemMoveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemMailFoldersItemChildFoldersItemMoveRequestBuilder) ToPostRequestInf return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemChildFoldersItemMoveRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersItemMoveRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemChildFoldersItemMoveRequestBuilder) { return NewItemMailFoldersItemChildFoldersItemMoveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_child_folders_item_permanent_delete_request_builder.go b/users/item_mail_folders_item_child_folders_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..51615d0d4b7 --- /dev/null +++ b/users/item_mail_folders_item_child_folders_item_permanent_delete_request_builder.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemMailFoldersItemChildFoldersItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemMailFoldersItemChildFoldersItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemMailFoldersItemChildFoldersItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemMailFoldersItemChildFoldersItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemMailFoldersItemChildFoldersItemPermanentDeleteRequestBuilderInternal instantiates a new ItemMailFoldersItemChildFoldersItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemMailFoldersItemChildFoldersItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemMailFoldersItemChildFoldersItemPermanentDeleteRequestBuilder) { + m := &ItemMailFoldersItemChildFoldersItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/permanentDelete", pathParameters), + } + return m +} +// NewItemMailFoldersItemChildFoldersItemPermanentDeleteRequestBuilder instantiates a new ItemMailFoldersItemChildFoldersItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemMailFoldersItemChildFoldersItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemMailFoldersItemChildFoldersItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemMailFoldersItemChildFoldersItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete a mail folder and remove its items from the user's mailbox. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/mailfolder-permanentdelete?view=graph-rest-beta +func (m *ItemMailFoldersItemChildFoldersItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete a mail folder and remove its items from the user's mailbox. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemMailFoldersItemChildFoldersItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemMailFoldersItemChildFoldersItemPermanentDeleteRequestBuilder when successful +func (m *ItemMailFoldersItemChildFoldersItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemChildFoldersItemPermanentDeleteRequestBuilder) { + return NewItemMailFoldersItemChildFoldersItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_mail_folders_item_child_folders_item_user_configurations_count_request_builder.go b/users/item_mail_folders_item_child_folders_item_user_configurations_count_request_builder.go index c00636ba69f..b36d08069a0 100644 --- a/users/item_mail_folders_item_child_folders_item_user_configurations_count_request_builder.go +++ b/users/item_mail_folders_item_child_folders_item_user_configurations_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemMailFoldersItemChildFoldersItemUserConfigurationsCountRequestBuilder return NewItemMailFoldersItemChildFoldersItemUserConfigurationsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemChildFoldersItemUserConfigurationsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemUserConfigurationsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemMailFoldersItemChildFoldersItemUserConfigurationsCountRequestBuilde return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemUserConfigurationsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemUserConfigurationsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemMailFoldersItemChildFoldersItemUserConfigurationsCountRequestBuilde return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemChildFoldersItemUserConfigurationsCountRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersItemUserConfigurationsCountRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemChildFoldersItemUserConfigurationsCountRequestBuilder) { return NewItemMailFoldersItemChildFoldersItemUserConfigurationsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_child_folders_item_user_configurations_request_builder.go b/users/item_mail_folders_item_child_folders_item_user_configurations_request_builder.go index dd3115b4abf..73cb957de04 100644 --- a/users/item_mail_folders_item_child_folders_item_user_configurations_request_builder.go +++ b/users/item_mail_folders_item_child_folders_item_user_configurations_request_builder.go @@ -40,6 +40,7 @@ type ItemMailFoldersItemChildFoldersItemUserConfigurationsRequestBuilderGetReque QueryParameters *ItemMailFoldersItemChildFoldersItemUserConfigurationsRequestBuilderGetQueryParameters } // ByUserConfigurationId provides operations to manage the userConfigurations property of the microsoft.graph.mailFolder entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemChildFoldersItemUserConfigurationsUserConfigurationItemRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersItemUserConfigurationsRequestBuilder) ByUserConfigurationId(userConfigurationId string)(*ItemMailFoldersItemChildFoldersItemUserConfigurationsUserConfigurationItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -70,6 +71,7 @@ func (m *ItemMailFoldersItemChildFoldersItemUserConfigurationsRequestBuilder) Co return NewItemMailFoldersItemChildFoldersItemUserConfigurationsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get userConfigurations from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserConfigurationCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemChildFoldersItemUserConfigurationsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemUserConfigurationsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserConfigurationCollectionResponseable, error) { @@ -90,6 +92,7 @@ func (m *ItemMailFoldersItemChildFoldersItemUserConfigurationsRequestBuilder) Ge return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserConfigurationCollectionResponseable), nil } // ToGetRequestInformation get userConfigurations from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersItemUserConfigurationsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersItemUserConfigurationsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -104,6 +107,7 @@ func (m *ItemMailFoldersItemChildFoldersItemUserConfigurationsRequestBuilder) To return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemChildFoldersItemUserConfigurationsRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersItemUserConfigurationsRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemChildFoldersItemUserConfigurationsRequestBuilder) { return NewItemMailFoldersItemChildFoldersItemUserConfigurationsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_child_folders_mail_folder_item_request_builder.go b/users/item_mail_folders_item_child_folders_mail_folder_item_request_builder.go index a02dba35df9..e632ef3b39e 100644 --- a/users/item_mail_folders_item_child_folders_mail_folder_item_request_builder.go +++ b/users/item_mail_folders_item_child_folders_mail_folder_item_request_builder.go @@ -62,6 +62,7 @@ func (m *ItemMailFoldersItemChildFoldersMailFolderItemRequestBuilder) Copy()(*It return NewItemMailFoldersItemChildFoldersItemCopyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Delete delete navigation property childFolders for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemChildFoldersMailFolderItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersMailFolderItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -78,6 +79,7 @@ func (m *ItemMailFoldersItemChildFoldersMailFolderItemRequestBuilder) Delete(ctx return nil } // Get the collection of child folders in the mailFolder. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailFolderable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemChildFoldersMailFolderItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersMailFolderItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailFolderable, error) { @@ -113,6 +115,7 @@ func (m *ItemMailFoldersItemChildFoldersMailFolderItemRequestBuilder) Move()(*It return NewItemMailFoldersItemChildFoldersItemMoveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property childFolders in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailFolderable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemChildFoldersMailFolderItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailFolderable, requestConfiguration *ItemMailFoldersItemChildFoldersMailFolderItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailFolderable, error) { @@ -132,7 +135,13 @@ func (m *ItemMailFoldersItemChildFoldersMailFolderItemRequestBuilder) Patch(ctx } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailFolderable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemMailFoldersItemChildFoldersItemPermanentDeleteRequestBuilder when successful +func (m *ItemMailFoldersItemChildFoldersMailFolderItemRequestBuilder) PermanentDelete()(*ItemMailFoldersItemChildFoldersItemPermanentDeleteRequestBuilder) { + return NewItemMailFoldersItemChildFoldersItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToDeleteRequestInformation delete navigation property childFolders for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersMailFolderItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersMailFolderItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -144,6 +153,7 @@ func (m *ItemMailFoldersItemChildFoldersMailFolderItemRequestBuilder) ToDeleteRe return requestInfo, nil } // ToGetRequestInformation the collection of child folders in the mailFolder. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersMailFolderItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersMailFolderItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -158,6 +168,7 @@ func (m *ItemMailFoldersItemChildFoldersMailFolderItemRequestBuilder) ToGetReque return requestInfo, nil } // ToPatchRequestInformation update the navigation property childFolders in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersMailFolderItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailFolderable, requestConfiguration *ItemMailFoldersItemChildFoldersMailFolderItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -178,6 +189,7 @@ func (m *ItemMailFoldersItemChildFoldersMailFolderItemRequestBuilder) UserConfig return NewItemMailFoldersItemChildFoldersItemUserConfigurationsRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemChildFoldersMailFolderItemRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersMailFolderItemRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemChildFoldersMailFolderItemRequestBuilder) { return NewItemMailFoldersItemChildFoldersMailFolderItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_child_folders_request_builder.go b/users/item_mail_folders_item_child_folders_request_builder.go index 26ce938584c..16261bcf9b9 100644 --- a/users/item_mail_folders_item_child_folders_request_builder.go +++ b/users/item_mail_folders_item_child_folders_request_builder.go @@ -49,6 +49,7 @@ type ItemMailFoldersItemChildFoldersRequestBuilderPostRequestConfiguration struc Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByMailFolderId1 provides operations to manage the childFolders property of the microsoft.graph.mailFolder entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemChildFoldersMailFolderItemRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersRequestBuilder) ByMailFolderId1(mailFolderId1 string)(*ItemMailFoldersItemChildFoldersMailFolderItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -84,6 +85,7 @@ func (m *ItemMailFoldersItemChildFoldersRequestBuilder) Delta()(*ItemMailFolders return NewItemMailFoldersItemChildFoldersDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of child folders in the mailFolder. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailFolderCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemChildFoldersRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailFolderCollectionResponseable, error) { @@ -104,6 +106,7 @@ func (m *ItemMailFoldersItemChildFoldersRequestBuilder) Get(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailFolderCollectionResponseable), nil } // Post create new navigation property to childFolders for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailFolderable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemChildFoldersRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailFolderable, requestConfiguration *ItemMailFoldersItemChildFoldersRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailFolderable, error) { @@ -124,6 +127,7 @@ func (m *ItemMailFoldersItemChildFoldersRequestBuilder) Post(ctx context.Context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailFolderable), nil } // ToGetRequestInformation the collection of child folders in the mailFolder. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemChildFoldersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -138,6 +142,7 @@ func (m *ItemMailFoldersItemChildFoldersRequestBuilder) ToGetRequestInformation( return requestInfo, nil } // ToPostRequestInformation create new navigation property to childFolders for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemChildFoldersRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailFolderable, requestConfiguration *ItemMailFoldersItemChildFoldersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -153,6 +158,7 @@ func (m *ItemMailFoldersItemChildFoldersRequestBuilder) ToPostRequestInformation return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemChildFoldersRequestBuilder when successful func (m *ItemMailFoldersItemChildFoldersRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemChildFoldersRequestBuilder) { return NewItemMailFoldersItemChildFoldersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_copy_request_builder.go b/users/item_mail_folders_item_copy_request_builder.go index 213c45389cc..6036a74c439 100644 --- a/users/item_mail_folders_item_copy_request_builder.go +++ b/users/item_mail_folders_item_copy_request_builder.go @@ -32,6 +32,7 @@ func NewItemMailFoldersItemCopyRequestBuilder(rawUrl string, requestAdapter i2ae return NewItemMailFoldersItemCopyRequestBuilderInternal(urlParams, requestAdapter) } // Post copy a mail folder and its contents to another mail folder. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailFolderable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemMailFoldersItemCopyRequestBuilder) Post(ctx context.Context, body I return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailFolderable), nil } // ToPostRequestInformation copy a mail folder and its contents to another mail folder. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemCopyRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemMailFoldersItemCopyPostRequestBodyable, requestConfiguration *ItemMailFoldersItemCopyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemMailFoldersItemCopyRequestBuilder) ToPostRequestInformation(ctx con return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemCopyRequestBuilder when successful func (m *ItemMailFoldersItemCopyRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemCopyRequestBuilder) { return NewItemMailFoldersItemCopyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_message_rules_count_request_builder.go b/users/item_mail_folders_item_message_rules_count_request_builder.go index d434bf84317..b028e8bbfef 100644 --- a/users/item_mail_folders_item_message_rules_count_request_builder.go +++ b/users/item_mail_folders_item_message_rules_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemMailFoldersItemMessageRulesCountRequestBuilder(rawUrl string, reques return NewItemMailFoldersItemMessageRulesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemMessageRulesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessageRulesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemMailFoldersItemMessageRulesCountRequestBuilder) Get(ctx context.Con return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessageRulesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessageRulesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemMailFoldersItemMessageRulesCountRequestBuilder) ToGetRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemMessageRulesCountRequestBuilder when successful func (m *ItemMailFoldersItemMessageRulesCountRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemMessageRulesCountRequestBuilder) { return NewItemMailFoldersItemMessageRulesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_message_rules_message_rule_item_request_builder.go b/users/item_mail_folders_item_message_rules_message_rule_item_request_builder.go index 9ef03d97e39..d49638fd9ff 100644 --- a/users/item_mail_folders_item_message_rules_message_rule_item_request_builder.go +++ b/users/item_mail_folders_item_message_rules_message_rule_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemMailFoldersItemMessageRulesMessageRuleItemRequestBuilder(rawUrl stri return NewItemMailFoldersItemMessageRulesMessageRuleItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property messageRules for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemMessageRulesMessageRuleItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessageRulesMessageRuleItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemMailFoldersItemMessageRulesMessageRuleItemRequestBuilder) Delete(ct return nil } // Get the collection of rules that apply to the user's Inbox folder. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MessageRuleable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemMessageRulesMessageRuleItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessageRulesMessageRuleItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MessageRuleable, error) { @@ -91,6 +93,7 @@ func (m *ItemMailFoldersItemMessageRulesMessageRuleItemRequestBuilder) Get(ctx c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MessageRuleable), nil } // Patch update the navigation property messageRules in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MessageRuleable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemMessageRulesMessageRuleItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MessageRuleable, requestConfiguration *ItemMailFoldersItemMessageRulesMessageRuleItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MessageRuleable, error) { @@ -111,6 +114,7 @@ func (m *ItemMailFoldersItemMessageRulesMessageRuleItemRequestBuilder) Patch(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MessageRuleable), nil } // ToDeleteRequestInformation delete navigation property messageRules for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessageRulesMessageRuleItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessageRulesMessageRuleItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemMailFoldersItemMessageRulesMessageRuleItemRequestBuilder) ToDeleteR return requestInfo, nil } // ToGetRequestInformation the collection of rules that apply to the user's Inbox folder. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessageRulesMessageRuleItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessageRulesMessageRuleItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemMailFoldersItemMessageRulesMessageRuleItemRequestBuilder) ToGetRequ return requestInfo, nil } // ToPatchRequestInformation update the navigation property messageRules in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessageRulesMessageRuleItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MessageRuleable, requestConfiguration *ItemMailFoldersItemMessageRulesMessageRuleItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemMailFoldersItemMessageRulesMessageRuleItemRequestBuilder) ToPatchRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemMessageRulesMessageRuleItemRequestBuilder when successful func (m *ItemMailFoldersItemMessageRulesMessageRuleItemRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemMessageRulesMessageRuleItemRequestBuilder) { return NewItemMailFoldersItemMessageRulesMessageRuleItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_message_rules_request_builder.go b/users/item_mail_folders_item_message_rules_request_builder.go index 7e487227a6f..41ceec20c52 100644 --- a/users/item_mail_folders_item_message_rules_request_builder.go +++ b/users/item_mail_folders_item_message_rules_request_builder.go @@ -47,6 +47,7 @@ type ItemMailFoldersItemMessageRulesRequestBuilderPostRequestConfiguration struc Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByMessageRuleId provides operations to manage the messageRules property of the microsoft.graph.mailFolder entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemMessageRulesMessageRuleItemRequestBuilder when successful func (m *ItemMailFoldersItemMessageRulesRequestBuilder) ByMessageRuleId(messageRuleId string)(*ItemMailFoldersItemMessageRulesMessageRuleItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemMailFoldersItemMessageRulesRequestBuilder) Count()(*ItemMailFolders return NewItemMailFoldersItemMessageRulesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of rules that apply to the user's Inbox folder. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MessageRuleCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemMessageRulesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessageRulesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MessageRuleCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemMailFoldersItemMessageRulesRequestBuilder) Get(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MessageRuleCollectionResponseable), nil } // Post create new navigation property to messageRules for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MessageRuleable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemMessageRulesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MessageRuleable, requestConfiguration *ItemMailFoldersItemMessageRulesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MessageRuleable, error) { @@ -117,6 +120,7 @@ func (m *ItemMailFoldersItemMessageRulesRequestBuilder) Post(ctx context.Context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MessageRuleable), nil } // ToGetRequestInformation the collection of rules that apply to the user's Inbox folder. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessageRulesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessageRulesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemMailFoldersItemMessageRulesRequestBuilder) ToGetRequestInformation( return requestInfo, nil } // ToPostRequestInformation create new navigation property to messageRules for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessageRulesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MessageRuleable, requestConfiguration *ItemMailFoldersItemMessageRulesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemMailFoldersItemMessageRulesRequestBuilder) ToPostRequestInformation return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemMessageRulesRequestBuilder when successful func (m *ItemMailFoldersItemMessageRulesRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemMessageRulesRequestBuilder) { return NewItemMailFoldersItemMessageRulesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_messages_count_request_builder.go b/users/item_mail_folders_item_messages_count_request_builder.go index 5465ec6f0cb..2abe0d5032f 100644 --- a/users/item_mail_folders_item_messages_count_request_builder.go +++ b/users/item_mail_folders_item_messages_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemMailFoldersItemMessagesCountRequestBuilder(rawUrl string, requestAda return NewItemMailFoldersItemMessagesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemMessagesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemMailFoldersItemMessagesCountRequestBuilder) Get(ctx context.Context return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessagesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemMailFoldersItemMessagesCountRequestBuilder) ToGetRequestInformation return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemMessagesCountRequestBuilder when successful func (m *ItemMailFoldersItemMessagesCountRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemMessagesCountRequestBuilder) { return NewItemMailFoldersItemMessagesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_messages_delta_request_builder.go b/users/item_mail_folders_item_messages_delta_request_builder.go index c5615b5a341..3af20b5342c 100644 --- a/users/item_mail_folders_item_messages_delta_request_builder.go +++ b/users/item_mail_folders_item_messages_delta_request_builder.go @@ -78,6 +78,7 @@ func (m *ItemMailFoldersItemMessagesDeltaRequestBuilder) Get(ctx context.Context return res.(ItemMailFoldersItemMessagesDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemMailFoldersItemMessagesDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -101,6 +102,7 @@ func (m *ItemMailFoldersItemMessagesDeltaRequestBuilder) GetAsDeltaGetResponse(c return res.(ItemMailFoldersItemMessagesDeltaGetResponseable), nil } // ToGetRequestInformation get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessagesDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -115,6 +117,7 @@ func (m *ItemMailFoldersItemMessagesDeltaRequestBuilder) ToGetRequestInformation return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemMessagesDeltaRequestBuilder when successful func (m *ItemMailFoldersItemMessagesDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemMessagesDeltaRequestBuilder) { return NewItemMailFoldersItemMessagesDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_messages_item_attachments_attachment_item_request_builder.go b/users/item_mail_folders_item_messages_item_attachments_attachment_item_request_builder.go index 3b04e020dda..f37e4a70eb9 100644 --- a/users/item_mail_folders_item_messages_item_attachments_attachment_item_request_builder.go +++ b/users/item_mail_folders_item_messages_item_attachments_attachment_item_request_builder.go @@ -48,6 +48,7 @@ func NewItemMailFoldersItemMessagesItemAttachmentsAttachmentItemRequestBuilder(r return NewItemMailFoldersItemMessagesItemAttachmentsAttachmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemMessagesItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,6 +65,7 @@ func (m *ItemMailFoldersItemMessagesItemAttachmentsAttachmentItemRequestBuilder) return nil } // Get the fileAttachment and itemAttachment attachments for the message. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemMessagesItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -84,6 +86,7 @@ func (m *ItemMailFoldersItemMessagesItemAttachmentsAttachmentItemRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToDeleteRequestInformation delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessagesItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +98,7 @@ func (m *ItemMailFoldersItemMessagesItemAttachmentsAttachmentItemRequestBuilder) return requestInfo, nil } // ToGetRequestInformation the fileAttachment and itemAttachment attachments for the message. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessagesItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +113,7 @@ func (m *ItemMailFoldersItemMessagesItemAttachmentsAttachmentItemRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemMessagesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemMailFoldersItemMessagesItemAttachmentsAttachmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemMessagesItemAttachmentsAttachmentItemRequestBuilder) { return NewItemMailFoldersItemMessagesItemAttachmentsAttachmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_messages_item_attachments_count_request_builder.go b/users/item_mail_folders_item_messages_item_attachments_count_request_builder.go index 8fe02657d36..056f7d893d4 100644 --- a/users/item_mail_folders_item_messages_item_attachments_count_request_builder.go +++ b/users/item_mail_folders_item_messages_item_attachments_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemMailFoldersItemMessagesItemAttachmentsCountRequestBuilder(rawUrl str return NewItemMailFoldersItemMessagesItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemMessagesItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemMailFoldersItemMessagesItemAttachmentsCountRequestBuilder) Get(ctx return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessagesItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemMailFoldersItemMessagesItemAttachmentsCountRequestBuilder) ToGetReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemMessagesItemAttachmentsCountRequestBuilder when successful func (m *ItemMailFoldersItemMessagesItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemMessagesItemAttachmentsCountRequestBuilder) { return NewItemMailFoldersItemMessagesItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_messages_item_attachments_create_upload_session_request_builder.go b/users/item_mail_folders_item_messages_item_attachments_create_upload_session_request_builder.go index cb541971ca9..c83c7bb97b3 100644 --- a/users/item_mail_folders_item_messages_item_attachments_create_upload_session_request_builder.go +++ b/users/item_mail_folders_item_messages_item_attachments_create_upload_session_request_builder.go @@ -32,6 +32,7 @@ func NewItemMailFoldersItemMessagesItemAttachmentsCreateUploadSessionRequestBuil return NewItemMailFoldersItemMessagesItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemMailFoldersItemMessagesItemAttachmentsCreateUploadSessionRequestBui return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessagesItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemMailFoldersItemMessagesItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemMailFoldersItemMessagesItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemMailFoldersItemMessagesItemAttachmentsCreateUploadSessionRequestBui return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemMessagesItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemMailFoldersItemMessagesItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemMessagesItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemMailFoldersItemMessagesItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_messages_item_attachments_request_builder.go b/users/item_mail_folders_item_messages_item_attachments_request_builder.go index 1e64bffe58e..1ceeba5c510 100644 --- a/users/item_mail_folders_item_messages_item_attachments_request_builder.go +++ b/users/item_mail_folders_item_messages_item_attachments_request_builder.go @@ -47,6 +47,7 @@ type ItemMailFoldersItemMessagesItemAttachmentsRequestBuilderPostRequestConfigur Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentId provides operations to manage the attachments property of the microsoft.graph.message entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemMessagesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilder) ByAttachmentId(attachmentId string)(*ItemMailFoldersItemMessagesItemAttachmentsAttachmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilder) CreateUploadS return NewItemMailFoldersItemMessagesItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the fileAttachment and itemAttachment attachments for the message. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilder) Get(ctx conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } // Post create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -122,6 +125,7 @@ func (m *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilder) Post(ctx cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToGetRequestInformation the fileAttachment and itemAttachment attachments for the message. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilder) ToGetRequestI return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilder) ToPostRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilder when successful func (m *ItemMailFoldersItemMessagesItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemMessagesItemAttachmentsRequestBuilder) { return NewItemMailFoldersItemMessagesItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_messages_item_copy_request_builder.go b/users/item_mail_folders_item_messages_item_copy_request_builder.go index 0707e451ac9..b278d20f8ce 100644 --- a/users/item_mail_folders_item_messages_item_copy_request_builder.go +++ b/users/item_mail_folders_item_messages_item_copy_request_builder.go @@ -32,6 +32,7 @@ func NewItemMailFoldersItemMessagesItemCopyRequestBuilder(rawUrl string, request return NewItemMailFoldersItemMessagesItemCopyRequestBuilderInternal(urlParams, requestAdapter) } // Post copy a message to a folder within the user's mailbox. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Messageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemMailFoldersItemMessagesItemCopyRequestBuilder) Post(ctx context.Con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable), nil } // ToPostRequestInformation copy a message to a folder within the user's mailbox. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessagesItemCopyRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemMailFoldersItemMessagesItemCopyPostRequestBodyable, requestConfiguration *ItemMailFoldersItemMessagesItemCopyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemMailFoldersItemMessagesItemCopyRequestBuilder) ToPostRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemMessagesItemCopyRequestBuilder when successful func (m *ItemMailFoldersItemMessagesItemCopyRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemMessagesItemCopyRequestBuilder) { return NewItemMailFoldersItemMessagesItemCopyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_messages_item_create_forward_request_builder.go b/users/item_mail_folders_item_messages_item_create_forward_request_builder.go index ce028b06763..051da88e2ba 100644 --- a/users/item_mail_folders_item_messages_item_create_forward_request_builder.go +++ b/users/item_mail_folders_item_messages_item_create_forward_request_builder.go @@ -32,6 +32,7 @@ func NewItemMailFoldersItemMessagesItemCreateForwardRequestBuilder(rawUrl string return NewItemMailFoldersItemMessagesItemCreateForwardRequestBuilderInternal(urlParams, requestAdapter) } // Post create a draft to forward an existing message, in either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, forward a message in a single operation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Messageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemMailFoldersItemMessagesItemCreateForwardRequestBuilder) Post(ctx co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable), nil } // ToPostRequestInformation create a draft to forward an existing message, in either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, forward a message in a single operation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessagesItemCreateForwardRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemMailFoldersItemMessagesItemCreateForwardPostRequestBodyable, requestConfiguration *ItemMailFoldersItemMessagesItemCreateForwardRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemMailFoldersItemMessagesItemCreateForwardRequestBuilder) ToPostReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemMessagesItemCreateForwardRequestBuilder when successful func (m *ItemMailFoldersItemMessagesItemCreateForwardRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemMessagesItemCreateForwardRequestBuilder) { return NewItemMailFoldersItemMessagesItemCreateForwardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_messages_item_create_reply_all_request_builder.go b/users/item_mail_folders_item_messages_item_create_reply_all_request_builder.go index 3bda948cfe3..4d24ae53030 100644 --- a/users/item_mail_folders_item_messages_item_create_reply_all_request_builder.go +++ b/users/item_mail_folders_item_messages_item_create_reply_all_request_builder.go @@ -32,6 +32,7 @@ func NewItemMailFoldersItemMessagesItemCreateReplyAllRequestBuilder(rawUrl strin return NewItemMailFoldersItemMessagesItemCreateReplyAllRequestBuilderInternal(urlParams, requestAdapter) } // Post create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties.- You can update the draft message later. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Messageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemMailFoldersItemMessagesItemCreateReplyAllRequestBuilder) Post(ctx c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable), nil } // ToPostRequestInformation create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties.- You can update the draft message later. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessagesItemCreateReplyAllRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemMailFoldersItemMessagesItemCreateReplyAllPostRequestBodyable, requestConfiguration *ItemMailFoldersItemMessagesItemCreateReplyAllRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemMailFoldersItemMessagesItemCreateReplyAllRequestBuilder) ToPostRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemMessagesItemCreateReplyAllRequestBuilder when successful func (m *ItemMailFoldersItemMessagesItemCreateReplyAllRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemMessagesItemCreateReplyAllRequestBuilder) { return NewItemMailFoldersItemMessagesItemCreateReplyAllRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_messages_item_create_reply_request_builder.go b/users/item_mail_folders_item_messages_item_create_reply_request_builder.go index e30c15cf590..91e7549ca65 100644 --- a/users/item_mail_folders_item_messages_item_create_reply_request_builder.go +++ b/users/item_mail_folders_item_messages_item_create_reply_request_builder.go @@ -32,6 +32,7 @@ func NewItemMailFoldersItemMessagesItemCreateReplyRequestBuilder(rawUrl string, return NewItemMailFoldersItemMessagesItemCreateReplyRequestBuilderInternal(urlParams, requestAdapter) } // Post create a draft to reply to the sender of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If replyTo is specified in the original message, per Internet Message Format (RFC 2822), you should send the reply to the recipients in replyTo, and not the recipients in from.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply to a message in a single operation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Messageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemMailFoldersItemMessagesItemCreateReplyRequestBuilder) Post(ctx cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable), nil } // ToPostRequestInformation create a draft to reply to the sender of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If replyTo is specified in the original message, per Internet Message Format (RFC 2822), you should send the reply to the recipients in replyTo, and not the recipients in from.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply to a message in a single operation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessagesItemCreateReplyRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemMailFoldersItemMessagesItemCreateReplyPostRequestBodyable, requestConfiguration *ItemMailFoldersItemMessagesItemCreateReplyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemMailFoldersItemMessagesItemCreateReplyRequestBuilder) ToPostRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemMessagesItemCreateReplyRequestBuilder when successful func (m *ItemMailFoldersItemMessagesItemCreateReplyRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemMessagesItemCreateReplyRequestBuilder) { return NewItemMailFoldersItemMessagesItemCreateReplyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_messages_item_extensions_count_request_builder.go b/users/item_mail_folders_item_messages_item_extensions_count_request_builder.go index ced430d3655..7f80c794461 100644 --- a/users/item_mail_folders_item_messages_item_extensions_count_request_builder.go +++ b/users/item_mail_folders_item_messages_item_extensions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemMailFoldersItemMessagesItemExtensionsCountRequestBuilder(rawUrl stri return NewItemMailFoldersItemMessagesItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemMessagesItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemMailFoldersItemMessagesItemExtensionsCountRequestBuilder) Get(ctx c return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessagesItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemMailFoldersItemMessagesItemExtensionsCountRequestBuilder) ToGetRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemMessagesItemExtensionsCountRequestBuilder when successful func (m *ItemMailFoldersItemMessagesItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemMessagesItemExtensionsCountRequestBuilder) { return NewItemMailFoldersItemMessagesItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_messages_item_extensions_extension_item_request_builder.go b/users/item_mail_folders_item_messages_item_extensions_extension_item_request_builder.go index 2269f4347f7..15cb66e30d5 100644 --- a/users/item_mail_folders_item_messages_item_extensions_extension_item_request_builder.go +++ b/users/item_mail_folders_item_messages_item_extensions_extension_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemMailFoldersItemMessagesItemExtensionsExtensionItemRequestBuilder(raw return NewItemMailFoldersItemMessagesItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemMessagesItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemMailFoldersItemMessagesItemExtensionsExtensionItemRequestBuilder) D return nil } // Get the collection of open extensions defined for the message. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemMessagesItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemMailFoldersItemMessagesItemExtensionsExtensionItemRequestBuilder) G return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemMessagesItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemMailFoldersItemMessagesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemMailFoldersItemMessagesItemExtensionsExtensionItemRequestBuilder) P return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessagesItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemMailFoldersItemMessagesItemExtensionsExtensionItemRequestBuilder) T return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the message. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessagesItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemMailFoldersItemMessagesItemExtensionsExtensionItemRequestBuilder) T return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessagesItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemMailFoldersItemMessagesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemMailFoldersItemMessagesItemExtensionsExtensionItemRequestBuilder) T return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemMessagesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemMailFoldersItemMessagesItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemMessagesItemExtensionsExtensionItemRequestBuilder) { return NewItemMailFoldersItemMessagesItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_messages_item_extensions_request_builder.go b/users/item_mail_folders_item_messages_item_extensions_request_builder.go index 3b83e5544dc..8d96ab5d92f 100644 --- a/users/item_mail_folders_item_messages_item_extensions_request_builder.go +++ b/users/item_mail_folders_item_messages_item_extensions_request_builder.go @@ -47,6 +47,7 @@ type ItemMailFoldersItemMessagesItemExtensionsRequestBuilderPostRequestConfigura Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.message entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemMessagesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemMailFoldersItemMessagesItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemMailFoldersItemMessagesItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemMailFoldersItemMessagesItemExtensionsRequestBuilder) Count()(*ItemM return NewItemMailFoldersItemMessagesItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the message. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemMessagesItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemMailFoldersItemMessagesItemExtensionsRequestBuilder) Get(ctx contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemMessagesItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemMailFoldersItemMessagesItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemMailFoldersItemMessagesItemExtensionsRequestBuilder) Post(ctx conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the message. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessagesItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemMailFoldersItemMessagesItemExtensionsRequestBuilder) ToGetRequestIn return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessagesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemMailFoldersItemMessagesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemMailFoldersItemMessagesItemExtensionsRequestBuilder) ToPostRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemMessagesItemExtensionsRequestBuilder when successful func (m *ItemMailFoldersItemMessagesItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemMessagesItemExtensionsRequestBuilder) { return NewItemMailFoldersItemMessagesItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_messages_item_forward_request_builder.go b/users/item_mail_folders_item_messages_item_forward_request_builder.go index 3fceff7d954..850c18ed203 100644 --- a/users/item_mail_folders_item_messages_item_forward_request_builder.go +++ b/users/item_mail_folders_item_messages_item_forward_request_builder.go @@ -31,6 +31,7 @@ func NewItemMailFoldersItemMessagesItemForwardRequestBuilder(rawUrl string, requ return NewItemMailFoldersItemMessagesItemForwardRequestBuilderInternal(urlParams, requestAdapter) } // Post forward a message using either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to forward a message, and send it later. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemMailFoldersItemMessagesItemForwardRequestBuilder) Post(ctx context. return nil } // ToPostRequestInformation forward a message using either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to forward a message, and send it later. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessagesItemForwardRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemMailFoldersItemMessagesItemForwardPostRequestBodyable, requestConfiguration *ItemMailFoldersItemMessagesItemForwardRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemMailFoldersItemMessagesItemForwardRequestBuilder) ToPostRequestInfo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemMessagesItemForwardRequestBuilder when successful func (m *ItemMailFoldersItemMessagesItemForwardRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemMessagesItemForwardRequestBuilder) { return NewItemMailFoldersItemMessagesItemForwardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_messages_item_mark_as_junk_request_builder.go b/users/item_mail_folders_item_messages_item_mark_as_junk_request_builder.go index a3149fc7842..2f3ee5fc150 100644 --- a/users/item_mail_folders_item_messages_item_mark_as_junk_request_builder.go +++ b/users/item_mail_folders_item_messages_item_mark_as_junk_request_builder.go @@ -32,6 +32,7 @@ func NewItemMailFoldersItemMessagesItemMarkAsJunkRequestBuilder(rawUrl string, r return NewItemMailFoldersItemMessagesItemMarkAsJunkRequestBuilderInternal(urlParams, requestAdapter) } // Post mark a message as junk. This API adds the sender to the list of blocked senders and moves the message to the Junk Email folder, when moveToJunk is true. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Messageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemMailFoldersItemMessagesItemMarkAsJunkRequestBuilder) Post(ctx conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable), nil } // ToPostRequestInformation mark a message as junk. This API adds the sender to the list of blocked senders and moves the message to the Junk Email folder, when moveToJunk is true. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessagesItemMarkAsJunkRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemMailFoldersItemMessagesItemMarkAsJunkPostRequestBodyable, requestConfiguration *ItemMailFoldersItemMessagesItemMarkAsJunkRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemMailFoldersItemMessagesItemMarkAsJunkRequestBuilder) ToPostRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemMessagesItemMarkAsJunkRequestBuilder when successful func (m *ItemMailFoldersItemMessagesItemMarkAsJunkRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemMessagesItemMarkAsJunkRequestBuilder) { return NewItemMailFoldersItemMessagesItemMarkAsJunkRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_messages_item_mark_as_not_junk_request_builder.go b/users/item_mail_folders_item_messages_item_mark_as_not_junk_request_builder.go index 07f537e2ded..f2e1d025277 100644 --- a/users/item_mail_folders_item_messages_item_mark_as_not_junk_request_builder.go +++ b/users/item_mail_folders_item_messages_item_mark_as_not_junk_request_builder.go @@ -32,6 +32,7 @@ func NewItemMailFoldersItemMessagesItemMarkAsNotJunkRequestBuilder(rawUrl string return NewItemMailFoldersItemMessagesItemMarkAsNotJunkRequestBuilderInternal(urlParams, requestAdapter) } // Post mark a message as not junk. This API removes the sender from the list of blocked senders and moves the message to the Inbox folder, when moveToInbox is true. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Messageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemMailFoldersItemMessagesItemMarkAsNotJunkRequestBuilder) Post(ctx co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable), nil } // ToPostRequestInformation mark a message as not junk. This API removes the sender from the list of blocked senders and moves the message to the Inbox folder, when moveToInbox is true. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessagesItemMarkAsNotJunkRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemMailFoldersItemMessagesItemMarkAsNotJunkPostRequestBodyable, requestConfiguration *ItemMailFoldersItemMessagesItemMarkAsNotJunkRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemMailFoldersItemMessagesItemMarkAsNotJunkRequestBuilder) ToPostReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemMessagesItemMarkAsNotJunkRequestBuilder when successful func (m *ItemMailFoldersItemMessagesItemMarkAsNotJunkRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemMessagesItemMarkAsNotJunkRequestBuilder) { return NewItemMailFoldersItemMessagesItemMarkAsNotJunkRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_messages_item_mentions_count_request_builder.go b/users/item_mail_folders_item_messages_item_mentions_count_request_builder.go index 1a4beb0b8ad..c12b3d818ca 100644 --- a/users/item_mail_folders_item_messages_item_mentions_count_request_builder.go +++ b/users/item_mail_folders_item_messages_item_mentions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemMailFoldersItemMessagesItemMentionsCountRequestBuilder(rawUrl string return NewItemMailFoldersItemMessagesItemMentionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemMessagesItemMentionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesItemMentionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemMailFoldersItemMessagesItemMentionsCountRequestBuilder) Get(ctx con return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessagesItemMentionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesItemMentionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemMailFoldersItemMessagesItemMentionsCountRequestBuilder) ToGetReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemMessagesItemMentionsCountRequestBuilder when successful func (m *ItemMailFoldersItemMessagesItemMentionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemMessagesItemMentionsCountRequestBuilder) { return NewItemMailFoldersItemMessagesItemMentionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_messages_item_mentions_mention_item_request_builder.go b/users/item_mail_folders_item_messages_item_mentions_mention_item_request_builder.go index c9efabd2772..e8bf77f5655 100644 --- a/users/item_mail_folders_item_messages_item_mentions_mention_item_request_builder.go +++ b/users/item_mail_folders_item_messages_item_mentions_mention_item_request_builder.go @@ -48,6 +48,7 @@ func NewItemMailFoldersItemMessagesItemMentionsMentionItemRequestBuilder(rawUrl return NewItemMailFoldersItemMessagesItemMentionsMentionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property mentions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemMessagesItemMentionsMentionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesItemMentionsMentionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,6 +65,7 @@ func (m *ItemMailFoldersItemMessagesItemMentionsMentionItemRequestBuilder) Delet return nil } // Get a collection of mentions in the message, ordered by the createdDateTime from the newest to the oldest. By default, a GET /messages does not return this property unless you apply $expand on the property. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Mentionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemMessagesItemMentionsMentionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesItemMentionsMentionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Mentionable, error) { @@ -84,6 +86,7 @@ func (m *ItemMailFoldersItemMessagesItemMentionsMentionItemRequestBuilder) Get(c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Mentionable), nil } // ToDeleteRequestInformation delete navigation property mentions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessagesItemMentionsMentionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesItemMentionsMentionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +98,7 @@ func (m *ItemMailFoldersItemMessagesItemMentionsMentionItemRequestBuilder) ToDel return requestInfo, nil } // ToGetRequestInformation a collection of mentions in the message, ordered by the createdDateTime from the newest to the oldest. By default, a GET /messages does not return this property unless you apply $expand on the property. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessagesItemMentionsMentionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesItemMentionsMentionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +113,7 @@ func (m *ItemMailFoldersItemMessagesItemMentionsMentionItemRequestBuilder) ToGet return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemMessagesItemMentionsMentionItemRequestBuilder when successful func (m *ItemMailFoldersItemMessagesItemMentionsMentionItemRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemMessagesItemMentionsMentionItemRequestBuilder) { return NewItemMailFoldersItemMessagesItemMentionsMentionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_messages_item_mentions_request_builder.go b/users/item_mail_folders_item_messages_item_mentions_request_builder.go index bf7c2df6b23..2d52586e7d9 100644 --- a/users/item_mail_folders_item_messages_item_mentions_request_builder.go +++ b/users/item_mail_folders_item_messages_item_mentions_request_builder.go @@ -47,6 +47,7 @@ type ItemMailFoldersItemMessagesItemMentionsRequestBuilderPostRequestConfigurati Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByMentionId provides operations to manage the mentions property of the microsoft.graph.message entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemMessagesItemMentionsMentionItemRequestBuilder when successful func (m *ItemMailFoldersItemMessagesItemMentionsRequestBuilder) ByMentionId(mentionId string)(*ItemMailFoldersItemMessagesItemMentionsMentionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemMailFoldersItemMessagesItemMentionsRequestBuilder) Count()(*ItemMai return NewItemMailFoldersItemMessagesItemMentionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get a collection of mentions in the message, ordered by the createdDateTime from the newest to the oldest. By default, a GET /messages does not return this property unless you apply $expand on the property. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MentionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemMessagesItemMentionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesItemMentionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MentionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemMailFoldersItemMessagesItemMentionsRequestBuilder) Get(ctx context. return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MentionCollectionResponseable), nil } // Post create new navigation property to mentions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Mentionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemMessagesItemMentionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Mentionable, requestConfiguration *ItemMailFoldersItemMessagesItemMentionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Mentionable, error) { @@ -117,6 +120,7 @@ func (m *ItemMailFoldersItemMessagesItemMentionsRequestBuilder) Post(ctx context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Mentionable), nil } // ToGetRequestInformation a collection of mentions in the message, ordered by the createdDateTime from the newest to the oldest. By default, a GET /messages does not return this property unless you apply $expand on the property. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessagesItemMentionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesItemMentionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemMailFoldersItemMessagesItemMentionsRequestBuilder) ToGetRequestInfo return requestInfo, nil } // ToPostRequestInformation create new navigation property to mentions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessagesItemMentionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Mentionable, requestConfiguration *ItemMailFoldersItemMessagesItemMentionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemMailFoldersItemMessagesItemMentionsRequestBuilder) ToPostRequestInf return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemMessagesItemMentionsRequestBuilder when successful func (m *ItemMailFoldersItemMessagesItemMentionsRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemMessagesItemMentionsRequestBuilder) { return NewItemMailFoldersItemMessagesItemMentionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_messages_item_move_request_builder.go b/users/item_mail_folders_item_messages_item_move_request_builder.go index 81591f41f21..ccfd4d80bf6 100644 --- a/users/item_mail_folders_item_messages_item_move_request_builder.go +++ b/users/item_mail_folders_item_messages_item_move_request_builder.go @@ -32,6 +32,7 @@ func NewItemMailFoldersItemMessagesItemMoveRequestBuilder(rawUrl string, request return NewItemMailFoldersItemMessagesItemMoveRequestBuilderInternal(urlParams, requestAdapter) } // Post move a message to another folder within the specified user's mailbox. This creates a new copy of the message in the destination folder and removes the original message. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Messageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemMailFoldersItemMessagesItemMoveRequestBuilder) Post(ctx context.Con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable), nil } // ToPostRequestInformation move a message to another folder within the specified user's mailbox. This creates a new copy of the message in the destination folder and removes the original message. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessagesItemMoveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemMailFoldersItemMessagesItemMovePostRequestBodyable, requestConfiguration *ItemMailFoldersItemMessagesItemMoveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemMailFoldersItemMessagesItemMoveRequestBuilder) ToPostRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemMessagesItemMoveRequestBuilder when successful func (m *ItemMailFoldersItemMessagesItemMoveRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemMessagesItemMoveRequestBuilder) { return NewItemMailFoldersItemMessagesItemMoveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_messages_item_permanent_delete_request_builder.go b/users/item_mail_folders_item_messages_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..8281f772cad --- /dev/null +++ b/users/item_mail_folders_item_messages_item_permanent_delete_request_builder.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemMailFoldersItemMessagesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemMailFoldersItemMessagesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemMailFoldersItemMessagesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemMailFoldersItemMessagesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemMailFoldersItemMessagesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemMailFoldersItemMessagesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemMailFoldersItemMessagesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemMailFoldersItemMessagesItemPermanentDeleteRequestBuilder) { + m := &ItemMailFoldersItemMessagesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/permanentDelete", pathParameters), + } + return m +} +// NewItemMailFoldersItemMessagesItemPermanentDeleteRequestBuilder instantiates a new ItemMailFoldersItemMessagesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemMailFoldersItemMessagesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemMailFoldersItemMessagesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemMailFoldersItemMessagesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete a message and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/message-permanentdelete?view=graph-rest-beta +func (m *ItemMailFoldersItemMessagesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete a message and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemMailFoldersItemMessagesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemMailFoldersItemMessagesItemPermanentDeleteRequestBuilder when successful +func (m *ItemMailFoldersItemMessagesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemMessagesItemPermanentDeleteRequestBuilder) { + return NewItemMailFoldersItemMessagesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_mail_folders_item_messages_item_reply_all_request_builder.go b/users/item_mail_folders_item_messages_item_reply_all_request_builder.go index 00e6cd7a27a..a5579bcc0ee 100644 --- a/users/item_mail_folders_item_messages_item_reply_all_request_builder.go +++ b/users/item_mail_folders_item_messages_item_reply_all_request_builder.go @@ -31,6 +31,7 @@ func NewItemMailFoldersItemMessagesItemReplyAllRequestBuilder(rawUrl string, req return NewItemMailFoldersItemMessagesItemReplyAllRequestBuilderInternal(urlParams, requestAdapter) } // Post reply to all recipients of a message using either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply-all to a message, and send it later. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemMailFoldersItemMessagesItemReplyAllRequestBuilder) Post(ctx context return nil } // ToPostRequestInformation reply to all recipients of a message using either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply-all to a message, and send it later. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessagesItemReplyAllRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemMailFoldersItemMessagesItemReplyAllPostRequestBodyable, requestConfiguration *ItemMailFoldersItemMessagesItemReplyAllRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemMailFoldersItemMessagesItemReplyAllRequestBuilder) ToPostRequestInf return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemMessagesItemReplyAllRequestBuilder when successful func (m *ItemMailFoldersItemMessagesItemReplyAllRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemMessagesItemReplyAllRequestBuilder) { return NewItemMailFoldersItemMessagesItemReplyAllRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_messages_item_reply_request_builder.go b/users/item_mail_folders_item_messages_item_reply_request_builder.go index da1f615f18e..9770f80bc18 100644 --- a/users/item_mail_folders_item_messages_item_reply_request_builder.go +++ b/users/item_mail_folders_item_messages_item_reply_request_builder.go @@ -31,6 +31,7 @@ func NewItemMailFoldersItemMessagesItemReplyRequestBuilder(rawUrl string, reques return NewItemMailFoldersItemMessagesItemReplyRequestBuilderInternal(urlParams, requestAdapter) } // Post reply to the sender of a message using either JSON or MIME format. When using JSON format:* Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.* If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply to a message, and send it later. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemMailFoldersItemMessagesItemReplyRequestBuilder) Post(ctx context.Co return nil } // ToPostRequestInformation reply to the sender of a message using either JSON or MIME format. When using JSON format:* Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.* If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply to a message, and send it later. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessagesItemReplyRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemMailFoldersItemMessagesItemReplyPostRequestBodyable, requestConfiguration *ItemMailFoldersItemMessagesItemReplyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemMailFoldersItemMessagesItemReplyRequestBuilder) ToPostRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemMessagesItemReplyRequestBuilder when successful func (m *ItemMailFoldersItemMessagesItemReplyRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemMessagesItemReplyRequestBuilder) { return NewItemMailFoldersItemMessagesItemReplyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_messages_item_send_request_builder.go b/users/item_mail_folders_item_messages_item_send_request_builder.go index ef5d14df242..36c7ec57069 100644 --- a/users/item_mail_folders_item_messages_item_send_request_builder.go +++ b/users/item_mail_folders_item_messages_item_send_request_builder.go @@ -31,6 +31,7 @@ func NewItemMailFoldersItemMessagesItemSendRequestBuilder(rawUrl string, request return NewItemMailFoldersItemMessagesItemSendRequestBuilderInternal(urlParams, requestAdapter) } // Post send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemMailFoldersItemMessagesItemSendRequestBuilder) Post(ctx context.Con return nil } // ToPostRequestInformation send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessagesItemSendRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesItemSendRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemMailFoldersItemMessagesItemSendRequestBuilder) ToPostRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemMessagesItemSendRequestBuilder when successful func (m *ItemMailFoldersItemMessagesItemSendRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemMessagesItemSendRequestBuilder) { return NewItemMailFoldersItemMessagesItemSendRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_messages_item_unsubscribe_request_builder.go b/users/item_mail_folders_item_messages_item_unsubscribe_request_builder.go index 0e617067b8b..93adc63deeb 100644 --- a/users/item_mail_folders_item_messages_item_unsubscribe_request_builder.go +++ b/users/item_mail_folders_item_messages_item_unsubscribe_request_builder.go @@ -31,6 +31,7 @@ func NewItemMailFoldersItemMessagesItemUnsubscribeRequestBuilder(rawUrl string, return NewItemMailFoldersItemMessagesItemUnsubscribeRequestBuilderInternal(urlParams, requestAdapter) } // Post submits an email request on behalf of the signed-in user to unsubscribe from an email distribution list. Uses the information in the List-Unsubscribe header. Message senders can use mailing lists in a user-friendly way by including an option for recipients to opt out. They can do so by specifying the List-Unsubscribe header in each message following RFC-2369. Note In particular, for the unsubscribe action to work, the sender must specify mailto: and not URL-based unsubscribe information. Setting that header would also set the unsubscribeEnabled property of the message instance to true, and the unsubscribeData property to the header data. If the unsubscribeEnabled property of a message is true, you can use the unsubscribe action to unsubscribe the user from similar future messages as managed by the message sender. A successful unsubscribe action moves the message to the Deleted Items folder. The actual exclusion of the user from future mail distribution is managed by the sender. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemMailFoldersItemMessagesItemUnsubscribeRequestBuilder) Post(ctx cont return nil } // ToPostRequestInformation submits an email request on behalf of the signed-in user to unsubscribe from an email distribution list. Uses the information in the List-Unsubscribe header. Message senders can use mailing lists in a user-friendly way by including an option for recipients to opt out. They can do so by specifying the List-Unsubscribe header in each message following RFC-2369. Note In particular, for the unsubscribe action to work, the sender must specify mailto: and not URL-based unsubscribe information. Setting that header would also set the unsubscribeEnabled property of the message instance to true, and the unsubscribeData property to the header data. If the unsubscribeEnabled property of a message is true, you can use the unsubscribe action to unsubscribe the user from similar future messages as managed by the message sender. A successful unsubscribe action moves the message to the Deleted Items folder. The actual exclusion of the user from future mail distribution is managed by the sender. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessagesItemUnsubscribeRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesItemUnsubscribeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemMailFoldersItemMessagesItemUnsubscribeRequestBuilder) ToPostRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemMessagesItemUnsubscribeRequestBuilder when successful func (m *ItemMailFoldersItemMessagesItemUnsubscribeRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemMessagesItemUnsubscribeRequestBuilder) { return NewItemMailFoldersItemMessagesItemUnsubscribeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_messages_item_value_content_request_builder.go b/users/item_mail_folders_item_messages_item_value_content_request_builder.go index e011df008b9..3f112479221 100644 --- a/users/item_mail_folders_item_messages_item_value_content_request_builder.go +++ b/users/item_mail_folders_item_messages_item_value_content_request_builder.go @@ -45,6 +45,7 @@ func NewItemMailFoldersItemMessagesItemValueContentRequestBuilder(rawUrl string, return NewItemMailFoldersItemMessagesItemValueContentRequestBuilderInternal(urlParams, requestAdapter) } // Delete the unique identifier for an entity. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemMessagesItemValueContentRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesItemValueContentRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -61,6 +62,7 @@ func (m *ItemMailFoldersItemMessagesItemValueContentRequestBuilder) Delete(ctx c return nil } // Get the unique identifier for an entity. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemMessagesItemValueContentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesItemValueContentRequestBuilderGetRequestConfiguration)([]byte, error) { @@ -81,6 +83,7 @@ func (m *ItemMailFoldersItemMessagesItemValueContentRequestBuilder) Get(ctx cont return res.([]byte), nil } // Put the unique identifier for an entity. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemMessagesItemValueContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemMailFoldersItemMessagesItemValueContentRequestBuilderPutRequestConfiguration)([]byte, error) { @@ -101,6 +104,7 @@ func (m *ItemMailFoldersItemMessagesItemValueContentRequestBuilder) Put(ctx cont return res.([]byte), nil } // ToDeleteRequestInformation the unique identifier for an entity. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessagesItemValueContentRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesItemValueContentRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -112,6 +116,7 @@ func (m *ItemMailFoldersItemMessagesItemValueContentRequestBuilder) ToDeleteRequ return requestInfo, nil } // ToGetRequestInformation the unique identifier for an entity. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessagesItemValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesItemValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -123,6 +128,7 @@ func (m *ItemMailFoldersItemMessagesItemValueContentRequestBuilder) ToGetRequest return requestInfo, nil } // ToPutRequestInformation the unique identifier for an entity. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessagesItemValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemMailFoldersItemMessagesItemValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -135,6 +141,7 @@ func (m *ItemMailFoldersItemMessagesItemValueContentRequestBuilder) ToPutRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemMessagesItemValueContentRequestBuilder when successful func (m *ItemMailFoldersItemMessagesItemValueContentRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemMessagesItemValueContentRequestBuilder) { return NewItemMailFoldersItemMessagesItemValueContentRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_messages_message_item_request_builder.go b/users/item_mail_folders_item_messages_message_item_request_builder.go index 4d66bb45a0a..ae69a60380d 100644 --- a/users/item_mail_folders_item_messages_message_item_request_builder.go +++ b/users/item_mail_folders_item_messages_message_item_request_builder.go @@ -85,6 +85,7 @@ func (m *ItemMailFoldersItemMessagesMessageItemRequestBuilder) CreateReplyAll()( return NewItemMailFoldersItemMessagesItemCreateReplyAllRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Delete delete navigation property messages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemMessagesMessageItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesMessageItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -111,6 +112,7 @@ func (m *ItemMailFoldersItemMessagesMessageItemRequestBuilder) Forward()(*ItemMa return NewItemMailFoldersItemMessagesItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of messages in the mailFolder. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Messageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemMessagesMessageItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesMessageItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable, error) { @@ -151,6 +153,7 @@ func (m *ItemMailFoldersItemMessagesMessageItemRequestBuilder) Move()(*ItemMailF return NewItemMailFoldersItemMessagesItemMoveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property messages in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Messageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemMessagesMessageItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable, requestConfiguration *ItemMailFoldersItemMessagesMessageItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable, error) { @@ -170,6 +173,11 @@ func (m *ItemMailFoldersItemMessagesMessageItemRequestBuilder) Patch(ctx context } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemMailFoldersItemMessagesItemPermanentDeleteRequestBuilder when successful +func (m *ItemMailFoldersItemMessagesMessageItemRequestBuilder) PermanentDelete()(*ItemMailFoldersItemMessagesItemPermanentDeleteRequestBuilder) { + return NewItemMailFoldersItemMessagesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Reply provides operations to call the reply method. // returns a *ItemMailFoldersItemMessagesItemReplyRequestBuilder when successful func (m *ItemMailFoldersItemMessagesMessageItemRequestBuilder) Reply()(*ItemMailFoldersItemMessagesItemReplyRequestBuilder) { @@ -186,6 +194,7 @@ func (m *ItemMailFoldersItemMessagesMessageItemRequestBuilder) Send()(*ItemMailF return NewItemMailFoldersItemMessagesItemSendRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property messages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessagesMessageItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesMessageItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -197,6 +206,7 @@ func (m *ItemMailFoldersItemMessagesMessageItemRequestBuilder) ToDeleteRequestIn return requestInfo, nil } // ToGetRequestInformation the collection of messages in the mailFolder. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessagesMessageItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesMessageItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -211,6 +221,7 @@ func (m *ItemMailFoldersItemMessagesMessageItemRequestBuilder) ToGetRequestInfor return requestInfo, nil } // ToPatchRequestInformation update the navigation property messages in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessagesMessageItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable, requestConfiguration *ItemMailFoldersItemMessagesMessageItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -231,6 +242,7 @@ func (m *ItemMailFoldersItemMessagesMessageItemRequestBuilder) Unsubscribe()(*It return NewItemMailFoldersItemMessagesItemUnsubscribeRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemMessagesMessageItemRequestBuilder when successful func (m *ItemMailFoldersItemMessagesMessageItemRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemMessagesMessageItemRequestBuilder) { return NewItemMailFoldersItemMessagesMessageItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_messages_request_builder.go b/users/item_mail_folders_item_messages_request_builder.go index 7c1d88a70a7..b810156496a 100644 --- a/users/item_mail_folders_item_messages_request_builder.go +++ b/users/item_mail_folders_item_messages_request_builder.go @@ -47,6 +47,7 @@ type ItemMailFoldersItemMessagesRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByMessageId provides operations to manage the messages property of the microsoft.graph.mailFolder entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemMessagesMessageItemRequestBuilder when successful func (m *ItemMailFoldersItemMessagesRequestBuilder) ByMessageId(messageId string)(*ItemMailFoldersItemMessagesMessageItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemMailFoldersItemMessagesRequestBuilder) Delta()(*ItemMailFoldersItem return NewItemMailFoldersItemMessagesDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of messages in the mailFolder. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MessageCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemMessagesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MessageCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemMailFoldersItemMessagesRequestBuilder) Get(ctx context.Context, req return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MessageCollectionResponseable), nil } // Post create new navigation property to messages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Messageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemMessagesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable, requestConfiguration *ItemMailFoldersItemMessagesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable, error) { @@ -122,6 +125,7 @@ func (m *ItemMailFoldersItemMessagesRequestBuilder) Post(ctx context.Context, bo return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable), nil } // ToGetRequestInformation the collection of messages in the mailFolder. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessagesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemMessagesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemMailFoldersItemMessagesRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // ToPostRequestInformation create new navigation property to messages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMessagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable, requestConfiguration *ItemMailFoldersItemMessagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemMailFoldersItemMessagesRequestBuilder) ToPostRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemMessagesRequestBuilder when successful func (m *ItemMailFoldersItemMessagesRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemMessagesRequestBuilder) { return NewItemMailFoldersItemMessagesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_move_request_builder.go b/users/item_mail_folders_item_move_request_builder.go index 86cab225304..7f5eca23901 100644 --- a/users/item_mail_folders_item_move_request_builder.go +++ b/users/item_mail_folders_item_move_request_builder.go @@ -32,6 +32,7 @@ func NewItemMailFoldersItemMoveRequestBuilder(rawUrl string, requestAdapter i2ae return NewItemMailFoldersItemMoveRequestBuilderInternal(urlParams, requestAdapter) } // Post move a mail folder and its contents to another mail folder. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailFolderable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemMailFoldersItemMoveRequestBuilder) Post(ctx context.Context, body I return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailFolderable), nil } // ToPostRequestInformation move a mail folder and its contents to another mail folder. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemMoveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemMailFoldersItemMovePostRequestBodyable, requestConfiguration *ItemMailFoldersItemMoveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemMailFoldersItemMoveRequestBuilder) ToPostRequestInformation(ctx con return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemMoveRequestBuilder when successful func (m *ItemMailFoldersItemMoveRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemMoveRequestBuilder) { return NewItemMailFoldersItemMoveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_permanent_delete_request_builder.go b/users/item_mail_folders_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..bd6d9bcec3a --- /dev/null +++ b/users/item_mail_folders_item_permanent_delete_request_builder.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemMailFoldersItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemMailFoldersItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemMailFoldersItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemMailFoldersItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemMailFoldersItemPermanentDeleteRequestBuilderInternal instantiates a new ItemMailFoldersItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemMailFoldersItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemMailFoldersItemPermanentDeleteRequestBuilder) { + m := &ItemMailFoldersItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/permanentDelete", pathParameters), + } + return m +} +// NewItemMailFoldersItemPermanentDeleteRequestBuilder instantiates a new ItemMailFoldersItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemMailFoldersItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemMailFoldersItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemMailFoldersItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete a mail folder and remove its items from the user's mailbox. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/mailfolder-permanentdelete?view=graph-rest-beta +func (m *ItemMailFoldersItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemMailFoldersItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete a mail folder and remove its items from the user's mailbox. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemMailFoldersItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemMailFoldersItemPermanentDeleteRequestBuilder when successful +func (m *ItemMailFoldersItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemPermanentDeleteRequestBuilder) { + return NewItemMailFoldersItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_mail_folders_item_user_configurations_count_request_builder.go b/users/item_mail_folders_item_user_configurations_count_request_builder.go index 3bd3e940fd0..5ce1344db42 100644 --- a/users/item_mail_folders_item_user_configurations_count_request_builder.go +++ b/users/item_mail_folders_item_user_configurations_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemMailFoldersItemUserConfigurationsCountRequestBuilder(rawUrl string, return NewItemMailFoldersItemUserConfigurationsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemUserConfigurationsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemUserConfigurationsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemMailFoldersItemUserConfigurationsCountRequestBuilder) Get(ctx conte return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemUserConfigurationsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemUserConfigurationsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemMailFoldersItemUserConfigurationsCountRequestBuilder) ToGetRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemUserConfigurationsCountRequestBuilder when successful func (m *ItemMailFoldersItemUserConfigurationsCountRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemUserConfigurationsCountRequestBuilder) { return NewItemMailFoldersItemUserConfigurationsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_user_configurations_request_builder.go b/users/item_mail_folders_item_user_configurations_request_builder.go index c02d62de287..fd3d3aa89cb 100644 --- a/users/item_mail_folders_item_user_configurations_request_builder.go +++ b/users/item_mail_folders_item_user_configurations_request_builder.go @@ -40,6 +40,7 @@ type ItemMailFoldersItemUserConfigurationsRequestBuilderGetRequestConfiguration QueryParameters *ItemMailFoldersItemUserConfigurationsRequestBuilderGetQueryParameters } // ByUserConfigurationId provides operations to manage the userConfigurations property of the microsoft.graph.mailFolder entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemUserConfigurationsUserConfigurationItemRequestBuilder when successful func (m *ItemMailFoldersItemUserConfigurationsRequestBuilder) ByUserConfigurationId(userConfigurationId string)(*ItemMailFoldersItemUserConfigurationsUserConfigurationItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -70,6 +71,7 @@ func (m *ItemMailFoldersItemUserConfigurationsRequestBuilder) Count()(*ItemMailF return NewItemMailFoldersItemUserConfigurationsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get userConfigurations from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserConfigurationCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemUserConfigurationsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemUserConfigurationsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserConfigurationCollectionResponseable, error) { @@ -90,6 +92,7 @@ func (m *ItemMailFoldersItemUserConfigurationsRequestBuilder) Get(ctx context.Co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserConfigurationCollectionResponseable), nil } // ToGetRequestInformation get userConfigurations from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemUserConfigurationsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemUserConfigurationsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -104,6 +107,7 @@ func (m *ItemMailFoldersItemUserConfigurationsRequestBuilder) ToGetRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemUserConfigurationsRequestBuilder when successful func (m *ItemMailFoldersItemUserConfigurationsRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemUserConfigurationsRequestBuilder) { return NewItemMailFoldersItemUserConfigurationsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_item_user_configurations_user_configuration_item_request_builder.go b/users/item_mail_folders_item_user_configurations_user_configuration_item_request_builder.go index 53fe900160e..402cd21cb36 100644 --- a/users/item_mail_folders_item_user_configurations_user_configuration_item_request_builder.go +++ b/users/item_mail_folders_item_user_configurations_user_configuration_item_request_builder.go @@ -41,6 +41,7 @@ func NewItemMailFoldersItemUserConfigurationsUserConfigurationItemRequestBuilder return NewItemMailFoldersItemUserConfigurationsUserConfigurationItemRequestBuilderInternal(urlParams, requestAdapter) } // Get get userConfigurations from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserConfigurationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersItemUserConfigurationsUserConfigurationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersItemUserConfigurationsUserConfigurationItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserConfigurationable, error) { @@ -61,6 +62,7 @@ func (m *ItemMailFoldersItemUserConfigurationsUserConfigurationItemRequestBuilde return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserConfigurationable), nil } // ToGetRequestInformation get userConfigurations from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersItemUserConfigurationsUserConfigurationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersItemUserConfigurationsUserConfigurationItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemMailFoldersItemUserConfigurationsUserConfigurationItemRequestBuilde return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersItemUserConfigurationsUserConfigurationItemRequestBuilder when successful func (m *ItemMailFoldersItemUserConfigurationsUserConfigurationItemRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersItemUserConfigurationsUserConfigurationItemRequestBuilder) { return NewItemMailFoldersItemUserConfigurationsUserConfigurationItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_mail_folder_item_request_builder.go b/users/item_mail_folders_mail_folder_item_request_builder.go index c6303f37c6d..1a8d5f8c2aa 100644 --- a/users/item_mail_folders_mail_folder_item_request_builder.go +++ b/users/item_mail_folders_mail_folder_item_request_builder.go @@ -67,6 +67,7 @@ func (m *ItemMailFoldersMailFolderItemRequestBuilder) Copy()(*ItemMailFoldersIte return NewItemMailFoldersItemCopyRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Delete delete navigation property mailFolders for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersMailFolderItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemMailFoldersMailFolderItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -83,6 +84,7 @@ func (m *ItemMailFoldersMailFolderItemRequestBuilder) Delete(ctx context.Context return nil } // Get the user's mail folders. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailFolderable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersMailFolderItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersMailFolderItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailFolderable, error) { @@ -118,6 +120,7 @@ func (m *ItemMailFoldersMailFolderItemRequestBuilder) Move()(*ItemMailFoldersIte return NewItemMailFoldersItemMoveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property mailFolders in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailFolderable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersMailFolderItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailFolderable, requestConfiguration *ItemMailFoldersMailFolderItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailFolderable, error) { @@ -137,7 +140,13 @@ func (m *ItemMailFoldersMailFolderItemRequestBuilder) Patch(ctx context.Context, } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailFolderable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemMailFoldersItemPermanentDeleteRequestBuilder when successful +func (m *ItemMailFoldersMailFolderItemRequestBuilder) PermanentDelete()(*ItemMailFoldersItemPermanentDeleteRequestBuilder) { + return NewItemMailFoldersItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToDeleteRequestInformation delete navigation property mailFolders for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersMailFolderItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersMailFolderItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -149,6 +158,7 @@ func (m *ItemMailFoldersMailFolderItemRequestBuilder) ToDeleteRequestInformation return requestInfo, nil } // ToGetRequestInformation the user's mail folders. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersMailFolderItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersMailFolderItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -163,6 +173,7 @@ func (m *ItemMailFoldersMailFolderItemRequestBuilder) ToGetRequestInformation(ct return requestInfo, nil } // ToPatchRequestInformation update the navigation property mailFolders in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersMailFolderItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailFolderable, requestConfiguration *ItemMailFoldersMailFolderItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -183,6 +194,7 @@ func (m *ItemMailFoldersMailFolderItemRequestBuilder) UserConfigurations()(*Item return NewItemMailFoldersItemUserConfigurationsRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersMailFolderItemRequestBuilder when successful func (m *ItemMailFoldersMailFolderItemRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersMailFolderItemRequestBuilder) { return NewItemMailFoldersMailFolderItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mail_folders_request_builder.go b/users/item_mail_folders_request_builder.go index 6111e748d68..7d8ceb0f277 100644 --- a/users/item_mail_folders_request_builder.go +++ b/users/item_mail_folders_request_builder.go @@ -49,6 +49,7 @@ type ItemMailFoldersRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByMailFolderId provides operations to manage the mailFolders property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersMailFolderItemRequestBuilder when successful func (m *ItemMailFoldersRequestBuilder) ByMailFolderId(mailFolderId string)(*ItemMailFoldersMailFolderItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -84,6 +85,7 @@ func (m *ItemMailFoldersRequestBuilder) Delta()(*ItemMailFoldersDeltaRequestBuil return NewItemMailFoldersDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the user's mail folders. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailFolderCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailFoldersRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailFolderCollectionResponseable, error) { @@ -104,6 +106,7 @@ func (m *ItemMailFoldersRequestBuilder) Get(ctx context.Context, requestConfigur return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailFolderCollectionResponseable), nil } // Post create new navigation property to mailFolders for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailFolderable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailFoldersRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailFolderable, requestConfiguration *ItemMailFoldersRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailFolderable, error) { @@ -124,6 +127,7 @@ func (m *ItemMailFoldersRequestBuilder) Post(ctx context.Context, body ie233ee76 return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailFolderable), nil } // ToGetRequestInformation the user's mail folders. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailFoldersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -138,6 +142,7 @@ func (m *ItemMailFoldersRequestBuilder) ToGetRequestInformation(ctx context.Cont return requestInfo, nil } // ToPostRequestInformation create new navigation property to mailFolders for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailFoldersRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailFolderable, requestConfiguration *ItemMailFoldersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -153,6 +158,7 @@ func (m *ItemMailFoldersRequestBuilder) ToPostRequestInformation(ctx context.Con return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailFoldersRequestBuilder when successful func (m *ItemMailFoldersRequestBuilder) WithUrl(rawUrl string)(*ItemMailFoldersRequestBuilder) { return NewItemMailFoldersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mailbox_settings_request_builder.go b/users/item_mailbox_settings_request_builder.go index 480565b7a27..21000aad140 100644 --- a/users/item_mailbox_settings_request_builder.go +++ b/users/item_mailbox_settings_request_builder.go @@ -48,6 +48,7 @@ func NewItemMailboxSettingsRequestBuilder(rawUrl string, requestAdapter i2ae4187 return NewItemMailboxSettingsRequestBuilderInternal(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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMailboxSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -68,6 +69,7 @@ func (m *ItemMailboxSettingsRequestBuilder) Get(ctx context.Context, requestConf return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable), nil } // Patch update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MailboxSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemMailboxSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, error) { @@ -88,6 +90,7 @@ func (m *ItemMailboxSettingsRequestBuilder) Patch(ctx context.Context, body ie23 return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.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. For more information, see User preferences for languages and regional formats. Returned only on $select. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMailboxSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -102,6 +105,7 @@ func (m *ItemMailboxSettingsRequestBuilder) ToGetRequestInformation(ctx context. return requestInfo, nil } // ToPatchRequestInformation update property mailboxSettings value. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MailboxSettingsable, requestConfiguration *ItemMailboxSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -117,6 +121,7 @@ func (m *ItemMailboxSettingsRequestBuilder) ToPatchRequestInformation(ctx contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMailboxSettingsRequestBuilder when successful func (m *ItemMailboxSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemMailboxSettingsRequestBuilder) { return NewItemMailboxSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_app_log_collection_requests_count_request_builder.go b/users/item_managed_app_log_collection_requests_count_request_builder.go index e3b9a30a19e..9cc2485b92a 100644 --- a/users/item_managed_app_log_collection_requests_count_request_builder.go +++ b/users/item_managed_app_log_collection_requests_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemManagedAppLogCollectionRequestsCountRequestBuilder(rawUrl string, re return NewItemManagedAppLogCollectionRequestsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedAppLogCollectionRequestsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemManagedAppLogCollectionRequestsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemManagedAppLogCollectionRequestsCountRequestBuilder) Get(ctx context return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedAppLogCollectionRequestsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedAppLogCollectionRequestsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemManagedAppLogCollectionRequestsCountRequestBuilder) ToGetRequestInf return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedAppLogCollectionRequestsCountRequestBuilder when successful func (m *ItemManagedAppLogCollectionRequestsCountRequestBuilder) WithUrl(rawUrl string)(*ItemManagedAppLogCollectionRequestsCountRequestBuilder) { return NewItemManagedAppLogCollectionRequestsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_app_log_collection_requests_managed_app_log_collection_request_item_request_builder.go b/users/item_managed_app_log_collection_requests_managed_app_log_collection_request_item_request_builder.go index c976914a91c..6914c372363 100644 --- a/users/item_managed_app_log_collection_requests_managed_app_log_collection_request_item_request_builder.go +++ b/users/item_managed_app_log_collection_requests_managed_app_log_collection_request_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemManagedAppLogCollectionRequestsManagedAppLogCollectionRequestItemReq return NewItemManagedAppLogCollectionRequestsManagedAppLogCollectionRequestItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property managedAppLogCollectionRequests for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedAppLogCollectionRequestsManagedAppLogCollectionRequestItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemManagedAppLogCollectionRequestsManagedAppLogCollectionRequestItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemManagedAppLogCollectionRequestsManagedAppLogCollectionRequestItemRe return nil } // Get zero or more log collection requests triggered for the user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ManagedAppLogCollectionRequestable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedAppLogCollectionRequestsManagedAppLogCollectionRequestItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemManagedAppLogCollectionRequestsManagedAppLogCollectionRequestItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ManagedAppLogCollectionRequestable, error) { @@ -91,6 +93,7 @@ func (m *ItemManagedAppLogCollectionRequestsManagedAppLogCollectionRequestItemRe return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ManagedAppLogCollectionRequestable), nil } // Patch update the navigation property managedAppLogCollectionRequests in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ManagedAppLogCollectionRequestable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedAppLogCollectionRequestsManagedAppLogCollectionRequestItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ManagedAppLogCollectionRequestable, requestConfiguration *ItemManagedAppLogCollectionRequestsManagedAppLogCollectionRequestItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ManagedAppLogCollectionRequestable, error) { @@ -111,6 +114,7 @@ func (m *ItemManagedAppLogCollectionRequestsManagedAppLogCollectionRequestItemRe return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ManagedAppLogCollectionRequestable), nil } // ToDeleteRequestInformation delete navigation property managedAppLogCollectionRequests for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedAppLogCollectionRequestsManagedAppLogCollectionRequestItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemManagedAppLogCollectionRequestsManagedAppLogCollectionRequestItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemManagedAppLogCollectionRequestsManagedAppLogCollectionRequestItemRe return requestInfo, nil } // ToGetRequestInformation zero or more log collection requests triggered for the user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedAppLogCollectionRequestsManagedAppLogCollectionRequestItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedAppLogCollectionRequestsManagedAppLogCollectionRequestItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemManagedAppLogCollectionRequestsManagedAppLogCollectionRequestItemRe return requestInfo, nil } // ToPatchRequestInformation update the navigation property managedAppLogCollectionRequests in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedAppLogCollectionRequestsManagedAppLogCollectionRequestItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ManagedAppLogCollectionRequestable, requestConfiguration *ItemManagedAppLogCollectionRequestsManagedAppLogCollectionRequestItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemManagedAppLogCollectionRequestsManagedAppLogCollectionRequestItemRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedAppLogCollectionRequestsManagedAppLogCollectionRequestItemRequestBuilder when successful func (m *ItemManagedAppLogCollectionRequestsManagedAppLogCollectionRequestItemRequestBuilder) WithUrl(rawUrl string)(*ItemManagedAppLogCollectionRequestsManagedAppLogCollectionRequestItemRequestBuilder) { return NewItemManagedAppLogCollectionRequestsManagedAppLogCollectionRequestItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_app_log_collection_requests_request_builder.go b/users/item_managed_app_log_collection_requests_request_builder.go index a0723bb8b7c..2a42194e766 100644 --- a/users/item_managed_app_log_collection_requests_request_builder.go +++ b/users/item_managed_app_log_collection_requests_request_builder.go @@ -47,6 +47,7 @@ type ItemManagedAppLogCollectionRequestsRequestBuilderPostRequestConfiguration s Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByManagedAppLogCollectionRequestId provides operations to manage the managedAppLogCollectionRequests property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedAppLogCollectionRequestsManagedAppLogCollectionRequestItemRequestBuilder when successful func (m *ItemManagedAppLogCollectionRequestsRequestBuilder) ByManagedAppLogCollectionRequestId(managedAppLogCollectionRequestId string)(*ItemManagedAppLogCollectionRequestsManagedAppLogCollectionRequestItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemManagedAppLogCollectionRequestsRequestBuilder) Count()(*ItemManaged return NewItemManagedAppLogCollectionRequestsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get zero or more log collection requests triggered for the user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ManagedAppLogCollectionRequestCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedAppLogCollectionRequestsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemManagedAppLogCollectionRequestsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ManagedAppLogCollectionRequestCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemManagedAppLogCollectionRequestsRequestBuilder) Get(ctx context.Cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ManagedAppLogCollectionRequestCollectionResponseable), nil } // Post create new navigation property to managedAppLogCollectionRequests for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ManagedAppLogCollectionRequestable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedAppLogCollectionRequestsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ManagedAppLogCollectionRequestable, requestConfiguration *ItemManagedAppLogCollectionRequestsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ManagedAppLogCollectionRequestable, error) { @@ -117,6 +120,7 @@ func (m *ItemManagedAppLogCollectionRequestsRequestBuilder) Post(ctx context.Con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ManagedAppLogCollectionRequestable), nil } // ToGetRequestInformation zero or more log collection requests triggered for the user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedAppLogCollectionRequestsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedAppLogCollectionRequestsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemManagedAppLogCollectionRequestsRequestBuilder) ToGetRequestInformat return requestInfo, nil } // ToPostRequestInformation create new navigation property to managedAppLogCollectionRequests for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedAppLogCollectionRequestsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ManagedAppLogCollectionRequestable, requestConfiguration *ItemManagedAppLogCollectionRequestsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemManagedAppLogCollectionRequestsRequestBuilder) ToPostRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedAppLogCollectionRequestsRequestBuilder when successful func (m *ItemManagedAppLogCollectionRequestsRequestBuilder) WithUrl(rawUrl string)(*ItemManagedAppLogCollectionRequestsRequestBuilder) { return NewItemManagedAppLogCollectionRequestsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_app_registrations_count_request_builder.go b/users/item_managed_app_registrations_count_request_builder.go index 0f4fd3d9cca..bde4797e945 100644 --- a/users/item_managed_app_registrations_count_request_builder.go +++ b/users/item_managed_app_registrations_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemManagedAppRegistrationsCountRequestBuilder(rawUrl string, requestAda return NewItemManagedAppRegistrationsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedAppRegistrationsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemManagedAppRegistrationsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemManagedAppRegistrationsCountRequestBuilder) Get(ctx context.Context return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedAppRegistrationsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedAppRegistrationsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemManagedAppRegistrationsCountRequestBuilder) ToGetRequestInformation return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedAppRegistrationsCountRequestBuilder when successful func (m *ItemManagedAppRegistrationsCountRequestBuilder) WithUrl(rawUrl string)(*ItemManagedAppRegistrationsCountRequestBuilder) { return NewItemManagedAppRegistrationsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_app_registrations_managed_app_registration_item_request_builder.go b/users/item_managed_app_registrations_managed_app_registration_item_request_builder.go index 15d02459899..eadf06a196b 100644 --- a/users/item_managed_app_registrations_managed_app_registration_item_request_builder.go +++ b/users/item_managed_app_registrations_managed_app_registration_item_request_builder.go @@ -41,6 +41,7 @@ func NewItemManagedAppRegistrationsManagedAppRegistrationItemRequestBuilder(rawU return NewItemManagedAppRegistrationsManagedAppRegistrationItemRequestBuilderInternal(urlParams, requestAdapter) } // Get zero or more managed app registrations that belong to the user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ManagedAppRegistrationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedAppRegistrationsManagedAppRegistrationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemManagedAppRegistrationsManagedAppRegistrationItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ManagedAppRegistrationable, error) { @@ -61,6 +62,7 @@ func (m *ItemManagedAppRegistrationsManagedAppRegistrationItemRequestBuilder) Ge return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ManagedAppRegistrationable), nil } // ToGetRequestInformation zero or more managed app registrations that belong to the user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedAppRegistrationsManagedAppRegistrationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedAppRegistrationsManagedAppRegistrationItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemManagedAppRegistrationsManagedAppRegistrationItemRequestBuilder) To return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedAppRegistrationsManagedAppRegistrationItemRequestBuilder when successful func (m *ItemManagedAppRegistrationsManagedAppRegistrationItemRequestBuilder) WithUrl(rawUrl string)(*ItemManagedAppRegistrationsManagedAppRegistrationItemRequestBuilder) { return NewItemManagedAppRegistrationsManagedAppRegistrationItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_app_registrations_request_builder.go b/users/item_managed_app_registrations_request_builder.go index 673942580df..57256df02e1 100644 --- a/users/item_managed_app_registrations_request_builder.go +++ b/users/item_managed_app_registrations_request_builder.go @@ -40,6 +40,7 @@ type ItemManagedAppRegistrationsRequestBuilderGetRequestConfiguration struct { QueryParameters *ItemManagedAppRegistrationsRequestBuilderGetQueryParameters } // ByManagedAppRegistrationId provides operations to manage the managedAppRegistrations property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedAppRegistrationsManagedAppRegistrationItemRequestBuilder when successful func (m *ItemManagedAppRegistrationsRequestBuilder) ByManagedAppRegistrationId(managedAppRegistrationId string)(*ItemManagedAppRegistrationsManagedAppRegistrationItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -70,6 +71,7 @@ func (m *ItemManagedAppRegistrationsRequestBuilder) Count()(*ItemManagedAppRegis return NewItemManagedAppRegistrationsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get zero or more managed app registrations that belong to the user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ManagedAppRegistrationCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedAppRegistrationsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemManagedAppRegistrationsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ManagedAppRegistrationCollectionResponseable, error) { @@ -90,6 +92,7 @@ func (m *ItemManagedAppRegistrationsRequestBuilder) Get(ctx context.Context, req return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ManagedAppRegistrationCollectionResponseable), nil } // ToGetRequestInformation zero or more managed app registrations that belong to the user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedAppRegistrationsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedAppRegistrationsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -104,6 +107,7 @@ func (m *ItemManagedAppRegistrationsRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedAppRegistrationsRequestBuilder when successful func (m *ItemManagedAppRegistrationsRequestBuilder) WithUrl(rawUrl string)(*ItemManagedAppRegistrationsRequestBuilder) { return NewItemManagedAppRegistrationsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_app_diagnostics_with_upn_request_builder.go b/users/item_managed_devices_app_diagnostics_with_upn_request_builder.go index 9d2654003d0..83a67a417b1 100644 --- a/users/item_managed_devices_app_diagnostics_with_upn_request_builder.go +++ b/users/item_managed_devices_app_diagnostics_with_upn_request_builder.go @@ -70,6 +70,7 @@ func (m *ItemManagedDevicesAppDiagnosticsWithUpnRequestBuilder) Get(ctx context. return res.(ItemManagedDevicesAppDiagnosticsWithUpnResponseable), nil } // GetAsAppDiagnosticsWithUpnGetResponse invoke function appDiagnostics +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemManagedDevicesAppDiagnosticsWithUpnGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesAppDiagnosticsWithUpnRequestBuilder) GetAsAppDiagnosticsWithUpnGetResponse(ctx context.Context, requestConfiguration *ItemManagedDevicesAppDiagnosticsWithUpnRequestBuilderGetRequestConfiguration)(ItemManagedDevicesAppDiagnosticsWithUpnGetResponseable, error) { @@ -90,6 +91,7 @@ func (m *ItemManagedDevicesAppDiagnosticsWithUpnRequestBuilder) GetAsAppDiagnost return res.(ItemManagedDevicesAppDiagnosticsWithUpnGetResponseable), nil } // ToGetRequestInformation invoke function appDiagnostics +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesAppDiagnosticsWithUpnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesAppDiagnosticsWithUpnRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -104,6 +106,7 @@ func (m *ItemManagedDevicesAppDiagnosticsWithUpnRequestBuilder) ToGetRequestInfo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesAppDiagnosticsWithUpnRequestBuilder when successful func (m *ItemManagedDevicesAppDiagnosticsWithUpnRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesAppDiagnosticsWithUpnRequestBuilder) { return NewItemManagedDevicesAppDiagnosticsWithUpnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_bulk_reprovision_cloud_pc_request_builder.go b/users/item_managed_devices_bulk_reprovision_cloud_pc_request_builder.go index 0528f000c90..8fbd3b98737 100644 --- a/users/item_managed_devices_bulk_reprovision_cloud_pc_request_builder.go +++ b/users/item_managed_devices_bulk_reprovision_cloud_pc_request_builder.go @@ -32,7 +32,7 @@ func NewItemManagedDevicesBulkReprovisionCloudPcRequestBuilder(rawUrl string, re return NewItemManagedDevicesBulkReprovisionCloudPcRequestBuilderInternal(urlParams, requestAdapter) } // Post bulk reprovision a set of Cloud PC devices with Intune managed device IDs. -// Deprecated: The bulkReprovisionCloudPc action is deprecated and will stop supporting on September 24, 2023. Please use bulk action entity api. as of 2023-05/bulkReprovisionCloudPc +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a CloudPcBulkRemoteActionResultable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -56,7 +56,7 @@ func (m *ItemManagedDevicesBulkReprovisionCloudPcRequestBuilder) Post(ctx contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcBulkRemoteActionResultable), nil } // ToPostRequestInformation bulk reprovision a set of Cloud PC devices with Intune managed device IDs. -// Deprecated: The bulkReprovisionCloudPc action is deprecated and will stop supporting on September 24, 2023. Please use bulk action entity api. as of 2023-05/bulkReprovisionCloudPc +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesBulkReprovisionCloudPcRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemManagedDevicesBulkReprovisionCloudPcPostRequestBodyable, requestConfiguration *ItemManagedDevicesBulkReprovisionCloudPcRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -72,7 +72,7 @@ func (m *ItemManagedDevicesBulkReprovisionCloudPcRequestBuilder) ToPostRequestIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The bulkReprovisionCloudPc action is deprecated and will stop supporting on September 24, 2023. Please use bulk action entity api. as of 2023-05/bulkReprovisionCloudPc +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesBulkReprovisionCloudPcRequestBuilder when successful func (m *ItemManagedDevicesBulkReprovisionCloudPcRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesBulkReprovisionCloudPcRequestBuilder) { return NewItemManagedDevicesBulkReprovisionCloudPcRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_bulk_restore_cloud_pc_request_builder.go b/users/item_managed_devices_bulk_restore_cloud_pc_request_builder.go index 1d18c133c0a..9a4128888ec 100644 --- a/users/item_managed_devices_bulk_restore_cloud_pc_request_builder.go +++ b/users/item_managed_devices_bulk_restore_cloud_pc_request_builder.go @@ -32,7 +32,7 @@ func NewItemManagedDevicesBulkRestoreCloudPcRequestBuilder(rawUrl string, reques return NewItemManagedDevicesBulkRestoreCloudPcRequestBuilderInternal(urlParams, requestAdapter) } // Post restore multiple Cloud PC devices with a single request that includes the IDs of Intune managed devices and a restore point date and time. -// Deprecated: The bulkRestoreCloudPc action is deprecated and will stop supporting on September 24, 2023. Please use bulk action entity api. as of 2023-05/bulkRestoreCloudPc +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a CloudPcBulkRemoteActionResultable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -56,7 +56,7 @@ func (m *ItemManagedDevicesBulkRestoreCloudPcRequestBuilder) Post(ctx context.Co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcBulkRemoteActionResultable), nil } // ToPostRequestInformation restore multiple Cloud PC devices with a single request that includes the IDs of Intune managed devices and a restore point date and time. -// Deprecated: The bulkRestoreCloudPc action is deprecated and will stop supporting on September 24, 2023. Please use bulk action entity api. as of 2023-05/bulkRestoreCloudPc +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesBulkRestoreCloudPcRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemManagedDevicesBulkRestoreCloudPcPostRequestBodyable, requestConfiguration *ItemManagedDevicesBulkRestoreCloudPcRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -72,7 +72,7 @@ func (m *ItemManagedDevicesBulkRestoreCloudPcRequestBuilder) ToPostRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The bulkRestoreCloudPc action is deprecated and will stop supporting on September 24, 2023. Please use bulk action entity api. as of 2023-05/bulkRestoreCloudPc +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesBulkRestoreCloudPcRequestBuilder when successful func (m *ItemManagedDevicesBulkRestoreCloudPcRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesBulkRestoreCloudPcRequestBuilder) { return NewItemManagedDevicesBulkRestoreCloudPcRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_bulk_set_cloud_pc_review_status_request_builder.go b/users/item_managed_devices_bulk_set_cloud_pc_review_status_request_builder.go index 077350944d8..8695b21b718 100644 --- a/users/item_managed_devices_bulk_set_cloud_pc_review_status_request_builder.go +++ b/users/item_managed_devices_bulk_set_cloud_pc_review_status_request_builder.go @@ -32,6 +32,7 @@ func NewItemManagedDevicesBulkSetCloudPcReviewStatusRequestBuilder(rawUrl string return NewItemManagedDevicesBulkSetCloudPcReviewStatusRequestBuilderInternal(urlParams, requestAdapter) } // Post set the review status of multiple Cloud PC devices with a single request that includes the IDs of Intune managed devices. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a CloudPcBulkRemoteActionResultable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemManagedDevicesBulkSetCloudPcReviewStatusRequestBuilder) Post(ctx co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcBulkRemoteActionResultable), nil } // ToPostRequestInformation set the review status of multiple Cloud PC devices with a single request that includes the IDs of Intune managed devices. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesBulkSetCloudPcReviewStatusRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemManagedDevicesBulkSetCloudPcReviewStatusPostRequestBodyable, requestConfiguration *ItemManagedDevicesBulkSetCloudPcReviewStatusRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemManagedDevicesBulkSetCloudPcReviewStatusRequestBuilder) ToPostReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesBulkSetCloudPcReviewStatusRequestBuilder when successful func (m *ItemManagedDevicesBulkSetCloudPcReviewStatusRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesBulkSetCloudPcReviewStatusRequestBuilder) { return NewItemManagedDevicesBulkSetCloudPcReviewStatusRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_count_request_builder.go b/users/item_managed_devices_count_request_builder.go index 809cc2c4f65..679679ebae3 100644 --- a/users/item_managed_devices_count_request_builder.go +++ b/users/item_managed_devices_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemManagedDevicesCountRequestBuilder(rawUrl string, requestAdapter i2ae return NewItemManagedDevicesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemManagedDevicesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemManagedDevicesCountRequestBuilder) Get(ctx context.Context, request return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemManagedDevicesCountRequestBuilder) ToGetRequestInformation(ctx cont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesCountRequestBuilder when successful func (m *ItemManagedDevicesCountRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesCountRequestBuilder) { return NewItemManagedDevicesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_download_app_diagnostics_request_builder.go b/users/item_managed_devices_download_app_diagnostics_request_builder.go index 28505fd92ab..7fcedc4c159 100644 --- a/users/item_managed_devices_download_app_diagnostics_request_builder.go +++ b/users/item_managed_devices_download_app_diagnostics_request_builder.go @@ -31,6 +31,7 @@ func NewItemManagedDevicesDownloadAppDiagnosticsRequestBuilder(rawUrl string, re return NewItemManagedDevicesDownloadAppDiagnosticsRequestBuilderInternal(urlParams, requestAdapter) } // Post invoke action downloadAppDiagnostics +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesDownloadAppDiagnosticsRequestBuilder) Post(ctx context.Context, body ItemManagedDevicesDownloadAppDiagnosticsPostRequestBodyable, requestConfiguration *ItemManagedDevicesDownloadAppDiagnosticsRequestBuilderPostRequestConfiguration)([]byte, error) { @@ -51,6 +52,7 @@ func (m *ItemManagedDevicesDownloadAppDiagnosticsRequestBuilder) Post(ctx contex return res.([]byte), nil } // ToPostRequestInformation invoke action downloadAppDiagnostics +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesDownloadAppDiagnosticsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemManagedDevicesDownloadAppDiagnosticsPostRequestBodyable, requestConfiguration *ItemManagedDevicesDownloadAppDiagnosticsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -66,6 +68,7 @@ func (m *ItemManagedDevicesDownloadAppDiagnosticsRequestBuilder) ToPostRequestIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesDownloadAppDiagnosticsRequestBuilder when successful func (m *ItemManagedDevicesDownloadAppDiagnosticsRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesDownloadAppDiagnosticsRequestBuilder) { return NewItemManagedDevicesDownloadAppDiagnosticsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_execute_action_request_builder.go b/users/item_managed_devices_execute_action_request_builder.go index f12e620267f..448d662e879 100644 --- a/users/item_managed_devices_execute_action_request_builder.go +++ b/users/item_managed_devices_execute_action_request_builder.go @@ -32,6 +32,7 @@ func NewItemManagedDevicesExecuteActionRequestBuilder(rawUrl string, requestAdap return NewItemManagedDevicesExecuteActionRequestBuilderInternal(urlParams, requestAdapter) } // Post invoke action executeAction +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a BulkManagedDeviceActionResultable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesExecuteActionRequestBuilder) Post(ctx context.Context, body ItemManagedDevicesExecuteActionPostRequestBodyable, requestConfiguration *ItemManagedDevicesExecuteActionRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BulkManagedDeviceActionResultable, error) { @@ -52,6 +53,7 @@ func (m *ItemManagedDevicesExecuteActionRequestBuilder) Post(ctx context.Context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.BulkManagedDeviceActionResultable), nil } // ToPostRequestInformation invoke action executeAction +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesExecuteActionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemManagedDevicesExecuteActionPostRequestBodyable, requestConfiguration *ItemManagedDevicesExecuteActionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -67,6 +69,7 @@ func (m *ItemManagedDevicesExecuteActionRequestBuilder) ToPostRequestInformation return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesExecuteActionRequestBuilder when successful func (m *ItemManagedDevicesExecuteActionRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesExecuteActionRequestBuilder) { return NewItemManagedDevicesExecuteActionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_activate_device_esim_request_builder.go b/users/item_managed_devices_item_activate_device_esim_request_builder.go index c075502d125..1427fd77211 100644 --- a/users/item_managed_devices_item_activate_device_esim_request_builder.go +++ b/users/item_managed_devices_item_activate_device_esim_request_builder.go @@ -31,6 +31,7 @@ func NewItemManagedDevicesItemActivateDeviceEsimRequestBuilder(rawUrl string, re return NewItemManagedDevicesItemActivateDeviceEsimRequestBuilderInternal(urlParams, requestAdapter) } // Post activate eSIM on the device. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemActivateDeviceEsimRequestBuilder) Post(ctx context.Context, body ItemManagedDevicesItemActivateDeviceEsimPostRequestBodyable, requestConfiguration *ItemManagedDevicesItemActivateDeviceEsimRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemManagedDevicesItemActivateDeviceEsimRequestBuilder) Post(ctx contex return nil } // ToPostRequestInformation activate eSIM on the device. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemActivateDeviceEsimRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemManagedDevicesItemActivateDeviceEsimPostRequestBodyable, requestConfiguration *ItemManagedDevicesItemActivateDeviceEsimRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -62,6 +64,7 @@ func (m *ItemManagedDevicesItemActivateDeviceEsimRequestBuilder) ToPostRequestIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemActivateDeviceEsimRequestBuilder when successful func (m *ItemManagedDevicesItemActivateDeviceEsimRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemActivateDeviceEsimRequestBuilder) { return NewItemManagedDevicesItemActivateDeviceEsimRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_assignment_filter_evaluation_status_details_count_request_builder.go b/users/item_managed_devices_item_assignment_filter_evaluation_status_details_count_request_builder.go index 550d7ef7b1c..ac58e3af30c 100644 --- a/users/item_managed_devices_item_assignment_filter_evaluation_status_details_count_request_builder.go +++ b/users/item_managed_devices_item_assignment_filter_evaluation_status_details_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsCountReques return NewItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsCountReque return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsCountReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsCountRequestBuilder when successful func (m *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsCountRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsCountRequestBuilder) { return NewItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_assignment_filter_evaluation_status_details_request_builder.go b/users/item_managed_devices_item_assignment_filter_evaluation_status_details_request_builder.go index f34de3df38c..efeec1b113a 100644 --- a/users/item_managed_devices_item_assignment_filter_evaluation_status_details_request_builder.go +++ b/users/item_managed_devices_item_assignment_filter_evaluation_status_details_request_builder.go @@ -47,6 +47,7 @@ type ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsRequestBuilder Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAssignmentFilterEvaluationStatusDetailsId provides operations to manage the assignmentFilterEvaluationStatusDetails property of the microsoft.graph.managedDevice entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsAssignmentFilterEvaluationStatusDetailsItemRequestBuilder when successful func (m *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsRequestBuilder) ByAssignmentFilterEvaluationStatusDetailsId(assignmentFilterEvaluationStatusDetailsId string)(*ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsAssignmentFilterEvaluationStatusDetailsItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsRequestBui return NewItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get managed device mobile app configuration states for this device. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AssignmentFilterEvaluationStatusDetailsCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AssignmentFilterEvaluationStatusDetailsCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsRequestBui return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AssignmentFilterEvaluationStatusDetailsCollectionResponseable), nil } // Post create new navigation property to assignmentFilterEvaluationStatusDetails for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AssignmentFilterEvaluationStatusDetailsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AssignmentFilterEvaluationStatusDetailsable, requestConfiguration *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AssignmentFilterEvaluationStatusDetailsable, error) { @@ -117,6 +120,7 @@ func (m *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsRequestBui return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AssignmentFilterEvaluationStatusDetailsable), nil } // ToGetRequestInformation managed device mobile app configuration states for this device. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsRequestBui return requestInfo, nil } // ToPostRequestInformation create new navigation property to assignmentFilterEvaluationStatusDetails for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AssignmentFilterEvaluationStatusDetailsable, requestConfiguration *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsRequestBui return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsRequestBuilder when successful func (m *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsRequestBuilder) { return NewItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_bypass_activation_lock_request_builder.go b/users/item_managed_devices_item_bypass_activation_lock_request_builder.go index f70cdc73f1e..96ac99887fb 100644 --- a/users/item_managed_devices_item_bypass_activation_lock_request_builder.go +++ b/users/item_managed_devices_item_bypass_activation_lock_request_builder.go @@ -31,6 +31,7 @@ func NewItemManagedDevicesItemBypassActivationLockRequestBuilder(rawUrl string, return NewItemManagedDevicesItemBypassActivationLockRequestBuilderInternal(urlParams, requestAdapter) } // Post bypass activation lock +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemBypassActivationLockRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemManagedDevicesItemBypassActivationLockRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemManagedDevicesItemBypassActivationLockRequestBuilder) Post(ctx cont return nil } // ToPostRequestInformation bypass activation lock +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemBypassActivationLockRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemBypassActivationLockRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -58,6 +60,7 @@ func (m *ItemManagedDevicesItemBypassActivationLockRequestBuilder) ToPostRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemBypassActivationLockRequestBuilder when successful func (m *ItemManagedDevicesItemBypassActivationLockRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemBypassActivationLockRequestBuilder) { return NewItemManagedDevicesItemBypassActivationLockRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_change_assignments_request_builder.go b/users/item_managed_devices_item_change_assignments_request_builder.go index cc5505b7d44..5fd1cfeb3f4 100644 --- a/users/item_managed_devices_item_change_assignments_request_builder.go +++ b/users/item_managed_devices_item_change_assignments_request_builder.go @@ -31,6 +31,7 @@ func NewItemManagedDevicesItemChangeAssignmentsRequestBuilder(rawUrl string, req return NewItemManagedDevicesItemChangeAssignmentsRequestBuilderInternal(urlParams, requestAdapter) } // Post invoke action changeAssignments +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemChangeAssignmentsRequestBuilder) Post(ctx context.Context, body ItemManagedDevicesItemChangeAssignmentsPostRequestBodyable, requestConfiguration *ItemManagedDevicesItemChangeAssignmentsRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemManagedDevicesItemChangeAssignmentsRequestBuilder) Post(ctx context return nil } // ToPostRequestInformation invoke action changeAssignments +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemChangeAssignmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemManagedDevicesItemChangeAssignmentsPostRequestBodyable, requestConfiguration *ItemManagedDevicesItemChangeAssignmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -62,6 +64,7 @@ func (m *ItemManagedDevicesItemChangeAssignmentsRequestBuilder) ToPostRequestInf return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemChangeAssignmentsRequestBuilder when successful func (m *ItemManagedDevicesItemChangeAssignmentsRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemChangeAssignmentsRequestBuilder) { return NewItemManagedDevicesItemChangeAssignmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_clean_windows_device_request_builder.go b/users/item_managed_devices_item_clean_windows_device_request_builder.go index 76d28497bdf..3acb6987b69 100644 --- a/users/item_managed_devices_item_clean_windows_device_request_builder.go +++ b/users/item_managed_devices_item_clean_windows_device_request_builder.go @@ -31,6 +31,7 @@ func NewItemManagedDevicesItemCleanWindowsDeviceRequestBuilder(rawUrl string, re return NewItemManagedDevicesItemCleanWindowsDeviceRequestBuilderInternal(urlParams, requestAdapter) } // Post clean Windows device +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemCleanWindowsDeviceRequestBuilder) Post(ctx context.Context, body ItemManagedDevicesItemCleanWindowsDevicePostRequestBodyable, requestConfiguration *ItemManagedDevicesItemCleanWindowsDeviceRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemManagedDevicesItemCleanWindowsDeviceRequestBuilder) Post(ctx contex return nil } // ToPostRequestInformation clean Windows device +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemCleanWindowsDeviceRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemManagedDevicesItemCleanWindowsDevicePostRequestBodyable, requestConfiguration *ItemManagedDevicesItemCleanWindowsDeviceRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -62,6 +64,7 @@ func (m *ItemManagedDevicesItemCleanWindowsDeviceRequestBuilder) ToPostRequestIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemCleanWindowsDeviceRequestBuilder when successful func (m *ItemManagedDevicesItemCleanWindowsDeviceRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemCleanWindowsDeviceRequestBuilder) { return NewItemManagedDevicesItemCleanWindowsDeviceRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_create_device_log_collection_request_request_builder.go b/users/item_managed_devices_item_create_device_log_collection_request_request_builder.go index bfc26ea58f2..9dfc14cc60e 100644 --- a/users/item_managed_devices_item_create_device_log_collection_request_request_builder.go +++ b/users/item_managed_devices_item_create_device_log_collection_request_request_builder.go @@ -32,6 +32,7 @@ func NewItemManagedDevicesItemCreateDeviceLogCollectionRequestRequestBuilder(raw return NewItemManagedDevicesItemCreateDeviceLogCollectionRequestRequestBuilderInternal(urlParams, requestAdapter) } // Post invoke action createDeviceLogCollectionRequest +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DeviceLogCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemCreateDeviceLogCollectionRequestRequestBuilder) Post(ctx context.Context, body ItemManagedDevicesItemCreateDeviceLogCollectionRequestPostRequestBodyable, requestConfiguration *ItemManagedDevicesItemCreateDeviceLogCollectionRequestRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceLogCollectionResponseable, error) { @@ -52,6 +53,7 @@ func (m *ItemManagedDevicesItemCreateDeviceLogCollectionRequestRequestBuilder) P return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceLogCollectionResponseable), nil } // ToPostRequestInformation invoke action createDeviceLogCollectionRequest +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemCreateDeviceLogCollectionRequestRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemManagedDevicesItemCreateDeviceLogCollectionRequestPostRequestBodyable, requestConfiguration *ItemManagedDevicesItemCreateDeviceLogCollectionRequestRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -67,6 +69,7 @@ func (m *ItemManagedDevicesItemCreateDeviceLogCollectionRequestRequestBuilder) T return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemCreateDeviceLogCollectionRequestRequestBuilder when successful func (m *ItemManagedDevicesItemCreateDeviceLogCollectionRequestRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemCreateDeviceLogCollectionRequestRequestBuilder) { return NewItemManagedDevicesItemCreateDeviceLogCollectionRequestRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_delete_user_from_shared_apple_device_request_builder.go b/users/item_managed_devices_item_delete_user_from_shared_apple_device_request_builder.go index 77381673dbf..7cc54c5c1cc 100644 --- a/users/item_managed_devices_item_delete_user_from_shared_apple_device_request_builder.go +++ b/users/item_managed_devices_item_delete_user_from_shared_apple_device_request_builder.go @@ -31,6 +31,7 @@ func NewItemManagedDevicesItemDeleteUserFromSharedAppleDeviceRequestBuilder(rawU return NewItemManagedDevicesItemDeleteUserFromSharedAppleDeviceRequestBuilderInternal(urlParams, requestAdapter) } // Post delete user from shared Apple device +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemDeleteUserFromSharedAppleDeviceRequestBuilder) Post(ctx context.Context, body ItemManagedDevicesItemDeleteUserFromSharedAppleDevicePostRequestBodyable, requestConfiguration *ItemManagedDevicesItemDeleteUserFromSharedAppleDeviceRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemManagedDevicesItemDeleteUserFromSharedAppleDeviceRequestBuilder) Po return nil } // ToPostRequestInformation delete user from shared Apple device +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemDeleteUserFromSharedAppleDeviceRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemManagedDevicesItemDeleteUserFromSharedAppleDevicePostRequestBodyable, requestConfiguration *ItemManagedDevicesItemDeleteUserFromSharedAppleDeviceRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -62,6 +64,7 @@ func (m *ItemManagedDevicesItemDeleteUserFromSharedAppleDeviceRequestBuilder) To return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemDeleteUserFromSharedAppleDeviceRequestBuilder when successful func (m *ItemManagedDevicesItemDeleteUserFromSharedAppleDeviceRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemDeleteUserFromSharedAppleDeviceRequestBuilder) { return NewItemManagedDevicesItemDeleteUserFromSharedAppleDeviceRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_deprovision_request_builder.go b/users/item_managed_devices_item_deprovision_request_builder.go index e158a083cf6..a57f1055e69 100644 --- a/users/item_managed_devices_item_deprovision_request_builder.go +++ b/users/item_managed_devices_item_deprovision_request_builder.go @@ -31,6 +31,7 @@ func NewItemManagedDevicesItemDeprovisionRequestBuilder(rawUrl string, requestAd return NewItemManagedDevicesItemDeprovisionRequestBuilderInternal(urlParams, requestAdapter) } // Post invoke action deprovision +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemDeprovisionRequestBuilder) Post(ctx context.Context, body ItemManagedDevicesItemDeprovisionPostRequestBodyable, requestConfiguration *ItemManagedDevicesItemDeprovisionRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemManagedDevicesItemDeprovisionRequestBuilder) Post(ctx context.Conte return nil } // ToPostRequestInformation invoke action deprovision +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemDeprovisionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemManagedDevicesItemDeprovisionPostRequestBodyable, requestConfiguration *ItemManagedDevicesItemDeprovisionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -62,6 +64,7 @@ func (m *ItemManagedDevicesItemDeprovisionRequestBuilder) ToPostRequestInformati return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemDeprovisionRequestBuilder when successful func (m *ItemManagedDevicesItemDeprovisionRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemDeprovisionRequestBuilder) { return NewItemManagedDevicesItemDeprovisionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_detected_apps_count_request_builder.go b/users/item_managed_devices_item_detected_apps_count_request_builder.go index dd9065dcca8..c508feb3701 100644 --- a/users/item_managed_devices_item_detected_apps_count_request_builder.go +++ b/users/item_managed_devices_item_detected_apps_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemManagedDevicesItemDetectedAppsCountRequestBuilder(rawUrl string, req return NewItemManagedDevicesItemDetectedAppsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemDetectedAppsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemManagedDevicesItemDetectedAppsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemManagedDevicesItemDetectedAppsCountRequestBuilder) Get(ctx context. return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemDetectedAppsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemDetectedAppsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemManagedDevicesItemDetectedAppsCountRequestBuilder) ToGetRequestInfo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemDetectedAppsCountRequestBuilder when successful func (m *ItemManagedDevicesItemDetectedAppsCountRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemDetectedAppsCountRequestBuilder) { return NewItemManagedDevicesItemDetectedAppsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_detected_apps_detected_app_item_request_builder.go b/users/item_managed_devices_item_detected_apps_detected_app_item_request_builder.go index ee54b6c66a1..f123cafcadd 100644 --- a/users/item_managed_devices_item_detected_apps_detected_app_item_request_builder.go +++ b/users/item_managed_devices_item_detected_apps_detected_app_item_request_builder.go @@ -41,6 +41,7 @@ func NewItemManagedDevicesItemDetectedAppsDetectedAppItemRequestBuilder(rawUrl s return NewItemManagedDevicesItemDetectedAppsDetectedAppItemRequestBuilderInternal(urlParams, requestAdapter) } // Get all applications currently installed on the device +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DetectedAppable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemDetectedAppsDetectedAppItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemManagedDevicesItemDetectedAppsDetectedAppItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DetectedAppable, error) { @@ -61,6 +62,7 @@ func (m *ItemManagedDevicesItemDetectedAppsDetectedAppItemRequestBuilder) Get(ct return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DetectedAppable), nil } // ToGetRequestInformation all applications currently installed on the device +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemDetectedAppsDetectedAppItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemDetectedAppsDetectedAppItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemManagedDevicesItemDetectedAppsDetectedAppItemRequestBuilder) ToGetR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemDetectedAppsDetectedAppItemRequestBuilder when successful func (m *ItemManagedDevicesItemDetectedAppsDetectedAppItemRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemDetectedAppsDetectedAppItemRequestBuilder) { return NewItemManagedDevicesItemDetectedAppsDetectedAppItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_detected_apps_request_builder.go b/users/item_managed_devices_item_detected_apps_request_builder.go index 7d3fc7540a2..6dda11adeda 100644 --- a/users/item_managed_devices_item_detected_apps_request_builder.go +++ b/users/item_managed_devices_item_detected_apps_request_builder.go @@ -40,6 +40,7 @@ type ItemManagedDevicesItemDetectedAppsRequestBuilderGetRequestConfiguration str QueryParameters *ItemManagedDevicesItemDetectedAppsRequestBuilderGetQueryParameters } // ByDetectedAppId provides operations to manage the detectedApps property of the microsoft.graph.managedDevice entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemDetectedAppsDetectedAppItemRequestBuilder when successful func (m *ItemManagedDevicesItemDetectedAppsRequestBuilder) ByDetectedAppId(detectedAppId string)(*ItemManagedDevicesItemDetectedAppsDetectedAppItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -70,6 +71,7 @@ func (m *ItemManagedDevicesItemDetectedAppsRequestBuilder) Count()(*ItemManagedD return NewItemManagedDevicesItemDetectedAppsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get all applications currently installed on the device +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DetectedAppCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemDetectedAppsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemManagedDevicesItemDetectedAppsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DetectedAppCollectionResponseable, error) { @@ -90,6 +92,7 @@ func (m *ItemManagedDevicesItemDetectedAppsRequestBuilder) Get(ctx context.Conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DetectedAppCollectionResponseable), nil } // ToGetRequestInformation all applications currently installed on the device +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemDetectedAppsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemDetectedAppsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -104,6 +107,7 @@ func (m *ItemManagedDevicesItemDetectedAppsRequestBuilder) ToGetRequestInformati return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemDetectedAppsRequestBuilder when successful func (m *ItemManagedDevicesItemDetectedAppsRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemDetectedAppsRequestBuilder) { return NewItemManagedDevicesItemDetectedAppsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_device_category_request_builder.go b/users/item_managed_devices_item_device_category_request_builder.go index 539a025201d..f8d772b91db 100644 --- a/users/item_managed_devices_item_device_category_request_builder.go +++ b/users/item_managed_devices_item_device_category_request_builder.go @@ -55,6 +55,7 @@ func NewItemManagedDevicesItemDeviceCategoryRequestBuilder(rawUrl string, reques return NewItemManagedDevicesItemDeviceCategoryRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property deviceCategory for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemDeviceCategoryRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemManagedDevicesItemDeviceCategoryRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemManagedDevicesItemDeviceCategoryRequestBuilder) Delete(ctx context. return nil } // Get device category +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DeviceCategoryable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemDeviceCategoryRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemManagedDevicesItemDeviceCategoryRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceCategoryable, error) { @@ -91,6 +93,7 @@ func (m *ItemManagedDevicesItemDeviceCategoryRequestBuilder) Get(ctx context.Con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceCategoryable), nil } // Patch update the navigation property deviceCategory in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DeviceCategoryable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemDeviceCategoryRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceCategoryable, requestConfiguration *ItemManagedDevicesItemDeviceCategoryRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceCategoryable, error) { @@ -111,6 +114,7 @@ func (m *ItemManagedDevicesItemDeviceCategoryRequestBuilder) Patch(ctx context.C return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceCategoryable), nil } // ToDeleteRequestInformation delete navigation property deviceCategory for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemDeviceCategoryRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemDeviceCategoryRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemManagedDevicesItemDeviceCategoryRequestBuilder) ToDeleteRequestInfo return requestInfo, nil } // ToGetRequestInformation device category +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemDeviceCategoryRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemDeviceCategoryRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemManagedDevicesItemDeviceCategoryRequestBuilder) ToGetRequestInforma return requestInfo, nil } // ToPatchRequestInformation update the navigation property deviceCategory in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemDeviceCategoryRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceCategoryable, requestConfiguration *ItemManagedDevicesItemDeviceCategoryRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemManagedDevicesItemDeviceCategoryRequestBuilder) ToPatchRequestInfor return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemDeviceCategoryRequestBuilder when successful func (m *ItemManagedDevicesItemDeviceCategoryRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemDeviceCategoryRequestBuilder) { return NewItemManagedDevicesItemDeviceCategoryRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_device_compliance_policy_states_count_request_builder.go b/users/item_managed_devices_item_device_compliance_policy_states_count_request_builder.go index 8c72a84b909..37fcce6bbf6 100644 --- a/users/item_managed_devices_item_device_compliance_policy_states_count_request_builder.go +++ b/users/item_managed_devices_item_device_compliance_policy_states_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemManagedDevicesItemDeviceCompliancePolicyStatesCountRequestBuilder(ra return NewItemManagedDevicesItemDeviceCompliancePolicyStatesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemDeviceCompliancePolicyStatesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemManagedDevicesItemDeviceCompliancePolicyStatesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemManagedDevicesItemDeviceCompliancePolicyStatesCountRequestBuilder) return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemDeviceCompliancePolicyStatesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemDeviceCompliancePolicyStatesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemManagedDevicesItemDeviceCompliancePolicyStatesCountRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemDeviceCompliancePolicyStatesCountRequestBuilder when successful func (m *ItemManagedDevicesItemDeviceCompliancePolicyStatesCountRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemDeviceCompliancePolicyStatesCountRequestBuilder) { return NewItemManagedDevicesItemDeviceCompliancePolicyStatesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_device_compliance_policy_states_request_builder.go b/users/item_managed_devices_item_device_compliance_policy_states_request_builder.go index 619aae1fc78..115376a335b 100644 --- a/users/item_managed_devices_item_device_compliance_policy_states_request_builder.go +++ b/users/item_managed_devices_item_device_compliance_policy_states_request_builder.go @@ -47,6 +47,7 @@ type ItemManagedDevicesItemDeviceCompliancePolicyStatesRequestBuilderPostRequest Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByDeviceCompliancePolicyStateId provides operations to manage the deviceCompliancePolicyStates property of the microsoft.graph.managedDevice entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemDeviceCompliancePolicyStatesDeviceCompliancePolicyStateItemRequestBuilder when successful func (m *ItemManagedDevicesItemDeviceCompliancePolicyStatesRequestBuilder) ByDeviceCompliancePolicyStateId(deviceCompliancePolicyStateId string)(*ItemManagedDevicesItemDeviceCompliancePolicyStatesDeviceCompliancePolicyStateItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemManagedDevicesItemDeviceCompliancePolicyStatesRequestBuilder) Count return NewItemManagedDevicesItemDeviceCompliancePolicyStatesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get device compliance policy states for this device. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DeviceCompliancePolicyStateCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemDeviceCompliancePolicyStatesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemManagedDevicesItemDeviceCompliancePolicyStatesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceCompliancePolicyStateCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemManagedDevicesItemDeviceCompliancePolicyStatesRequestBuilder) Get(c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceCompliancePolicyStateCollectionResponseable), nil } // Post create new navigation property to deviceCompliancePolicyStates for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DeviceCompliancePolicyStateable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemDeviceCompliancePolicyStatesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceCompliancePolicyStateable, requestConfiguration *ItemManagedDevicesItemDeviceCompliancePolicyStatesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceCompliancePolicyStateable, error) { @@ -117,6 +120,7 @@ func (m *ItemManagedDevicesItemDeviceCompliancePolicyStatesRequestBuilder) Post( return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceCompliancePolicyStateable), nil } // ToGetRequestInformation device compliance policy states for this device. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemDeviceCompliancePolicyStatesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemDeviceCompliancePolicyStatesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemManagedDevicesItemDeviceCompliancePolicyStatesRequestBuilder) ToGet return requestInfo, nil } // ToPostRequestInformation create new navigation property to deviceCompliancePolicyStates for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemDeviceCompliancePolicyStatesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceCompliancePolicyStateable, requestConfiguration *ItemManagedDevicesItemDeviceCompliancePolicyStatesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemManagedDevicesItemDeviceCompliancePolicyStatesRequestBuilder) ToPos return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemDeviceCompliancePolicyStatesRequestBuilder when successful func (m *ItemManagedDevicesItemDeviceCompliancePolicyStatesRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemDeviceCompliancePolicyStatesRequestBuilder) { return NewItemManagedDevicesItemDeviceCompliancePolicyStatesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_device_configuration_states_count_request_builder.go b/users/item_managed_devices_item_device_configuration_states_count_request_builder.go index 6ebc8c362e3..1ec66480523 100644 --- a/users/item_managed_devices_item_device_configuration_states_count_request_builder.go +++ b/users/item_managed_devices_item_device_configuration_states_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemManagedDevicesItemDeviceConfigurationStatesCountRequestBuilder(rawUr return NewItemManagedDevicesItemDeviceConfigurationStatesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemDeviceConfigurationStatesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemManagedDevicesItemDeviceConfigurationStatesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemManagedDevicesItemDeviceConfigurationStatesCountRequestBuilder) Get return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemDeviceConfigurationStatesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemDeviceConfigurationStatesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemManagedDevicesItemDeviceConfigurationStatesCountRequestBuilder) ToG return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemDeviceConfigurationStatesCountRequestBuilder when successful func (m *ItemManagedDevicesItemDeviceConfigurationStatesCountRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemDeviceConfigurationStatesCountRequestBuilder) { return NewItemManagedDevicesItemDeviceConfigurationStatesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_device_configuration_states_request_builder.go b/users/item_managed_devices_item_device_configuration_states_request_builder.go index 10e086ed45b..aa8e7b181c8 100644 --- a/users/item_managed_devices_item_device_configuration_states_request_builder.go +++ b/users/item_managed_devices_item_device_configuration_states_request_builder.go @@ -47,6 +47,7 @@ type ItemManagedDevicesItemDeviceConfigurationStatesRequestBuilderPostRequestCon Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByDeviceConfigurationStateId provides operations to manage the deviceConfigurationStates property of the microsoft.graph.managedDevice entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemDeviceConfigurationStatesDeviceConfigurationStateItemRequestBuilder when successful func (m *ItemManagedDevicesItemDeviceConfigurationStatesRequestBuilder) ByDeviceConfigurationStateId(deviceConfigurationStateId string)(*ItemManagedDevicesItemDeviceConfigurationStatesDeviceConfigurationStateItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemManagedDevicesItemDeviceConfigurationStatesRequestBuilder) Count()( return NewItemManagedDevicesItemDeviceConfigurationStatesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get device configuration states for this device. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DeviceConfigurationStateCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemDeviceConfigurationStatesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemManagedDevicesItemDeviceConfigurationStatesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceConfigurationStateCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemManagedDevicesItemDeviceConfigurationStatesRequestBuilder) Get(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceConfigurationStateCollectionResponseable), nil } // Post create new navigation property to deviceConfigurationStates for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DeviceConfigurationStateable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemDeviceConfigurationStatesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceConfigurationStateable, requestConfiguration *ItemManagedDevicesItemDeviceConfigurationStatesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceConfigurationStateable, error) { @@ -117,6 +120,7 @@ func (m *ItemManagedDevicesItemDeviceConfigurationStatesRequestBuilder) Post(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceConfigurationStateable), nil } // ToGetRequestInformation device configuration states for this device. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemDeviceConfigurationStatesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemDeviceConfigurationStatesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemManagedDevicesItemDeviceConfigurationStatesRequestBuilder) ToGetReq return requestInfo, nil } // ToPostRequestInformation create new navigation property to deviceConfigurationStates for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemDeviceConfigurationStatesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceConfigurationStateable, requestConfiguration *ItemManagedDevicesItemDeviceConfigurationStatesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemManagedDevicesItemDeviceConfigurationStatesRequestBuilder) ToPostRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemDeviceConfigurationStatesRequestBuilder when successful func (m *ItemManagedDevicesItemDeviceConfigurationStatesRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemDeviceConfigurationStatesRequestBuilder) { return NewItemManagedDevicesItemDeviceConfigurationStatesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_device_health_script_states_count_request_builder.go b/users/item_managed_devices_item_device_health_script_states_count_request_builder.go index 5e3f8f59c78..c4d0dc4be40 100644 --- a/users/item_managed_devices_item_device_health_script_states_count_request_builder.go +++ b/users/item_managed_devices_item_device_health_script_states_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemManagedDevicesItemDeviceHealthScriptStatesCountRequestBuilder(rawUrl return NewItemManagedDevicesItemDeviceHealthScriptStatesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemDeviceHealthScriptStatesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemManagedDevicesItemDeviceHealthScriptStatesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemManagedDevicesItemDeviceHealthScriptStatesCountRequestBuilder) Get( return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemDeviceHealthScriptStatesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemDeviceHealthScriptStatesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemManagedDevicesItemDeviceHealthScriptStatesCountRequestBuilder) ToGe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemDeviceHealthScriptStatesCountRequestBuilder when successful func (m *ItemManagedDevicesItemDeviceHealthScriptStatesCountRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemDeviceHealthScriptStatesCountRequestBuilder) { return NewItemManagedDevicesItemDeviceHealthScriptStatesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_device_health_script_states_request_builder.go b/users/item_managed_devices_item_device_health_script_states_request_builder.go index e7e5f7dd996..838d275096a 100644 --- a/users/item_managed_devices_item_device_health_script_states_request_builder.go +++ b/users/item_managed_devices_item_device_health_script_states_request_builder.go @@ -65,6 +65,7 @@ func (m *ItemManagedDevicesItemDeviceHealthScriptStatesRequestBuilder) Count()(* return NewItemManagedDevicesItemDeviceHealthScriptStatesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get results of device health scripts that ran for this device. Default is empty list. This property is read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DeviceHealthScriptPolicyStateCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemDeviceHealthScriptStatesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemManagedDevicesItemDeviceHealthScriptStatesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceHealthScriptPolicyStateCollectionResponseable, error) { @@ -85,6 +86,7 @@ func (m *ItemManagedDevicesItemDeviceHealthScriptStatesRequestBuilder) Get(ctx c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceHealthScriptPolicyStateCollectionResponseable), nil } // Post create new navigation property to deviceHealthScriptStates for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DeviceHealthScriptPolicyStateable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemDeviceHealthScriptStatesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceHealthScriptPolicyStateable, requestConfiguration *ItemManagedDevicesItemDeviceHealthScriptStatesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceHealthScriptPolicyStateable, error) { @@ -105,6 +107,7 @@ func (m *ItemManagedDevicesItemDeviceHealthScriptStatesRequestBuilder) Post(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceHealthScriptPolicyStateable), nil } // ToGetRequestInformation results of device health scripts that ran for this device. Default is empty list. This property is read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemDeviceHealthScriptStatesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemDeviceHealthScriptStatesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -119,6 +122,7 @@ func (m *ItemManagedDevicesItemDeviceHealthScriptStatesRequestBuilder) ToGetRequ return requestInfo, nil } // ToPostRequestInformation create new navigation property to deviceHealthScriptStates for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemDeviceHealthScriptStatesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceHealthScriptPolicyStateable, requestConfiguration *ItemManagedDevicesItemDeviceHealthScriptStatesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -134,11 +138,13 @@ func (m *ItemManagedDevicesItemDeviceHealthScriptStatesRequestBuilder) ToPostReq return requestInfo, nil } // WithIdWithPolicyIdWithDeviceId provides operations to manage the deviceHealthScriptStates property of the microsoft.graph.managedDevice entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemDeviceHealthScriptStatesWithIdWithPolicyIdWithDeviceIdRequestBuilder when successful func (m *ItemManagedDevicesItemDeviceHealthScriptStatesRequestBuilder) WithIdWithPolicyIdWithDeviceId(deviceId *string, id *string, policyId *string)(*ItemManagedDevicesItemDeviceHealthScriptStatesWithIdWithPolicyIdWithDeviceIdRequestBuilder) { return NewItemManagedDevicesItemDeviceHealthScriptStatesWithIdWithPolicyIdWithDeviceIdRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, deviceId, id, policyId) } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemDeviceHealthScriptStatesRequestBuilder when successful func (m *ItemManagedDevicesItemDeviceHealthScriptStatesRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemDeviceHealthScriptStatesRequestBuilder) { return NewItemManagedDevicesItemDeviceHealthScriptStatesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_disable_lost_mode_request_builder.go b/users/item_managed_devices_item_disable_lost_mode_request_builder.go index a34a50d1885..592ea18da9d 100644 --- a/users/item_managed_devices_item_disable_lost_mode_request_builder.go +++ b/users/item_managed_devices_item_disable_lost_mode_request_builder.go @@ -31,6 +31,7 @@ func NewItemManagedDevicesItemDisableLostModeRequestBuilder(rawUrl string, reque return NewItemManagedDevicesItemDisableLostModeRequestBuilderInternal(urlParams, requestAdapter) } // Post disable lost mode +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemDisableLostModeRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemManagedDevicesItemDisableLostModeRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemManagedDevicesItemDisableLostModeRequestBuilder) Post(ctx context.C return nil } // ToPostRequestInformation disable lost mode +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemDisableLostModeRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemDisableLostModeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -58,6 +60,7 @@ func (m *ItemManagedDevicesItemDisableLostModeRequestBuilder) ToPostRequestInfor return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemDisableLostModeRequestBuilder when successful func (m *ItemManagedDevicesItemDisableLostModeRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemDisableLostModeRequestBuilder) { return NewItemManagedDevicesItemDisableLostModeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_disable_request_builder.go b/users/item_managed_devices_item_disable_request_builder.go index ca5b6e3e4d1..43ed20e34f4 100644 --- a/users/item_managed_devices_item_disable_request_builder.go +++ b/users/item_managed_devices_item_disable_request_builder.go @@ -31,6 +31,7 @@ func NewItemManagedDevicesItemDisableRequestBuilder(rawUrl string, requestAdapte return NewItemManagedDevicesItemDisableRequestBuilderInternal(urlParams, requestAdapter) } // Post invoke action disable +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemDisableRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemManagedDevicesItemDisableRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemManagedDevicesItemDisableRequestBuilder) Post(ctx context.Context, return nil } // ToPostRequestInformation invoke action disable +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemDisableRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemDisableRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -58,6 +60,7 @@ func (m *ItemManagedDevicesItemDisableRequestBuilder) ToPostRequestInformation(c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemDisableRequestBuilder when successful func (m *ItemManagedDevicesItemDisableRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemDisableRequestBuilder) { return NewItemManagedDevicesItemDisableRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_enable_lost_mode_request_builder.go b/users/item_managed_devices_item_enable_lost_mode_request_builder.go index 6d15f9fb64c..ba8cd2e6146 100644 --- a/users/item_managed_devices_item_enable_lost_mode_request_builder.go +++ b/users/item_managed_devices_item_enable_lost_mode_request_builder.go @@ -31,6 +31,7 @@ func NewItemManagedDevicesItemEnableLostModeRequestBuilder(rawUrl string, reques return NewItemManagedDevicesItemEnableLostModeRequestBuilderInternal(urlParams, requestAdapter) } // Post enable lost mode +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemEnableLostModeRequestBuilder) Post(ctx context.Context, body ItemManagedDevicesItemEnableLostModePostRequestBodyable, requestConfiguration *ItemManagedDevicesItemEnableLostModeRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemManagedDevicesItemEnableLostModeRequestBuilder) Post(ctx context.Co return nil } // ToPostRequestInformation enable lost mode +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemEnableLostModeRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemManagedDevicesItemEnableLostModePostRequestBodyable, requestConfiguration *ItemManagedDevicesItemEnableLostModeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -62,6 +64,7 @@ func (m *ItemManagedDevicesItemEnableLostModeRequestBuilder) ToPostRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemEnableLostModeRequestBuilder when successful func (m *ItemManagedDevicesItemEnableLostModeRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemEnableLostModeRequestBuilder) { return NewItemManagedDevicesItemEnableLostModeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_enroll_now_action_request_builder.go b/users/item_managed_devices_item_enroll_now_action_request_builder.go index 63b318bc638..5c3a96df050 100644 --- a/users/item_managed_devices_item_enroll_now_action_request_builder.go +++ b/users/item_managed_devices_item_enroll_now_action_request_builder.go @@ -31,6 +31,7 @@ func NewItemManagedDevicesItemEnrollNowActionRequestBuilder(rawUrl string, reque return NewItemManagedDevicesItemEnrollNowActionRequestBuilderInternal(urlParams, requestAdapter) } // Post trigger comanagement enrollment action on ConfigurationManager client +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemEnrollNowActionRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemManagedDevicesItemEnrollNowActionRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemManagedDevicesItemEnrollNowActionRequestBuilder) Post(ctx context.C return nil } // ToPostRequestInformation trigger comanagement enrollment action on ConfigurationManager client +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemEnrollNowActionRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemEnrollNowActionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -58,6 +60,7 @@ func (m *ItemManagedDevicesItemEnrollNowActionRequestBuilder) ToPostRequestInfor return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemEnrollNowActionRequestBuilder when successful func (m *ItemManagedDevicesItemEnrollNowActionRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemEnrollNowActionRequestBuilder) { return NewItemManagedDevicesItemEnrollNowActionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_get_cloud_pc_remote_action_results_request_builder.go b/users/item_managed_devices_item_get_cloud_pc_remote_action_results_request_builder.go index b3e052e9448..b743f628025 100644 --- a/users/item_managed_devices_item_get_cloud_pc_remote_action_results_request_builder.go +++ b/users/item_managed_devices_item_get_cloud_pc_remote_action_results_request_builder.go @@ -70,7 +70,7 @@ func (m *ItemManagedDevicesItemGetCloudPcRemoteActionResultsRequestBuilder) Get( return res.(ItemManagedDevicesItemGetCloudPcRemoteActionResultsResponseable), nil } // GetAsGetCloudPcRemoteActionResultsGetResponse check the Cloud PC-specified remote action results for a Cloud PC device. Cloud PC supports reprovision and resize remote actions. -// Deprecated: Starting September 30, 2024, getCloudPcRemoteActionResults API bound to managedDevice entity will be deprecated and no longer supported. Please use retrieveCloudPcRemoteActionResults API bound to cloudpc entity instead. as of 2024-05/getCloudPcRemoteActionResults +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemManagedDevicesItemGetCloudPcRemoteActionResultsGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -94,7 +94,7 @@ func (m *ItemManagedDevicesItemGetCloudPcRemoteActionResultsRequestBuilder) GetA return res.(ItemManagedDevicesItemGetCloudPcRemoteActionResultsGetResponseable), nil } // ToGetRequestInformation check the Cloud PC-specified remote action results for a Cloud PC device. Cloud PC supports reprovision and resize remote actions. -// Deprecated: Starting September 30, 2024, getCloudPcRemoteActionResults API bound to managedDevice entity will be deprecated and no longer supported. Please use retrieveCloudPcRemoteActionResults API bound to cloudpc entity instead. as of 2024-05/getCloudPcRemoteActionResults +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemGetCloudPcRemoteActionResultsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemGetCloudPcRemoteActionResultsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,7 +109,7 @@ func (m *ItemManagedDevicesItemGetCloudPcRemoteActionResultsRequestBuilder) ToGe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: Starting September 30, 2024, getCloudPcRemoteActionResults API bound to managedDevice entity will be deprecated and no longer supported. Please use retrieveCloudPcRemoteActionResults API bound to cloudpc entity instead. as of 2024-05/getCloudPcRemoteActionResults +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemGetCloudPcRemoteActionResultsRequestBuilder when successful func (m *ItemManagedDevicesItemGetCloudPcRemoteActionResultsRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemGetCloudPcRemoteActionResultsRequestBuilder) { return NewItemManagedDevicesItemGetCloudPcRemoteActionResultsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_get_cloud_pc_review_status_request_builder.go b/users/item_managed_devices_item_get_cloud_pc_review_status_request_builder.go index 42d27909bf9..cfc7fd3203e 100644 --- a/users/item_managed_devices_item_get_cloud_pc_review_status_request_builder.go +++ b/users/item_managed_devices_item_get_cloud_pc_review_status_request_builder.go @@ -32,7 +32,7 @@ func NewItemManagedDevicesItemGetCloudPcReviewStatusRequestBuilder(rawUrl string return NewItemManagedDevicesItemGetCloudPcReviewStatusRequestBuilderInternal(urlParams, requestAdapter) } // Get get the review status of a specific Cloud PC device. -// Deprecated: The getCloudPcReviewStatus API is deprecated and will stop returning data on Apr 30, 2024. Please use the new retrieveReviewStatus API as of 2024-01/getCloudPcReviewStatus +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a CloudPcReviewStatusable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -56,7 +56,7 @@ func (m *ItemManagedDevicesItemGetCloudPcReviewStatusRequestBuilder) Get(ctx con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CloudPcReviewStatusable), nil } // ToGetRequestInformation get the review status of a specific Cloud PC device. -// Deprecated: The getCloudPcReviewStatus API is deprecated and will stop returning data on Apr 30, 2024. Please use the new retrieveReviewStatus API as of 2024-01/getCloudPcReviewStatus +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemGetCloudPcReviewStatusRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemGetCloudPcReviewStatusRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -68,7 +68,7 @@ func (m *ItemManagedDevicesItemGetCloudPcReviewStatusRequestBuilder) ToGetReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The getCloudPcReviewStatus API is deprecated and will stop returning data on Apr 30, 2024. Please use the new retrieveReviewStatus API as of 2024-01/getCloudPcReviewStatus +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemGetCloudPcReviewStatusRequestBuilder when successful func (m *ItemManagedDevicesItemGetCloudPcReviewStatusRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemGetCloudPcReviewStatusRequestBuilder) { return NewItemManagedDevicesItemGetCloudPcReviewStatusRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_get_file_vault_key_request_builder.go b/users/item_managed_devices_item_get_file_vault_key_request_builder.go index 56243e84f99..096bad65499 100644 --- a/users/item_managed_devices_item_get_file_vault_key_request_builder.go +++ b/users/item_managed_devices_item_get_file_vault_key_request_builder.go @@ -52,6 +52,7 @@ func (m *ItemManagedDevicesItemGetFileVaultKeyRequestBuilder) Get(ctx context.Co return res.(ItemManagedDevicesItemGetFileVaultKeyResponseable), nil } // GetAsGetFileVaultKeyGetResponse invoke function getFileVaultKey +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemManagedDevicesItemGetFileVaultKeyGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemGetFileVaultKeyRequestBuilder) GetAsGetFileVaultKeyGetResponse(ctx context.Context, requestConfiguration *ItemManagedDevicesItemGetFileVaultKeyRequestBuilderGetRequestConfiguration)(ItemManagedDevicesItemGetFileVaultKeyGetResponseable, error) { @@ -72,6 +73,7 @@ func (m *ItemManagedDevicesItemGetFileVaultKeyRequestBuilder) GetAsGetFileVaultK return res.(ItemManagedDevicesItemGetFileVaultKeyGetResponseable), nil } // ToGetRequestInformation invoke function getFileVaultKey +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemGetFileVaultKeyRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemGetFileVaultKeyRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -83,6 +85,7 @@ func (m *ItemManagedDevicesItemGetFileVaultKeyRequestBuilder) ToGetRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemGetFileVaultKeyRequestBuilder when successful func (m *ItemManagedDevicesItemGetFileVaultKeyRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemGetFileVaultKeyRequestBuilder) { return NewItemManagedDevicesItemGetFileVaultKeyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_get_non_compliant_settings_request_builder.go b/users/item_managed_devices_item_get_non_compliant_settings_request_builder.go index 34c0c4541cc..48e1043decf 100644 --- a/users/item_managed_devices_item_get_non_compliant_settings_request_builder.go +++ b/users/item_managed_devices_item_get_non_compliant_settings_request_builder.go @@ -67,6 +67,7 @@ func (m *ItemManagedDevicesItemGetNonCompliantSettingsRequestBuilder) Get(ctx co return res.(ItemManagedDevicesItemGetNonCompliantSettingsResponseable), nil } // GetAsGetNonCompliantSettingsGetResponse invoke function getNonCompliantSettings +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemManagedDevicesItemGetNonCompliantSettingsGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemGetNonCompliantSettingsRequestBuilder) GetAsGetNonCompliantSettingsGetResponse(ctx context.Context, requestConfiguration *ItemManagedDevicesItemGetNonCompliantSettingsRequestBuilderGetRequestConfiguration)(ItemManagedDevicesItemGetNonCompliantSettingsGetResponseable, error) { @@ -87,6 +88,7 @@ func (m *ItemManagedDevicesItemGetNonCompliantSettingsRequestBuilder) GetAsGetNo return res.(ItemManagedDevicesItemGetNonCompliantSettingsGetResponseable), nil } // ToGetRequestInformation invoke function getNonCompliantSettings +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemGetNonCompliantSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemGetNonCompliantSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -101,6 +103,7 @@ func (m *ItemManagedDevicesItemGetNonCompliantSettingsRequestBuilder) ToGetReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemGetNonCompliantSettingsRequestBuilder when successful func (m *ItemManagedDevicesItemGetNonCompliantSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemGetNonCompliantSettingsRequestBuilder) { return NewItemManagedDevicesItemGetNonCompliantSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_initiate_device_attestation_request_builder.go b/users/item_managed_devices_item_initiate_device_attestation_request_builder.go index 1513e21266f..8fde1e5ae00 100644 --- a/users/item_managed_devices_item_initiate_device_attestation_request_builder.go +++ b/users/item_managed_devices_item_initiate_device_attestation_request_builder.go @@ -31,6 +31,7 @@ func NewItemManagedDevicesItemInitiateDeviceAttestationRequestBuilder(rawUrl str return NewItemManagedDevicesItemInitiateDeviceAttestationRequestBuilderInternal(urlParams, requestAdapter) } // Post perform Device Attestation +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemInitiateDeviceAttestationRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemManagedDevicesItemInitiateDeviceAttestationRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemManagedDevicesItemInitiateDeviceAttestationRequestBuilder) Post(ctx return nil } // ToPostRequestInformation perform Device Attestation +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemInitiateDeviceAttestationRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemInitiateDeviceAttestationRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -58,6 +60,7 @@ func (m *ItemManagedDevicesItemInitiateDeviceAttestationRequestBuilder) ToPostRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemInitiateDeviceAttestationRequestBuilder when successful func (m *ItemManagedDevicesItemInitiateDeviceAttestationRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemInitiateDeviceAttestationRequestBuilder) { return NewItemManagedDevicesItemInitiateDeviceAttestationRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_initiate_mobile_device_management_key_recovery_request_builder.go b/users/item_managed_devices_item_initiate_mobile_device_management_key_recovery_request_builder.go index c075ecc2696..8a170a4768e 100644 --- a/users/item_managed_devices_item_initiate_mobile_device_management_key_recovery_request_builder.go +++ b/users/item_managed_devices_item_initiate_mobile_device_management_key_recovery_request_builder.go @@ -31,6 +31,7 @@ func NewItemManagedDevicesItemInitiateMobileDeviceManagementKeyRecoveryRequestBu return NewItemManagedDevicesItemInitiateMobileDeviceManagementKeyRecoveryRequestBuilderInternal(urlParams, requestAdapter) } // Post perform MDM key recovery and TPM attestation +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemInitiateMobileDeviceManagementKeyRecoveryRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemManagedDevicesItemInitiateMobileDeviceManagementKeyRecoveryRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemManagedDevicesItemInitiateMobileDeviceManagementKeyRecoveryRequestB return nil } // ToPostRequestInformation perform MDM key recovery and TPM attestation +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemInitiateMobileDeviceManagementKeyRecoveryRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemInitiateMobileDeviceManagementKeyRecoveryRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -58,6 +60,7 @@ func (m *ItemManagedDevicesItemInitiateMobileDeviceManagementKeyRecoveryRequestB return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemInitiateMobileDeviceManagementKeyRecoveryRequestBuilder when successful func (m *ItemManagedDevicesItemInitiateMobileDeviceManagementKeyRecoveryRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemInitiateMobileDeviceManagementKeyRecoveryRequestBuilder) { return NewItemManagedDevicesItemInitiateMobileDeviceManagementKeyRecoveryRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_initiate_on_demand_proactive_remediation_request_builder.go b/users/item_managed_devices_item_initiate_on_demand_proactive_remediation_request_builder.go index f3df3c5f297..2e07f09a818 100644 --- a/users/item_managed_devices_item_initiate_on_demand_proactive_remediation_request_builder.go +++ b/users/item_managed_devices_item_initiate_on_demand_proactive_remediation_request_builder.go @@ -31,6 +31,7 @@ func NewItemManagedDevicesItemInitiateOnDemandProactiveRemediationRequestBuilder return NewItemManagedDevicesItemInitiateOnDemandProactiveRemediationRequestBuilderInternal(urlParams, requestAdapter) } // Post perform On Demand Proactive Remediation +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemInitiateOnDemandProactiveRemediationRequestBuilder) Post(ctx context.Context, body ItemManagedDevicesItemInitiateOnDemandProactiveRemediationPostRequestBodyable, requestConfiguration *ItemManagedDevicesItemInitiateOnDemandProactiveRemediationRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemManagedDevicesItemInitiateOnDemandProactiveRemediationRequestBuilde return nil } // ToPostRequestInformation perform On Demand Proactive Remediation +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemInitiateOnDemandProactiveRemediationRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemManagedDevicesItemInitiateOnDemandProactiveRemediationPostRequestBodyable, requestConfiguration *ItemManagedDevicesItemInitiateOnDemandProactiveRemediationRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -62,6 +64,7 @@ func (m *ItemManagedDevicesItemInitiateOnDemandProactiveRemediationRequestBuilde return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemInitiateOnDemandProactiveRemediationRequestBuilder when successful func (m *ItemManagedDevicesItemInitiateOnDemandProactiveRemediationRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemInitiateOnDemandProactiveRemediationRequestBuilder) { return NewItemManagedDevicesItemInitiateOnDemandProactiveRemediationRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_locate_device_request_builder.go b/users/item_managed_devices_item_locate_device_request_builder.go index 0fd4a6e1ce2..e601138072c 100644 --- a/users/item_managed_devices_item_locate_device_request_builder.go +++ b/users/item_managed_devices_item_locate_device_request_builder.go @@ -31,6 +31,7 @@ func NewItemManagedDevicesItemLocateDeviceRequestBuilder(rawUrl string, requestA return NewItemManagedDevicesItemLocateDeviceRequestBuilderInternal(urlParams, requestAdapter) } // Post locate a device +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemLocateDeviceRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemManagedDevicesItemLocateDeviceRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemManagedDevicesItemLocateDeviceRequestBuilder) Post(ctx context.Cont return nil } // ToPostRequestInformation locate a device +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemLocateDeviceRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemLocateDeviceRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -58,6 +60,7 @@ func (m *ItemManagedDevicesItemLocateDeviceRequestBuilder) ToPostRequestInformat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemLocateDeviceRequestBuilder when successful func (m *ItemManagedDevicesItemLocateDeviceRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemLocateDeviceRequestBuilder) { return NewItemManagedDevicesItemLocateDeviceRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_log_collection_requests_count_request_builder.go b/users/item_managed_devices_item_log_collection_requests_count_request_builder.go index f30df965445..f2ca6e7f0f0 100644 --- a/users/item_managed_devices_item_log_collection_requests_count_request_builder.go +++ b/users/item_managed_devices_item_log_collection_requests_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemManagedDevicesItemLogCollectionRequestsCountRequestBuilder(rawUrl st return NewItemManagedDevicesItemLogCollectionRequestsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemLogCollectionRequestsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemManagedDevicesItemLogCollectionRequestsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemManagedDevicesItemLogCollectionRequestsCountRequestBuilder) Get(ctx return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemLogCollectionRequestsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemLogCollectionRequestsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemManagedDevicesItemLogCollectionRequestsCountRequestBuilder) ToGetRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemLogCollectionRequestsCountRequestBuilder when successful func (m *ItemManagedDevicesItemLogCollectionRequestsCountRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemLogCollectionRequestsCountRequestBuilder) { return NewItemManagedDevicesItemLogCollectionRequestsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_log_collection_requests_item_create_download_url_request_builder.go b/users/item_managed_devices_item_log_collection_requests_item_create_download_url_request_builder.go index e7f8d50f6ba..5ba996db195 100644 --- a/users/item_managed_devices_item_log_collection_requests_item_create_download_url_request_builder.go +++ b/users/item_managed_devices_item_log_collection_requests_item_create_download_url_request_builder.go @@ -52,6 +52,7 @@ func (m *ItemManagedDevicesItemLogCollectionRequestsItemCreateDownloadUrlRequest return res.(ItemManagedDevicesItemLogCollectionRequestsItemCreateDownloadUrlResponseable), nil } // PostAsCreateDownloadUrlPostResponse invoke action createDownloadUrl +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemManagedDevicesItemLogCollectionRequestsItemCreateDownloadUrlPostResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemLogCollectionRequestsItemCreateDownloadUrlRequestBuilder) PostAsCreateDownloadUrlPostResponse(ctx context.Context, requestConfiguration *ItemManagedDevicesItemLogCollectionRequestsItemCreateDownloadUrlRequestBuilderPostRequestConfiguration)(ItemManagedDevicesItemLogCollectionRequestsItemCreateDownloadUrlPostResponseable, error) { @@ -72,6 +73,7 @@ func (m *ItemManagedDevicesItemLogCollectionRequestsItemCreateDownloadUrlRequest return res.(ItemManagedDevicesItemLogCollectionRequestsItemCreateDownloadUrlPostResponseable), nil } // ToPostRequestInformation invoke action createDownloadUrl +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemLogCollectionRequestsItemCreateDownloadUrlRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemLogCollectionRequestsItemCreateDownloadUrlRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -83,6 +85,7 @@ func (m *ItemManagedDevicesItemLogCollectionRequestsItemCreateDownloadUrlRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemLogCollectionRequestsItemCreateDownloadUrlRequestBuilder when successful func (m *ItemManagedDevicesItemLogCollectionRequestsItemCreateDownloadUrlRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemLogCollectionRequestsItemCreateDownloadUrlRequestBuilder) { return NewItemManagedDevicesItemLogCollectionRequestsItemCreateDownloadUrlRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_log_collection_requests_request_builder.go b/users/item_managed_devices_item_log_collection_requests_request_builder.go index cc78baebca7..ff1f4efffe6 100644 --- a/users/item_managed_devices_item_log_collection_requests_request_builder.go +++ b/users/item_managed_devices_item_log_collection_requests_request_builder.go @@ -47,6 +47,7 @@ type ItemManagedDevicesItemLogCollectionRequestsRequestBuilderPostRequestConfigu Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByDeviceLogCollectionResponseId provides operations to manage the logCollectionRequests property of the microsoft.graph.managedDevice entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemLogCollectionRequestsDeviceLogCollectionResponseItemRequestBuilder when successful func (m *ItemManagedDevicesItemLogCollectionRequestsRequestBuilder) ByDeviceLogCollectionResponseId(deviceLogCollectionResponseId string)(*ItemManagedDevicesItemLogCollectionRequestsDeviceLogCollectionResponseItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemManagedDevicesItemLogCollectionRequestsRequestBuilder) Count()(*Ite return NewItemManagedDevicesItemLogCollectionRequestsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get list of log collection requests +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DeviceLogCollectionResponseCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemLogCollectionRequestsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemManagedDevicesItemLogCollectionRequestsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceLogCollectionResponseCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemManagedDevicesItemLogCollectionRequestsRequestBuilder) Get(ctx cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceLogCollectionResponseCollectionResponseable), nil } // Post create new navigation property to logCollectionRequests for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DeviceLogCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemLogCollectionRequestsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceLogCollectionResponseable, requestConfiguration *ItemManagedDevicesItemLogCollectionRequestsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceLogCollectionResponseable, error) { @@ -117,6 +120,7 @@ func (m *ItemManagedDevicesItemLogCollectionRequestsRequestBuilder) Post(ctx con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceLogCollectionResponseable), nil } // ToGetRequestInformation list of log collection requests +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemLogCollectionRequestsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemLogCollectionRequestsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemManagedDevicesItemLogCollectionRequestsRequestBuilder) ToGetRequest return requestInfo, nil } // ToPostRequestInformation create new navigation property to logCollectionRequests for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemLogCollectionRequestsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceLogCollectionResponseable, requestConfiguration *ItemManagedDevicesItemLogCollectionRequestsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemManagedDevicesItemLogCollectionRequestsRequestBuilder) ToPostReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemLogCollectionRequestsRequestBuilder when successful func (m *ItemManagedDevicesItemLogCollectionRequestsRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemLogCollectionRequestsRequestBuilder) { return NewItemManagedDevicesItemLogCollectionRequestsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_logout_shared_apple_device_active_user_request_builder.go b/users/item_managed_devices_item_logout_shared_apple_device_active_user_request_builder.go index f03a59b9447..08a5738819e 100644 --- a/users/item_managed_devices_item_logout_shared_apple_device_active_user_request_builder.go +++ b/users/item_managed_devices_item_logout_shared_apple_device_active_user_request_builder.go @@ -31,6 +31,7 @@ func NewItemManagedDevicesItemLogoutSharedAppleDeviceActiveUserRequestBuilder(ra return NewItemManagedDevicesItemLogoutSharedAppleDeviceActiveUserRequestBuilderInternal(urlParams, requestAdapter) } // Post logout shared Apple device active user +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemLogoutSharedAppleDeviceActiveUserRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemManagedDevicesItemLogoutSharedAppleDeviceActiveUserRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemManagedDevicesItemLogoutSharedAppleDeviceActiveUserRequestBuilder) return nil } // ToPostRequestInformation logout shared Apple device active user +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemLogoutSharedAppleDeviceActiveUserRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemLogoutSharedAppleDeviceActiveUserRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -58,6 +60,7 @@ func (m *ItemManagedDevicesItemLogoutSharedAppleDeviceActiveUserRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemLogoutSharedAppleDeviceActiveUserRequestBuilder when successful func (m *ItemManagedDevicesItemLogoutSharedAppleDeviceActiveUserRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemLogoutSharedAppleDeviceActiveUserRequestBuilder) { return NewItemManagedDevicesItemLogoutSharedAppleDeviceActiveUserRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_managed_device_mobile_app_configuration_states_count_request_builder.go b/users/item_managed_devices_item_managed_device_mobile_app_configuration_states_count_request_builder.go index 3bafe8fbf62..797d28cd69f 100644 --- a/users/item_managed_devices_item_managed_device_mobile_app_configuration_states_count_request_builder.go +++ b/users/item_managed_devices_item_managed_device_mobile_app_configuration_states_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesCountRequ return NewItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesCountReq return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesCountReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesCountRequestBuilder when successful func (m *ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesCountRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesCountRequestBuilder) { return NewItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_managed_device_mobile_app_configuration_states_request_builder.go b/users/item_managed_devices_item_managed_device_mobile_app_configuration_states_request_builder.go index 7623877306f..fb87f70677a 100644 --- a/users/item_managed_devices_item_managed_device_mobile_app_configuration_states_request_builder.go +++ b/users/item_managed_devices_item_managed_device_mobile_app_configuration_states_request_builder.go @@ -47,6 +47,7 @@ type ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesRequestBuild Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByManagedDeviceMobileAppConfigurationStateId provides operations to manage the managedDeviceMobileAppConfigurationStates property of the microsoft.graph.managedDevice entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesManagedDeviceMobileAppConfigurationStateItemRequestBuilder when successful func (m *ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesRequestBuilder) ByManagedDeviceMobileAppConfigurationStateId(managedDeviceMobileAppConfigurationStateId string)(*ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesManagedDeviceMobileAppConfigurationStateItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesRequestB return NewItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get managed device mobile app configuration states for this device. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ManagedDeviceMobileAppConfigurationStateCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ManagedDeviceMobileAppConfigurationStateCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesRequestB return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ManagedDeviceMobileAppConfigurationStateCollectionResponseable), nil } // Post create new navigation property to managedDeviceMobileAppConfigurationStates for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ManagedDeviceMobileAppConfigurationStateable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ManagedDeviceMobileAppConfigurationStateable, requestConfiguration *ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ManagedDeviceMobileAppConfigurationStateable, error) { @@ -117,6 +120,7 @@ func (m *ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesRequestB return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ManagedDeviceMobileAppConfigurationStateable), nil } // ToGetRequestInformation managed device mobile app configuration states for this device. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesRequestB return requestInfo, nil } // ToPostRequestInformation create new navigation property to managedDeviceMobileAppConfigurationStates for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ManagedDeviceMobileAppConfigurationStateable, requestConfiguration *ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesRequestB return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesRequestBuilder when successful func (m *ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesRequestBuilder) { return NewItemManagedDevicesItemManagedDeviceMobileAppConfigurationStatesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_override_compliance_state_request_builder.go b/users/item_managed_devices_item_override_compliance_state_request_builder.go index b7648e064ff..e1dbe5c9bd3 100644 --- a/users/item_managed_devices_item_override_compliance_state_request_builder.go +++ b/users/item_managed_devices_item_override_compliance_state_request_builder.go @@ -31,6 +31,7 @@ func NewItemManagedDevicesItemOverrideComplianceStateRequestBuilder(rawUrl strin return NewItemManagedDevicesItemOverrideComplianceStateRequestBuilderInternal(urlParams, requestAdapter) } // Post invoke action overrideComplianceState +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemOverrideComplianceStateRequestBuilder) Post(ctx context.Context, body ItemManagedDevicesItemOverrideComplianceStatePostRequestBodyable, requestConfiguration *ItemManagedDevicesItemOverrideComplianceStateRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemManagedDevicesItemOverrideComplianceStateRequestBuilder) Post(ctx c return nil } // ToPostRequestInformation invoke action overrideComplianceState +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemOverrideComplianceStateRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemManagedDevicesItemOverrideComplianceStatePostRequestBodyable, requestConfiguration *ItemManagedDevicesItemOverrideComplianceStateRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -62,6 +64,7 @@ func (m *ItemManagedDevicesItemOverrideComplianceStateRequestBuilder) ToPostRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemOverrideComplianceStateRequestBuilder when successful func (m *ItemManagedDevicesItemOverrideComplianceStateRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemOverrideComplianceStateRequestBuilder) { return NewItemManagedDevicesItemOverrideComplianceStateRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_pause_configuration_refresh_request_builder.go b/users/item_managed_devices_item_pause_configuration_refresh_request_builder.go index 5e562e2af0d..69df4b54ed1 100644 --- a/users/item_managed_devices_item_pause_configuration_refresh_request_builder.go +++ b/users/item_managed_devices_item_pause_configuration_refresh_request_builder.go @@ -31,6 +31,7 @@ func NewItemManagedDevicesItemPauseConfigurationRefreshRequestBuilder(rawUrl str return NewItemManagedDevicesItemPauseConfigurationRefreshRequestBuilderInternal(urlParams, requestAdapter) } // Post initiates a command to pause config refresh for the device. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemPauseConfigurationRefreshRequestBuilder) Post(ctx context.Context, body ItemManagedDevicesItemPauseConfigurationRefreshPostRequestBodyable, requestConfiguration *ItemManagedDevicesItemPauseConfigurationRefreshRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemManagedDevicesItemPauseConfigurationRefreshRequestBuilder) Post(ctx return nil } // ToPostRequestInformation initiates a command to pause config refresh for the device. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemPauseConfigurationRefreshRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemManagedDevicesItemPauseConfigurationRefreshPostRequestBodyable, requestConfiguration *ItemManagedDevicesItemPauseConfigurationRefreshRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -62,6 +64,7 @@ func (m *ItemManagedDevicesItemPauseConfigurationRefreshRequestBuilder) ToPostRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemPauseConfigurationRefreshRequestBuilder when successful func (m *ItemManagedDevicesItemPauseConfigurationRefreshRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemPauseConfigurationRefreshRequestBuilder) { return NewItemManagedDevicesItemPauseConfigurationRefreshRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_play_lost_mode_sound_request_builder.go b/users/item_managed_devices_item_play_lost_mode_sound_request_builder.go index 792fdbca11d..f058d80e0b0 100644 --- a/users/item_managed_devices_item_play_lost_mode_sound_request_builder.go +++ b/users/item_managed_devices_item_play_lost_mode_sound_request_builder.go @@ -31,6 +31,7 @@ func NewItemManagedDevicesItemPlayLostModeSoundRequestBuilder(rawUrl string, req return NewItemManagedDevicesItemPlayLostModeSoundRequestBuilderInternal(urlParams, requestAdapter) } // Post play lost mode sound +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemPlayLostModeSoundRequestBuilder) Post(ctx context.Context, body ItemManagedDevicesItemPlayLostModeSoundPostRequestBodyable, requestConfiguration *ItemManagedDevicesItemPlayLostModeSoundRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemManagedDevicesItemPlayLostModeSoundRequestBuilder) Post(ctx context return nil } // ToPostRequestInformation play lost mode sound +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemPlayLostModeSoundRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemManagedDevicesItemPlayLostModeSoundPostRequestBodyable, requestConfiguration *ItemManagedDevicesItemPlayLostModeSoundRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -62,6 +64,7 @@ func (m *ItemManagedDevicesItemPlayLostModeSoundRequestBuilder) ToPostRequestInf return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemPlayLostModeSoundRequestBuilder when successful func (m *ItemManagedDevicesItemPlayLostModeSoundRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemPlayLostModeSoundRequestBuilder) { return NewItemManagedDevicesItemPlayLostModeSoundRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_reboot_now_request_builder.go b/users/item_managed_devices_item_reboot_now_request_builder.go index 817f59a6759..040446d2149 100644 --- a/users/item_managed_devices_item_reboot_now_request_builder.go +++ b/users/item_managed_devices_item_reboot_now_request_builder.go @@ -31,6 +31,7 @@ func NewItemManagedDevicesItemRebootNowRequestBuilder(rawUrl string, requestAdap return NewItemManagedDevicesItemRebootNowRequestBuilderInternal(urlParams, requestAdapter) } // Post reboot device +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemRebootNowRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemManagedDevicesItemRebootNowRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemManagedDevicesItemRebootNowRequestBuilder) Post(ctx context.Context return nil } // ToPostRequestInformation reboot device +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemRebootNowRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemRebootNowRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -58,6 +60,7 @@ func (m *ItemManagedDevicesItemRebootNowRequestBuilder) ToPostRequestInformation return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemRebootNowRequestBuilder when successful func (m *ItemManagedDevicesItemRebootNowRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemRebootNowRequestBuilder) { return NewItemManagedDevicesItemRebootNowRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_recover_passcode_request_builder.go b/users/item_managed_devices_item_recover_passcode_request_builder.go index c72017f956a..566ecd64263 100644 --- a/users/item_managed_devices_item_recover_passcode_request_builder.go +++ b/users/item_managed_devices_item_recover_passcode_request_builder.go @@ -31,6 +31,7 @@ func NewItemManagedDevicesItemRecoverPasscodeRequestBuilder(rawUrl string, reque return NewItemManagedDevicesItemRecoverPasscodeRequestBuilderInternal(urlParams, requestAdapter) } // Post recover passcode +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemRecoverPasscodeRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemManagedDevicesItemRecoverPasscodeRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemManagedDevicesItemRecoverPasscodeRequestBuilder) Post(ctx context.C return nil } // ToPostRequestInformation recover passcode +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemRecoverPasscodeRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemRecoverPasscodeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -58,6 +60,7 @@ func (m *ItemManagedDevicesItemRecoverPasscodeRequestBuilder) ToPostRequestInfor return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemRecoverPasscodeRequestBuilder when successful func (m *ItemManagedDevicesItemRecoverPasscodeRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemRecoverPasscodeRequestBuilder) { return NewItemManagedDevicesItemRecoverPasscodeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_reenable_request_builder.go b/users/item_managed_devices_item_reenable_request_builder.go index 58f8612a2c0..9d64d4028f4 100644 --- a/users/item_managed_devices_item_reenable_request_builder.go +++ b/users/item_managed_devices_item_reenable_request_builder.go @@ -31,6 +31,7 @@ func NewItemManagedDevicesItemReenableRequestBuilder(rawUrl string, requestAdapt return NewItemManagedDevicesItemReenableRequestBuilderInternal(urlParams, requestAdapter) } // Post invoke action reenable +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemReenableRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemManagedDevicesItemReenableRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemManagedDevicesItemReenableRequestBuilder) Post(ctx context.Context, return nil } // ToPostRequestInformation invoke action reenable +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemReenableRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemReenableRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -58,6 +60,7 @@ func (m *ItemManagedDevicesItemReenableRequestBuilder) ToPostRequestInformation( return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemReenableRequestBuilder when successful func (m *ItemManagedDevicesItemReenableRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemReenableRequestBuilder) { return NewItemManagedDevicesItemReenableRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_remote_lock_request_builder.go b/users/item_managed_devices_item_remote_lock_request_builder.go index 3330582afe8..526beacb7d3 100644 --- a/users/item_managed_devices_item_remote_lock_request_builder.go +++ b/users/item_managed_devices_item_remote_lock_request_builder.go @@ -31,6 +31,7 @@ func NewItemManagedDevicesItemRemoteLockRequestBuilder(rawUrl string, requestAda return NewItemManagedDevicesItemRemoteLockRequestBuilderInternal(urlParams, requestAdapter) } // Post remote lock +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemRemoteLockRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemManagedDevicesItemRemoteLockRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemManagedDevicesItemRemoteLockRequestBuilder) Post(ctx context.Contex return nil } // ToPostRequestInformation remote lock +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemRemoteLockRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemRemoteLockRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -58,6 +60,7 @@ func (m *ItemManagedDevicesItemRemoteLockRequestBuilder) ToPostRequestInformatio return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemRemoteLockRequestBuilder when successful func (m *ItemManagedDevicesItemRemoteLockRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemRemoteLockRequestBuilder) { return NewItemManagedDevicesItemRemoteLockRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_remove_device_firmware_configuration_interface_management_request_builder.go b/users/item_managed_devices_item_remove_device_firmware_configuration_interface_management_request_builder.go index 84c16bc5f8e..5be2b3829f0 100644 --- a/users/item_managed_devices_item_remove_device_firmware_configuration_interface_management_request_builder.go +++ b/users/item_managed_devices_item_remove_device_firmware_configuration_interface_management_request_builder.go @@ -31,6 +31,7 @@ func NewItemManagedDevicesItemRemoveDeviceFirmwareConfigurationInterfaceManageme return NewItemManagedDevicesItemRemoveDeviceFirmwareConfigurationInterfaceManagementRequestBuilderInternal(urlParams, requestAdapter) } // Post remove device from Device Firmware Configuration Interface management +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemRemoveDeviceFirmwareConfigurationInterfaceManagementRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemManagedDevicesItemRemoveDeviceFirmwareConfigurationInterfaceManagementRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemManagedDevicesItemRemoveDeviceFirmwareConfigurationInterfaceManagem return nil } // ToPostRequestInformation remove device from Device Firmware Configuration Interface management +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemRemoveDeviceFirmwareConfigurationInterfaceManagementRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemRemoveDeviceFirmwareConfigurationInterfaceManagementRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -58,6 +60,7 @@ func (m *ItemManagedDevicesItemRemoveDeviceFirmwareConfigurationInterfaceManagem return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemRemoveDeviceFirmwareConfigurationInterfaceManagementRequestBuilder when successful func (m *ItemManagedDevicesItemRemoveDeviceFirmwareConfigurationInterfaceManagementRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemRemoveDeviceFirmwareConfigurationInterfaceManagementRequestBuilder) { return NewItemManagedDevicesItemRemoveDeviceFirmwareConfigurationInterfaceManagementRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_reprovision_cloud_pc_request_builder.go b/users/item_managed_devices_item_reprovision_cloud_pc_request_builder.go index 74a9fdc1ebb..a1753099f33 100644 --- a/users/item_managed_devices_item_reprovision_cloud_pc_request_builder.go +++ b/users/item_managed_devices_item_reprovision_cloud_pc_request_builder.go @@ -31,7 +31,7 @@ func NewItemManagedDevicesItemReprovisionCloudPcRequestBuilder(rawUrl string, re return NewItemManagedDevicesItemReprovisionCloudPcRequestBuilderInternal(urlParams, requestAdapter) } // Post reprovision a Cloud PC with an Intune managed device ID. -// Deprecated: The reprovisionCloudPc API is deprecated and will stop returning on Sep 30, 2023. Please use reprovision instead as of 2023-07/reprovisionCloudPc +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -51,7 +51,7 @@ func (m *ItemManagedDevicesItemReprovisionCloudPcRequestBuilder) Post(ctx contex return nil } // ToPostRequestInformation reprovision a Cloud PC with an Intune managed device ID. -// Deprecated: The reprovisionCloudPc API is deprecated and will stop returning on Sep 30, 2023. Please use reprovision instead as of 2023-07/reprovisionCloudPc +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemReprovisionCloudPcRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemReprovisionCloudPcRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -63,7 +63,7 @@ func (m *ItemManagedDevicesItemReprovisionCloudPcRequestBuilder) ToPostRequestIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The reprovisionCloudPc API is deprecated and will stop returning on Sep 30, 2023. Please use reprovision instead as of 2023-07/reprovisionCloudPc +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemReprovisionCloudPcRequestBuilder when successful func (m *ItemManagedDevicesItemReprovisionCloudPcRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemReprovisionCloudPcRequestBuilder) { return NewItemManagedDevicesItemReprovisionCloudPcRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_request_remote_assistance_request_builder.go b/users/item_managed_devices_item_request_remote_assistance_request_builder.go index 7e016b14e4c..9f2b4e48fa7 100644 --- a/users/item_managed_devices_item_request_remote_assistance_request_builder.go +++ b/users/item_managed_devices_item_request_remote_assistance_request_builder.go @@ -31,6 +31,7 @@ func NewItemManagedDevicesItemRequestRemoteAssistanceRequestBuilder(rawUrl strin return NewItemManagedDevicesItemRequestRemoteAssistanceRequestBuilderInternal(urlParams, requestAdapter) } // Post request remote assistance +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemRequestRemoteAssistanceRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemManagedDevicesItemRequestRemoteAssistanceRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemManagedDevicesItemRequestRemoteAssistanceRequestBuilder) Post(ctx c return nil } // ToPostRequestInformation request remote assistance +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemRequestRemoteAssistanceRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemRequestRemoteAssistanceRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -58,6 +60,7 @@ func (m *ItemManagedDevicesItemRequestRemoteAssistanceRequestBuilder) ToPostRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemRequestRemoteAssistanceRequestBuilder when successful func (m *ItemManagedDevicesItemRequestRemoteAssistanceRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemRequestRemoteAssistanceRequestBuilder) { return NewItemManagedDevicesItemRequestRemoteAssistanceRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_reset_passcode_request_builder.go b/users/item_managed_devices_item_reset_passcode_request_builder.go index 7dc0e70cad6..ff93a2bf237 100644 --- a/users/item_managed_devices_item_reset_passcode_request_builder.go +++ b/users/item_managed_devices_item_reset_passcode_request_builder.go @@ -31,6 +31,7 @@ func NewItemManagedDevicesItemResetPasscodeRequestBuilder(rawUrl string, request return NewItemManagedDevicesItemResetPasscodeRequestBuilderInternal(urlParams, requestAdapter) } // Post reset passcode +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemResetPasscodeRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemManagedDevicesItemResetPasscodeRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemManagedDevicesItemResetPasscodeRequestBuilder) Post(ctx context.Con return nil } // ToPostRequestInformation reset passcode +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemResetPasscodeRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemResetPasscodeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -58,6 +60,7 @@ func (m *ItemManagedDevicesItemResetPasscodeRequestBuilder) ToPostRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemResetPasscodeRequestBuilder when successful func (m *ItemManagedDevicesItemResetPasscodeRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemResetPasscodeRequestBuilder) { return NewItemManagedDevicesItemResetPasscodeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_resize_cloud_pc_request_builder.go b/users/item_managed_devices_item_resize_cloud_pc_request_builder.go index 4c56d9737d1..44b09874835 100644 --- a/users/item_managed_devices_item_resize_cloud_pc_request_builder.go +++ b/users/item_managed_devices_item_resize_cloud_pc_request_builder.go @@ -31,7 +31,7 @@ func NewItemManagedDevicesItemResizeCloudPcRequestBuilder(rawUrl string, request return NewItemManagedDevicesItemResizeCloudPcRequestBuilderInternal(urlParams, requestAdapter) } // Post upgrade or downgrade an existing Cloud PC to another configuration with a new virtual CPU (vCPU) and storage size. -// Deprecated: The resizeCloudPc API is deprecated and will stop returning on Oct 30, 2023. Please use resize instead as of 2023-05/resizeCloudPc +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -51,7 +51,7 @@ func (m *ItemManagedDevicesItemResizeCloudPcRequestBuilder) Post(ctx context.Con return nil } // ToPostRequestInformation upgrade or downgrade an existing Cloud PC to another configuration with a new virtual CPU (vCPU) and storage size. -// Deprecated: The resizeCloudPc API is deprecated and will stop returning on Oct 30, 2023. Please use resize instead as of 2023-05/resizeCloudPc +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemResizeCloudPcRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemManagedDevicesItemResizeCloudPcPostRequestBodyable, requestConfiguration *ItemManagedDevicesItemResizeCloudPcRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -67,7 +67,7 @@ func (m *ItemManagedDevicesItemResizeCloudPcRequestBuilder) ToPostRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The resizeCloudPc API is deprecated and will stop returning on Oct 30, 2023. Please use resize instead as of 2023-05/resizeCloudPc +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemResizeCloudPcRequestBuilder when successful func (m *ItemManagedDevicesItemResizeCloudPcRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemResizeCloudPcRequestBuilder) { return NewItemManagedDevicesItemResizeCloudPcRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_restore_cloud_pc_request_builder.go b/users/item_managed_devices_item_restore_cloud_pc_request_builder.go index b18b05200d9..75286b8d1d0 100644 --- a/users/item_managed_devices_item_restore_cloud_pc_request_builder.go +++ b/users/item_managed_devices_item_restore_cloud_pc_request_builder.go @@ -31,7 +31,7 @@ func NewItemManagedDevicesItemRestoreCloudPcRequestBuilder(rawUrl string, reques return NewItemManagedDevicesItemRestoreCloudPcRequestBuilderInternal(urlParams, requestAdapter) } // Post restore a Cloud PC device to a previous state with an Intune managed device ID. -// Deprecated: The restoreCloudPc API is deprecated and will stop returning on Sep 30, 2023. Please use restore instead as of 2023-07/restoreCloudPc +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -51,7 +51,7 @@ func (m *ItemManagedDevicesItemRestoreCloudPcRequestBuilder) Post(ctx context.Co return nil } // ToPostRequestInformation restore a Cloud PC device to a previous state with an Intune managed device ID. -// Deprecated: The restoreCloudPc API is deprecated and will stop returning on Sep 30, 2023. Please use restore instead as of 2023-07/restoreCloudPc +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemRestoreCloudPcRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemManagedDevicesItemRestoreCloudPcPostRequestBodyable, requestConfiguration *ItemManagedDevicesItemRestoreCloudPcRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -67,7 +67,7 @@ func (m *ItemManagedDevicesItemRestoreCloudPcRequestBuilder) ToPostRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The restoreCloudPc API is deprecated and will stop returning on Sep 30, 2023. Please use restore instead as of 2023-07/restoreCloudPc +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemRestoreCloudPcRequestBuilder when successful func (m *ItemManagedDevicesItemRestoreCloudPcRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemRestoreCloudPcRequestBuilder) { return NewItemManagedDevicesItemRestoreCloudPcRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_retire_request_builder.go b/users/item_managed_devices_item_retire_request_builder.go index f0e000a512b..978385c66fa 100644 --- a/users/item_managed_devices_item_retire_request_builder.go +++ b/users/item_managed_devices_item_retire_request_builder.go @@ -31,6 +31,7 @@ func NewItemManagedDevicesItemRetireRequestBuilder(rawUrl string, requestAdapter return NewItemManagedDevicesItemRetireRequestBuilderInternal(urlParams, requestAdapter) } // Post retire a device +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemRetireRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemManagedDevicesItemRetireRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemManagedDevicesItemRetireRequestBuilder) Post(ctx context.Context, r return nil } // ToPostRequestInformation retire a device +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemRetireRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemRetireRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -58,6 +60,7 @@ func (m *ItemManagedDevicesItemRetireRequestBuilder) ToPostRequestInformation(ct return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemRetireRequestBuilder when successful func (m *ItemManagedDevicesItemRetireRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemRetireRequestBuilder) { return NewItemManagedDevicesItemRetireRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_revoke_apple_vpp_licenses_request_builder.go b/users/item_managed_devices_item_revoke_apple_vpp_licenses_request_builder.go index 55f1b3ccf9c..de4ea3f6c58 100644 --- a/users/item_managed_devices_item_revoke_apple_vpp_licenses_request_builder.go +++ b/users/item_managed_devices_item_revoke_apple_vpp_licenses_request_builder.go @@ -31,6 +31,7 @@ func NewItemManagedDevicesItemRevokeAppleVppLicensesRequestBuilder(rawUrl string return NewItemManagedDevicesItemRevokeAppleVppLicensesRequestBuilderInternal(urlParams, requestAdapter) } // Post revoke all Apple Vpp licenses for a device +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemRevokeAppleVppLicensesRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemManagedDevicesItemRevokeAppleVppLicensesRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemManagedDevicesItemRevokeAppleVppLicensesRequestBuilder) Post(ctx co return nil } // ToPostRequestInformation revoke all Apple Vpp licenses for a device +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemRevokeAppleVppLicensesRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemRevokeAppleVppLicensesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -58,6 +60,7 @@ func (m *ItemManagedDevicesItemRevokeAppleVppLicensesRequestBuilder) ToPostReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemRevokeAppleVppLicensesRequestBuilder when successful func (m *ItemManagedDevicesItemRevokeAppleVppLicensesRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemRevokeAppleVppLicensesRequestBuilder) { return NewItemManagedDevicesItemRevokeAppleVppLicensesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_rotate_bit_locker_keys_request_builder.go b/users/item_managed_devices_item_rotate_bit_locker_keys_request_builder.go index 315e0be61e2..625e762ece6 100644 --- a/users/item_managed_devices_item_rotate_bit_locker_keys_request_builder.go +++ b/users/item_managed_devices_item_rotate_bit_locker_keys_request_builder.go @@ -31,6 +31,7 @@ func NewItemManagedDevicesItemRotateBitLockerKeysRequestBuilder(rawUrl string, r return NewItemManagedDevicesItemRotateBitLockerKeysRequestBuilderInternal(urlParams, requestAdapter) } // Post rotate BitLockerKeys +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemRotateBitLockerKeysRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemManagedDevicesItemRotateBitLockerKeysRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemManagedDevicesItemRotateBitLockerKeysRequestBuilder) Post(ctx conte return nil } // ToPostRequestInformation rotate BitLockerKeys +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemRotateBitLockerKeysRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemRotateBitLockerKeysRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -58,6 +60,7 @@ func (m *ItemManagedDevicesItemRotateBitLockerKeysRequestBuilder) ToPostRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemRotateBitLockerKeysRequestBuilder when successful func (m *ItemManagedDevicesItemRotateBitLockerKeysRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemRotateBitLockerKeysRequestBuilder) { return NewItemManagedDevicesItemRotateBitLockerKeysRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_rotate_file_vault_key_request_builder.go b/users/item_managed_devices_item_rotate_file_vault_key_request_builder.go index 831a2e1e352..eff9b592204 100644 --- a/users/item_managed_devices_item_rotate_file_vault_key_request_builder.go +++ b/users/item_managed_devices_item_rotate_file_vault_key_request_builder.go @@ -31,6 +31,7 @@ func NewItemManagedDevicesItemRotateFileVaultKeyRequestBuilder(rawUrl string, re return NewItemManagedDevicesItemRotateFileVaultKeyRequestBuilderInternal(urlParams, requestAdapter) } // Post invoke action rotateFileVaultKey +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemRotateFileVaultKeyRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemManagedDevicesItemRotateFileVaultKeyRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemManagedDevicesItemRotateFileVaultKeyRequestBuilder) Post(ctx contex return nil } // ToPostRequestInformation invoke action rotateFileVaultKey +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemRotateFileVaultKeyRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemRotateFileVaultKeyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -58,6 +60,7 @@ func (m *ItemManagedDevicesItemRotateFileVaultKeyRequestBuilder) ToPostRequestIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemRotateFileVaultKeyRequestBuilder when successful func (m *ItemManagedDevicesItemRotateFileVaultKeyRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemRotateFileVaultKeyRequestBuilder) { return NewItemManagedDevicesItemRotateFileVaultKeyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_rotate_local_admin_password_request_builder.go b/users/item_managed_devices_item_rotate_local_admin_password_request_builder.go index 1d2d601b0e1..d5c6c87726a 100644 --- a/users/item_managed_devices_item_rotate_local_admin_password_request_builder.go +++ b/users/item_managed_devices_item_rotate_local_admin_password_request_builder.go @@ -31,6 +31,7 @@ func NewItemManagedDevicesItemRotateLocalAdminPasswordRequestBuilder(rawUrl stri return NewItemManagedDevicesItemRotateLocalAdminPasswordRequestBuilderInternal(urlParams, requestAdapter) } // Post initiates a manual rotation for the local admin password on the device +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemRotateLocalAdminPasswordRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemManagedDevicesItemRotateLocalAdminPasswordRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemManagedDevicesItemRotateLocalAdminPasswordRequestBuilder) Post(ctx return nil } // ToPostRequestInformation initiates a manual rotation for the local admin password on the device +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemRotateLocalAdminPasswordRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemRotateLocalAdminPasswordRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -58,6 +60,7 @@ func (m *ItemManagedDevicesItemRotateLocalAdminPasswordRequestBuilder) ToPostReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemRotateLocalAdminPasswordRequestBuilder when successful func (m *ItemManagedDevicesItemRotateLocalAdminPasswordRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemRotateLocalAdminPasswordRequestBuilder) { return NewItemManagedDevicesItemRotateLocalAdminPasswordRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_security_baseline_states_count_request_builder.go b/users/item_managed_devices_item_security_baseline_states_count_request_builder.go index ea08906c877..f518dbb384a 100644 --- a/users/item_managed_devices_item_security_baseline_states_count_request_builder.go +++ b/users/item_managed_devices_item_security_baseline_states_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemManagedDevicesItemSecurityBaselineStatesCountRequestBuilder(rawUrl s return NewItemManagedDevicesItemSecurityBaselineStatesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemSecurityBaselineStatesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemManagedDevicesItemSecurityBaselineStatesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemManagedDevicesItemSecurityBaselineStatesCountRequestBuilder) Get(ct return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemSecurityBaselineStatesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemSecurityBaselineStatesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemManagedDevicesItemSecurityBaselineStatesCountRequestBuilder) ToGetR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemSecurityBaselineStatesCountRequestBuilder when successful func (m *ItemManagedDevicesItemSecurityBaselineStatesCountRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemSecurityBaselineStatesCountRequestBuilder) { return NewItemManagedDevicesItemSecurityBaselineStatesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_security_baseline_states_item_setting_states_count_request_builder.go b/users/item_managed_devices_item_security_baseline_states_item_setting_states_count_request_builder.go index c4bd8ba322e..9a2e0a5130e 100644 --- a/users/item_managed_devices_item_security_baseline_states_item_setting_states_count_request_builder.go +++ b/users/item_managed_devices_item_security_baseline_states_item_setting_states_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesCountReques return NewItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesCountReque return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesCountReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesCountRequestBuilder when successful func (m *ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesCountRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesCountRequestBuilder) { return NewItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_security_baseline_states_item_setting_states_request_builder.go b/users/item_managed_devices_item_security_baseline_states_item_setting_states_request_builder.go index c697aaf5f8d..9987871c763 100644 --- a/users/item_managed_devices_item_security_baseline_states_item_setting_states_request_builder.go +++ b/users/item_managed_devices_item_security_baseline_states_item_setting_states_request_builder.go @@ -47,6 +47,7 @@ type ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesRequestBuilder Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // BySecurityBaselineSettingStateId provides operations to manage the settingStates property of the microsoft.graph.securityBaselineState entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesSecurityBaselineSettingStateItemRequestBuilder when successful func (m *ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesRequestBuilder) BySecurityBaselineSettingStateId(securityBaselineSettingStateId string)(*ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesSecurityBaselineSettingStateItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesRequestBui return NewItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the security baseline state for different settings for a device +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SecurityBaselineSettingStateCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SecurityBaselineSettingStateCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesRequestBui return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SecurityBaselineSettingStateCollectionResponseable), nil } // Post create new navigation property to settingStates for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SecurityBaselineSettingStateable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SecurityBaselineSettingStateable, requestConfiguration *ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SecurityBaselineSettingStateable, error) { @@ -117,6 +120,7 @@ func (m *ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesRequestBui return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SecurityBaselineSettingStateable), nil } // ToGetRequestInformation the security baseline state for different settings for a device +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesRequestBui return requestInfo, nil } // ToPostRequestInformation create new navigation property to settingStates for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SecurityBaselineSettingStateable, requestConfiguration *ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesRequestBui return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesRequestBuilder when successful func (m *ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesRequestBuilder) { return NewItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_security_baseline_states_request_builder.go b/users/item_managed_devices_item_security_baseline_states_request_builder.go index 154c02ec152..ad54f349701 100644 --- a/users/item_managed_devices_item_security_baseline_states_request_builder.go +++ b/users/item_managed_devices_item_security_baseline_states_request_builder.go @@ -47,6 +47,7 @@ type ItemManagedDevicesItemSecurityBaselineStatesRequestBuilderPostRequestConfig Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // BySecurityBaselineStateId provides operations to manage the securityBaselineStates property of the microsoft.graph.managedDevice entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemSecurityBaselineStatesSecurityBaselineStateItemRequestBuilder when successful func (m *ItemManagedDevicesItemSecurityBaselineStatesRequestBuilder) BySecurityBaselineStateId(securityBaselineStateId string)(*ItemManagedDevicesItemSecurityBaselineStatesSecurityBaselineStateItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemManagedDevicesItemSecurityBaselineStatesRequestBuilder) Count()(*It return NewItemManagedDevicesItemSecurityBaselineStatesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get security baseline states for this device. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SecurityBaselineStateCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemSecurityBaselineStatesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemManagedDevicesItemSecurityBaselineStatesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SecurityBaselineStateCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemManagedDevicesItemSecurityBaselineStatesRequestBuilder) Get(ctx con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SecurityBaselineStateCollectionResponseable), nil } // Post create new navigation property to securityBaselineStates for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SecurityBaselineStateable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemSecurityBaselineStatesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SecurityBaselineStateable, requestConfiguration *ItemManagedDevicesItemSecurityBaselineStatesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SecurityBaselineStateable, error) { @@ -117,6 +120,7 @@ func (m *ItemManagedDevicesItemSecurityBaselineStatesRequestBuilder) Post(ctx co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SecurityBaselineStateable), nil } // ToGetRequestInformation security baseline states for this device. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemSecurityBaselineStatesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemSecurityBaselineStatesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemManagedDevicesItemSecurityBaselineStatesRequestBuilder) ToGetReques return requestInfo, nil } // ToPostRequestInformation create new navigation property to securityBaselineStates for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemSecurityBaselineStatesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SecurityBaselineStateable, requestConfiguration *ItemManagedDevicesItemSecurityBaselineStatesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemManagedDevicesItemSecurityBaselineStatesRequestBuilder) ToPostReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemSecurityBaselineStatesRequestBuilder when successful func (m *ItemManagedDevicesItemSecurityBaselineStatesRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemSecurityBaselineStatesRequestBuilder) { return NewItemManagedDevicesItemSecurityBaselineStatesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_security_baseline_states_security_baseline_state_item_request_builder.go b/users/item_managed_devices_item_security_baseline_states_security_baseline_state_item_request_builder.go index 864b9d8de33..5f12b762b9b 100644 --- a/users/item_managed_devices_item_security_baseline_states_security_baseline_state_item_request_builder.go +++ b/users/item_managed_devices_item_security_baseline_states_security_baseline_state_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemManagedDevicesItemSecurityBaselineStatesSecurityBaselineStateItemReq return NewItemManagedDevicesItemSecurityBaselineStatesSecurityBaselineStateItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property securityBaselineStates for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemSecurityBaselineStatesSecurityBaselineStateItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemManagedDevicesItemSecurityBaselineStatesSecurityBaselineStateItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemManagedDevicesItemSecurityBaselineStatesSecurityBaselineStateItemRe return nil } // Get security baseline states for this device. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SecurityBaselineStateable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemSecurityBaselineStatesSecurityBaselineStateItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemManagedDevicesItemSecurityBaselineStatesSecurityBaselineStateItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SecurityBaselineStateable, error) { @@ -91,6 +93,7 @@ func (m *ItemManagedDevicesItemSecurityBaselineStatesSecurityBaselineStateItemRe return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SecurityBaselineStateable), nil } // Patch update the navigation property securityBaselineStates in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SecurityBaselineStateable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemSecurityBaselineStatesSecurityBaselineStateItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SecurityBaselineStateable, requestConfiguration *ItemManagedDevicesItemSecurityBaselineStatesSecurityBaselineStateItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SecurityBaselineStateable, error) { @@ -116,6 +119,7 @@ func (m *ItemManagedDevicesItemSecurityBaselineStatesSecurityBaselineStateItemRe return NewItemManagedDevicesItemSecurityBaselineStatesItemSettingStatesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property securityBaselineStates for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemSecurityBaselineStatesSecurityBaselineStateItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemSecurityBaselineStatesSecurityBaselineStateItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -127,6 +131,7 @@ func (m *ItemManagedDevicesItemSecurityBaselineStatesSecurityBaselineStateItemRe return requestInfo, nil } // ToGetRequestInformation security baseline states for this device. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemSecurityBaselineStatesSecurityBaselineStateItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemSecurityBaselineStatesSecurityBaselineStateItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,6 +146,7 @@ func (m *ItemManagedDevicesItemSecurityBaselineStatesSecurityBaselineStateItemRe return requestInfo, nil } // ToPatchRequestInformation update the navigation property securityBaselineStates in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemSecurityBaselineStatesSecurityBaselineStateItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SecurityBaselineStateable, requestConfiguration *ItemManagedDevicesItemSecurityBaselineStatesSecurityBaselineStateItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +162,7 @@ func (m *ItemManagedDevicesItemSecurityBaselineStatesSecurityBaselineStateItemRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemSecurityBaselineStatesSecurityBaselineStateItemRequestBuilder when successful func (m *ItemManagedDevicesItemSecurityBaselineStatesSecurityBaselineStateItemRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemSecurityBaselineStatesSecurityBaselineStateItemRequestBuilder) { return NewItemManagedDevicesItemSecurityBaselineStatesSecurityBaselineStateItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_send_custom_notification_to_company_portal_request_builder.go b/users/item_managed_devices_item_send_custom_notification_to_company_portal_request_builder.go index ab4649b7e13..3acdbdd0075 100644 --- a/users/item_managed_devices_item_send_custom_notification_to_company_portal_request_builder.go +++ b/users/item_managed_devices_item_send_custom_notification_to_company_portal_request_builder.go @@ -31,6 +31,7 @@ func NewItemManagedDevicesItemSendCustomNotificationToCompanyPortalRequestBuilde return NewItemManagedDevicesItemSendCustomNotificationToCompanyPortalRequestBuilderInternal(urlParams, requestAdapter) } // Post invoke action sendCustomNotificationToCompanyPortal +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemSendCustomNotificationToCompanyPortalRequestBuilder) Post(ctx context.Context, body ItemManagedDevicesItemSendCustomNotificationToCompanyPortalPostRequestBodyable, requestConfiguration *ItemManagedDevicesItemSendCustomNotificationToCompanyPortalRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemManagedDevicesItemSendCustomNotificationToCompanyPortalRequestBuild return nil } // ToPostRequestInformation invoke action sendCustomNotificationToCompanyPortal +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemSendCustomNotificationToCompanyPortalRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemManagedDevicesItemSendCustomNotificationToCompanyPortalPostRequestBodyable, requestConfiguration *ItemManagedDevicesItemSendCustomNotificationToCompanyPortalRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -62,6 +64,7 @@ func (m *ItemManagedDevicesItemSendCustomNotificationToCompanyPortalRequestBuild return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemSendCustomNotificationToCompanyPortalRequestBuilder when successful func (m *ItemManagedDevicesItemSendCustomNotificationToCompanyPortalRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemSendCustomNotificationToCompanyPortalRequestBuilder) { return NewItemManagedDevicesItemSendCustomNotificationToCompanyPortalRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_set_cloud_pc_review_status_request_builder.go b/users/item_managed_devices_item_set_cloud_pc_review_status_request_builder.go index 08bb78d0e3a..6c4c472881f 100644 --- a/users/item_managed_devices_item_set_cloud_pc_review_status_request_builder.go +++ b/users/item_managed_devices_item_set_cloud_pc_review_status_request_builder.go @@ -31,7 +31,7 @@ func NewItemManagedDevicesItemSetCloudPcReviewStatusRequestBuilder(rawUrl string return NewItemManagedDevicesItemSetCloudPcReviewStatusRequestBuilderInternal(urlParams, requestAdapter) } // Post set the review status of a specific Cloud PC device. Use this API to set the review status of a Cloud PC to in review if you consider a Cloud PC as suspicious. After the review is completed, use this API again to set the Cloud PC back to a normal state. -// Deprecated: The setCloudPcReviewStatus API is deprecated and will stop returning data on Apr 30, 2024. Please use the new setReviewStatus API as of 2024-01/setCloudPcReviewStatus +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -51,7 +51,7 @@ func (m *ItemManagedDevicesItemSetCloudPcReviewStatusRequestBuilder) Post(ctx co return nil } // ToPostRequestInformation set the review status of a specific Cloud PC device. Use this API to set the review status of a Cloud PC to in review if you consider a Cloud PC as suspicious. After the review is completed, use this API again to set the Cloud PC back to a normal state. -// Deprecated: The setCloudPcReviewStatus API is deprecated and will stop returning data on Apr 30, 2024. Please use the new setReviewStatus API as of 2024-01/setCloudPcReviewStatus +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemSetCloudPcReviewStatusRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemManagedDevicesItemSetCloudPcReviewStatusPostRequestBodyable, requestConfiguration *ItemManagedDevicesItemSetCloudPcReviewStatusRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -67,7 +67,7 @@ func (m *ItemManagedDevicesItemSetCloudPcReviewStatusRequestBuilder) ToPostReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The setCloudPcReviewStatus API is deprecated and will stop returning data on Apr 30, 2024. Please use the new setReviewStatus API as of 2024-01/setCloudPcReviewStatus +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemSetCloudPcReviewStatusRequestBuilder when successful func (m *ItemManagedDevicesItemSetCloudPcReviewStatusRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemSetCloudPcReviewStatusRequestBuilder) { return NewItemManagedDevicesItemSetCloudPcReviewStatusRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_set_device_name_request_builder.go b/users/item_managed_devices_item_set_device_name_request_builder.go index 7badaee5b03..616983156ea 100644 --- a/users/item_managed_devices_item_set_device_name_request_builder.go +++ b/users/item_managed_devices_item_set_device_name_request_builder.go @@ -31,6 +31,7 @@ func NewItemManagedDevicesItemSetDeviceNameRequestBuilder(rawUrl string, request return NewItemManagedDevicesItemSetDeviceNameRequestBuilderInternal(urlParams, requestAdapter) } // Post set device name of the device. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemSetDeviceNameRequestBuilder) Post(ctx context.Context, body ItemManagedDevicesItemSetDeviceNamePostRequestBodyable, requestConfiguration *ItemManagedDevicesItemSetDeviceNameRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemManagedDevicesItemSetDeviceNameRequestBuilder) Post(ctx context.Con return nil } // ToPostRequestInformation set device name of the device. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemSetDeviceNameRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemManagedDevicesItemSetDeviceNamePostRequestBodyable, requestConfiguration *ItemManagedDevicesItemSetDeviceNameRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -62,6 +64,7 @@ func (m *ItemManagedDevicesItemSetDeviceNameRequestBuilder) ToPostRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemSetDeviceNameRequestBuilder when successful func (m *ItemManagedDevicesItemSetDeviceNameRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemSetDeviceNameRequestBuilder) { return NewItemManagedDevicesItemSetDeviceNameRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_shut_down_request_builder.go b/users/item_managed_devices_item_shut_down_request_builder.go index aba773ec929..98b0c6c9a06 100644 --- a/users/item_managed_devices_item_shut_down_request_builder.go +++ b/users/item_managed_devices_item_shut_down_request_builder.go @@ -31,6 +31,7 @@ func NewItemManagedDevicesItemShutDownRequestBuilder(rawUrl string, requestAdapt return NewItemManagedDevicesItemShutDownRequestBuilderInternal(urlParams, requestAdapter) } // Post shut down device +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemShutDownRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemManagedDevicesItemShutDownRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemManagedDevicesItemShutDownRequestBuilder) Post(ctx context.Context, return nil } // ToPostRequestInformation shut down device +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemShutDownRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemShutDownRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -58,6 +60,7 @@ func (m *ItemManagedDevicesItemShutDownRequestBuilder) ToPostRequestInformation( return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemShutDownRequestBuilder when successful func (m *ItemManagedDevicesItemShutDownRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemShutDownRequestBuilder) { return NewItemManagedDevicesItemShutDownRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_sync_device_request_builder.go b/users/item_managed_devices_item_sync_device_request_builder.go index be93280ea93..19a9debc3d7 100644 --- a/users/item_managed_devices_item_sync_device_request_builder.go +++ b/users/item_managed_devices_item_sync_device_request_builder.go @@ -31,6 +31,7 @@ func NewItemManagedDevicesItemSyncDeviceRequestBuilder(rawUrl string, requestAda return NewItemManagedDevicesItemSyncDeviceRequestBuilderInternal(urlParams, requestAdapter) } // Post invoke action syncDevice +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemSyncDeviceRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemManagedDevicesItemSyncDeviceRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemManagedDevicesItemSyncDeviceRequestBuilder) Post(ctx context.Contex return nil } // ToPostRequestInformation invoke action syncDevice +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemSyncDeviceRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemSyncDeviceRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -58,6 +60,7 @@ func (m *ItemManagedDevicesItemSyncDeviceRequestBuilder) ToPostRequestInformatio return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemSyncDeviceRequestBuilder when successful func (m *ItemManagedDevicesItemSyncDeviceRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemSyncDeviceRequestBuilder) { return NewItemManagedDevicesItemSyncDeviceRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_trigger_configuration_manager_action_request_builder.go b/users/item_managed_devices_item_trigger_configuration_manager_action_request_builder.go index 4ea5c149965..c569775c8f9 100644 --- a/users/item_managed_devices_item_trigger_configuration_manager_action_request_builder.go +++ b/users/item_managed_devices_item_trigger_configuration_manager_action_request_builder.go @@ -31,6 +31,7 @@ func NewItemManagedDevicesItemTriggerConfigurationManagerActionRequestBuilder(ra return NewItemManagedDevicesItemTriggerConfigurationManagerActionRequestBuilderInternal(urlParams, requestAdapter) } // Post trigger action on ConfigurationManager client +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemTriggerConfigurationManagerActionRequestBuilder) Post(ctx context.Context, body ItemManagedDevicesItemTriggerConfigurationManagerActionPostRequestBodyable, requestConfiguration *ItemManagedDevicesItemTriggerConfigurationManagerActionRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemManagedDevicesItemTriggerConfigurationManagerActionRequestBuilder) return nil } // ToPostRequestInformation trigger action on ConfigurationManager client +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemTriggerConfigurationManagerActionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemManagedDevicesItemTriggerConfigurationManagerActionPostRequestBodyable, requestConfiguration *ItemManagedDevicesItemTriggerConfigurationManagerActionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -62,6 +64,7 @@ func (m *ItemManagedDevicesItemTriggerConfigurationManagerActionRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemTriggerConfigurationManagerActionRequestBuilder when successful func (m *ItemManagedDevicesItemTriggerConfigurationManagerActionRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemTriggerConfigurationManagerActionRequestBuilder) { return NewItemManagedDevicesItemTriggerConfigurationManagerActionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_update_windows_device_account_request_builder.go b/users/item_managed_devices_item_update_windows_device_account_request_builder.go index bbf59b2ab61..ccbe4bcf959 100644 --- a/users/item_managed_devices_item_update_windows_device_account_request_builder.go +++ b/users/item_managed_devices_item_update_windows_device_account_request_builder.go @@ -31,6 +31,7 @@ func NewItemManagedDevicesItemUpdateWindowsDeviceAccountRequestBuilder(rawUrl st return NewItemManagedDevicesItemUpdateWindowsDeviceAccountRequestBuilderInternal(urlParams, requestAdapter) } // Post invoke action updateWindowsDeviceAccount +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemUpdateWindowsDeviceAccountRequestBuilder) Post(ctx context.Context, body ItemManagedDevicesItemUpdateWindowsDeviceAccountPostRequestBodyable, requestConfiguration *ItemManagedDevicesItemUpdateWindowsDeviceAccountRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemManagedDevicesItemUpdateWindowsDeviceAccountRequestBuilder) Post(ct return nil } // ToPostRequestInformation invoke action updateWindowsDeviceAccount +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemUpdateWindowsDeviceAccountRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemManagedDevicesItemUpdateWindowsDeviceAccountPostRequestBodyable, requestConfiguration *ItemManagedDevicesItemUpdateWindowsDeviceAccountRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -62,6 +64,7 @@ func (m *ItemManagedDevicesItemUpdateWindowsDeviceAccountRequestBuilder) ToPostR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemUpdateWindowsDeviceAccountRequestBuilder when successful func (m *ItemManagedDevicesItemUpdateWindowsDeviceAccountRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemUpdateWindowsDeviceAccountRequestBuilder) { return NewItemManagedDevicesItemUpdateWindowsDeviceAccountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_users_request_builder.go b/users/item_managed_devices_item_users_request_builder.go index aceb46e79b5..956e96d4e6c 100644 --- a/users/item_managed_devices_item_users_request_builder.go +++ b/users/item_managed_devices_item_users_request_builder.go @@ -53,6 +53,7 @@ func NewItemManagedDevicesItemUsersRequestBuilder(rawUrl string, requestAdapter return NewItemManagedDevicesItemUsersRequestBuilderInternal(urlParams, requestAdapter) } // Get the primary users associated with the managed device. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemUsersRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemManagedDevicesItemUsersRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable, error) { @@ -73,6 +74,7 @@ func (m *ItemManagedDevicesItemUsersRequestBuilder) Get(ctx context.Context, req return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserCollectionResponseable), nil } // ToGetRequestInformation the primary users associated with the managed device. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemUsersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemUsersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -87,6 +89,7 @@ func (m *ItemManagedDevicesItemUsersRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemUsersRequestBuilder when successful func (m *ItemManagedDevicesItemUsersRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemUsersRequestBuilder) { return NewItemManagedDevicesItemUsersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_windows_defender_scan_request_builder.go b/users/item_managed_devices_item_windows_defender_scan_request_builder.go index c290d98b7c9..d0a6573d0bc 100644 --- a/users/item_managed_devices_item_windows_defender_scan_request_builder.go +++ b/users/item_managed_devices_item_windows_defender_scan_request_builder.go @@ -31,6 +31,7 @@ func NewItemManagedDevicesItemWindowsDefenderScanRequestBuilder(rawUrl string, r return NewItemManagedDevicesItemWindowsDefenderScanRequestBuilderInternal(urlParams, requestAdapter) } // Post invoke action windowsDefenderScan +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemWindowsDefenderScanRequestBuilder) Post(ctx context.Context, body ItemManagedDevicesItemWindowsDefenderScanPostRequestBodyable, requestConfiguration *ItemManagedDevicesItemWindowsDefenderScanRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemManagedDevicesItemWindowsDefenderScanRequestBuilder) Post(ctx conte return nil } // ToPostRequestInformation invoke action windowsDefenderScan +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemWindowsDefenderScanRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemManagedDevicesItemWindowsDefenderScanPostRequestBodyable, requestConfiguration *ItemManagedDevicesItemWindowsDefenderScanRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -62,6 +64,7 @@ func (m *ItemManagedDevicesItemWindowsDefenderScanRequestBuilder) ToPostRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemWindowsDefenderScanRequestBuilder when successful func (m *ItemManagedDevicesItemWindowsDefenderScanRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemWindowsDefenderScanRequestBuilder) { return NewItemManagedDevicesItemWindowsDefenderScanRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_windows_defender_update_signatures_request_builder.go b/users/item_managed_devices_item_windows_defender_update_signatures_request_builder.go index c4af254d02e..03bc5ce05a5 100644 --- a/users/item_managed_devices_item_windows_defender_update_signatures_request_builder.go +++ b/users/item_managed_devices_item_windows_defender_update_signatures_request_builder.go @@ -31,6 +31,7 @@ func NewItemManagedDevicesItemWindowsDefenderUpdateSignaturesRequestBuilder(rawU return NewItemManagedDevicesItemWindowsDefenderUpdateSignaturesRequestBuilderInternal(urlParams, requestAdapter) } // Post invoke action windowsDefenderUpdateSignatures +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemWindowsDefenderUpdateSignaturesRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemManagedDevicesItemWindowsDefenderUpdateSignaturesRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemManagedDevicesItemWindowsDefenderUpdateSignaturesRequestBuilder) Po return nil } // ToPostRequestInformation invoke action windowsDefenderUpdateSignatures +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemWindowsDefenderUpdateSignaturesRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemWindowsDefenderUpdateSignaturesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -58,6 +60,7 @@ func (m *ItemManagedDevicesItemWindowsDefenderUpdateSignaturesRequestBuilder) To return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemWindowsDefenderUpdateSignaturesRequestBuilder when successful func (m *ItemManagedDevicesItemWindowsDefenderUpdateSignaturesRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemWindowsDefenderUpdateSignaturesRequestBuilder) { return NewItemManagedDevicesItemWindowsDefenderUpdateSignaturesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_windows_protection_state_detected_malware_state_count_request_builder.go b/users/item_managed_devices_item_windows_protection_state_detected_malware_state_count_request_builder.go index cd0e993cf41..a160c5473fd 100644 --- a/users/item_managed_devices_item_windows_protection_state_detected_malware_state_count_request_builder.go +++ b/users/item_managed_devices_item_windows_protection_state_detected_malware_state_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateCountReq return NewItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateCountRe return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateCountRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateCountRequestBuilder when successful func (m *ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateCountRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateCountRequestBuilder) { return NewItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_windows_protection_state_detected_malware_state_request_builder.go b/users/item_managed_devices_item_windows_protection_state_detected_malware_state_request_builder.go index cec7b4c8243..baffc3c1246 100644 --- a/users/item_managed_devices_item_windows_protection_state_detected_malware_state_request_builder.go +++ b/users/item_managed_devices_item_windows_protection_state_detected_malware_state_request_builder.go @@ -47,6 +47,7 @@ type ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateRequestBuil Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByWindowsDeviceMalwareStateId provides operations to manage the detectedMalwareState property of the microsoft.graph.windowsProtectionState entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateWindowsDeviceMalwareStateItemRequestBuilder when successful func (m *ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateRequestBuilder) ByWindowsDeviceMalwareStateId(windowsDeviceMalwareStateId string)(*ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateWindowsDeviceMalwareStateItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateRequest return NewItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get device malware list +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a WindowsDeviceMalwareStateCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsDeviceMalwareStateCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateRequest return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsDeviceMalwareStateCollectionResponseable), nil } // Post create new navigation property to detectedMalwareState for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a WindowsDeviceMalwareStateable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsDeviceMalwareStateable, requestConfiguration *ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsDeviceMalwareStateable, error) { @@ -117,6 +120,7 @@ func (m *ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateRequest return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsDeviceMalwareStateable), nil } // ToGetRequestInformation device malware list +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateRequest return requestInfo, nil } // ToPostRequestInformation create new navigation property to detectedMalwareState for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsDeviceMalwareStateable, requestConfiguration *ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateRequestBuilder when successful func (m *ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateRequestBuilder) { return NewItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_windows_protection_state_request_builder.go b/users/item_managed_devices_item_windows_protection_state_request_builder.go index 94ef848436c..5435313aacc 100644 --- a/users/item_managed_devices_item_windows_protection_state_request_builder.go +++ b/users/item_managed_devices_item_windows_protection_state_request_builder.go @@ -55,6 +55,7 @@ func NewItemManagedDevicesItemWindowsProtectionStateRequestBuilder(rawUrl string return NewItemManagedDevicesItemWindowsProtectionStateRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property windowsProtectionState for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemWindowsProtectionStateRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemManagedDevicesItemWindowsProtectionStateRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -76,6 +77,7 @@ func (m *ItemManagedDevicesItemWindowsProtectionStateRequestBuilder) DetectedMal return NewItemManagedDevicesItemWindowsProtectionStateDetectedMalwareStateRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the device protection status. This property is read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a WindowsProtectionStateable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemWindowsProtectionStateRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemManagedDevicesItemWindowsProtectionStateRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsProtectionStateable, error) { @@ -96,6 +98,7 @@ func (m *ItemManagedDevicesItemWindowsProtectionStateRequestBuilder) Get(ctx con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsProtectionStateable), nil } // Patch update the navigation property windowsProtectionState in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a WindowsProtectionStateable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemWindowsProtectionStateRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsProtectionStateable, requestConfiguration *ItemManagedDevicesItemWindowsProtectionStateRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsProtectionStateable, error) { @@ -116,6 +119,7 @@ func (m *ItemManagedDevicesItemWindowsProtectionStateRequestBuilder) Patch(ctx c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsProtectionStateable), nil } // ToDeleteRequestInformation delete navigation property windowsProtectionState for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemWindowsProtectionStateRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemWindowsProtectionStateRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -127,6 +131,7 @@ func (m *ItemManagedDevicesItemWindowsProtectionStateRequestBuilder) ToDeleteReq return requestInfo, nil } // ToGetRequestInformation the device protection status. This property is read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemWindowsProtectionStateRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemWindowsProtectionStateRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,6 +146,7 @@ func (m *ItemManagedDevicesItemWindowsProtectionStateRequestBuilder) ToGetReques return requestInfo, nil } // ToPatchRequestInformation update the navigation property windowsProtectionState in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemWindowsProtectionStateRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsProtectionStateable, requestConfiguration *ItemManagedDevicesItemWindowsProtectionStateRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +162,7 @@ func (m *ItemManagedDevicesItemWindowsProtectionStateRequestBuilder) ToPatchRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemWindowsProtectionStateRequestBuilder when successful func (m *ItemManagedDevicesItemWindowsProtectionStateRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemWindowsProtectionStateRequestBuilder) { return NewItemManagedDevicesItemWindowsProtectionStateRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_item_wipe_request_builder.go b/users/item_managed_devices_item_wipe_request_builder.go index 4f0b65a6e59..219ddf8a93e 100644 --- a/users/item_managed_devices_item_wipe_request_builder.go +++ b/users/item_managed_devices_item_wipe_request_builder.go @@ -31,6 +31,7 @@ func NewItemManagedDevicesItemWipeRequestBuilder(rawUrl string, requestAdapter i return NewItemManagedDevicesItemWipeRequestBuilderInternal(urlParams, requestAdapter) } // Post wipe a device +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesItemWipeRequestBuilder) Post(ctx context.Context, body ItemManagedDevicesItemWipePostRequestBodyable, requestConfiguration *ItemManagedDevicesItemWipeRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemManagedDevicesItemWipeRequestBuilder) Post(ctx context.Context, bod return nil } // ToPostRequestInformation wipe a device +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesItemWipeRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemManagedDevicesItemWipePostRequestBodyable, requestConfiguration *ItemManagedDevicesItemWipeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -62,6 +64,7 @@ func (m *ItemManagedDevicesItemWipeRequestBuilder) ToPostRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesItemWipeRequestBuilder when successful func (m *ItemManagedDevicesItemWipeRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesItemWipeRequestBuilder) { return NewItemManagedDevicesItemWipeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_managed_device_item_request_builder.go b/users/item_managed_devices_managed_device_item_request_builder.go index 931a598d5f5..fb682e32829 100644 --- a/users/item_managed_devices_managed_device_item_request_builder.go +++ b/users/item_managed_devices_managed_device_item_request_builder.go @@ -85,6 +85,7 @@ func (m *ItemManagedDevicesManagedDeviceItemRequestBuilder) CreateDeviceLogColle return NewItemManagedDevicesItemCreateDeviceLogCollectionRequestRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Delete delete navigation property managedDevices for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesManagedDeviceItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemManagedDevicesManagedDeviceItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -156,6 +157,7 @@ func (m *ItemManagedDevicesManagedDeviceItemRequestBuilder) EnrollNowAction()(*I return NewItemManagedDevicesItemEnrollNowActionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the managed devices associated with the user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ManagedDeviceable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesManagedDeviceItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemManagedDevicesManagedDeviceItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ManagedDeviceable, error) { @@ -236,6 +238,7 @@ func (m *ItemManagedDevicesManagedDeviceItemRequestBuilder) OverrideComplianceSt return NewItemManagedDevicesItemOverrideComplianceStateRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property managedDevices in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ManagedDeviceable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesManagedDeviceItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ManagedDeviceable, requestConfiguration *ItemManagedDevicesManagedDeviceItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ManagedDeviceable, error) { @@ -371,6 +374,7 @@ func (m *ItemManagedDevicesManagedDeviceItemRequestBuilder) SyncDevice()(*ItemMa return NewItemManagedDevicesItemSyncDeviceRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property managedDevices for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesManagedDeviceItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesManagedDeviceItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -382,6 +386,7 @@ func (m *ItemManagedDevicesManagedDeviceItemRequestBuilder) ToDeleteRequestInfor return requestInfo, nil } // ToGetRequestInformation the managed devices associated with the user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesManagedDeviceItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesManagedDeviceItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -396,6 +401,7 @@ func (m *ItemManagedDevicesManagedDeviceItemRequestBuilder) ToGetRequestInformat return requestInfo, nil } // ToPatchRequestInformation update the navigation property managedDevices in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesManagedDeviceItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ManagedDeviceable, requestConfiguration *ItemManagedDevicesManagedDeviceItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -446,6 +452,7 @@ func (m *ItemManagedDevicesManagedDeviceItemRequestBuilder) Wipe()(*ItemManagedD return NewItemManagedDevicesItemWipeRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesManagedDeviceItemRequestBuilder when successful func (m *ItemManagedDevicesManagedDeviceItemRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesManagedDeviceItemRequestBuilder) { return NewItemManagedDevicesManagedDeviceItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_move_devices_to_o_u_request_builder.go b/users/item_managed_devices_move_devices_to_o_u_request_builder.go index 14e797a3844..ab3688095df 100644 --- a/users/item_managed_devices_move_devices_to_o_u_request_builder.go +++ b/users/item_managed_devices_move_devices_to_o_u_request_builder.go @@ -31,6 +31,7 @@ func NewItemManagedDevicesMoveDevicesToOURequestBuilder(rawUrl string, requestAd return NewItemManagedDevicesMoveDevicesToOURequestBuilderInternal(urlParams, requestAdapter) } // Post invoke action moveDevicesToOU +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesMoveDevicesToOURequestBuilder) Post(ctx context.Context, body ItemManagedDevicesMoveDevicesToOUPostRequestBodyable, requestConfiguration *ItemManagedDevicesMoveDevicesToOURequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemManagedDevicesMoveDevicesToOURequestBuilder) Post(ctx context.Conte return nil } // ToPostRequestInformation invoke action moveDevicesToOU +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesMoveDevicesToOURequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemManagedDevicesMoveDevicesToOUPostRequestBodyable, requestConfiguration *ItemManagedDevicesMoveDevicesToOURequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -62,6 +64,7 @@ func (m *ItemManagedDevicesMoveDevicesToOURequestBuilder) ToPostRequestInformati return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesMoveDevicesToOURequestBuilder when successful func (m *ItemManagedDevicesMoveDevicesToOURequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesMoveDevicesToOURequestBuilder) { return NewItemManagedDevicesMoveDevicesToOURequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_managed_devices_request_builder.go b/users/item_managed_devices_request_builder.go index 2e7fe0deec7..a13772fe34a 100644 --- a/users/item_managed_devices_request_builder.go +++ b/users/item_managed_devices_request_builder.go @@ -47,6 +47,7 @@ type ItemManagedDevicesRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // AppDiagnosticsWithUpn provides operations to call the appDiagnostics method. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesAppDiagnosticsWithUpnRequestBuilder when successful func (m *ItemManagedDevicesRequestBuilder) AppDiagnosticsWithUpn(upn *string)(*ItemManagedDevicesAppDiagnosticsWithUpnRequestBuilder) { return NewItemManagedDevicesAppDiagnosticsWithUpnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, upn) @@ -67,6 +68,7 @@ func (m *ItemManagedDevicesRequestBuilder) BulkSetCloudPcReviewStatus()(*ItemMan return NewItemManagedDevicesBulkSetCloudPcReviewStatusRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ByManagedDeviceId provides operations to manage the managedDevices property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesManagedDeviceItemRequestBuilder when successful func (m *ItemManagedDevicesRequestBuilder) ByManagedDeviceId(managedDeviceId string)(*ItemManagedDevicesManagedDeviceItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -107,6 +109,7 @@ func (m *ItemManagedDevicesRequestBuilder) ExecuteAction()(*ItemManagedDevicesEx return NewItemManagedDevicesExecuteActionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the managed devices associated with the user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ManagedDeviceCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemManagedDevicesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ManagedDeviceCollectionResponseable, error) { @@ -132,6 +135,7 @@ func (m *ItemManagedDevicesRequestBuilder) MoveDevicesToOU()(*ItemManagedDevices return NewItemManagedDevicesMoveDevicesToOURequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Post create new navigation property to managedDevices for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ManagedDeviceable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemManagedDevicesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ManagedDeviceable, requestConfiguration *ItemManagedDevicesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ManagedDeviceable, error) { @@ -152,6 +156,7 @@ func (m *ItemManagedDevicesRequestBuilder) Post(ctx context.Context, body ie233e return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ManagedDeviceable), nil } // ToGetRequestInformation the managed devices associated with the user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -166,6 +171,7 @@ func (m *ItemManagedDevicesRequestBuilder) ToGetRequestInformation(ctx context.C return requestInfo, nil } // ToPostRequestInformation create new navigation property to managedDevices for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagedDevicesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ManagedDeviceable, requestConfiguration *ItemManagedDevicesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -181,6 +187,7 @@ func (m *ItemManagedDevicesRequestBuilder) ToPostRequestInformation(ctx context. return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagedDevicesRequestBuilder when successful func (m *ItemManagedDevicesRequestBuilder) WithUrl(rawUrl string)(*ItemManagedDevicesRequestBuilder) { return NewItemManagedDevicesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_manager_ref_request_builder.go b/users/item_manager_ref_request_builder.go index e5dfd868256..c8d458faf0f 100644 --- a/users/item_manager_ref_request_builder.go +++ b/users/item_manager_ref_request_builder.go @@ -46,6 +46,7 @@ func NewItemManagerRefRequestBuilder(rawUrl string, requestAdapter i2ae4187f7dae return NewItemManagerRefRequestBuilderInternal(urlParams, requestAdapter) } // Delete remove a user's manager. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -65,6 +66,7 @@ func (m *ItemManagerRefRequestBuilder) Delete(ctx context.Context, requestConfig return nil } // Get returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *string when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -88,6 +90,7 @@ func (m *ItemManagerRefRequestBuilder) Get(ctx context.Context, requestConfigura return res.(*string), nil } // Put assign a user's manager. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -107,6 +110,7 @@ func (m *ItemManagerRefRequestBuilder) Put(ctx context.Context, body ie233ee762e return nil } // ToDeleteRequestInformation remove a user's manager. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagerRefRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemManagerRefRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -118,6 +122,7 @@ func (m *ItemManagerRefRequestBuilder) ToDeleteRequestInformation(ctx context.Co return requestInfo, nil } // ToGetRequestInformation returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagerRefRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagerRefRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -129,6 +134,7 @@ func (m *ItemManagerRefRequestBuilder) ToGetRequestInformation(ctx context.Conte return requestInfo, nil } // ToPutRequestInformation assign a user's manager. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagerRefRequestBuilder) ToPutRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ReferenceUpdateable, requestConfiguration *ItemManagerRefRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -144,6 +150,7 @@ func (m *ItemManagerRefRequestBuilder) ToPutRequestInformation(ctx context.Conte return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagerRefRequestBuilder when successful func (m *ItemManagerRefRequestBuilder) WithUrl(rawUrl string)(*ItemManagerRefRequestBuilder) { return NewItemManagerRefRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_manager_request_builder.go b/users/item_manager_request_builder.go index ea7d0bf1f30..c28fa850a75 100644 --- a/users/item_manager_request_builder.go +++ b/users/item_manager_request_builder.go @@ -41,6 +41,7 @@ func NewItemManagerRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee26 return NewItemManagerRequestBuilderInternal(urlParams, requestAdapter) } // Get returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DirectoryObjectable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -69,6 +70,7 @@ func (m *ItemManagerRequestBuilder) Ref()(*ItemManagerRefRequestBuilder) { return NewItemManagerRefRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemManagerRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagerRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -83,6 +85,7 @@ func (m *ItemManagerRequestBuilder) ToGetRequestInformation(ctx context.Context, return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemManagerRequestBuilder when successful func (m *ItemManagerRequestBuilder) WithUrl(rawUrl string)(*ItemManagerRequestBuilder) { return NewItemManagerRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_member_of_count_request_builder.go b/users/item_member_of_count_request_builder.go index 49221cabda7..08e885779b6 100644 --- a/users/item_member_of_count_request_builder.go +++ b/users/item_member_of_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemMemberOfCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7 return NewItemMemberOfCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMemberOfCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMemberOfCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemMemberOfCountRequestBuilder) Get(ctx context.Context, requestConfig return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMemberOfCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMemberOfCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemMemberOfCountRequestBuilder) ToGetRequestInformation(ctx context.Co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMemberOfCountRequestBuilder when successful func (m *ItemMemberOfCountRequestBuilder) WithUrl(rawUrl string)(*ItemMemberOfCountRequestBuilder) { return NewItemMemberOfCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_member_of_directory_object_item_request_builder.go b/users/item_member_of_directory_object_item_request_builder.go index fa77807a8dd..d4c115061a6 100644 --- a/users/item_member_of_directory_object_item_request_builder.go +++ b/users/item_member_of_directory_object_item_request_builder.go @@ -41,6 +41,7 @@ func NewItemMemberOfDirectoryObjectItemRequestBuilder(rawUrl string, requestAdap return NewItemMemberOfDirectoryObjectItemRequestBuilderInternal(urlParams, requestAdapter) } // Get the groups, directory roles, and administrative units that the user is a member of. Read-only. Nullable. Supports $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DirectoryObjectable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMemberOfDirectoryObjectItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMemberOfDirectoryObjectItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryObjectable, error) { @@ -76,6 +77,7 @@ func (m *ItemMemberOfDirectoryObjectItemRequestBuilder) GraphGroup()(*ItemMember return NewItemMemberOfItemGraphGroupRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation the groups, directory roles, and administrative units that the user is a member of. Read-only. Nullable. Supports $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMemberOfDirectoryObjectItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMemberOfDirectoryObjectItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -90,6 +92,7 @@ func (m *ItemMemberOfDirectoryObjectItemRequestBuilder) ToGetRequestInformation( return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMemberOfDirectoryObjectItemRequestBuilder when successful func (m *ItemMemberOfDirectoryObjectItemRequestBuilder) WithUrl(rawUrl string)(*ItemMemberOfDirectoryObjectItemRequestBuilder) { return NewItemMemberOfDirectoryObjectItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_member_of_graph_administrative_unit_count_request_builder.go b/users/item_member_of_graph_administrative_unit_count_request_builder.go index bb4579be7db..dd47dc98dc0 100644 --- a/users/item_member_of_graph_administrative_unit_count_request_builder.go +++ b/users/item_member_of_graph_administrative_unit_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemMemberOfGraphAdministrativeUnitCountRequestBuilder(rawUrl string, re return NewItemMemberOfGraphAdministrativeUnitCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMemberOfGraphAdministrativeUnitCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMemberOfGraphAdministrativeUnitCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemMemberOfGraphAdministrativeUnitCountRequestBuilder) Get(ctx context return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMemberOfGraphAdministrativeUnitCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMemberOfGraphAdministrativeUnitCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemMemberOfGraphAdministrativeUnitCountRequestBuilder) ToGetRequestInf return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMemberOfGraphAdministrativeUnitCountRequestBuilder when successful func (m *ItemMemberOfGraphAdministrativeUnitCountRequestBuilder) WithUrl(rawUrl string)(*ItemMemberOfGraphAdministrativeUnitCountRequestBuilder) { return NewItemMemberOfGraphAdministrativeUnitCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_member_of_graph_administrative_unit_request_builder.go b/users/item_member_of_graph_administrative_unit_request_builder.go index 855b0d9323f..53520343007 100644 --- a/users/item_member_of_graph_administrative_unit_request_builder.go +++ b/users/item_member_of_graph_administrative_unit_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemMemberOfGraphAdministrativeUnitRequestBuilder) Count()(*ItemMemberO return NewItemMemberOfGraphAdministrativeUnitCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AdministrativeUnitCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMemberOfGraphAdministrativeUnitRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMemberOfGraphAdministrativeUnitRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdministrativeUnitCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemMemberOfGraphAdministrativeUnitRequestBuilder) Get(ctx context.Cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdministrativeUnitCollectionResponseable), nil } // ToGetRequestInformation get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMemberOfGraphAdministrativeUnitRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMemberOfGraphAdministrativeUnitRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemMemberOfGraphAdministrativeUnitRequestBuilder) ToGetRequestInformat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMemberOfGraphAdministrativeUnitRequestBuilder when successful func (m *ItemMemberOfGraphAdministrativeUnitRequestBuilder) WithUrl(rawUrl string)(*ItemMemberOfGraphAdministrativeUnitRequestBuilder) { return NewItemMemberOfGraphAdministrativeUnitRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_member_of_graph_directory_role_count_request_builder.go b/users/item_member_of_graph_directory_role_count_request_builder.go index 63e8cff026e..04b6fed2992 100644 --- a/users/item_member_of_graph_directory_role_count_request_builder.go +++ b/users/item_member_of_graph_directory_role_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemMemberOfGraphDirectoryRoleCountRequestBuilder(rawUrl string, request return NewItemMemberOfGraphDirectoryRoleCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMemberOfGraphDirectoryRoleCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMemberOfGraphDirectoryRoleCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemMemberOfGraphDirectoryRoleCountRequestBuilder) Get(ctx context.Cont return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMemberOfGraphDirectoryRoleCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMemberOfGraphDirectoryRoleCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemMemberOfGraphDirectoryRoleCountRequestBuilder) ToGetRequestInformat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMemberOfGraphDirectoryRoleCountRequestBuilder when successful func (m *ItemMemberOfGraphDirectoryRoleCountRequestBuilder) WithUrl(rawUrl string)(*ItemMemberOfGraphDirectoryRoleCountRequestBuilder) { return NewItemMemberOfGraphDirectoryRoleCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_member_of_graph_directory_role_request_builder.go b/users/item_member_of_graph_directory_role_request_builder.go index eb229531bb5..db9641f0fac 100644 --- a/users/item_member_of_graph_directory_role_request_builder.go +++ b/users/item_member_of_graph_directory_role_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemMemberOfGraphDirectoryRoleRequestBuilder) Count()(*ItemMemberOfGrap return NewItemMemberOfGraphDirectoryRoleCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get the items of type microsoft.graph.directoryRole in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DirectoryRoleCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMemberOfGraphDirectoryRoleRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMemberOfGraphDirectoryRoleRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryRoleCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemMemberOfGraphDirectoryRoleRequestBuilder) Get(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryRoleCollectionResponseable), nil } // ToGetRequestInformation get the items of type microsoft.graph.directoryRole in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMemberOfGraphDirectoryRoleRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMemberOfGraphDirectoryRoleRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemMemberOfGraphDirectoryRoleRequestBuilder) ToGetRequestInformation(c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMemberOfGraphDirectoryRoleRequestBuilder when successful func (m *ItemMemberOfGraphDirectoryRoleRequestBuilder) WithUrl(rawUrl string)(*ItemMemberOfGraphDirectoryRoleRequestBuilder) { return NewItemMemberOfGraphDirectoryRoleRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_member_of_graph_group_count_request_builder.go b/users/item_member_of_graph_group_count_request_builder.go index 972b00b7294..9c9bac7bd69 100644 --- a/users/item_member_of_graph_group_count_request_builder.go +++ b/users/item_member_of_graph_group_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemMemberOfGraphGroupCountRequestBuilder(rawUrl string, requestAdapter return NewItemMemberOfGraphGroupCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMemberOfGraphGroupCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMemberOfGraphGroupCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemMemberOfGraphGroupCountRequestBuilder) Get(ctx context.Context, req return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMemberOfGraphGroupCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMemberOfGraphGroupCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemMemberOfGraphGroupCountRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMemberOfGraphGroupCountRequestBuilder when successful func (m *ItemMemberOfGraphGroupCountRequestBuilder) WithUrl(rawUrl string)(*ItemMemberOfGraphGroupCountRequestBuilder) { return NewItemMemberOfGraphGroupCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_member_of_graph_group_request_builder.go b/users/item_member_of_graph_group_request_builder.go index f1793ebe8d4..2b501fd46c7 100644 --- a/users/item_member_of_graph_group_request_builder.go +++ b/users/item_member_of_graph_group_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemMemberOfGraphGroupRequestBuilder) Count()(*ItemMemberOfGraphGroupCo return NewItemMemberOfGraphGroupCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get groups, directory roles, and administrative units that the user is a direct member of. This operation isn't transitive. To retrieve groups, directory roles, and administrative units that the user is a member through transitive membership, use the List user transitive memberOf API. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a GroupCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -81,6 +82,7 @@ func (m *ItemMemberOfGraphGroupRequestBuilder) Get(ctx context.Context, requestC return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GroupCollectionResponseable), nil } // ToGetRequestInformation get groups, directory roles, and administrative units that the user is a direct member of. This operation isn't transitive. To retrieve groups, directory roles, and administrative units that the user is a member through transitive membership, use the List user transitive memberOf API. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMemberOfGraphGroupRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMemberOfGraphGroupRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +97,7 @@ func (m *ItemMemberOfGraphGroupRequestBuilder) ToGetRequestInformation(ctx conte return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMemberOfGraphGroupRequestBuilder when successful func (m *ItemMemberOfGraphGroupRequestBuilder) WithUrl(rawUrl string)(*ItemMemberOfGraphGroupRequestBuilder) { return NewItemMemberOfGraphGroupRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_member_of_item_graph_administrative_unit_request_builder.go b/users/item_member_of_item_graph_administrative_unit_request_builder.go index f7352eaa00b..cc4c505129b 100644 --- a/users/item_member_of_item_graph_administrative_unit_request_builder.go +++ b/users/item_member_of_item_graph_administrative_unit_request_builder.go @@ -41,6 +41,7 @@ func NewItemMemberOfItemGraphAdministrativeUnitRequestBuilder(rawUrl string, req return NewItemMemberOfItemGraphAdministrativeUnitRequestBuilderInternal(urlParams, requestAdapter) } // Get get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AdministrativeUnitable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMemberOfItemGraphAdministrativeUnitRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMemberOfItemGraphAdministrativeUnitRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdministrativeUnitable, error) { @@ -61,6 +62,7 @@ func (m *ItemMemberOfItemGraphAdministrativeUnitRequestBuilder) Get(ctx context. return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdministrativeUnitable), nil } // ToGetRequestInformation get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMemberOfItemGraphAdministrativeUnitRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMemberOfItemGraphAdministrativeUnitRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemMemberOfItemGraphAdministrativeUnitRequestBuilder) ToGetRequestInfo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMemberOfItemGraphAdministrativeUnitRequestBuilder when successful func (m *ItemMemberOfItemGraphAdministrativeUnitRequestBuilder) WithUrl(rawUrl string)(*ItemMemberOfItemGraphAdministrativeUnitRequestBuilder) { return NewItemMemberOfItemGraphAdministrativeUnitRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_member_of_item_graph_directory_role_request_builder.go b/users/item_member_of_item_graph_directory_role_request_builder.go index d9b1ac092fd..0a577642577 100644 --- a/users/item_member_of_item_graph_directory_role_request_builder.go +++ b/users/item_member_of_item_graph_directory_role_request_builder.go @@ -41,6 +41,7 @@ func NewItemMemberOfItemGraphDirectoryRoleRequestBuilder(rawUrl string, requestA return NewItemMemberOfItemGraphDirectoryRoleRequestBuilderInternal(urlParams, requestAdapter) } // Get get the item of type microsoft.graph.directoryObject as microsoft.graph.directoryRole +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DirectoryRoleable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMemberOfItemGraphDirectoryRoleRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMemberOfItemGraphDirectoryRoleRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryRoleable, error) { @@ -61,6 +62,7 @@ func (m *ItemMemberOfItemGraphDirectoryRoleRequestBuilder) Get(ctx context.Conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryRoleable), nil } // ToGetRequestInformation get the item of type microsoft.graph.directoryObject as microsoft.graph.directoryRole +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMemberOfItemGraphDirectoryRoleRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMemberOfItemGraphDirectoryRoleRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemMemberOfItemGraphDirectoryRoleRequestBuilder) ToGetRequestInformati return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMemberOfItemGraphDirectoryRoleRequestBuilder when successful func (m *ItemMemberOfItemGraphDirectoryRoleRequestBuilder) WithUrl(rawUrl string)(*ItemMemberOfItemGraphDirectoryRoleRequestBuilder) { return NewItemMemberOfItemGraphDirectoryRoleRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_member_of_item_graph_group_request_builder.go b/users/item_member_of_item_graph_group_request_builder.go index 65b44699bce..5efc363019f 100644 --- a/users/item_member_of_item_graph_group_request_builder.go +++ b/users/item_member_of_item_graph_group_request_builder.go @@ -41,6 +41,7 @@ func NewItemMemberOfItemGraphGroupRequestBuilder(rawUrl string, requestAdapter i return NewItemMemberOfItemGraphGroupRequestBuilderInternal(urlParams, requestAdapter) } // Get get groups, directory roles, and administrative units that the user is a direct member of. This operation isn't transitive. To retrieve groups, directory roles, and administrative units that the user is a member through transitive membership, use the List user transitive memberOf API. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Groupable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -64,6 +65,7 @@ func (m *ItemMemberOfItemGraphGroupRequestBuilder) Get(ctx context.Context, requ return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Groupable), nil } // ToGetRequestInformation get groups, directory roles, and administrative units that the user is a direct member of. This operation isn't transitive. To retrieve groups, directory roles, and administrative units that the user is a member through transitive membership, use the List user transitive memberOf API. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMemberOfItemGraphGroupRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMemberOfItemGraphGroupRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -78,6 +80,7 @@ func (m *ItemMemberOfItemGraphGroupRequestBuilder) ToGetRequestInformation(ctx c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMemberOfItemGraphGroupRequestBuilder when successful func (m *ItemMemberOfItemGraphGroupRequestBuilder) WithUrl(rawUrl string)(*ItemMemberOfItemGraphGroupRequestBuilder) { return NewItemMemberOfItemGraphGroupRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_member_of_request_builder.go b/users/item_member_of_request_builder.go index b3e632e5627..6b13e542f41 100644 --- a/users/item_member_of_request_builder.go +++ b/users/item_member_of_request_builder.go @@ -40,6 +40,7 @@ type ItemMemberOfRequestBuilderGetRequestConfiguration struct { QueryParameters *ItemMemberOfRequestBuilderGetQueryParameters } // ByDirectoryObjectId provides operations to manage the memberOf property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMemberOfDirectoryObjectItemRequestBuilder when successful func (m *ItemMemberOfRequestBuilder) ByDirectoryObjectId(directoryObjectId string)(*ItemMemberOfDirectoryObjectItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -70,6 +71,7 @@ func (m *ItemMemberOfRequestBuilder) Count()(*ItemMemberOfCountRequestBuilder) { return NewItemMemberOfCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get groups, directory roles, and administrative units that the user is a direct member of. This operation isn't transitive. To retrieve groups, directory roles, and administrative units that the user is a member through transitive membership, use the List user transitive memberOf API. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DirectoryObjectCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -108,6 +110,7 @@ func (m *ItemMemberOfRequestBuilder) GraphGroup()(*ItemMemberOfGraphGroupRequest return NewItemMemberOfGraphGroupRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get groups, directory roles, and administrative units that the user is a direct member of. This operation isn't transitive. To retrieve groups, directory roles, and administrative units that the user is a member through transitive membership, use the List user transitive memberOf API. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMemberOfRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMemberOfRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +125,7 @@ func (m *ItemMemberOfRequestBuilder) ToGetRequestInformation(ctx context.Context return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMemberOfRequestBuilder when successful func (m *ItemMemberOfRequestBuilder) WithUrl(rawUrl string)(*ItemMemberOfRequestBuilder) { return NewItemMemberOfRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_messages_count_request_builder.go b/users/item_messages_count_request_builder.go index 40bf23f55ea..429ea4ec614 100644 --- a/users/item_messages_count_request_builder.go +++ b/users/item_messages_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemMessagesCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7 return NewItemMessagesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMessagesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMessagesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemMessagesCountRequestBuilder) Get(ctx context.Context, requestConfig return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMessagesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMessagesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemMessagesCountRequestBuilder) ToGetRequestInformation(ctx context.Co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMessagesCountRequestBuilder when successful func (m *ItemMessagesCountRequestBuilder) WithUrl(rawUrl string)(*ItemMessagesCountRequestBuilder) { return NewItemMessagesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_messages_delta_request_builder.go b/users/item_messages_delta_request_builder.go index 599fa2f2242..c683a0499ca 100644 --- a/users/item_messages_delta_request_builder.go +++ b/users/item_messages_delta_request_builder.go @@ -78,6 +78,7 @@ func (m *ItemMessagesDeltaRequestBuilder) Get(ctx context.Context, requestConfig return res.(ItemMessagesDeltaResponseable), nil } // GetAsDeltaGetResponse get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemMessagesDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -101,6 +102,7 @@ func (m *ItemMessagesDeltaRequestBuilder) GetAsDeltaGetResponse(ctx context.Cont return res.(ItemMessagesDeltaGetResponseable), nil } // ToGetRequestInformation get a set of messages that have been added, deleted, or updated in a specified folder. A delta function call for messages in a folder is similar to a GET request, except that by appropriatelyapplying state tokens in one or more of these calls, you can [query for incremental changes in the messages inthat folder](/graph/delta-query-messages). This allows you to maintain and synchronize a local store of a user's messages withouthaving to fetch the entire set of messages from the server every time. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMessagesDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMessagesDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -115,6 +117,7 @@ func (m *ItemMessagesDeltaRequestBuilder) ToGetRequestInformation(ctx context.Co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMessagesDeltaRequestBuilder when successful func (m *ItemMessagesDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemMessagesDeltaRequestBuilder) { return NewItemMessagesDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_messages_item_attachments_attachment_item_request_builder.go b/users/item_messages_item_attachments_attachment_item_request_builder.go index d84e9395c54..02cecc83034 100644 --- a/users/item_messages_item_attachments_attachment_item_request_builder.go +++ b/users/item_messages_item_attachments_attachment_item_request_builder.go @@ -48,6 +48,7 @@ func NewItemMessagesItemAttachmentsAttachmentItemRequestBuilder(rawUrl string, r return NewItemMessagesItemAttachmentsAttachmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMessagesItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemMessagesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,6 +65,7 @@ func (m *ItemMessagesItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx con return nil } // Get the fileAttachment and itemAttachment attachments for the message. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMessagesItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMessagesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -84,6 +86,7 @@ func (m *ItemMessagesItemAttachmentsAttachmentItemRequestBuilder) Get(ctx contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToDeleteRequestInformation delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMessagesItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemMessagesItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +98,7 @@ func (m *ItemMessagesItemAttachmentsAttachmentItemRequestBuilder) ToDeleteReques return requestInfo, nil } // ToGetRequestInformation the fileAttachment and itemAttachment attachments for the message. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMessagesItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMessagesItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +113,7 @@ func (m *ItemMessagesItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMessagesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemMessagesItemAttachmentsAttachmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemMessagesItemAttachmentsAttachmentItemRequestBuilder) { return NewItemMessagesItemAttachmentsAttachmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_messages_item_attachments_count_request_builder.go b/users/item_messages_item_attachments_count_request_builder.go index ee74a1604a1..299a7c837c5 100644 --- a/users/item_messages_item_attachments_count_request_builder.go +++ b/users/item_messages_item_attachments_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemMessagesItemAttachmentsCountRequestBuilder(rawUrl string, requestAda return NewItemMessagesItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMessagesItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMessagesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemMessagesItemAttachmentsCountRequestBuilder) Get(ctx context.Context return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMessagesItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMessagesItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemMessagesItemAttachmentsCountRequestBuilder) ToGetRequestInformation return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMessagesItemAttachmentsCountRequestBuilder when successful func (m *ItemMessagesItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemMessagesItemAttachmentsCountRequestBuilder) { return NewItemMessagesItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_messages_item_attachments_create_upload_session_request_builder.go b/users/item_messages_item_attachments_create_upload_session_request_builder.go index 982c38d2dd3..4797b456c9b 100644 --- a/users/item_messages_item_attachments_create_upload_session_request_builder.go +++ b/users/item_messages_item_attachments_create_upload_session_request_builder.go @@ -32,6 +32,7 @@ func NewItemMessagesItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl stri return NewItemMessagesItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemMessagesItemAttachmentsCreateUploadSessionRequestBuilder) Post(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMessagesItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemMessagesItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemMessagesItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemMessagesItemAttachmentsCreateUploadSessionRequestBuilder) ToPostReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMessagesItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemMessagesItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemMessagesItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemMessagesItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_messages_item_attachments_request_builder.go b/users/item_messages_item_attachments_request_builder.go index cefa5bf8f1f..2dad91f487b 100644 --- a/users/item_messages_item_attachments_request_builder.go +++ b/users/item_messages_item_attachments_request_builder.go @@ -47,6 +47,7 @@ type ItemMessagesItemAttachmentsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentId provides operations to manage the attachments property of the microsoft.graph.message entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMessagesItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemMessagesItemAttachmentsRequestBuilder) ByAttachmentId(attachmentId string)(*ItemMessagesItemAttachmentsAttachmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemMessagesItemAttachmentsRequestBuilder) CreateUploadSession()(*ItemM return NewItemMessagesItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the fileAttachment and itemAttachment attachments for the message. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMessagesItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMessagesItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemMessagesItemAttachmentsRequestBuilder) Get(ctx context.Context, req return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } // Post create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMessagesItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemMessagesItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -122,6 +125,7 @@ func (m *ItemMessagesItemAttachmentsRequestBuilder) Post(ctx context.Context, bo return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToGetRequestInformation the fileAttachment and itemAttachment attachments for the message. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMessagesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMessagesItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemMessagesItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMessagesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemMessagesItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemMessagesItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMessagesItemAttachmentsRequestBuilder when successful func (m *ItemMessagesItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemMessagesItemAttachmentsRequestBuilder) { return NewItemMessagesItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_messages_item_copy_request_builder.go b/users/item_messages_item_copy_request_builder.go index 0f9b65c8132..e09f5e53c68 100644 --- a/users/item_messages_item_copy_request_builder.go +++ b/users/item_messages_item_copy_request_builder.go @@ -32,6 +32,7 @@ func NewItemMessagesItemCopyRequestBuilder(rawUrl string, requestAdapter i2ae418 return NewItemMessagesItemCopyRequestBuilderInternal(urlParams, requestAdapter) } // Post copy a message to a folder within the user's mailbox. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Messageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemMessagesItemCopyRequestBuilder) Post(ctx context.Context, body Item return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable), nil } // ToPostRequestInformation copy a message to a folder within the user's mailbox. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMessagesItemCopyRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemMessagesItemCopyPostRequestBodyable, requestConfiguration *ItemMessagesItemCopyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemMessagesItemCopyRequestBuilder) ToPostRequestInformation(ctx contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMessagesItemCopyRequestBuilder when successful func (m *ItemMessagesItemCopyRequestBuilder) WithUrl(rawUrl string)(*ItemMessagesItemCopyRequestBuilder) { return NewItemMessagesItemCopyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_messages_item_create_forward_request_builder.go b/users/item_messages_item_create_forward_request_builder.go index b1f5288c4f2..6c97dc94e29 100644 --- a/users/item_messages_item_create_forward_request_builder.go +++ b/users/item_messages_item_create_forward_request_builder.go @@ -32,6 +32,7 @@ func NewItemMessagesItemCreateForwardRequestBuilder(rawUrl string, requestAdapte return NewItemMessagesItemCreateForwardRequestBuilderInternal(urlParams, requestAdapter) } // Post create a draft to forward an existing message, in either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, forward a message in a single operation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Messageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemMessagesItemCreateForwardRequestBuilder) Post(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable), nil } // ToPostRequestInformation create a draft to forward an existing message, in either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, forward a message in a single operation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMessagesItemCreateForwardRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemMessagesItemCreateForwardPostRequestBodyable, requestConfiguration *ItemMessagesItemCreateForwardRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemMessagesItemCreateForwardRequestBuilder) ToPostRequestInformation(c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMessagesItemCreateForwardRequestBuilder when successful func (m *ItemMessagesItemCreateForwardRequestBuilder) WithUrl(rawUrl string)(*ItemMessagesItemCreateForwardRequestBuilder) { return NewItemMessagesItemCreateForwardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_messages_item_create_reply_all_request_builder.go b/users/item_messages_item_create_reply_all_request_builder.go index de5c71ee00e..410ccecafd0 100644 --- a/users/item_messages_item_create_reply_all_request_builder.go +++ b/users/item_messages_item_create_reply_all_request_builder.go @@ -32,6 +32,7 @@ func NewItemMessagesItemCreateReplyAllRequestBuilder(rawUrl string, requestAdapt return NewItemMessagesItemCreateReplyAllRequestBuilderInternal(urlParams, requestAdapter) } // Post create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties.- You can update the draft message later. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Messageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemMessagesItemCreateReplyAllRequestBuilder) Post(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable), nil } // ToPostRequestInformation create a draft to reply to the sender and all recipients of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), you should send the reply to the recipients in the replyTo and toRecipients properties, and not the recipients in the from and toRecipients properties.- You can update the draft message later. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply-all to a message in a single action. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMessagesItemCreateReplyAllRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemMessagesItemCreateReplyAllPostRequestBodyable, requestConfiguration *ItemMessagesItemCreateReplyAllRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemMessagesItemCreateReplyAllRequestBuilder) ToPostRequestInformation( return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMessagesItemCreateReplyAllRequestBuilder when successful func (m *ItemMessagesItemCreateReplyAllRequestBuilder) WithUrl(rawUrl string)(*ItemMessagesItemCreateReplyAllRequestBuilder) { return NewItemMessagesItemCreateReplyAllRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_messages_item_create_reply_request_builder.go b/users/item_messages_item_create_reply_request_builder.go index 591575fafef..7d838f15524 100644 --- a/users/item_messages_item_create_reply_request_builder.go +++ b/users/item_messages_item_create_reply_request_builder.go @@ -32,6 +32,7 @@ func NewItemMessagesItemCreateReplyRequestBuilder(rawUrl string, requestAdapter return NewItemMessagesItemCreateReplyRequestBuilderInternal(urlParams, requestAdapter) } // Post create a draft to reply to the sender of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If replyTo is specified in the original message, per Internet Message Format (RFC 2822), you should send the reply to the recipients in replyTo, and not the recipients in from.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply to a message in a single operation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Messageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemMessagesItemCreateReplyRequestBuilder) Post(ctx context.Context, bo return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable), nil } // ToPostRequestInformation create a draft to reply to the sender of a message in either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If replyTo is specified in the original message, per Internet Message Format (RFC 2822), you should send the reply to the recipients in replyTo, and not the recipients in from.- You can update the draft later to add reply content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. Send the draft message in a subsequent operation. Alternatively, reply to a message in a single operation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMessagesItemCreateReplyRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemMessagesItemCreateReplyPostRequestBodyable, requestConfiguration *ItemMessagesItemCreateReplyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemMessagesItemCreateReplyRequestBuilder) ToPostRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMessagesItemCreateReplyRequestBuilder when successful func (m *ItemMessagesItemCreateReplyRequestBuilder) WithUrl(rawUrl string)(*ItemMessagesItemCreateReplyRequestBuilder) { return NewItemMessagesItemCreateReplyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_messages_item_extensions_count_request_builder.go b/users/item_messages_item_extensions_count_request_builder.go index 550d1fbc445..087cb5abc01 100644 --- a/users/item_messages_item_extensions_count_request_builder.go +++ b/users/item_messages_item_extensions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemMessagesItemExtensionsCountRequestBuilder(rawUrl string, requestAdap return NewItemMessagesItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMessagesItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMessagesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemMessagesItemExtensionsCountRequestBuilder) Get(ctx context.Context, return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMessagesItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMessagesItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemMessagesItemExtensionsCountRequestBuilder) ToGetRequestInformation( return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMessagesItemExtensionsCountRequestBuilder when successful func (m *ItemMessagesItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemMessagesItemExtensionsCountRequestBuilder) { return NewItemMessagesItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_messages_item_extensions_extension_item_request_builder.go b/users/item_messages_item_extensions_extension_item_request_builder.go index dc672b79333..bdc2d155d7b 100644 --- a/users/item_messages_item_extensions_extension_item_request_builder.go +++ b/users/item_messages_item_extensions_extension_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemMessagesItemExtensionsExtensionItemRequestBuilder(rawUrl string, req return NewItemMessagesItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMessagesItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemMessagesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemMessagesItemExtensionsExtensionItemRequestBuilder) Delete(ctx conte return nil } // Get the collection of open extensions defined for the message. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMessagesItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMessagesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemMessagesItemExtensionsExtensionItemRequestBuilder) Get(ctx context. return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMessagesItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemMessagesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemMessagesItemExtensionsExtensionItemRequestBuilder) Patch(ctx contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMessagesItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemMessagesItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemMessagesItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestI return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the message. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMessagesItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMessagesItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemMessagesItemExtensionsExtensionItemRequestBuilder) ToGetRequestInfo return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMessagesItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemMessagesItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemMessagesItemExtensionsExtensionItemRequestBuilder) ToPatchRequestIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMessagesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemMessagesItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemMessagesItemExtensionsExtensionItemRequestBuilder) { return NewItemMessagesItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_messages_item_extensions_request_builder.go b/users/item_messages_item_extensions_request_builder.go index e3314fbb927..3064ab7c5d5 100644 --- a/users/item_messages_item_extensions_request_builder.go +++ b/users/item_messages_item_extensions_request_builder.go @@ -47,6 +47,7 @@ type ItemMessagesItemExtensionsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.message entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMessagesItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemMessagesItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemMessagesItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemMessagesItemExtensionsRequestBuilder) Count()(*ItemMessagesItemExte return NewItemMessagesItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the message. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMessagesItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMessagesItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemMessagesItemExtensionsRequestBuilder) Get(ctx context.Context, requ return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMessagesItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemMessagesItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemMessagesItemExtensionsRequestBuilder) Post(ctx context.Context, bod return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the message. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMessagesItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMessagesItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemMessagesItemExtensionsRequestBuilder) ToGetRequestInformation(ctx c return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMessagesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemMessagesItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemMessagesItemExtensionsRequestBuilder) ToPostRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMessagesItemExtensionsRequestBuilder when successful func (m *ItemMessagesItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemMessagesItemExtensionsRequestBuilder) { return NewItemMessagesItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_messages_item_forward_request_builder.go b/users/item_messages_item_forward_request_builder.go index e01aaf914fa..a6d410c092e 100644 --- a/users/item_messages_item_forward_request_builder.go +++ b/users/item_messages_item_forward_request_builder.go @@ -31,6 +31,7 @@ func NewItemMessagesItemForwardRequestBuilder(rawUrl string, requestAdapter i2ae return NewItemMessagesItemForwardRequestBuilderInternal(urlParams, requestAdapter) } // Post forward a message using either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to forward a message, and send it later. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemMessagesItemForwardRequestBuilder) Post(ctx context.Context, body I return nil } // ToPostRequestInformation forward a message using either JSON or MIME format. When using JSON format, you can:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- Specify either the toRecipients parameter or the toRecipients property of the message parameter. Specifying both or specifying neither will return an HTTP 400 Bad Request error. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to forward a message, and send it later. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMessagesItemForwardRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemMessagesItemForwardPostRequestBodyable, requestConfiguration *ItemMessagesItemForwardRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemMessagesItemForwardRequestBuilder) ToPostRequestInformation(ctx con return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMessagesItemForwardRequestBuilder when successful func (m *ItemMessagesItemForwardRequestBuilder) WithUrl(rawUrl string)(*ItemMessagesItemForwardRequestBuilder) { return NewItemMessagesItemForwardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_messages_item_mark_as_junk_request_builder.go b/users/item_messages_item_mark_as_junk_request_builder.go index 269985d14c7..05fa0f81dda 100644 --- a/users/item_messages_item_mark_as_junk_request_builder.go +++ b/users/item_messages_item_mark_as_junk_request_builder.go @@ -32,6 +32,7 @@ func NewItemMessagesItemMarkAsJunkRequestBuilder(rawUrl string, requestAdapter i return NewItemMessagesItemMarkAsJunkRequestBuilderInternal(urlParams, requestAdapter) } // Post mark a message as junk. This API adds the sender to the list of blocked senders and moves the message to the Junk Email folder, when moveToJunk is true. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Messageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemMessagesItemMarkAsJunkRequestBuilder) Post(ctx context.Context, bod return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable), nil } // ToPostRequestInformation mark a message as junk. This API adds the sender to the list of blocked senders and moves the message to the Junk Email folder, when moveToJunk is true. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMessagesItemMarkAsJunkRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemMessagesItemMarkAsJunkPostRequestBodyable, requestConfiguration *ItemMessagesItemMarkAsJunkRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemMessagesItemMarkAsJunkRequestBuilder) ToPostRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMessagesItemMarkAsJunkRequestBuilder when successful func (m *ItemMessagesItemMarkAsJunkRequestBuilder) WithUrl(rawUrl string)(*ItemMessagesItemMarkAsJunkRequestBuilder) { return NewItemMessagesItemMarkAsJunkRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_messages_item_mark_as_not_junk_request_builder.go b/users/item_messages_item_mark_as_not_junk_request_builder.go index ef962ed693d..ac3609de104 100644 --- a/users/item_messages_item_mark_as_not_junk_request_builder.go +++ b/users/item_messages_item_mark_as_not_junk_request_builder.go @@ -32,6 +32,7 @@ func NewItemMessagesItemMarkAsNotJunkRequestBuilder(rawUrl string, requestAdapte return NewItemMessagesItemMarkAsNotJunkRequestBuilderInternal(urlParams, requestAdapter) } // Post mark a message as not junk. This API removes the sender from the list of blocked senders and moves the message to the Inbox folder, when moveToInbox is true. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Messageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemMessagesItemMarkAsNotJunkRequestBuilder) Post(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable), nil } // ToPostRequestInformation mark a message as not junk. This API removes the sender from the list of blocked senders and moves the message to the Inbox folder, when moveToInbox is true. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMessagesItemMarkAsNotJunkRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemMessagesItemMarkAsNotJunkPostRequestBodyable, requestConfiguration *ItemMessagesItemMarkAsNotJunkRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemMessagesItemMarkAsNotJunkRequestBuilder) ToPostRequestInformation(c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMessagesItemMarkAsNotJunkRequestBuilder when successful func (m *ItemMessagesItemMarkAsNotJunkRequestBuilder) WithUrl(rawUrl string)(*ItemMessagesItemMarkAsNotJunkRequestBuilder) { return NewItemMessagesItemMarkAsNotJunkRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_messages_item_mentions_count_request_builder.go b/users/item_messages_item_mentions_count_request_builder.go index 6b835711ccb..f1d2caf4328 100644 --- a/users/item_messages_item_mentions_count_request_builder.go +++ b/users/item_messages_item_mentions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemMessagesItemMentionsCountRequestBuilder(rawUrl string, requestAdapte return NewItemMessagesItemMentionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMessagesItemMentionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMessagesItemMentionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemMessagesItemMentionsCountRequestBuilder) Get(ctx context.Context, r return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMessagesItemMentionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMessagesItemMentionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemMessagesItemMentionsCountRequestBuilder) ToGetRequestInformation(ct return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMessagesItemMentionsCountRequestBuilder when successful func (m *ItemMessagesItemMentionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemMessagesItemMentionsCountRequestBuilder) { return NewItemMessagesItemMentionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_messages_item_mentions_mention_item_request_builder.go b/users/item_messages_item_mentions_mention_item_request_builder.go index 364f8689eb4..52f19dd856f 100644 --- a/users/item_messages_item_mentions_mention_item_request_builder.go +++ b/users/item_messages_item_mentions_mention_item_request_builder.go @@ -48,6 +48,7 @@ func NewItemMessagesItemMentionsMentionItemRequestBuilder(rawUrl string, request return NewItemMessagesItemMentionsMentionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property mentions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMessagesItemMentionsMentionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemMessagesItemMentionsMentionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,6 +65,7 @@ func (m *ItemMessagesItemMentionsMentionItemRequestBuilder) Delete(ctx context.C return nil } // Get a collection of mentions in the message, ordered by the createdDateTime from the newest to the oldest. By default, a GET /messages does not return this property unless you apply $expand on the property. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Mentionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMessagesItemMentionsMentionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMessagesItemMentionsMentionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Mentionable, error) { @@ -84,6 +86,7 @@ func (m *ItemMessagesItemMentionsMentionItemRequestBuilder) Get(ctx context.Cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Mentionable), nil } // ToDeleteRequestInformation delete navigation property mentions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMessagesItemMentionsMentionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemMessagesItemMentionsMentionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -95,6 +98,7 @@ func (m *ItemMessagesItemMentionsMentionItemRequestBuilder) ToDeleteRequestInfor return requestInfo, nil } // ToGetRequestInformation a collection of mentions in the message, ordered by the createdDateTime from the newest to the oldest. By default, a GET /messages does not return this property unless you apply $expand on the property. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMessagesItemMentionsMentionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMessagesItemMentionsMentionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -109,6 +113,7 @@ func (m *ItemMessagesItemMentionsMentionItemRequestBuilder) ToGetRequestInformat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMessagesItemMentionsMentionItemRequestBuilder when successful func (m *ItemMessagesItemMentionsMentionItemRequestBuilder) WithUrl(rawUrl string)(*ItemMessagesItemMentionsMentionItemRequestBuilder) { return NewItemMessagesItemMentionsMentionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_messages_item_mentions_request_builder.go b/users/item_messages_item_mentions_request_builder.go index ce74b14e542..675db318406 100644 --- a/users/item_messages_item_mentions_request_builder.go +++ b/users/item_messages_item_mentions_request_builder.go @@ -47,6 +47,7 @@ type ItemMessagesItemMentionsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByMentionId provides operations to manage the mentions property of the microsoft.graph.message entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMessagesItemMentionsMentionItemRequestBuilder when successful func (m *ItemMessagesItemMentionsRequestBuilder) ByMentionId(mentionId string)(*ItemMessagesItemMentionsMentionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemMessagesItemMentionsRequestBuilder) Count()(*ItemMessagesItemMentio return NewItemMessagesItemMentionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get a collection of mentions in the message, ordered by the createdDateTime from the newest to the oldest. By default, a GET /messages does not return this property unless you apply $expand on the property. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MentionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMessagesItemMentionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMessagesItemMentionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MentionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemMessagesItemMentionsRequestBuilder) Get(ctx context.Context, reques return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MentionCollectionResponseable), nil } // Post create new navigation property to mentions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Mentionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMessagesItemMentionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Mentionable, requestConfiguration *ItemMessagesItemMentionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Mentionable, error) { @@ -117,6 +120,7 @@ func (m *ItemMessagesItemMentionsRequestBuilder) Post(ctx context.Context, body return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Mentionable), nil } // ToGetRequestInformation a collection of mentions in the message, ordered by the createdDateTime from the newest to the oldest. By default, a GET /messages does not return this property unless you apply $expand on the property. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMessagesItemMentionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMessagesItemMentionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemMessagesItemMentionsRequestBuilder) ToGetRequestInformation(ctx con return requestInfo, nil } // ToPostRequestInformation create new navigation property to mentions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMessagesItemMentionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Mentionable, requestConfiguration *ItemMessagesItemMentionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemMessagesItemMentionsRequestBuilder) ToPostRequestInformation(ctx co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMessagesItemMentionsRequestBuilder when successful func (m *ItemMessagesItemMentionsRequestBuilder) WithUrl(rawUrl string)(*ItemMessagesItemMentionsRequestBuilder) { return NewItemMessagesItemMentionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_messages_item_move_request_builder.go b/users/item_messages_item_move_request_builder.go index 05af7eb1300..f9bcc712ff6 100644 --- a/users/item_messages_item_move_request_builder.go +++ b/users/item_messages_item_move_request_builder.go @@ -32,6 +32,7 @@ func NewItemMessagesItemMoveRequestBuilder(rawUrl string, requestAdapter i2ae418 return NewItemMessagesItemMoveRequestBuilderInternal(urlParams, requestAdapter) } // Post move a message to another folder within the specified user's mailbox. This creates a new copy of the message in the destination folder and removes the original message. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Messageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemMessagesItemMoveRequestBuilder) Post(ctx context.Context, body Item return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable), nil } // ToPostRequestInformation move a message to another folder within the specified user's mailbox. This creates a new copy of the message in the destination folder and removes the original message. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMessagesItemMoveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemMessagesItemMovePostRequestBodyable, requestConfiguration *ItemMessagesItemMoveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemMessagesItemMoveRequestBuilder) ToPostRequestInformation(ctx contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMessagesItemMoveRequestBuilder when successful func (m *ItemMessagesItemMoveRequestBuilder) WithUrl(rawUrl string)(*ItemMessagesItemMoveRequestBuilder) { return NewItemMessagesItemMoveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_messages_item_permanent_delete_request_builder.go b/users/item_messages_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..3a8e69e01ba --- /dev/null +++ b/users/item_messages_item_permanent_delete_request_builder.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemMessagesItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemMessagesItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemMessagesItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemMessagesItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemMessagesItemPermanentDeleteRequestBuilderInternal instantiates a new ItemMessagesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemMessagesItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemMessagesItemPermanentDeleteRequestBuilder) { + m := &ItemMessagesItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}/permanentDelete", pathParameters), + } + return m +} +// NewItemMessagesItemPermanentDeleteRequestBuilder instantiates a new ItemMessagesItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemMessagesItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemMessagesItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemMessagesItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete a message and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/message-permanentdelete?view=graph-rest-beta +func (m *ItemMessagesItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemMessagesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete a message and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemMessagesItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemMessagesItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemMessagesItemPermanentDeleteRequestBuilder when successful +func (m *ItemMessagesItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemMessagesItemPermanentDeleteRequestBuilder) { + return NewItemMessagesItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_messages_item_reply_all_request_builder.go b/users/item_messages_item_reply_all_request_builder.go index 990deb22a14..fda3039ad32 100644 --- a/users/item_messages_item_reply_all_request_builder.go +++ b/users/item_messages_item_reply_all_request_builder.go @@ -31,6 +31,7 @@ func NewItemMessagesItemReplyAllRequestBuilder(rawUrl string, requestAdapter i2a return NewItemMessagesItemReplyAllRequestBuilderInternal(urlParams, requestAdapter) } // Post reply to all recipients of a message using either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply-all to a message, and send it later. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemMessagesItemReplyAllRequestBuilder) Post(ctx context.Context, body return nil } // ToPostRequestInformation reply to all recipients of a message using either JSON or MIME format. When using JSON format:- Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.- If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply-all to a message, and send it later. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMessagesItemReplyAllRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemMessagesItemReplyAllPostRequestBodyable, requestConfiguration *ItemMessagesItemReplyAllRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemMessagesItemReplyAllRequestBuilder) ToPostRequestInformation(ctx co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMessagesItemReplyAllRequestBuilder when successful func (m *ItemMessagesItemReplyAllRequestBuilder) WithUrl(rawUrl string)(*ItemMessagesItemReplyAllRequestBuilder) { return NewItemMessagesItemReplyAllRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_messages_item_reply_request_builder.go b/users/item_messages_item_reply_request_builder.go index 401437061db..04971e5f34e 100644 --- a/users/item_messages_item_reply_request_builder.go +++ b/users/item_messages_item_reply_request_builder.go @@ -31,6 +31,7 @@ func NewItemMessagesItemReplyRequestBuilder(rawUrl string, requestAdapter i2ae41 return NewItemMessagesItemReplyRequestBuilderInternal(urlParams, requestAdapter) } // Post reply to the sender of a message using either JSON or MIME format. When using JSON format:* Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.* If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply to a message, and send it later. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemMessagesItemReplyRequestBuilder) Post(ctx context.Context, body Ite return nil } // ToPostRequestInformation reply to the sender of a message using either JSON or MIME format. When using JSON format:* Specify either a comment or the body property of the message parameter. Specifying both will return an HTTP 400 Bad Request error.* If the original message specifies a recipient in the replyTo property, per Internet Message Format (RFC 2822), send the reply to the recipients in replyTo and not the recipient in the from property. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- Add any attachments and S/MIME properties to the MIME content. This method saves the message in the Sent Items folder. Alternatively, create a draft to reply to a message, and send it later. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMessagesItemReplyRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemMessagesItemReplyPostRequestBodyable, requestConfiguration *ItemMessagesItemReplyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemMessagesItemReplyRequestBuilder) ToPostRequestInformation(ctx conte return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMessagesItemReplyRequestBuilder when successful func (m *ItemMessagesItemReplyRequestBuilder) WithUrl(rawUrl string)(*ItemMessagesItemReplyRequestBuilder) { return NewItemMessagesItemReplyRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_messages_item_send_request_builder.go b/users/item_messages_item_send_request_builder.go index 9ffb723f355..e2e5172b8cf 100644 --- a/users/item_messages_item_send_request_builder.go +++ b/users/item_messages_item_send_request_builder.go @@ -31,6 +31,7 @@ func NewItemMessagesItemSendRequestBuilder(rawUrl string, requestAdapter i2ae418 return NewItemMessagesItemSendRequestBuilderInternal(urlParams, requestAdapter) } // Post send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemMessagesItemSendRequestBuilder) Post(ctx context.Context, requestCo return nil } // ToPostRequestInformation send an existing draft message. The draft message can be a new message draft, reply draft, reply-all draft, or a forward draft. This method saves the message in the Sent Items folder. Alternatively, send a new message in a single operation. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMessagesItemSendRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemMessagesItemSendRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemMessagesItemSendRequestBuilder) ToPostRequestInformation(ctx contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMessagesItemSendRequestBuilder when successful func (m *ItemMessagesItemSendRequestBuilder) WithUrl(rawUrl string)(*ItemMessagesItemSendRequestBuilder) { return NewItemMessagesItemSendRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_messages_item_unsubscribe_request_builder.go b/users/item_messages_item_unsubscribe_request_builder.go index 82b37ae4d52..0bdfd912b64 100644 --- a/users/item_messages_item_unsubscribe_request_builder.go +++ b/users/item_messages_item_unsubscribe_request_builder.go @@ -31,6 +31,7 @@ func NewItemMessagesItemUnsubscribeRequestBuilder(rawUrl string, requestAdapter return NewItemMessagesItemUnsubscribeRequestBuilderInternal(urlParams, requestAdapter) } // Post submits an email request on behalf of the signed-in user to unsubscribe from an email distribution list. Uses the information in the List-Unsubscribe header. Message senders can use mailing lists in a user-friendly way by including an option for recipients to opt out. They can do so by specifying the List-Unsubscribe header in each message following RFC-2369. Note In particular, for the unsubscribe action to work, the sender must specify mailto: and not URL-based unsubscribe information. Setting that header would also set the unsubscribeEnabled property of the message instance to true, and the unsubscribeData property to the header data. If the unsubscribeEnabled property of a message is true, you can use the unsubscribe action to unsubscribe the user from similar future messages as managed by the message sender. A successful unsubscribe action moves the message to the Deleted Items folder. The actual exclusion of the user from future mail distribution is managed by the sender. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemMessagesItemUnsubscribeRequestBuilder) Post(ctx context.Context, re return nil } // ToPostRequestInformation submits an email request on behalf of the signed-in user to unsubscribe from an email distribution list. Uses the information in the List-Unsubscribe header. Message senders can use mailing lists in a user-friendly way by including an option for recipients to opt out. They can do so by specifying the List-Unsubscribe header in each message following RFC-2369. Note In particular, for the unsubscribe action to work, the sender must specify mailto: and not URL-based unsubscribe information. Setting that header would also set the unsubscribeEnabled property of the message instance to true, and the unsubscribeData property to the header data. If the unsubscribeEnabled property of a message is true, you can use the unsubscribe action to unsubscribe the user from similar future messages as managed by the message sender. A successful unsubscribe action moves the message to the Deleted Items folder. The actual exclusion of the user from future mail distribution is managed by the sender. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMessagesItemUnsubscribeRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemMessagesItemUnsubscribeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemMessagesItemUnsubscribeRequestBuilder) ToPostRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMessagesItemUnsubscribeRequestBuilder when successful func (m *ItemMessagesItemUnsubscribeRequestBuilder) WithUrl(rawUrl string)(*ItemMessagesItemUnsubscribeRequestBuilder) { return NewItemMessagesItemUnsubscribeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_messages_item_value_content_request_builder.go b/users/item_messages_item_value_content_request_builder.go index 799e891d908..1712d82d3e6 100644 --- a/users/item_messages_item_value_content_request_builder.go +++ b/users/item_messages_item_value_content_request_builder.go @@ -45,6 +45,7 @@ func NewItemMessagesItemValueContentRequestBuilder(rawUrl string, requestAdapter return NewItemMessagesItemValueContentRequestBuilderInternal(urlParams, requestAdapter) } // Delete the unique identifier for an entity. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMessagesItemValueContentRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemMessagesItemValueContentRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -61,6 +62,7 @@ func (m *ItemMessagesItemValueContentRequestBuilder) Delete(ctx context.Context, return nil } // Get the unique identifier for an entity. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMessagesItemValueContentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMessagesItemValueContentRequestBuilderGetRequestConfiguration)([]byte, error) { @@ -81,6 +83,7 @@ func (m *ItemMessagesItemValueContentRequestBuilder) Get(ctx context.Context, re return res.([]byte), nil } // Put the unique identifier for an entity. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMessagesItemValueContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemMessagesItemValueContentRequestBuilderPutRequestConfiguration)([]byte, error) { @@ -101,6 +104,7 @@ func (m *ItemMessagesItemValueContentRequestBuilder) Put(ctx context.Context, bo return res.([]byte), nil } // ToDeleteRequestInformation the unique identifier for an entity. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMessagesItemValueContentRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemMessagesItemValueContentRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -112,6 +116,7 @@ func (m *ItemMessagesItemValueContentRequestBuilder) ToDeleteRequestInformation( return requestInfo, nil } // ToGetRequestInformation the unique identifier for an entity. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMessagesItemValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMessagesItemValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -123,6 +128,7 @@ func (m *ItemMessagesItemValueContentRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // ToPutRequestInformation the unique identifier for an entity. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMessagesItemValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemMessagesItemValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -135,6 +141,7 @@ func (m *ItemMessagesItemValueContentRequestBuilder) ToPutRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMessagesItemValueContentRequestBuilder when successful func (m *ItemMessagesItemValueContentRequestBuilder) WithUrl(rawUrl string)(*ItemMessagesItemValueContentRequestBuilder) { return NewItemMessagesItemValueContentRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_messages_message_item_request_builder.go b/users/item_messages_message_item_request_builder.go index b93a58b6703..60ea8df6f6c 100644 --- a/users/item_messages_message_item_request_builder.go +++ b/users/item_messages_message_item_request_builder.go @@ -87,6 +87,7 @@ func (m *ItemMessagesMessageItemRequestBuilder) CreateReplyAll()(*ItemMessagesIt return NewItemMessagesItemCreateReplyAllRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Delete delete navigation property messages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMessagesMessageItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemMessagesMessageItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -113,6 +114,7 @@ func (m *ItemMessagesMessageItemRequestBuilder) Forward()(*ItemMessagesItemForwa return NewItemMessagesItemForwardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the messages in a mailbox or folder. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Messageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMessagesMessageItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMessagesMessageItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable, error) { @@ -153,6 +155,7 @@ func (m *ItemMessagesMessageItemRequestBuilder) Move()(*ItemMessagesItemMoveRequ return NewItemMessagesItemMoveRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property messages in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Messageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMessagesMessageItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable, requestConfiguration *ItemMessagesMessageItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable, error) { @@ -172,6 +175,11 @@ func (m *ItemMessagesMessageItemRequestBuilder) Patch(ctx context.Context, body } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemMessagesItemPermanentDeleteRequestBuilder when successful +func (m *ItemMessagesMessageItemRequestBuilder) PermanentDelete()(*ItemMessagesItemPermanentDeleteRequestBuilder) { + return NewItemMessagesItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Reply provides operations to call the reply method. // returns a *ItemMessagesItemReplyRequestBuilder when successful func (m *ItemMessagesMessageItemRequestBuilder) Reply()(*ItemMessagesItemReplyRequestBuilder) { @@ -188,6 +196,7 @@ func (m *ItemMessagesMessageItemRequestBuilder) Send()(*ItemMessagesItemSendRequ return NewItemMessagesItemSendRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property messages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMessagesMessageItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemMessagesMessageItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -199,6 +208,7 @@ func (m *ItemMessagesMessageItemRequestBuilder) ToDeleteRequestInformation(ctx c return requestInfo, nil } // ToGetRequestInformation the messages in a mailbox or folder. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMessagesMessageItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMessagesMessageItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -213,6 +223,7 @@ func (m *ItemMessagesMessageItemRequestBuilder) ToGetRequestInformation(ctx cont return requestInfo, nil } // ToPatchRequestInformation update the navigation property messages in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMessagesMessageItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable, requestConfiguration *ItemMessagesMessageItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -233,6 +244,7 @@ func (m *ItemMessagesMessageItemRequestBuilder) Unsubscribe()(*ItemMessagesItemU return NewItemMessagesItemUnsubscribeRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMessagesMessageItemRequestBuilder when successful func (m *ItemMessagesMessageItemRequestBuilder) WithUrl(rawUrl string)(*ItemMessagesMessageItemRequestBuilder) { return NewItemMessagesMessageItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_messages_request_builder.go b/users/item_messages_request_builder.go index a8acadfa76f..15fee1b1469 100644 --- a/users/item_messages_request_builder.go +++ b/users/item_messages_request_builder.go @@ -49,6 +49,7 @@ type ItemMessagesRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByMessageId provides operations to manage the messages property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMessagesMessageItemRequestBuilder when successful func (m *ItemMessagesRequestBuilder) ByMessageId(messageId string)(*ItemMessagesMessageItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -84,6 +85,7 @@ func (m *ItemMessagesRequestBuilder) Delta()(*ItemMessagesDeltaRequestBuilder) { return NewItemMessagesDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the messages in a mailbox or folder. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MessageCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMessagesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMessagesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MessageCollectionResponseable, error) { @@ -104,6 +106,7 @@ func (m *ItemMessagesRequestBuilder) Get(ctx context.Context, requestConfigurati return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MessageCollectionResponseable), nil } // Post create new navigation property to messages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Messageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMessagesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable, requestConfiguration *ItemMessagesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable, error) { @@ -124,6 +127,7 @@ func (m *ItemMessagesRequestBuilder) Post(ctx context.Context, body ie233ee762e2 return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable), nil } // ToGetRequestInformation the messages in a mailbox or folder. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMessagesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMessagesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -138,6 +142,7 @@ func (m *ItemMessagesRequestBuilder) ToGetRequestInformation(ctx context.Context return requestInfo, nil } // ToPostRequestInformation create new navigation property to messages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMessagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Messageable, requestConfiguration *ItemMessagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -153,6 +158,7 @@ func (m *ItemMessagesRequestBuilder) ToPostRequestInformation(ctx context.Contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMessagesRequestBuilder when successful func (m *ItemMessagesRequestBuilder) WithUrl(rawUrl string)(*ItemMessagesRequestBuilder) { return NewItemMessagesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mobile_app_intent_and_states_count_request_builder.go b/users/item_mobile_app_intent_and_states_count_request_builder.go index d4d3f698b8f..791d8b86f68 100644 --- a/users/item_mobile_app_intent_and_states_count_request_builder.go +++ b/users/item_mobile_app_intent_and_states_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemMobileAppIntentAndStatesCountRequestBuilder(rawUrl string, requestAd return NewItemMobileAppIntentAndStatesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMobileAppIntentAndStatesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMobileAppIntentAndStatesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemMobileAppIntentAndStatesCountRequestBuilder) Get(ctx context.Contex return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMobileAppIntentAndStatesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMobileAppIntentAndStatesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemMobileAppIntentAndStatesCountRequestBuilder) ToGetRequestInformatio return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMobileAppIntentAndStatesCountRequestBuilder when successful func (m *ItemMobileAppIntentAndStatesCountRequestBuilder) WithUrl(rawUrl string)(*ItemMobileAppIntentAndStatesCountRequestBuilder) { return NewItemMobileAppIntentAndStatesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mobile_app_intent_and_states_mobile_app_intent_and_state_item_request_builder.go b/users/item_mobile_app_intent_and_states_mobile_app_intent_and_state_item_request_builder.go index ed9f91938cf..eaefe2a2ab2 100644 --- a/users/item_mobile_app_intent_and_states_mobile_app_intent_and_state_item_request_builder.go +++ b/users/item_mobile_app_intent_and_states_mobile_app_intent_and_state_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemMobileAppIntentAndStatesMobileAppIntentAndStateItemRequestBuilder(ra return NewItemMobileAppIntentAndStatesMobileAppIntentAndStateItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property mobileAppIntentAndStates for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMobileAppIntentAndStatesMobileAppIntentAndStateItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemMobileAppIntentAndStatesMobileAppIntentAndStateItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemMobileAppIntentAndStatesMobileAppIntentAndStateItemRequestBuilder) return nil } // Get the list of troubleshooting events for this user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MobileAppIntentAndStateable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMobileAppIntentAndStatesMobileAppIntentAndStateItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMobileAppIntentAndStatesMobileAppIntentAndStateItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppIntentAndStateable, error) { @@ -91,6 +93,7 @@ func (m *ItemMobileAppIntentAndStatesMobileAppIntentAndStateItemRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppIntentAndStateable), nil } // Patch update the navigation property mobileAppIntentAndStates in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MobileAppIntentAndStateable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMobileAppIntentAndStatesMobileAppIntentAndStateItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppIntentAndStateable, requestConfiguration *ItemMobileAppIntentAndStatesMobileAppIntentAndStateItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppIntentAndStateable, error) { @@ -111,6 +114,7 @@ func (m *ItemMobileAppIntentAndStatesMobileAppIntentAndStateItemRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppIntentAndStateable), nil } // ToDeleteRequestInformation delete navigation property mobileAppIntentAndStates for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMobileAppIntentAndStatesMobileAppIntentAndStateItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemMobileAppIntentAndStatesMobileAppIntentAndStateItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemMobileAppIntentAndStatesMobileAppIntentAndStateItemRequestBuilder) return requestInfo, nil } // ToGetRequestInformation the list of troubleshooting events for this user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMobileAppIntentAndStatesMobileAppIntentAndStateItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMobileAppIntentAndStatesMobileAppIntentAndStateItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemMobileAppIntentAndStatesMobileAppIntentAndStateItemRequestBuilder) return requestInfo, nil } // ToPatchRequestInformation update the navigation property mobileAppIntentAndStates in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMobileAppIntentAndStatesMobileAppIntentAndStateItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppIntentAndStateable, requestConfiguration *ItemMobileAppIntentAndStatesMobileAppIntentAndStateItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemMobileAppIntentAndStatesMobileAppIntentAndStateItemRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMobileAppIntentAndStatesMobileAppIntentAndStateItemRequestBuilder when successful func (m *ItemMobileAppIntentAndStatesMobileAppIntentAndStateItemRequestBuilder) WithUrl(rawUrl string)(*ItemMobileAppIntentAndStatesMobileAppIntentAndStateItemRequestBuilder) { return NewItemMobileAppIntentAndStatesMobileAppIntentAndStateItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mobile_app_intent_and_states_request_builder.go b/users/item_mobile_app_intent_and_states_request_builder.go index 0c83d2efb68..50574ae13d5 100644 --- a/users/item_mobile_app_intent_and_states_request_builder.go +++ b/users/item_mobile_app_intent_and_states_request_builder.go @@ -47,6 +47,7 @@ type ItemMobileAppIntentAndStatesRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByMobileAppIntentAndStateId provides operations to manage the mobileAppIntentAndStates property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMobileAppIntentAndStatesMobileAppIntentAndStateItemRequestBuilder when successful func (m *ItemMobileAppIntentAndStatesRequestBuilder) ByMobileAppIntentAndStateId(mobileAppIntentAndStateId string)(*ItemMobileAppIntentAndStatesMobileAppIntentAndStateItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemMobileAppIntentAndStatesRequestBuilder) Count()(*ItemMobileAppInten return NewItemMobileAppIntentAndStatesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the list of troubleshooting events for this user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MobileAppIntentAndStateCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMobileAppIntentAndStatesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMobileAppIntentAndStatesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppIntentAndStateCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemMobileAppIntentAndStatesRequestBuilder) Get(ctx context.Context, re return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppIntentAndStateCollectionResponseable), nil } // Post create new navigation property to mobileAppIntentAndStates for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MobileAppIntentAndStateable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMobileAppIntentAndStatesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppIntentAndStateable, requestConfiguration *ItemMobileAppIntentAndStatesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppIntentAndStateable, error) { @@ -117,6 +120,7 @@ func (m *ItemMobileAppIntentAndStatesRequestBuilder) Post(ctx context.Context, b return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppIntentAndStateable), nil } // ToGetRequestInformation the list of troubleshooting events for this user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMobileAppIntentAndStatesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMobileAppIntentAndStatesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemMobileAppIntentAndStatesRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // ToPostRequestInformation create new navigation property to mobileAppIntentAndStates for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMobileAppIntentAndStatesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppIntentAndStateable, requestConfiguration *ItemMobileAppIntentAndStatesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemMobileAppIntentAndStatesRequestBuilder) ToPostRequestInformation(ct return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMobileAppIntentAndStatesRequestBuilder when successful func (m *ItemMobileAppIntentAndStatesRequestBuilder) WithUrl(rawUrl string)(*ItemMobileAppIntentAndStatesRequestBuilder) { return NewItemMobileAppIntentAndStatesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mobile_app_troubleshooting_events_count_request_builder.go b/users/item_mobile_app_troubleshooting_events_count_request_builder.go index 5313805ee4a..71be0f84be6 100644 --- a/users/item_mobile_app_troubleshooting_events_count_request_builder.go +++ b/users/item_mobile_app_troubleshooting_events_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemMobileAppTroubleshootingEventsCountRequestBuilder(rawUrl string, req return NewItemMobileAppTroubleshootingEventsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMobileAppTroubleshootingEventsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMobileAppTroubleshootingEventsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemMobileAppTroubleshootingEventsCountRequestBuilder) Get(ctx context. return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMobileAppTroubleshootingEventsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMobileAppTroubleshootingEventsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemMobileAppTroubleshootingEventsCountRequestBuilder) ToGetRequestInfo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMobileAppTroubleshootingEventsCountRequestBuilder when successful func (m *ItemMobileAppTroubleshootingEventsCountRequestBuilder) WithUrl(rawUrl string)(*ItemMobileAppTroubleshootingEventsCountRequestBuilder) { return NewItemMobileAppTroubleshootingEventsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mobile_app_troubleshooting_events_item_app_log_collection_requests_count_request_builder.go b/users/item_mobile_app_troubleshooting_events_item_app_log_collection_requests_count_request_builder.go index bab7f204cd8..934da2a54de 100644 --- a/users/item_mobile_app_troubleshooting_events_item_app_log_collection_requests_count_request_builder.go +++ b/users/item_mobile_app_troubleshooting_events_item_app_log_collection_requests_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsCountReque return NewItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsCountRequ return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsCountRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsCountRequestBuilder when successful func (m *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsCountRequestBuilder) WithUrl(rawUrl string)(*ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsCountRequestBuilder) { return NewItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mobile_app_troubleshooting_events_item_app_log_collection_requests_request_builder.go b/users/item_mobile_app_troubleshooting_events_item_app_log_collection_requests_request_builder.go index 47bd7d95a6b..457de1ae9ef 100644 --- a/users/item_mobile_app_troubleshooting_events_item_app_log_collection_requests_request_builder.go +++ b/users/item_mobile_app_troubleshooting_events_item_app_log_collection_requests_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsRequestBuilderGetQueryParameters indicates collection of App Log Upload Request. +// ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsRequestBuilderGetQueryParameters the collection property of AppLogUploadRequest. type ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -47,6 +47,7 @@ type ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsRequestBuilde Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAppLogCollectionRequestId provides operations to manage the appLogCollectionRequests property of the microsoft.graph.mobileAppTroubleshootingEvent entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCollectionRequestItemRequestBuilder when successful func (m *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsRequestBuilder) ByAppLogCollectionRequestId(appLogCollectionRequestId string)(*ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsAppLogCollectionRequestItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -76,7 +77,8 @@ func NewItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsRequestBui func (m *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsRequestBuilder) Count()(*ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsCountRequestBuilder) { return NewItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get indicates collection of App Log Upload Request. +// Get the collection property of AppLogUploadRequest. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AppLogCollectionRequestCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AppLogCollectionRequestCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsRequestBu return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AppLogCollectionRequestCollectionResponseable), nil } // Post create new navigation property to appLogCollectionRequests for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AppLogCollectionRequestable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AppLogCollectionRequestable, requestConfiguration *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AppLogCollectionRequestable, error) { @@ -116,7 +119,8 @@ func (m *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsRequestBu } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AppLogCollectionRequestable), nil } -// ToGetRequestInformation indicates collection of App Log Upload Request. +// ToGetRequestInformation the collection property of AppLogUploadRequest. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsRequestBu return requestInfo, nil } // ToPostRequestInformation create new navigation property to appLogCollectionRequests for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AppLogCollectionRequestable, requestConfiguration *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsRequestBu return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsRequestBuilder when successful func (m *ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsRequestBuilder) WithUrl(rawUrl string)(*ItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsRequestBuilder) { return NewItemMobileAppTroubleshootingEventsItemAppLogCollectionRequestsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mobile_app_troubleshooting_events_mobile_app_troubleshooting_event_item_request_builder.go b/users/item_mobile_app_troubleshooting_events_mobile_app_troubleshooting_event_item_request_builder.go index 1494a855429..59570e9226c 100644 --- a/users/item_mobile_app_troubleshooting_events_mobile_app_troubleshooting_event_item_request_builder.go +++ b/users/item_mobile_app_troubleshooting_events_mobile_app_troubleshooting_event_item_request_builder.go @@ -60,6 +60,7 @@ func NewItemMobileAppTroubleshootingEventsMobileAppTroubleshootingEventItemReque return NewItemMobileAppTroubleshootingEventsMobileAppTroubleshootingEventItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property mobileAppTroubleshootingEvents for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMobileAppTroubleshootingEventsMobileAppTroubleshootingEventItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemMobileAppTroubleshootingEventsMobileAppTroubleshootingEventItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -76,6 +77,7 @@ func (m *ItemMobileAppTroubleshootingEventsMobileAppTroubleshootingEventItemRequ return nil } // Get the list of mobile app troubleshooting events for this user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MobileAppTroubleshootingEventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMobileAppTroubleshootingEventsMobileAppTroubleshootingEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMobileAppTroubleshootingEventsMobileAppTroubleshootingEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppTroubleshootingEventable, error) { @@ -96,6 +98,7 @@ func (m *ItemMobileAppTroubleshootingEventsMobileAppTroubleshootingEventItemRequ return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppTroubleshootingEventable), nil } // Patch update the navigation property mobileAppTroubleshootingEvents in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MobileAppTroubleshootingEventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMobileAppTroubleshootingEventsMobileAppTroubleshootingEventItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppTroubleshootingEventable, requestConfiguration *ItemMobileAppTroubleshootingEventsMobileAppTroubleshootingEventItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppTroubleshootingEventable, error) { @@ -116,6 +119,7 @@ func (m *ItemMobileAppTroubleshootingEventsMobileAppTroubleshootingEventItemRequ return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppTroubleshootingEventable), nil } // ToDeleteRequestInformation delete navigation property mobileAppTroubleshootingEvents for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMobileAppTroubleshootingEventsMobileAppTroubleshootingEventItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemMobileAppTroubleshootingEventsMobileAppTroubleshootingEventItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -127,6 +131,7 @@ func (m *ItemMobileAppTroubleshootingEventsMobileAppTroubleshootingEventItemRequ return requestInfo, nil } // ToGetRequestInformation the list of mobile app troubleshooting events for this user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMobileAppTroubleshootingEventsMobileAppTroubleshootingEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMobileAppTroubleshootingEventsMobileAppTroubleshootingEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,6 +146,7 @@ func (m *ItemMobileAppTroubleshootingEventsMobileAppTroubleshootingEventItemRequ return requestInfo, nil } // ToPatchRequestInformation update the navigation property mobileAppTroubleshootingEvents in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMobileAppTroubleshootingEventsMobileAppTroubleshootingEventItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppTroubleshootingEventable, requestConfiguration *ItemMobileAppTroubleshootingEventsMobileAppTroubleshootingEventItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +162,7 @@ func (m *ItemMobileAppTroubleshootingEventsMobileAppTroubleshootingEventItemRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMobileAppTroubleshootingEventsMobileAppTroubleshootingEventItemRequestBuilder when successful func (m *ItemMobileAppTroubleshootingEventsMobileAppTroubleshootingEventItemRequestBuilder) WithUrl(rawUrl string)(*ItemMobileAppTroubleshootingEventsMobileAppTroubleshootingEventItemRequestBuilder) { return NewItemMobileAppTroubleshootingEventsMobileAppTroubleshootingEventItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_mobile_app_troubleshooting_events_request_builder.go b/users/item_mobile_app_troubleshooting_events_request_builder.go index f9f5ffb9b38..4380e6bc935 100644 --- a/users/item_mobile_app_troubleshooting_events_request_builder.go +++ b/users/item_mobile_app_troubleshooting_events_request_builder.go @@ -47,6 +47,7 @@ type ItemMobileAppTroubleshootingEventsRequestBuilderPostRequestConfiguration st Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByMobileAppTroubleshootingEventId provides operations to manage the mobileAppTroubleshootingEvents property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMobileAppTroubleshootingEventsMobileAppTroubleshootingEventItemRequestBuilder when successful func (m *ItemMobileAppTroubleshootingEventsRequestBuilder) ByMobileAppTroubleshootingEventId(mobileAppTroubleshootingEventId string)(*ItemMobileAppTroubleshootingEventsMobileAppTroubleshootingEventItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemMobileAppTroubleshootingEventsRequestBuilder) Count()(*ItemMobileAp return NewItemMobileAppTroubleshootingEventsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the list of mobile app troubleshooting events for this user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MobileAppTroubleshootingEventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMobileAppTroubleshootingEventsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMobileAppTroubleshootingEventsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppTroubleshootingEventCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemMobileAppTroubleshootingEventsRequestBuilder) Get(ctx context.Conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppTroubleshootingEventCollectionResponseable), nil } // Post create new navigation property to mobileAppTroubleshootingEvents for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MobileAppTroubleshootingEventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemMobileAppTroubleshootingEventsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppTroubleshootingEventable, requestConfiguration *ItemMobileAppTroubleshootingEventsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppTroubleshootingEventable, error) { @@ -117,6 +120,7 @@ func (m *ItemMobileAppTroubleshootingEventsRequestBuilder) Post(ctx context.Cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppTroubleshootingEventable), nil } // ToGetRequestInformation the list of mobile app troubleshooting events for this user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMobileAppTroubleshootingEventsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMobileAppTroubleshootingEventsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemMobileAppTroubleshootingEventsRequestBuilder) ToGetRequestInformati return requestInfo, nil } // ToPostRequestInformation create new navigation property to mobileAppTroubleshootingEvents for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemMobileAppTroubleshootingEventsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MobileAppTroubleshootingEventable, requestConfiguration *ItemMobileAppTroubleshootingEventsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemMobileAppTroubleshootingEventsRequestBuilder) ToPostRequestInformat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemMobileAppTroubleshootingEventsRequestBuilder when successful func (m *ItemMobileAppTroubleshootingEventsRequestBuilder) WithUrl(rawUrl string)(*ItemMobileAppTroubleshootingEventsRequestBuilder) { return NewItemMobileAppTroubleshootingEventsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_notifications_count_request_builder.go b/users/item_notifications_count_request_builder.go index af6ac8e5f1b..aae73c66c74 100644 --- a/users/item_notifications_count_request_builder.go +++ b/users/item_notifications_count_request_builder.go @@ -40,7 +40,7 @@ func NewItemNotificationsCountRequestBuilder(rawUrl string, requestAdapter i2ae4 return NewItemNotificationsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource -// Deprecated: The Graph Notification API is deprecated and will stop returning data on March 20, 2023. as of 2023-03/Notification_Deprecation +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemNotificationsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemNotificationsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -61,7 +61,7 @@ func (m *ItemNotificationsCountRequestBuilder) Get(ctx context.Context, requestC return res.(*int32), nil } // ToGetRequestInformation get the number of the resource -// Deprecated: The Graph Notification API is deprecated and will stop returning data on March 20, 2023. as of 2023-03/Notification_Deprecation +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemNotificationsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemNotificationsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -76,7 +76,7 @@ func (m *ItemNotificationsCountRequestBuilder) ToGetRequestInformation(ctx conte return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Graph Notification API is deprecated and will stop returning data on March 20, 2023. as of 2023-03/Notification_Deprecation +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemNotificationsCountRequestBuilder when successful func (m *ItemNotificationsCountRequestBuilder) WithUrl(rawUrl string)(*ItemNotificationsCountRequestBuilder) { return NewItemNotificationsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_notifications_notification_item_request_builder.go b/users/item_notifications_notification_item_request_builder.go index 0f0eb814301..80c613785c7 100644 --- a/users/item_notifications_notification_item_request_builder.go +++ b/users/item_notifications_notification_item_request_builder.go @@ -55,7 +55,7 @@ func NewItemNotificationsNotificationItemRequestBuilder(rawUrl string, requestAd return NewItemNotificationsNotificationItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property notifications for users -// Deprecated: The Graph Notification API is deprecated and will stop returning data on March 20, 2023. as of 2023-03/Notification_Deprecation +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemNotificationsNotificationItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemNotificationsNotificationItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -72,7 +72,7 @@ func (m *ItemNotificationsNotificationItemRequestBuilder) Delete(ctx context.Con return nil } // Get get notifications from users -// Deprecated: The Graph Notification API is deprecated and will stop returning data on March 20, 2023. as of 2023-03/Notification_Deprecation +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Notificationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemNotificationsNotificationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemNotificationsNotificationItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Notificationable, error) { @@ -93,7 +93,7 @@ func (m *ItemNotificationsNotificationItemRequestBuilder) Get(ctx context.Contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Notificationable), nil } // Patch update the navigation property notifications in users -// Deprecated: The Graph Notification API is deprecated and will stop returning data on March 20, 2023. as of 2023-03/Notification_Deprecation +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Notificationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemNotificationsNotificationItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Notificationable, requestConfiguration *ItemNotificationsNotificationItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Notificationable, error) { @@ -114,7 +114,7 @@ func (m *ItemNotificationsNotificationItemRequestBuilder) Patch(ctx context.Cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Notificationable), nil } // ToDeleteRequestInformation delete navigation property notifications for users -// Deprecated: The Graph Notification API is deprecated and will stop returning data on March 20, 2023. as of 2023-03/Notification_Deprecation +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemNotificationsNotificationItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemNotificationsNotificationItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -126,7 +126,7 @@ func (m *ItemNotificationsNotificationItemRequestBuilder) ToDeleteRequestInforma return requestInfo, nil } // ToGetRequestInformation get notifications from users -// Deprecated: The Graph Notification API is deprecated and will stop returning data on March 20, 2023. as of 2023-03/Notification_Deprecation +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemNotificationsNotificationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemNotificationsNotificationItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,7 +141,7 @@ func (m *ItemNotificationsNotificationItemRequestBuilder) ToGetRequestInformatio return requestInfo, nil } // ToPatchRequestInformation update the navigation property notifications in users -// Deprecated: The Graph Notification API is deprecated and will stop returning data on March 20, 2023. as of 2023-03/Notification_Deprecation +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemNotificationsNotificationItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Notificationable, requestConfiguration *ItemNotificationsNotificationItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -157,7 +157,7 @@ func (m *ItemNotificationsNotificationItemRequestBuilder) ToPatchRequestInformat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Graph Notification API is deprecated and will stop returning data on March 20, 2023. as of 2023-03/Notification_Deprecation +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemNotificationsNotificationItemRequestBuilder when successful func (m *ItemNotificationsNotificationItemRequestBuilder) WithUrl(rawUrl string)(*ItemNotificationsNotificationItemRequestBuilder) { return NewItemNotificationsNotificationItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_notifications_request_builder.go b/users/item_notifications_request_builder.go index 4334d8388ca..a9f0917e45e 100644 --- a/users/item_notifications_request_builder.go +++ b/users/item_notifications_request_builder.go @@ -47,7 +47,7 @@ type ItemNotificationsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByNotificationId provides operations to manage the notifications property of the microsoft.graph.user entity. -// Deprecated: The Graph Notification API is deprecated and will stop returning data on March 20, 2023. as of 2023-03/Notification_Deprecation +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemNotificationsNotificationItemRequestBuilder when successful func (m *ItemNotificationsRequestBuilder) ByNotificationId(notificationId string)(*ItemNotificationsNotificationItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -78,7 +78,7 @@ func (m *ItemNotificationsRequestBuilder) Count()(*ItemNotificationsCountRequest return NewItemNotificationsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get notifications from users -// Deprecated: The Graph Notification API is deprecated and will stop returning data on March 20, 2023. as of 2023-03/Notification_Deprecation +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a NotificationCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemNotificationsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemNotificationsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NotificationCollectionResponseable, error) { @@ -99,7 +99,7 @@ func (m *ItemNotificationsRequestBuilder) Get(ctx context.Context, requestConfig return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NotificationCollectionResponseable), nil } // Post create new navigation property to notifications for users -// Deprecated: The Graph Notification API is deprecated and will stop returning data on March 20, 2023. as of 2023-03/Notification_Deprecation +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Notificationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemNotificationsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Notificationable, requestConfiguration *ItemNotificationsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Notificationable, error) { @@ -120,7 +120,7 @@ func (m *ItemNotificationsRequestBuilder) Post(ctx context.Context, body ie233ee return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Notificationable), nil } // ToGetRequestInformation get notifications from users -// Deprecated: The Graph Notification API is deprecated and will stop returning data on March 20, 2023. as of 2023-03/Notification_Deprecation +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemNotificationsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemNotificationsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -135,7 +135,7 @@ func (m *ItemNotificationsRequestBuilder) ToGetRequestInformation(ctx context.Co return requestInfo, nil } // ToPostRequestInformation create new navigation property to notifications for users -// Deprecated: The Graph Notification API is deprecated and will stop returning data on March 20, 2023. as of 2023-03/Notification_Deprecation +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemNotificationsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Notificationable, requestConfiguration *ItemNotificationsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,7 +151,7 @@ func (m *ItemNotificationsRequestBuilder) ToPostRequestInformation(ctx context.C return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Graph Notification API is deprecated and will stop returning data on March 20, 2023. as of 2023-03/Notification_Deprecation +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemNotificationsRequestBuilder when successful func (m *ItemNotificationsRequestBuilder) WithUrl(rawUrl string)(*ItemNotificationsRequestBuilder) { return NewItemNotificationsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_oauth2_permission_grants_count_request_builder.go b/users/item_oauth2_permission_grants_count_request_builder.go index d5d52baf9f8..6ec6cc15c48 100644 --- a/users/item_oauth2_permission_grants_count_request_builder.go +++ b/users/item_oauth2_permission_grants_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemOauth2PermissionGrantsCountRequestBuilder(rawUrl string, requestAdap return NewItemOauth2PermissionGrantsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOauth2PermissionGrantsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOauth2PermissionGrantsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemOauth2PermissionGrantsCountRequestBuilder) Get(ctx context.Context, return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOauth2PermissionGrantsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOauth2PermissionGrantsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemOauth2PermissionGrantsCountRequestBuilder) ToGetRequestInformation( return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOauth2PermissionGrantsCountRequestBuilder when successful func (m *ItemOauth2PermissionGrantsCountRequestBuilder) WithUrl(rawUrl string)(*ItemOauth2PermissionGrantsCountRequestBuilder) { return NewItemOauth2PermissionGrantsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_oauth2_permission_grants_o_auth2_permission_grant_item_request_builder.go b/users/item_oauth2_permission_grants_o_auth2_permission_grant_item_request_builder.go index 135d582d13c..37bca10a657 100644 --- a/users/item_oauth2_permission_grants_o_auth2_permission_grant_item_request_builder.go +++ b/users/item_oauth2_permission_grants_o_auth2_permission_grant_item_request_builder.go @@ -41,6 +41,7 @@ func NewItemOauth2PermissionGrantsOAuth2PermissionGrantItemRequestBuilder(rawUrl return NewItemOauth2PermissionGrantsOAuth2PermissionGrantItemRequestBuilderInternal(urlParams, requestAdapter) } // Get get oauth2PermissionGrants from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OAuth2PermissionGrantable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOauth2PermissionGrantsOAuth2PermissionGrantItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOauth2PermissionGrantsOAuth2PermissionGrantItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OAuth2PermissionGrantable, error) { @@ -61,6 +62,7 @@ func (m *ItemOauth2PermissionGrantsOAuth2PermissionGrantItemRequestBuilder) Get( return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OAuth2PermissionGrantable), nil } // ToGetRequestInformation get oauth2PermissionGrants from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOauth2PermissionGrantsOAuth2PermissionGrantItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOauth2PermissionGrantsOAuth2PermissionGrantItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemOauth2PermissionGrantsOAuth2PermissionGrantItemRequestBuilder) ToGe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOauth2PermissionGrantsOAuth2PermissionGrantItemRequestBuilder when successful func (m *ItemOauth2PermissionGrantsOAuth2PermissionGrantItemRequestBuilder) WithUrl(rawUrl string)(*ItemOauth2PermissionGrantsOAuth2PermissionGrantItemRequestBuilder) { return NewItemOauth2PermissionGrantsOAuth2PermissionGrantItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_oauth2_permission_grants_request_builder.go b/users/item_oauth2_permission_grants_request_builder.go index 691d861393a..c3cce2fb727 100644 --- a/users/item_oauth2_permission_grants_request_builder.go +++ b/users/item_oauth2_permission_grants_request_builder.go @@ -40,6 +40,7 @@ type ItemOauth2PermissionGrantsRequestBuilderGetRequestConfiguration struct { QueryParameters *ItemOauth2PermissionGrantsRequestBuilderGetQueryParameters } // ByOAuth2PermissionGrantId provides operations to manage the oauth2PermissionGrants property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOauth2PermissionGrantsOAuth2PermissionGrantItemRequestBuilder when successful func (m *ItemOauth2PermissionGrantsRequestBuilder) ByOAuth2PermissionGrantId(oAuth2PermissionGrantId string)(*ItemOauth2PermissionGrantsOAuth2PermissionGrantItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -70,6 +71,7 @@ func (m *ItemOauth2PermissionGrantsRequestBuilder) Count()(*ItemOauth2Permission return NewItemOauth2PermissionGrantsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get retrieve a list of oAuth2PermissionGrant entities, which represent delegated permissions granted to enable a client application to access an API on behalf of the user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OAuth2PermissionGrantCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -93,6 +95,7 @@ func (m *ItemOauth2PermissionGrantsRequestBuilder) Get(ctx context.Context, requ return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OAuth2PermissionGrantCollectionResponseable), nil } // ToGetRequestInformation retrieve a list of oAuth2PermissionGrant entities, which represent delegated permissions granted to enable a client application to access an API on behalf of the user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOauth2PermissionGrantsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOauth2PermissionGrantsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -107,6 +110,7 @@ func (m *ItemOauth2PermissionGrantsRequestBuilder) ToGetRequestInformation(ctx c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOauth2PermissionGrantsRequestBuilder when successful func (m *ItemOauth2PermissionGrantsRequestBuilder) WithUrl(rawUrl string)(*ItemOauth2PermissionGrantsRequestBuilder) { return NewItemOauth2PermissionGrantsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_notebooks_count_request_builder.go b/users/item_onenote_notebooks_count_request_builder.go index cb731ede97f..f8b8a989de3 100644 --- a/users/item_onenote_notebooks_count_request_builder.go +++ b/users/item_onenote_notebooks_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemOnenoteNotebooksCountRequestBuilder(rawUrl string, requestAdapter i2 return NewItemOnenoteNotebooksCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemOnenoteNotebooksCountRequestBuilder) Get(ctx context.Context, reque return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemOnenoteNotebooksCountRequestBuilder) ToGetRequestInformation(ctx co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksCountRequestBuilder when successful func (m *ItemOnenoteNotebooksCountRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteNotebooksCountRequestBuilder) { return NewItemOnenoteNotebooksCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_notebooks_get_notebook_from_web_url_request_builder.go b/users/item_onenote_notebooks_get_notebook_from_web_url_request_builder.go index b4f0e990259..e39dea36edf 100644 --- a/users/item_onenote_notebooks_get_notebook_from_web_url_request_builder.go +++ b/users/item_onenote_notebooks_get_notebook_from_web_url_request_builder.go @@ -32,6 +32,7 @@ func NewItemOnenoteNotebooksGetNotebookFromWebUrlRequestBuilder(rawUrl string, r return NewItemOnenoteNotebooksGetNotebookFromWebUrlRequestBuilderInternal(urlParams, requestAdapter) } // Post retrieve the properties and relationships of a notebook object by using its URL path. The location can be user notebooks on Microsoft 365, group notebooks, or SharePoint site-hosted team notebooks on Microsoft 365. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a CopyNotebookModelable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemOnenoteNotebooksGetNotebookFromWebUrlRequestBuilder) Post(ctx conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CopyNotebookModelable), nil } // ToPostRequestInformation retrieve the properties and relationships of a notebook object by using its URL path. The location can be user notebooks on Microsoft 365, group notebooks, or SharePoint site-hosted team notebooks on Microsoft 365. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksGetNotebookFromWebUrlRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemOnenoteNotebooksGetNotebookFromWebUrlPostRequestBodyable, requestConfiguration *ItemOnenoteNotebooksGetNotebookFromWebUrlRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemOnenoteNotebooksGetNotebookFromWebUrlRequestBuilder) ToPostRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksGetNotebookFromWebUrlRequestBuilder when successful func (m *ItemOnenoteNotebooksGetNotebookFromWebUrlRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteNotebooksGetNotebookFromWebUrlRequestBuilder) { return NewItemOnenoteNotebooksGetNotebookFromWebUrlRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_notebooks_get_recent_notebooks_with_include_personal_notebooks_request_builder.go b/users/item_onenote_notebooks_get_recent_notebooks_with_include_personal_notebooks_request_builder.go index 946fbf9f9f3..86fd3086ca1 100644 --- a/users/item_onenote_notebooks_get_recent_notebooks_with_include_personal_notebooks_request_builder.go +++ b/users/item_onenote_notebooks_get_recent_notebooks_with_include_personal_notebooks_request_builder.go @@ -74,6 +74,7 @@ func (m *ItemOnenoteNotebooksGetRecentNotebooksWithIncludePersonalNotebooksReque return res.(ItemOnenoteNotebooksGetRecentNotebooksWithIncludePersonalNotebooksResponseable), nil } // GetAsGetRecentNotebooksWithIncludePersonalNotebooksGetResponse get a list of recentNotebook instances that have been accessed by the signed-in user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemOnenoteNotebooksGetRecentNotebooksWithIncludePersonalNotebooksGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -97,6 +98,7 @@ func (m *ItemOnenoteNotebooksGetRecentNotebooksWithIncludePersonalNotebooksReque return res.(ItemOnenoteNotebooksGetRecentNotebooksWithIncludePersonalNotebooksGetResponseable), nil } // ToGetRequestInformation get a list of recentNotebook instances that have been accessed by the signed-in user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksGetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksGetRecentNotebooksWithIncludePersonalNotebooksRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -111,6 +113,7 @@ func (m *ItemOnenoteNotebooksGetRecentNotebooksWithIncludePersonalNotebooksReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksGetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder when successful func (m *ItemOnenoteNotebooksGetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteNotebooksGetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder) { return NewItemOnenoteNotebooksGetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_notebooks_item_copy_notebook_request_builder.go b/users/item_onenote_notebooks_item_copy_notebook_request_builder.go index 5717e1cba22..de801911be1 100644 --- a/users/item_onenote_notebooks_item_copy_notebook_request_builder.go +++ b/users/item_onenote_notebooks_item_copy_notebook_request_builder.go @@ -32,6 +32,7 @@ func NewItemOnenoteNotebooksItemCopyNotebookRequestBuilder(rawUrl string, reques return NewItemOnenoteNotebooksItemCopyNotebookRequestBuilderInternal(urlParams, requestAdapter) } // Post copies a notebook to the Notebooks folder in the destination Documents library. The folder is created if it doesn't exist. For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenoteOperationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemOnenoteNotebooksItemCopyNotebookRequestBuilder) Post(ctx context.Co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteOperationable), nil } // ToPostRequestInformation copies a notebook to the Notebooks folder in the destination Documents library. The folder is created if it doesn't exist. For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemCopyNotebookRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemOnenoteNotebooksItemCopyNotebookPostRequestBodyable, requestConfiguration *ItemOnenoteNotebooksItemCopyNotebookRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemOnenoteNotebooksItemCopyNotebookRequestBuilder) ToPostRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemCopyNotebookRequestBuilder when successful func (m *ItemOnenoteNotebooksItemCopyNotebookRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteNotebooksItemCopyNotebookRequestBuilder) { return NewItemOnenoteNotebooksItemCopyNotebookRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_notebooks_item_section_groups_count_request_builder.go b/users/item_onenote_notebooks_item_section_groups_count_request_builder.go index 94dfdc5ee2e..06a1c1ba50f 100644 --- a/users/item_onenote_notebooks_item_section_groups_count_request_builder.go +++ b/users/item_onenote_notebooks_item_section_groups_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemOnenoteNotebooksItemSectionGroupsCountRequestBuilder(rawUrl string, return NewItemOnenoteNotebooksItemSectionGroupsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionGroupsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsCountRequestBuilder) Get(ctx conte return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionGroupsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsCountRequestBuilder) ToGetRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemSectionGroupsCountRequestBuilder when successful func (m *ItemOnenoteNotebooksItemSectionGroupsCountRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteNotebooksItemSectionGroupsCountRequestBuilder) { return NewItemOnenoteNotebooksItemSectionGroupsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_notebooks_item_section_groups_item_parent_notebook_request_builder.go b/users/item_onenote_notebooks_item_section_groups_item_parent_notebook_request_builder.go index 2cbbed8dc8f..34bf122889f 100644 --- a/users/item_onenote_notebooks_item_section_groups_item_parent_notebook_request_builder.go +++ b/users/item_onenote_notebooks_item_section_groups_item_parent_notebook_request_builder.go @@ -41,6 +41,7 @@ func NewItemOnenoteNotebooksItemSectionGroupsItemParentNotebookRequestBuilder(ra return NewItemOnenoteNotebooksItemSectionGroupsItemParentNotebookRequestBuilderInternal(urlParams, requestAdapter) } // Get the notebook that contains the section group. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Notebookable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionGroupsItemParentNotebookRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemParentNotebookRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Notebookable, error) { @@ -61,6 +62,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemParentNotebookRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Notebookable), nil } // ToGetRequestInformation the notebook that contains the section group. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemParentNotebookRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemParentNotebookRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemParentNotebookRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemSectionGroupsItemParentNotebookRequestBuilder when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemParentNotebookRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteNotebooksItemSectionGroupsItemParentNotebookRequestBuilder) { return NewItemOnenoteNotebooksItemSectionGroupsItemParentNotebookRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_notebooks_item_section_groups_item_parent_section_group_request_builder.go b/users/item_onenote_notebooks_item_section_groups_item_parent_section_group_request_builder.go index 49f75c60219..813d8d381ba 100644 --- a/users/item_onenote_notebooks_item_section_groups_item_parent_section_group_request_builder.go +++ b/users/item_onenote_notebooks_item_section_groups_item_parent_section_group_request_builder.go @@ -41,6 +41,7 @@ func NewItemOnenoteNotebooksItemSectionGroupsItemParentSectionGroupRequestBuilde return NewItemOnenoteNotebooksItemSectionGroupsItemParentSectionGroupRequestBuilderInternal(urlParams, requestAdapter) } // Get the section group that contains the section group. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SectionGroupable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionGroupsItemParentSectionGroupRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemParentSectionGroupRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SectionGroupable, error) { @@ -61,6 +62,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemParentSectionGroupRequestBuild return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SectionGroupable), nil } // ToGetRequestInformation the section group that contains the section group. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemParentSectionGroupRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemParentSectionGroupRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemParentSectionGroupRequestBuild return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemSectionGroupsItemParentSectionGroupRequestBuilder when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemParentSectionGroupRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteNotebooksItemSectionGroupsItemParentSectionGroupRequestBuilder) { return NewItemOnenoteNotebooksItemSectionGroupsItemParentSectionGroupRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_notebooks_item_section_groups_item_section_groups_count_request_builder.go b/users/item_onenote_notebooks_item_section_groups_item_section_groups_count_request_builder.go index 46d7c7bf48f..4154267716b 100644 --- a/users/item_onenote_notebooks_item_section_groups_item_section_groups_count_request_builder.go +++ b/users/item_onenote_notebooks_item_section_groups_item_section_groups_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemOnenoteNotebooksItemSectionGroupsItemSectionGroupsCountRequestBuilde return NewItemOnenoteNotebooksItemSectionGroupsItemSectionGroupsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionGroupsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionGroupsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionGroupsCountRequestBuild return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionGroupsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionGroupsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionGroupsCountRequestBuild return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemSectionGroupsItemSectionGroupsCountRequestBuilder when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionGroupsCountRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteNotebooksItemSectionGroupsItemSectionGroupsCountRequestBuilder) { return NewItemOnenoteNotebooksItemSectionGroupsItemSectionGroupsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_notebooks_item_section_groups_item_section_groups_request_builder.go b/users/item_onenote_notebooks_item_section_groups_item_section_groups_request_builder.go index aeae7a450b5..79c8edfa2ec 100644 --- a/users/item_onenote_notebooks_item_section_groups_item_section_groups_request_builder.go +++ b/users/item_onenote_notebooks_item_section_groups_item_section_groups_request_builder.go @@ -40,6 +40,7 @@ type ItemOnenoteNotebooksItemSectionGroupsItemSectionGroupsRequestBuilderGetRequ QueryParameters *ItemOnenoteNotebooksItemSectionGroupsItemSectionGroupsRequestBuilderGetQueryParameters } // BySectionGroupId1 provides operations to manage the sectionGroups property of the microsoft.graph.sectionGroup entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemSectionGroupsItemSectionGroupsSectionGroupItemRequestBuilder when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionGroupsRequestBuilder) BySectionGroupId1(sectionGroupId1 string)(*ItemOnenoteNotebooksItemSectionGroupsItemSectionGroupsSectionGroupItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -70,6 +71,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionGroupsRequestBuilder) C return NewItemOnenoteNotebooksItemSectionGroupsItemSectionGroupsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the section groups in the section. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SectionGroupCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionGroupsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionGroupsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SectionGroupCollectionResponseable, error) { @@ -90,6 +92,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionGroupsRequestBuilder) G return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SectionGroupCollectionResponseable), nil } // ToGetRequestInformation the section groups in the section. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionGroupsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionGroupsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -104,6 +107,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionGroupsRequestBuilder) T return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemSectionGroupsItemSectionGroupsRequestBuilder when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionGroupsRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteNotebooksItemSectionGroupsItemSectionGroupsRequestBuilder) { return NewItemOnenoteNotebooksItemSectionGroupsItemSectionGroupsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_notebooks_item_section_groups_item_section_groups_section_group_item_request_builder.go b/users/item_onenote_notebooks_item_section_groups_item_section_groups_section_group_item_request_builder.go index d407628840f..01b61fa1436 100644 --- a/users/item_onenote_notebooks_item_section_groups_item_section_groups_section_group_item_request_builder.go +++ b/users/item_onenote_notebooks_item_section_groups_item_section_groups_section_group_item_request_builder.go @@ -41,6 +41,7 @@ func NewItemOnenoteNotebooksItemSectionGroupsItemSectionGroupsSectionGroupItemRe return NewItemOnenoteNotebooksItemSectionGroupsItemSectionGroupsSectionGroupItemRequestBuilderInternal(urlParams, requestAdapter) } // Get the section groups in the section. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SectionGroupable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionGroupsSectionGroupItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionGroupsSectionGroupItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SectionGroupable, error) { @@ -61,6 +62,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionGroupsSectionGroupItemR return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SectionGroupable), nil } // ToGetRequestInformation the section groups in the section. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionGroupsSectionGroupItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionGroupsSectionGroupItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionGroupsSectionGroupItemR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemSectionGroupsItemSectionGroupsSectionGroupItemRequestBuilder when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionGroupsSectionGroupItemRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteNotebooksItemSectionGroupsItemSectionGroupsSectionGroupItemRequestBuilder) { return NewItemOnenoteNotebooksItemSectionGroupsItemSectionGroupsSectionGroupItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_notebooks_item_section_groups_item_sections_count_request_builder.go b/users/item_onenote_notebooks_item_section_groups_item_sections_count_request_builder.go index 8350bbccf03..70ef9fcba95 100644 --- a/users/item_onenote_notebooks_item_section_groups_item_sections_count_request_builder.go +++ b/users/item_onenote_notebooks_item_section_groups_item_sections_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemOnenoteNotebooksItemSectionGroupsItemSectionsCountRequestBuilder(raw return NewItemOnenoteNotebooksItemSectionGroupsItemSectionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsCountRequestBuilder) G return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsCountRequestBuilder) T return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemSectionGroupsItemSectionsCountRequestBuilder when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteNotebooksItemSectionGroupsItemSectionsCountRequestBuilder) { return NewItemOnenoteNotebooksItemSectionGroupsItemSectionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_notebooks_item_section_groups_item_sections_item_copy_to_notebook_request_builder.go b/users/item_onenote_notebooks_item_section_groups_item_sections_item_copy_to_notebook_request_builder.go index 0b4a0b0dcd9..e0215bb5ccc 100644 --- a/users/item_onenote_notebooks_item_section_groups_item_sections_item_copy_to_notebook_request_builder.go +++ b/users/item_onenote_notebooks_item_section_groups_item_sections_item_copy_to_notebook_request_builder.go @@ -32,6 +32,7 @@ func NewItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToNotebookReque return NewItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToNotebookRequestBuilderInternal(urlParams, requestAdapter) } // Post copies a section to a specific notebook. For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenoteOperationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToNotebookRequ return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteOperationable), nil } // ToPostRequestInformation copies a section to a specific notebook. For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToNotebookRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToNotebookPostRequestBodyable, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToNotebookRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToNotebookRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToNotebookRequestBuilder when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToNotebookRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToNotebookRequestBuilder) { return NewItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToNotebookRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_notebooks_item_section_groups_item_sections_item_copy_to_section_group_request_builder.go b/users/item_onenote_notebooks_item_section_groups_item_sections_item_copy_to_section_group_request_builder.go index 71056e8d64e..fb56a2de981 100644 --- a/users/item_onenote_notebooks_item_section_groups_item_sections_item_copy_to_section_group_request_builder.go +++ b/users/item_onenote_notebooks_item_section_groups_item_sections_item_copy_to_section_group_request_builder.go @@ -32,6 +32,7 @@ func NewItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToSectionGroupR return NewItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToSectionGroupRequestBuilderInternal(urlParams, requestAdapter) } // Post copies a section to a specific section group. For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenoteOperationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToSectionGroup return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteOperationable), nil } // ToPostRequestInformation copies a section to a specific section group. For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToSectionGroupRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBodyable, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToSectionGroupRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToSectionGroup return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToSectionGroupRequestBuilder when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToSectionGroupRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToSectionGroupRequestBuilder) { return NewItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToSectionGroupRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_notebooks_item_section_groups_item_sections_item_pages_count_request_builder.go b/users/item_onenote_notebooks_item_section_groups_item_sections_item_pages_count_request_builder.go index ebb43b55a0e..9f0c84e6f3c 100644 --- a/users/item_onenote_notebooks_item_section_groups_item_sections_item_pages_count_request_builder.go +++ b/users/item_onenote_notebooks_item_section_groups_item_sections_item_pages_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesCountRequestBu return NewItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesCountRequestB return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesCountRequestB return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesCountRequestBuilder when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesCountRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesCountRequestBuilder) { return NewItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_notebooks_item_section_groups_item_sections_item_pages_item_content_request_builder.go b/users/item_onenote_notebooks_item_section_groups_item_sections_item_pages_item_content_request_builder.go index e88c991e55a..e0c33befd37 100644 --- a/users/item_onenote_notebooks_item_section_groups_item_sections_item_pages_item_content_request_builder.go +++ b/users/item_onenote_notebooks_item_section_groups_item_sections_item_pages_item_content_request_builder.go @@ -46,6 +46,7 @@ func NewItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemContentReq return NewItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemContentRequestBuilderInternal(urlParams, requestAdapter) } // Delete the page's HTML content. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemContentRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemContentRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -62,6 +63,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemContentRe return nil } // Get the page's HTML content. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemContentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemContentRequestBuilderGetRequestConfiguration)([]byte, error) { @@ -82,6 +84,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemContentRe return res.([]byte), nil } // Put the page's HTML content. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenotePageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemContentRequestBuilderPutRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable, error) { @@ -102,6 +105,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemContentRe return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable), nil } // ToDeleteRequestInformation the page's HTML content. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemContentRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemContentRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,6 +117,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemContentRe return requestInfo, nil } // ToGetRequestInformation the page's HTML content. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -124,6 +129,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemContentRe return requestInfo, nil } // ToPutRequestInformation the page's HTML content. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +142,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemContentRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemContentRequestBuilder when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemContentRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemContentRequestBuilder) { return NewItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemContentRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_notebooks_item_section_groups_item_sections_item_pages_item_preview_request_builder.go b/users/item_onenote_notebooks_item_section_groups_item_sections_item_pages_item_preview_request_builder.go index 502315a1ab2..a7a496b164f 100644 --- a/users/item_onenote_notebooks_item_section_groups_item_sections_item_pages_item_preview_request_builder.go +++ b/users/item_onenote_notebooks_item_section_groups_item_sections_item_pages_item_preview_request_builder.go @@ -32,6 +32,7 @@ func NewItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemPreviewReq return NewItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemPreviewRequestBuilderInternal(urlParams, requestAdapter) } // Get invoke function preview +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenotePagePreviewable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemPreviewRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemPreviewRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePagePreviewable, error) { @@ -52,6 +53,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemPreviewRe return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePagePreviewable), nil } // ToGetRequestInformation invoke function preview +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemPreviewRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemPreviewRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -63,6 +65,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemPreviewRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemPreviewRequestBuilder when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemPreviewRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemPreviewRequestBuilder) { return NewItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesItemPreviewRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_notebooks_item_section_groups_item_sections_item_pages_request_builder.go b/users/item_onenote_notebooks_item_section_groups_item_sections_item_pages_request_builder.go index 1f73a683c49..44f7a06c812 100644 --- a/users/item_onenote_notebooks_item_section_groups_item_sections_item_pages_request_builder.go +++ b/users/item_onenote_notebooks_item_section_groups_item_sections_item_pages_request_builder.go @@ -47,6 +47,7 @@ type ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesRequestBuilderPos Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByOnenotePageId provides operations to manage the pages property of the microsoft.graph.onenoteSection entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesOnenotePageItemRequestBuilder when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesRequestBuilder) ByOnenotePageId(onenotePageId string)(*ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesOnenotePageItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesRequestBuilde return NewItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of pages in the section. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenotePageCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesRequestBuilde return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageCollectionResponseable), nil } // Post create new navigation property to pages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenotePageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable, error) { @@ -117,6 +120,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesRequestBuilde return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable), nil } // ToGetRequestInformation the collection of pages in the section. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesRequestBuilde return requestInfo, nil } // ToPostRequestInformation create new navigation property to pages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesRequestBuilde return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesRequestBuilder when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesRequestBuilder) { return NewItemOnenoteNotebooksItemSectionGroupsItemSectionsItemPagesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_notebooks_item_section_groups_item_sections_item_parent_notebook_request_builder.go b/users/item_onenote_notebooks_item_section_groups_item_sections_item_parent_notebook_request_builder.go index 3ede80a633b..1732591c464 100644 --- a/users/item_onenote_notebooks_item_section_groups_item_sections_item_parent_notebook_request_builder.go +++ b/users/item_onenote_notebooks_item_section_groups_item_sections_item_parent_notebook_request_builder.go @@ -41,6 +41,7 @@ func NewItemOnenoteNotebooksItemSectionGroupsItemSectionsItemParentNotebookReque return NewItemOnenoteNotebooksItemSectionGroupsItemSectionsItemParentNotebookRequestBuilderInternal(urlParams, requestAdapter) } // Get the notebook that contains the section. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Notebookable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemParentNotebookRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemParentNotebookRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Notebookable, error) { @@ -61,6 +62,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemParentNotebookRequ return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Notebookable), nil } // ToGetRequestInformation the notebook that contains the section. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemParentNotebookRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemParentNotebookRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemParentNotebookRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemParentNotebookRequestBuilder when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemParentNotebookRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemParentNotebookRequestBuilder) { return NewItemOnenoteNotebooksItemSectionGroupsItemSectionsItemParentNotebookRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_notebooks_item_section_groups_item_sections_item_parent_section_group_request_builder.go b/users/item_onenote_notebooks_item_section_groups_item_sections_item_parent_section_group_request_builder.go index c51f6167162..b6cf5f3b7be 100644 --- a/users/item_onenote_notebooks_item_section_groups_item_sections_item_parent_section_group_request_builder.go +++ b/users/item_onenote_notebooks_item_section_groups_item_sections_item_parent_section_group_request_builder.go @@ -41,6 +41,7 @@ func NewItemOnenoteNotebooksItemSectionGroupsItemSectionsItemParentSectionGroupR return NewItemOnenoteNotebooksItemSectionGroupsItemSectionsItemParentSectionGroupRequestBuilderInternal(urlParams, requestAdapter) } // Get the section group that contains the section. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SectionGroupable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemParentSectionGroupRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemParentSectionGroupRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SectionGroupable, error) { @@ -61,6 +62,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemParentSectionGroup return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SectionGroupable), nil } // ToGetRequestInformation the section group that contains the section. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemParentSectionGroupRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemParentSectionGroupRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemParentSectionGroup return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemParentSectionGroupRequestBuilder when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemParentSectionGroupRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteNotebooksItemSectionGroupsItemSectionsItemParentSectionGroupRequestBuilder) { return NewItemOnenoteNotebooksItemSectionGroupsItemSectionsItemParentSectionGroupRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_notebooks_item_section_groups_item_sections_onenote_section_item_request_builder.go b/users/item_onenote_notebooks_item_section_groups_item_sections_onenote_section_item_request_builder.go index ea21000a746..e348aac92ec 100644 --- a/users/item_onenote_notebooks_item_section_groups_item_sections_onenote_section_item_request_builder.go +++ b/users/item_onenote_notebooks_item_section_groups_item_sections_onenote_section_item_request_builder.go @@ -65,6 +65,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsOnenoteSectionItemRequ return NewItemOnenoteNotebooksItemSectionGroupsItemSectionsItemCopyToSectionGroupRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Delete delete navigation property sections for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsOnenoteSectionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionsOnenoteSectionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -81,6 +82,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsOnenoteSectionItemRequ return nil } // Get the sections in the section group. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenoteSectionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsOnenoteSectionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionsOnenoteSectionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionable, error) { @@ -116,6 +118,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsOnenoteSectionItemRequ return NewItemOnenoteNotebooksItemSectionGroupsItemSectionsItemParentSectionGroupRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property sections in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenoteSectionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsOnenoteSectionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionable, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionsOnenoteSectionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionable, error) { @@ -136,6 +139,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsOnenoteSectionItemRequ return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionable), nil } // ToDeleteRequestInformation delete navigation property sections for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsOnenoteSectionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionsOnenoteSectionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -147,6 +151,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsOnenoteSectionItemRequ return requestInfo, nil } // ToGetRequestInformation the sections in the section group. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsOnenoteSectionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionsOnenoteSectionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -161,6 +166,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsOnenoteSectionItemRequ return requestInfo, nil } // ToPatchRequestInformation update the navigation property sections in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsOnenoteSectionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionable, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionsOnenoteSectionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -176,6 +182,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsOnenoteSectionItemRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemSectionGroupsItemSectionsOnenoteSectionItemRequestBuilder when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsOnenoteSectionItemRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteNotebooksItemSectionGroupsItemSectionsOnenoteSectionItemRequestBuilder) { return NewItemOnenoteNotebooksItemSectionGroupsItemSectionsOnenoteSectionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_notebooks_item_section_groups_item_sections_request_builder.go b/users/item_onenote_notebooks_item_section_groups_item_sections_request_builder.go index 740b7b03510..b32325651fa 100644 --- a/users/item_onenote_notebooks_item_section_groups_item_sections_request_builder.go +++ b/users/item_onenote_notebooks_item_section_groups_item_sections_request_builder.go @@ -47,6 +47,7 @@ type ItemOnenoteNotebooksItemSectionGroupsItemSectionsRequestBuilderPostRequestC Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByOnenoteSectionId provides operations to manage the sections property of the microsoft.graph.sectionGroup entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemSectionGroupsItemSectionsOnenoteSectionItemRequestBuilder when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsRequestBuilder) ByOnenoteSectionId(onenoteSectionId string)(*ItemOnenoteNotebooksItemSectionGroupsItemSectionsOnenoteSectionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsRequestBuilder) Count( return NewItemOnenoteNotebooksItemSectionGroupsItemSectionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the sections in the section group. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenoteSectionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsRequestBuilder) Get(ct return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionCollectionResponseable), nil } // Post create new navigation property to sections for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenoteSectionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionable, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionable, error) { @@ -117,6 +120,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsRequestBuilder) Post(c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionable), nil } // ToGetRequestInformation the sections in the section group. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsRequestBuilder) ToGetR return requestInfo, nil } // ToPostRequestInformation create new navigation property to sections for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionable, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsItemSectionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsRequestBuilder) ToPost return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemSectionGroupsItemSectionsRequestBuilder when successful func (m *ItemOnenoteNotebooksItemSectionGroupsItemSectionsRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteNotebooksItemSectionGroupsItemSectionsRequestBuilder) { return NewItemOnenoteNotebooksItemSectionGroupsItemSectionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_notebooks_item_section_groups_request_builder.go b/users/item_onenote_notebooks_item_section_groups_request_builder.go index ff3ebede0c9..f147b6e2acf 100644 --- a/users/item_onenote_notebooks_item_section_groups_request_builder.go +++ b/users/item_onenote_notebooks_item_section_groups_request_builder.go @@ -47,6 +47,7 @@ type ItemOnenoteNotebooksItemSectionGroupsRequestBuilderPostRequestConfiguration Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // BySectionGroupId provides operations to manage the sectionGroups property of the microsoft.graph.notebook entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemSectionGroupsSectionGroupItemRequestBuilder when successful func (m *ItemOnenoteNotebooksItemSectionGroupsRequestBuilder) BySectionGroupId(sectionGroupId string)(*ItemOnenoteNotebooksItemSectionGroupsSectionGroupItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsRequestBuilder) Count()(*ItemOneno return NewItemOnenoteNotebooksItemSectionGroupsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the section groups in the notebook. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SectionGroupCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionGroupsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SectionGroupCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsRequestBuilder) Get(ctx context.Co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SectionGroupCollectionResponseable), nil } // Post create new navigation property to sectionGroups for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SectionGroupable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionGroupsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SectionGroupable, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SectionGroupable, error) { @@ -117,6 +120,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsRequestBuilder) Post(ctx context.C return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SectionGroupable), nil } // ToGetRequestInformation the section groups in the notebook. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionGroupsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsRequestBuilder) ToGetRequestInform return requestInfo, nil } // ToPostRequestInformation create new navigation property to sectionGroups for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SectionGroupable, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsRequestBuilder) ToPostRequestInfor return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemSectionGroupsRequestBuilder when successful func (m *ItemOnenoteNotebooksItemSectionGroupsRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteNotebooksItemSectionGroupsRequestBuilder) { return NewItemOnenoteNotebooksItemSectionGroupsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_notebooks_item_section_groups_section_group_item_request_builder.go b/users/item_onenote_notebooks_item_section_groups_section_group_item_request_builder.go index 792260595f0..f19f10e355b 100644 --- a/users/item_onenote_notebooks_item_section_groups_section_group_item_request_builder.go +++ b/users/item_onenote_notebooks_item_section_groups_section_group_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemOnenoteNotebooksItemSectionGroupsSectionGroupItemRequestBuilder(rawU return NewItemOnenoteNotebooksItemSectionGroupsSectionGroupItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property sectionGroups for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionGroupsSectionGroupItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsSectionGroupItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsSectionGroupItemRequestBuilder) De return nil } // Get the section groups in the notebook. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SectionGroupable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionGroupsSectionGroupItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsSectionGroupItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SectionGroupable, error) { @@ -101,6 +103,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsSectionGroupItemRequestBuilder) Pa return NewItemOnenoteNotebooksItemSectionGroupsItemParentSectionGroupRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property sectionGroups in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SectionGroupable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionGroupsSectionGroupItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SectionGroupable, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsSectionGroupItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SectionGroupable, error) { @@ -131,6 +134,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsSectionGroupItemRequestBuilder) Se return NewItemOnenoteNotebooksItemSectionGroupsItemSectionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property sectionGroups for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionGroupsSectionGroupItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsSectionGroupItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -142,6 +146,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsSectionGroupItemRequestBuilder) To return requestInfo, nil } // ToGetRequestInformation the section groups in the notebook. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionGroupsSectionGroupItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsSectionGroupItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +161,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsSectionGroupItemRequestBuilder) To return requestInfo, nil } // ToPatchRequestInformation update the navigation property sectionGroups in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionGroupsSectionGroupItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SectionGroupable, requestConfiguration *ItemOnenoteNotebooksItemSectionGroupsSectionGroupItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -171,6 +177,7 @@ func (m *ItemOnenoteNotebooksItemSectionGroupsSectionGroupItemRequestBuilder) To return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemSectionGroupsSectionGroupItemRequestBuilder when successful func (m *ItemOnenoteNotebooksItemSectionGroupsSectionGroupItemRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteNotebooksItemSectionGroupsSectionGroupItemRequestBuilder) { return NewItemOnenoteNotebooksItemSectionGroupsSectionGroupItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_notebooks_item_sections_count_request_builder.go b/users/item_onenote_notebooks_item_sections_count_request_builder.go index a21bf061120..f6c1ddf352f 100644 --- a/users/item_onenote_notebooks_item_sections_count_request_builder.go +++ b/users/item_onenote_notebooks_item_sections_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemOnenoteNotebooksItemSectionsCountRequestBuilder(rawUrl string, reque return NewItemOnenoteNotebooksItemSectionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemOnenoteNotebooksItemSectionsCountRequestBuilder) Get(ctx context.Co return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemOnenoteNotebooksItemSectionsCountRequestBuilder) ToGetRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemSectionsCountRequestBuilder when successful func (m *ItemOnenoteNotebooksItemSectionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteNotebooksItemSectionsCountRequestBuilder) { return NewItemOnenoteNotebooksItemSectionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_notebooks_item_sections_item_copy_to_notebook_request_builder.go b/users/item_onenote_notebooks_item_sections_item_copy_to_notebook_request_builder.go index 2696cdf8436..c8be0f9ec40 100644 --- a/users/item_onenote_notebooks_item_sections_item_copy_to_notebook_request_builder.go +++ b/users/item_onenote_notebooks_item_sections_item_copy_to_notebook_request_builder.go @@ -32,6 +32,7 @@ func NewItemOnenoteNotebooksItemSectionsItemCopyToNotebookRequestBuilder(rawUrl return NewItemOnenoteNotebooksItemSectionsItemCopyToNotebookRequestBuilderInternal(urlParams, requestAdapter) } // Post copies a section to a specific notebook. For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenoteOperationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemOnenoteNotebooksItemSectionsItemCopyToNotebookRequestBuilder) Post( return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteOperationable), nil } // ToPostRequestInformation copies a section to a specific notebook. For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionsItemCopyToNotebookRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemOnenoteNotebooksItemSectionsItemCopyToNotebookPostRequestBodyable, requestConfiguration *ItemOnenoteNotebooksItemSectionsItemCopyToNotebookRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemOnenoteNotebooksItemSectionsItemCopyToNotebookRequestBuilder) ToPos return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemSectionsItemCopyToNotebookRequestBuilder when successful func (m *ItemOnenoteNotebooksItemSectionsItemCopyToNotebookRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteNotebooksItemSectionsItemCopyToNotebookRequestBuilder) { return NewItemOnenoteNotebooksItemSectionsItemCopyToNotebookRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_notebooks_item_sections_item_copy_to_section_group_request_builder.go b/users/item_onenote_notebooks_item_sections_item_copy_to_section_group_request_builder.go index 8cbbccab7c4..8f1066e7bd9 100644 --- a/users/item_onenote_notebooks_item_sections_item_copy_to_section_group_request_builder.go +++ b/users/item_onenote_notebooks_item_sections_item_copy_to_section_group_request_builder.go @@ -32,6 +32,7 @@ func NewItemOnenoteNotebooksItemSectionsItemCopyToSectionGroupRequestBuilder(raw return NewItemOnenoteNotebooksItemSectionsItemCopyToSectionGroupRequestBuilderInternal(urlParams, requestAdapter) } // Post copies a section to a specific section group. For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenoteOperationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemOnenoteNotebooksItemSectionsItemCopyToSectionGroupRequestBuilder) P return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteOperationable), nil } // ToPostRequestInformation copies a section to a specific section group. For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionsItemCopyToSectionGroupRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemOnenoteNotebooksItemSectionsItemCopyToSectionGroupPostRequestBodyable, requestConfiguration *ItemOnenoteNotebooksItemSectionsItemCopyToSectionGroupRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemOnenoteNotebooksItemSectionsItemCopyToSectionGroupRequestBuilder) T return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemSectionsItemCopyToSectionGroupRequestBuilder when successful func (m *ItemOnenoteNotebooksItemSectionsItemCopyToSectionGroupRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteNotebooksItemSectionsItemCopyToSectionGroupRequestBuilder) { return NewItemOnenoteNotebooksItemSectionsItemCopyToSectionGroupRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_notebooks_item_sections_item_pages_count_request_builder.go b/users/item_onenote_notebooks_item_sections_item_pages_count_request_builder.go index 0bf61503580..300fda380ec 100644 --- a/users/item_onenote_notebooks_item_sections_item_pages_count_request_builder.go +++ b/users/item_onenote_notebooks_item_sections_item_pages_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemOnenoteNotebooksItemSectionsItemPagesCountRequestBuilder(rawUrl stri return NewItemOnenoteNotebooksItemSectionsItemPagesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionsItemPagesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionsItemPagesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemOnenoteNotebooksItemSectionsItemPagesCountRequestBuilder) Get(ctx c return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionsItemPagesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionsItemPagesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemOnenoteNotebooksItemSectionsItemPagesCountRequestBuilder) ToGetRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemSectionsItemPagesCountRequestBuilder when successful func (m *ItemOnenoteNotebooksItemSectionsItemPagesCountRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteNotebooksItemSectionsItemPagesCountRequestBuilder) { return NewItemOnenoteNotebooksItemSectionsItemPagesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_notebooks_item_sections_item_pages_item_content_request_builder.go b/users/item_onenote_notebooks_item_sections_item_pages_item_content_request_builder.go index 95eee879c9e..29799537fb1 100644 --- a/users/item_onenote_notebooks_item_sections_item_pages_item_content_request_builder.go +++ b/users/item_onenote_notebooks_item_sections_item_pages_item_content_request_builder.go @@ -46,6 +46,7 @@ func NewItemOnenoteNotebooksItemSectionsItemPagesItemContentRequestBuilder(rawUr return NewItemOnenoteNotebooksItemSectionsItemPagesItemContentRequestBuilderInternal(urlParams, requestAdapter) } // Delete the page's HTML content. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionsItemPagesItemContentRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionsItemPagesItemContentRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -62,6 +63,7 @@ func (m *ItemOnenoteNotebooksItemSectionsItemPagesItemContentRequestBuilder) Del return nil } // Get the page's HTML content. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionsItemPagesItemContentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionsItemPagesItemContentRequestBuilderGetRequestConfiguration)([]byte, error) { @@ -82,6 +84,7 @@ func (m *ItemOnenoteNotebooksItemSectionsItemPagesItemContentRequestBuilder) Get return res.([]byte), nil } // Put the page's HTML content. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenotePageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionsItemPagesItemContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemOnenoteNotebooksItemSectionsItemPagesItemContentRequestBuilderPutRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable, error) { @@ -102,6 +105,7 @@ func (m *ItemOnenoteNotebooksItemSectionsItemPagesItemContentRequestBuilder) Put return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable), nil } // ToDeleteRequestInformation the page's HTML content. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionsItemPagesItemContentRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionsItemPagesItemContentRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,6 +117,7 @@ func (m *ItemOnenoteNotebooksItemSectionsItemPagesItemContentRequestBuilder) ToD return requestInfo, nil } // ToGetRequestInformation the page's HTML content. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionsItemPagesItemContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionsItemPagesItemContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -124,6 +129,7 @@ func (m *ItemOnenoteNotebooksItemSectionsItemPagesItemContentRequestBuilder) ToG return requestInfo, nil } // ToPutRequestInformation the page's HTML content. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionsItemPagesItemContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemOnenoteNotebooksItemSectionsItemPagesItemContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +142,7 @@ func (m *ItemOnenoteNotebooksItemSectionsItemPagesItemContentRequestBuilder) ToP return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemSectionsItemPagesItemContentRequestBuilder when successful func (m *ItemOnenoteNotebooksItemSectionsItemPagesItemContentRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteNotebooksItemSectionsItemPagesItemContentRequestBuilder) { return NewItemOnenoteNotebooksItemSectionsItemPagesItemContentRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_notebooks_item_sections_item_pages_item_copy_to_section_request_builder.go b/users/item_onenote_notebooks_item_sections_item_pages_item_copy_to_section_request_builder.go index 4f652dcea61..ae94feffb58 100644 --- a/users/item_onenote_notebooks_item_sections_item_pages_item_copy_to_section_request_builder.go +++ b/users/item_onenote_notebooks_item_sections_item_pages_item_copy_to_section_request_builder.go @@ -32,6 +32,7 @@ func NewItemOnenoteNotebooksItemSectionsItemPagesItemCopyToSectionRequestBuilder return NewItemOnenoteNotebooksItemSectionsItemPagesItemCopyToSectionRequestBuilderInternal(urlParams, requestAdapter) } // Post copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenoteOperationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemOnenoteNotebooksItemSectionsItemPagesItemCopyToSectionRequestBuilde return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteOperationable), nil } // ToPostRequestInformation copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionsItemPagesItemCopyToSectionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemOnenoteNotebooksItemSectionsItemPagesItemCopyToSectionPostRequestBodyable, requestConfiguration *ItemOnenoteNotebooksItemSectionsItemPagesItemCopyToSectionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemOnenoteNotebooksItemSectionsItemPagesItemCopyToSectionRequestBuilde return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemSectionsItemPagesItemCopyToSectionRequestBuilder when successful func (m *ItemOnenoteNotebooksItemSectionsItemPagesItemCopyToSectionRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteNotebooksItemSectionsItemPagesItemCopyToSectionRequestBuilder) { return NewItemOnenoteNotebooksItemSectionsItemPagesItemCopyToSectionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_notebooks_item_sections_item_pages_item_onenote_patch_content_request_builder.go b/users/item_onenote_notebooks_item_sections_item_pages_item_onenote_patch_content_request_builder.go index f6ef217649f..cdafca2cf46 100644 --- a/users/item_onenote_notebooks_item_sections_item_pages_item_onenote_patch_content_request_builder.go +++ b/users/item_onenote_notebooks_item_sections_item_pages_item_onenote_patch_content_request_builder.go @@ -31,6 +31,7 @@ func NewItemOnenoteNotebooksItemSectionsItemPagesItemOnenotePatchContentRequestB return NewItemOnenoteNotebooksItemSectionsItemPagesItemOnenotePatchContentRequestBuilderInternal(urlParams, requestAdapter) } // Post invoke action onenotePatchContent +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionsItemPagesItemOnenotePatchContentRequestBuilder) Post(ctx context.Context, body ItemOnenoteNotebooksItemSectionsItemPagesItemOnenotePatchContentPostRequestBodyable, requestConfiguration *ItemOnenoteNotebooksItemSectionsItemPagesItemOnenotePatchContentRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemOnenoteNotebooksItemSectionsItemPagesItemOnenotePatchContentRequest return nil } // ToPostRequestInformation invoke action onenotePatchContent +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionsItemPagesItemOnenotePatchContentRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemOnenoteNotebooksItemSectionsItemPagesItemOnenotePatchContentPostRequestBodyable, requestConfiguration *ItemOnenoteNotebooksItemSectionsItemPagesItemOnenotePatchContentRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -62,6 +64,7 @@ func (m *ItemOnenoteNotebooksItemSectionsItemPagesItemOnenotePatchContentRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemSectionsItemPagesItemOnenotePatchContentRequestBuilder when successful func (m *ItemOnenoteNotebooksItemSectionsItemPagesItemOnenotePatchContentRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteNotebooksItemSectionsItemPagesItemOnenotePatchContentRequestBuilder) { return NewItemOnenoteNotebooksItemSectionsItemPagesItemOnenotePatchContentRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_notebooks_item_sections_item_pages_item_parent_notebook_request_builder.go b/users/item_onenote_notebooks_item_sections_item_pages_item_parent_notebook_request_builder.go index 94e6c57f680..367eae99685 100644 --- a/users/item_onenote_notebooks_item_sections_item_pages_item_parent_notebook_request_builder.go +++ b/users/item_onenote_notebooks_item_sections_item_pages_item_parent_notebook_request_builder.go @@ -41,6 +41,7 @@ func NewItemOnenoteNotebooksItemSectionsItemPagesItemParentNotebookRequestBuilde return NewItemOnenoteNotebooksItemSectionsItemPagesItemParentNotebookRequestBuilderInternal(urlParams, requestAdapter) } // Get the notebook that contains the page. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Notebookable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionsItemPagesItemParentNotebookRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionsItemPagesItemParentNotebookRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Notebookable, error) { @@ -61,6 +62,7 @@ func (m *ItemOnenoteNotebooksItemSectionsItemPagesItemParentNotebookRequestBuild return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Notebookable), nil } // ToGetRequestInformation the notebook that contains the page. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionsItemPagesItemParentNotebookRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionsItemPagesItemParentNotebookRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemOnenoteNotebooksItemSectionsItemPagesItemParentNotebookRequestBuild return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemSectionsItemPagesItemParentNotebookRequestBuilder when successful func (m *ItemOnenoteNotebooksItemSectionsItemPagesItemParentNotebookRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteNotebooksItemSectionsItemPagesItemParentNotebookRequestBuilder) { return NewItemOnenoteNotebooksItemSectionsItemPagesItemParentNotebookRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_notebooks_item_sections_item_pages_item_parent_section_request_builder.go b/users/item_onenote_notebooks_item_sections_item_pages_item_parent_section_request_builder.go index af39bbedbb4..dec85736b99 100644 --- a/users/item_onenote_notebooks_item_sections_item_pages_item_parent_section_request_builder.go +++ b/users/item_onenote_notebooks_item_sections_item_pages_item_parent_section_request_builder.go @@ -41,6 +41,7 @@ func NewItemOnenoteNotebooksItemSectionsItemPagesItemParentSectionRequestBuilder return NewItemOnenoteNotebooksItemSectionsItemPagesItemParentSectionRequestBuilderInternal(urlParams, requestAdapter) } // Get the section that contains the page. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenoteSectionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionsItemPagesItemParentSectionRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionsItemPagesItemParentSectionRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionable, error) { @@ -61,6 +62,7 @@ func (m *ItemOnenoteNotebooksItemSectionsItemPagesItemParentSectionRequestBuilde return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionable), nil } // ToGetRequestInformation the section that contains the page. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionsItemPagesItemParentSectionRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionsItemPagesItemParentSectionRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemOnenoteNotebooksItemSectionsItemPagesItemParentSectionRequestBuilde return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemSectionsItemPagesItemParentSectionRequestBuilder when successful func (m *ItemOnenoteNotebooksItemSectionsItemPagesItemParentSectionRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteNotebooksItemSectionsItemPagesItemParentSectionRequestBuilder) { return NewItemOnenoteNotebooksItemSectionsItemPagesItemParentSectionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_notebooks_item_sections_item_pages_item_preview_request_builder.go b/users/item_onenote_notebooks_item_sections_item_pages_item_preview_request_builder.go index de20cabd507..c036235165d 100644 --- a/users/item_onenote_notebooks_item_sections_item_pages_item_preview_request_builder.go +++ b/users/item_onenote_notebooks_item_sections_item_pages_item_preview_request_builder.go @@ -32,6 +32,7 @@ func NewItemOnenoteNotebooksItemSectionsItemPagesItemPreviewRequestBuilder(rawUr return NewItemOnenoteNotebooksItemSectionsItemPagesItemPreviewRequestBuilderInternal(urlParams, requestAdapter) } // Get invoke function preview +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenotePagePreviewable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionsItemPagesItemPreviewRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionsItemPagesItemPreviewRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePagePreviewable, error) { @@ -52,6 +53,7 @@ func (m *ItemOnenoteNotebooksItemSectionsItemPagesItemPreviewRequestBuilder) Get return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePagePreviewable), nil } // ToGetRequestInformation invoke function preview +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionsItemPagesItemPreviewRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionsItemPagesItemPreviewRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -63,6 +65,7 @@ func (m *ItemOnenoteNotebooksItemSectionsItemPagesItemPreviewRequestBuilder) ToG return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemSectionsItemPagesItemPreviewRequestBuilder when successful func (m *ItemOnenoteNotebooksItemSectionsItemPagesItemPreviewRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteNotebooksItemSectionsItemPagesItemPreviewRequestBuilder) { return NewItemOnenoteNotebooksItemSectionsItemPagesItemPreviewRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_notebooks_item_sections_item_pages_onenote_page_item_request_builder.go b/users/item_onenote_notebooks_item_sections_item_pages_onenote_page_item_request_builder.go index 95045dcb78c..a8ac9abc5b1 100644 --- a/users/item_onenote_notebooks_item_sections_item_pages_onenote_page_item_request_builder.go +++ b/users/item_onenote_notebooks_item_sections_item_pages_onenote_page_item_request_builder.go @@ -65,6 +65,7 @@ func (m *ItemOnenoteNotebooksItemSectionsItemPagesOnenotePageItemRequestBuilder) return NewItemOnenoteNotebooksItemSectionsItemPagesItemCopyToSectionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Delete delete navigation property pages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionsItemPagesOnenotePageItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionsItemPagesOnenotePageItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -81,6 +82,7 @@ func (m *ItemOnenoteNotebooksItemSectionsItemPagesOnenotePageItemRequestBuilder) return nil } // Get the collection of pages in the section. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenotePageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionsItemPagesOnenotePageItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionsItemPagesOnenotePageItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable, error) { @@ -116,6 +118,7 @@ func (m *ItemOnenoteNotebooksItemSectionsItemPagesOnenotePageItemRequestBuilder) return NewItemOnenoteNotebooksItemSectionsItemPagesItemParentSectionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property pages in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenotePageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionsItemPagesOnenotePageItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable, requestConfiguration *ItemOnenoteNotebooksItemSectionsItemPagesOnenotePageItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable, error) { @@ -141,6 +144,7 @@ func (m *ItemOnenoteNotebooksItemSectionsItemPagesOnenotePageItemRequestBuilder) return NewItemOnenoteNotebooksItemSectionsItemPagesItemPreviewRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property pages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionsItemPagesOnenotePageItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionsItemPagesOnenotePageItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -152,6 +156,7 @@ func (m *ItemOnenoteNotebooksItemSectionsItemPagesOnenotePageItemRequestBuilder) return requestInfo, nil } // ToGetRequestInformation the collection of pages in the section. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionsItemPagesOnenotePageItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionsItemPagesOnenotePageItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -166,6 +171,7 @@ func (m *ItemOnenoteNotebooksItemSectionsItemPagesOnenotePageItemRequestBuilder) return requestInfo, nil } // ToPatchRequestInformation update the navigation property pages in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionsItemPagesOnenotePageItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable, requestConfiguration *ItemOnenoteNotebooksItemSectionsItemPagesOnenotePageItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -181,6 +187,7 @@ func (m *ItemOnenoteNotebooksItemSectionsItemPagesOnenotePageItemRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemSectionsItemPagesOnenotePageItemRequestBuilder when successful func (m *ItemOnenoteNotebooksItemSectionsItemPagesOnenotePageItemRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteNotebooksItemSectionsItemPagesOnenotePageItemRequestBuilder) { return NewItemOnenoteNotebooksItemSectionsItemPagesOnenotePageItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_notebooks_item_sections_item_pages_request_builder.go b/users/item_onenote_notebooks_item_sections_item_pages_request_builder.go index a7485d917e0..85a7b1b49f2 100644 --- a/users/item_onenote_notebooks_item_sections_item_pages_request_builder.go +++ b/users/item_onenote_notebooks_item_sections_item_pages_request_builder.go @@ -47,6 +47,7 @@ type ItemOnenoteNotebooksItemSectionsItemPagesRequestBuilderPostRequestConfigura Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByOnenotePageId provides operations to manage the pages property of the microsoft.graph.onenoteSection entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemSectionsItemPagesOnenotePageItemRequestBuilder when successful func (m *ItemOnenoteNotebooksItemSectionsItemPagesRequestBuilder) ByOnenotePageId(onenotePageId string)(*ItemOnenoteNotebooksItemSectionsItemPagesOnenotePageItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemOnenoteNotebooksItemSectionsItemPagesRequestBuilder) Count()(*ItemO return NewItemOnenoteNotebooksItemSectionsItemPagesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of pages in the section. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenotePageCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionsItemPagesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionsItemPagesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemOnenoteNotebooksItemSectionsItemPagesRequestBuilder) Get(ctx contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageCollectionResponseable), nil } // Post create new navigation property to pages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenotePageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionsItemPagesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable, requestConfiguration *ItemOnenoteNotebooksItemSectionsItemPagesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable, error) { @@ -117,6 +120,7 @@ func (m *ItemOnenoteNotebooksItemSectionsItemPagesRequestBuilder) Post(ctx conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable), nil } // ToGetRequestInformation the collection of pages in the section. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionsItemPagesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionsItemPagesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemOnenoteNotebooksItemSectionsItemPagesRequestBuilder) ToGetRequestIn return requestInfo, nil } // ToPostRequestInformation create new navigation property to pages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionsItemPagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable, requestConfiguration *ItemOnenoteNotebooksItemSectionsItemPagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemOnenoteNotebooksItemSectionsItemPagesRequestBuilder) ToPostRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemSectionsItemPagesRequestBuilder when successful func (m *ItemOnenoteNotebooksItemSectionsItemPagesRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteNotebooksItemSectionsItemPagesRequestBuilder) { return NewItemOnenoteNotebooksItemSectionsItemPagesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_notebooks_item_sections_item_parent_notebook_request_builder.go b/users/item_onenote_notebooks_item_sections_item_parent_notebook_request_builder.go index 05251127532..947064d72c6 100644 --- a/users/item_onenote_notebooks_item_sections_item_parent_notebook_request_builder.go +++ b/users/item_onenote_notebooks_item_sections_item_parent_notebook_request_builder.go @@ -41,6 +41,7 @@ func NewItemOnenoteNotebooksItemSectionsItemParentNotebookRequestBuilder(rawUrl return NewItemOnenoteNotebooksItemSectionsItemParentNotebookRequestBuilderInternal(urlParams, requestAdapter) } // Get the notebook that contains the section. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Notebookable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionsItemParentNotebookRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionsItemParentNotebookRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Notebookable, error) { @@ -61,6 +62,7 @@ func (m *ItemOnenoteNotebooksItemSectionsItemParentNotebookRequestBuilder) Get(c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Notebookable), nil } // ToGetRequestInformation the notebook that contains the section. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionsItemParentNotebookRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionsItemParentNotebookRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemOnenoteNotebooksItemSectionsItemParentNotebookRequestBuilder) ToGet return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemSectionsItemParentNotebookRequestBuilder when successful func (m *ItemOnenoteNotebooksItemSectionsItemParentNotebookRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteNotebooksItemSectionsItemParentNotebookRequestBuilder) { return NewItemOnenoteNotebooksItemSectionsItemParentNotebookRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_notebooks_item_sections_item_parent_section_group_request_builder.go b/users/item_onenote_notebooks_item_sections_item_parent_section_group_request_builder.go index 9880fc66fc9..8bd10cdad64 100644 --- a/users/item_onenote_notebooks_item_sections_item_parent_section_group_request_builder.go +++ b/users/item_onenote_notebooks_item_sections_item_parent_section_group_request_builder.go @@ -41,6 +41,7 @@ func NewItemOnenoteNotebooksItemSectionsItemParentSectionGroupRequestBuilder(raw return NewItemOnenoteNotebooksItemSectionsItemParentSectionGroupRequestBuilderInternal(urlParams, requestAdapter) } // Get the section group that contains the section. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SectionGroupable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionsItemParentSectionGroupRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionsItemParentSectionGroupRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SectionGroupable, error) { @@ -61,6 +62,7 @@ func (m *ItemOnenoteNotebooksItemSectionsItemParentSectionGroupRequestBuilder) G return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SectionGroupable), nil } // ToGetRequestInformation the section group that contains the section. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionsItemParentSectionGroupRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionsItemParentSectionGroupRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemOnenoteNotebooksItemSectionsItemParentSectionGroupRequestBuilder) T return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemSectionsItemParentSectionGroupRequestBuilder when successful func (m *ItemOnenoteNotebooksItemSectionsItemParentSectionGroupRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteNotebooksItemSectionsItemParentSectionGroupRequestBuilder) { return NewItemOnenoteNotebooksItemSectionsItemParentSectionGroupRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_notebooks_item_sections_onenote_section_item_request_builder.go b/users/item_onenote_notebooks_item_sections_onenote_section_item_request_builder.go index d53d9c6eb13..43950a77fb5 100644 --- a/users/item_onenote_notebooks_item_sections_onenote_section_item_request_builder.go +++ b/users/item_onenote_notebooks_item_sections_onenote_section_item_request_builder.go @@ -65,6 +65,7 @@ func (m *ItemOnenoteNotebooksItemSectionsOnenoteSectionItemRequestBuilder) CopyT return NewItemOnenoteNotebooksItemSectionsItemCopyToSectionGroupRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Delete delete navigation property sections for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionsOnenoteSectionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionsOnenoteSectionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -81,6 +82,7 @@ func (m *ItemOnenoteNotebooksItemSectionsOnenoteSectionItemRequestBuilder) Delet return nil } // Get the sections in the notebook. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenoteSectionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionsOnenoteSectionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionsOnenoteSectionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionable, error) { @@ -116,6 +118,7 @@ func (m *ItemOnenoteNotebooksItemSectionsOnenoteSectionItemRequestBuilder) Paren return NewItemOnenoteNotebooksItemSectionsItemParentSectionGroupRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property sections in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenoteSectionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionsOnenoteSectionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionable, requestConfiguration *ItemOnenoteNotebooksItemSectionsOnenoteSectionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionable, error) { @@ -136,6 +139,7 @@ func (m *ItemOnenoteNotebooksItemSectionsOnenoteSectionItemRequestBuilder) Patch return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionable), nil } // ToDeleteRequestInformation delete navigation property sections for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionsOnenoteSectionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionsOnenoteSectionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -147,6 +151,7 @@ func (m *ItemOnenoteNotebooksItemSectionsOnenoteSectionItemRequestBuilder) ToDel return requestInfo, nil } // ToGetRequestInformation the sections in the notebook. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionsOnenoteSectionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionsOnenoteSectionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -161,6 +166,7 @@ func (m *ItemOnenoteNotebooksItemSectionsOnenoteSectionItemRequestBuilder) ToGet return requestInfo, nil } // ToPatchRequestInformation update the navigation property sections in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionsOnenoteSectionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionable, requestConfiguration *ItemOnenoteNotebooksItemSectionsOnenoteSectionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -176,6 +182,7 @@ func (m *ItemOnenoteNotebooksItemSectionsOnenoteSectionItemRequestBuilder) ToPat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemSectionsOnenoteSectionItemRequestBuilder when successful func (m *ItemOnenoteNotebooksItemSectionsOnenoteSectionItemRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteNotebooksItemSectionsOnenoteSectionItemRequestBuilder) { return NewItemOnenoteNotebooksItemSectionsOnenoteSectionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_notebooks_item_sections_request_builder.go b/users/item_onenote_notebooks_item_sections_request_builder.go index 1b4b0a43cc1..cf8a885bf9c 100644 --- a/users/item_onenote_notebooks_item_sections_request_builder.go +++ b/users/item_onenote_notebooks_item_sections_request_builder.go @@ -47,6 +47,7 @@ type ItemOnenoteNotebooksItemSectionsRequestBuilderPostRequestConfiguration stru Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByOnenoteSectionId provides operations to manage the sections property of the microsoft.graph.notebook entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemSectionsOnenoteSectionItemRequestBuilder when successful func (m *ItemOnenoteNotebooksItemSectionsRequestBuilder) ByOnenoteSectionId(onenoteSectionId string)(*ItemOnenoteNotebooksItemSectionsOnenoteSectionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemOnenoteNotebooksItemSectionsRequestBuilder) Count()(*ItemOnenoteNot return NewItemOnenoteNotebooksItemSectionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the sections in the notebook. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenoteSectionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemOnenoteNotebooksItemSectionsRequestBuilder) Get(ctx context.Context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionCollectionResponseable), nil } // Post create new navigation property to sections for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenoteSectionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksItemSectionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionable, requestConfiguration *ItemOnenoteNotebooksItemSectionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionable, error) { @@ -117,6 +120,7 @@ func (m *ItemOnenoteNotebooksItemSectionsRequestBuilder) Post(ctx context.Contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionable), nil } // ToGetRequestInformation the sections in the notebook. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksItemSectionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemOnenoteNotebooksItemSectionsRequestBuilder) ToGetRequestInformation return requestInfo, nil } // ToPostRequestInformation create new navigation property to sections for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksItemSectionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionable, requestConfiguration *ItemOnenoteNotebooksItemSectionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemOnenoteNotebooksItemSectionsRequestBuilder) ToPostRequestInformatio return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksItemSectionsRequestBuilder when successful func (m *ItemOnenoteNotebooksItemSectionsRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteNotebooksItemSectionsRequestBuilder) { return NewItemOnenoteNotebooksItemSectionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_notebooks_notebook_item_request_builder.go b/users/item_onenote_notebooks_notebook_item_request_builder.go index aeec3f5db72..8435442bb5b 100644 --- a/users/item_onenote_notebooks_notebook_item_request_builder.go +++ b/users/item_onenote_notebooks_notebook_item_request_builder.go @@ -60,6 +60,7 @@ func (m *ItemOnenoteNotebooksNotebookItemRequestBuilder) CopyNotebook()(*ItemOne return NewItemOnenoteNotebooksItemCopyNotebookRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Delete delete navigation property notebooks for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksNotebookItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksNotebookItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -76,6 +77,7 @@ func (m *ItemOnenoteNotebooksNotebookItemRequestBuilder) Delete(ctx context.Cont return nil } // Get the collection of OneNote notebooks that are owned by the user or group. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Notebookable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksNotebookItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksNotebookItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Notebookable, error) { @@ -96,6 +98,7 @@ func (m *ItemOnenoteNotebooksNotebookItemRequestBuilder) Get(ctx context.Context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Notebookable), nil } // Patch update the navigation property notebooks in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Notebookable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksNotebookItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Notebookable, requestConfiguration *ItemOnenoteNotebooksNotebookItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Notebookable, error) { @@ -126,6 +129,7 @@ func (m *ItemOnenoteNotebooksNotebookItemRequestBuilder) Sections()(*ItemOnenote return NewItemOnenoteNotebooksItemSectionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property notebooks for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksNotebookItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksNotebookItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -137,6 +141,7 @@ func (m *ItemOnenoteNotebooksNotebookItemRequestBuilder) ToDeleteRequestInformat return requestInfo, nil } // ToGetRequestInformation the collection of OneNote notebooks that are owned by the user or group. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksNotebookItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksNotebookItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemOnenoteNotebooksNotebookItemRequestBuilder) ToGetRequestInformation return requestInfo, nil } // ToPatchRequestInformation update the navigation property notebooks in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksNotebookItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Notebookable, requestConfiguration *ItemOnenoteNotebooksNotebookItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -166,6 +172,7 @@ func (m *ItemOnenoteNotebooksNotebookItemRequestBuilder) ToPatchRequestInformati return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksNotebookItemRequestBuilder when successful func (m *ItemOnenoteNotebooksNotebookItemRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteNotebooksNotebookItemRequestBuilder) { return NewItemOnenoteNotebooksNotebookItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_notebooks_request_builder.go b/users/item_onenote_notebooks_request_builder.go index 5e16578e556..e46dd36e336 100644 --- a/users/item_onenote_notebooks_request_builder.go +++ b/users/item_onenote_notebooks_request_builder.go @@ -47,6 +47,7 @@ type ItemOnenoteNotebooksRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByNotebookId provides operations to manage the notebooks property of the microsoft.graph.onenote entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksNotebookItemRequestBuilder when successful func (m *ItemOnenoteNotebooksRequestBuilder) ByNotebookId(notebookId string)(*ItemOnenoteNotebooksNotebookItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemOnenoteNotebooksRequestBuilder) Count()(*ItemOnenoteNotebooksCountR return NewItemOnenoteNotebooksCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of OneNote notebooks that are owned by the user or group. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a NotebookCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.NotebookCollectionResponseable, error) { @@ -102,11 +104,13 @@ func (m *ItemOnenoteNotebooksRequestBuilder) GetNotebookFromWebUrl()(*ItemOnenot return NewItemOnenoteNotebooksGetNotebookFromWebUrlRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // GetRecentNotebooksWithIncludePersonalNotebooks provides operations to call the getRecentNotebooks method. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksGetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder when successful func (m *ItemOnenoteNotebooksRequestBuilder) GetRecentNotebooksWithIncludePersonalNotebooks(includePersonalNotebooks *bool)(*ItemOnenoteNotebooksGetRecentNotebooksWithIncludePersonalNotebooksRequestBuilder) { return NewItemOnenoteNotebooksGetRecentNotebooksWithIncludePersonalNotebooksRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, includePersonalNotebooks) } // Post create new navigation property to notebooks for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Notebookable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteNotebooksRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Notebookable, requestConfiguration *ItemOnenoteNotebooksRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Notebookable, error) { @@ -127,6 +131,7 @@ func (m *ItemOnenoteNotebooksRequestBuilder) Post(ctx context.Context, body ie23 return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Notebookable), nil } // ToGetRequestInformation the collection of OneNote notebooks that are owned by the user or group. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteNotebooksRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,6 +146,7 @@ func (m *ItemOnenoteNotebooksRequestBuilder) ToGetRequestInformation(ctx context return requestInfo, nil } // ToPostRequestInformation create new navigation property to notebooks for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteNotebooksRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Notebookable, requestConfiguration *ItemOnenoteNotebooksRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +162,7 @@ func (m *ItemOnenoteNotebooksRequestBuilder) ToPostRequestInformation(ctx contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteNotebooksRequestBuilder when successful func (m *ItemOnenoteNotebooksRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteNotebooksRequestBuilder) { return NewItemOnenoteNotebooksRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_operations_count_request_builder.go b/users/item_onenote_operations_count_request_builder.go index 4df2067ddd1..50f3c8e6bb8 100644 --- a/users/item_onenote_operations_count_request_builder.go +++ b/users/item_onenote_operations_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemOnenoteOperationsCountRequestBuilder(rawUrl string, requestAdapter i return NewItemOnenoteOperationsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteOperationsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteOperationsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemOnenoteOperationsCountRequestBuilder) Get(ctx context.Context, requ return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteOperationsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteOperationsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemOnenoteOperationsCountRequestBuilder) ToGetRequestInformation(ctx c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteOperationsCountRequestBuilder when successful func (m *ItemOnenoteOperationsCountRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteOperationsCountRequestBuilder) { return NewItemOnenoteOperationsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_operations_onenote_operation_item_request_builder.go b/users/item_onenote_operations_onenote_operation_item_request_builder.go index 85f7d4cb54a..0ccbf9aebe7 100644 --- a/users/item_onenote_operations_onenote_operation_item_request_builder.go +++ b/users/item_onenote_operations_onenote_operation_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemOnenoteOperationsOnenoteOperationItemRequestBuilder(rawUrl string, r return NewItemOnenoteOperationsOnenoteOperationItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property operations for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteOperationsOnenoteOperationItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOnenoteOperationsOnenoteOperationItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemOnenoteOperationsOnenoteOperationItemRequestBuilder) Delete(ctx con return nil } // Get the status of OneNote operations. Getting an operations collection isn't supported, but you can get the status of long-running operations if the Operation-Location header is returned in the response. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenoteOperationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteOperationsOnenoteOperationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteOperationsOnenoteOperationItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteOperationable, error) { @@ -91,6 +93,7 @@ func (m *ItemOnenoteOperationsOnenoteOperationItemRequestBuilder) Get(ctx contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteOperationable), nil } // Patch update the navigation property operations in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenoteOperationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteOperationsOnenoteOperationItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteOperationable, requestConfiguration *ItemOnenoteOperationsOnenoteOperationItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteOperationable, error) { @@ -111,6 +114,7 @@ func (m *ItemOnenoteOperationsOnenoteOperationItemRequestBuilder) Patch(ctx cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteOperationable), nil } // ToDeleteRequestInformation delete navigation property operations for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteOperationsOnenoteOperationItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteOperationsOnenoteOperationItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemOnenoteOperationsOnenoteOperationItemRequestBuilder) ToDeleteReques return requestInfo, nil } // ToGetRequestInformation the status of OneNote operations. Getting an operations collection isn't supported, but you can get the status of long-running operations if the Operation-Location header is returned in the response. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteOperationsOnenoteOperationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteOperationsOnenoteOperationItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemOnenoteOperationsOnenoteOperationItemRequestBuilder) ToGetRequestIn return requestInfo, nil } // ToPatchRequestInformation update the navigation property operations in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteOperationsOnenoteOperationItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteOperationable, requestConfiguration *ItemOnenoteOperationsOnenoteOperationItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemOnenoteOperationsOnenoteOperationItemRequestBuilder) ToPatchRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteOperationsOnenoteOperationItemRequestBuilder when successful func (m *ItemOnenoteOperationsOnenoteOperationItemRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteOperationsOnenoteOperationItemRequestBuilder) { return NewItemOnenoteOperationsOnenoteOperationItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_operations_request_builder.go b/users/item_onenote_operations_request_builder.go index e3df23e0780..1790f3b5c23 100644 --- a/users/item_onenote_operations_request_builder.go +++ b/users/item_onenote_operations_request_builder.go @@ -47,6 +47,7 @@ type ItemOnenoteOperationsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByOnenoteOperationId provides operations to manage the operations property of the microsoft.graph.onenote entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteOperationsOnenoteOperationItemRequestBuilder when successful func (m *ItemOnenoteOperationsRequestBuilder) ByOnenoteOperationId(onenoteOperationId string)(*ItemOnenoteOperationsOnenoteOperationItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemOnenoteOperationsRequestBuilder) Count()(*ItemOnenoteOperationsCoun return NewItemOnenoteOperationsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the status of OneNote operations. Getting an operations collection isn't supported, but you can get the status of long-running operations if the Operation-Location header is returned in the response. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenoteOperationCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteOperationsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteOperationsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteOperationCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemOnenoteOperationsRequestBuilder) Get(ctx context.Context, requestCo return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteOperationCollectionResponseable), nil } // Post create new navigation property to operations for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenoteOperationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteOperationsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteOperationable, requestConfiguration *ItemOnenoteOperationsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteOperationable, error) { @@ -117,6 +120,7 @@ func (m *ItemOnenoteOperationsRequestBuilder) Post(ctx context.Context, body ie2 return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteOperationable), nil } // ToGetRequestInformation the status of OneNote operations. Getting an operations collection isn't supported, but you can get the status of long-running operations if the Operation-Location header is returned in the response. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteOperationsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteOperationsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemOnenoteOperationsRequestBuilder) ToGetRequestInformation(ctx contex return requestInfo, nil } // ToPostRequestInformation create new navigation property to operations for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteOperationsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteOperationable, requestConfiguration *ItemOnenoteOperationsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemOnenoteOperationsRequestBuilder) ToPostRequestInformation(ctx conte return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteOperationsRequestBuilder when successful func (m *ItemOnenoteOperationsRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteOperationsRequestBuilder) { return NewItemOnenoteOperationsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_pages_count_request_builder.go b/users/item_onenote_pages_count_request_builder.go index 194548344d6..0c84d1a7096 100644 --- a/users/item_onenote_pages_count_request_builder.go +++ b/users/item_onenote_pages_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemOnenotePagesCountRequestBuilder(rawUrl string, requestAdapter i2ae41 return NewItemOnenotePagesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenotePagesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenotePagesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemOnenotePagesCountRequestBuilder) Get(ctx context.Context, requestCo return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenotePagesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenotePagesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemOnenotePagesCountRequestBuilder) ToGetRequestInformation(ctx contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenotePagesCountRequestBuilder when successful func (m *ItemOnenotePagesCountRequestBuilder) WithUrl(rawUrl string)(*ItemOnenotePagesCountRequestBuilder) { return NewItemOnenotePagesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_pages_item_content_request_builder.go b/users/item_onenote_pages_item_content_request_builder.go index bcf51e11213..db73ffd12f3 100644 --- a/users/item_onenote_pages_item_content_request_builder.go +++ b/users/item_onenote_pages_item_content_request_builder.go @@ -46,6 +46,7 @@ func NewItemOnenotePagesItemContentRequestBuilder(rawUrl string, requestAdapter return NewItemOnenotePagesItemContentRequestBuilderInternal(urlParams, requestAdapter) } // Delete the page's HTML content. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenotePagesItemContentRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOnenotePagesItemContentRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -62,6 +63,7 @@ func (m *ItemOnenotePagesItemContentRequestBuilder) Delete(ctx context.Context, return nil } // Get the page's HTML content. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenotePagesItemContentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenotePagesItemContentRequestBuilderGetRequestConfiguration)([]byte, error) { @@ -82,6 +84,7 @@ func (m *ItemOnenotePagesItemContentRequestBuilder) Get(ctx context.Context, req return res.([]byte), nil } // Put the page's HTML content. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenotePageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenotePagesItemContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemOnenotePagesItemContentRequestBuilderPutRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable, error) { @@ -102,6 +105,7 @@ func (m *ItemOnenotePagesItemContentRequestBuilder) Put(ctx context.Context, bod return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable), nil } // ToDeleteRequestInformation the page's HTML content. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenotePagesItemContentRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOnenotePagesItemContentRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,6 +117,7 @@ func (m *ItemOnenotePagesItemContentRequestBuilder) ToDeleteRequestInformation(c return requestInfo, nil } // ToGetRequestInformation the page's HTML content. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenotePagesItemContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenotePagesItemContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -124,6 +129,7 @@ func (m *ItemOnenotePagesItemContentRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // ToPutRequestInformation the page's HTML content. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenotePagesItemContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemOnenotePagesItemContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +142,7 @@ func (m *ItemOnenotePagesItemContentRequestBuilder) ToPutRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenotePagesItemContentRequestBuilder when successful func (m *ItemOnenotePagesItemContentRequestBuilder) WithUrl(rawUrl string)(*ItemOnenotePagesItemContentRequestBuilder) { return NewItemOnenotePagesItemContentRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_pages_item_copy_to_section_request_builder.go b/users/item_onenote_pages_item_copy_to_section_request_builder.go index 8b9cbd94810..504ece2aad2 100644 --- a/users/item_onenote_pages_item_copy_to_section_request_builder.go +++ b/users/item_onenote_pages_item_copy_to_section_request_builder.go @@ -32,6 +32,7 @@ func NewItemOnenotePagesItemCopyToSectionRequestBuilder(rawUrl string, requestAd return NewItemOnenotePagesItemCopyToSectionRequestBuilderInternal(urlParams, requestAdapter) } // Post copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenoteOperationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemOnenotePagesItemCopyToSectionRequestBuilder) Post(ctx context.Conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteOperationable), nil } // ToPostRequestInformation copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenotePagesItemCopyToSectionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemOnenotePagesItemCopyToSectionPostRequestBodyable, requestConfiguration *ItemOnenotePagesItemCopyToSectionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemOnenotePagesItemCopyToSectionRequestBuilder) ToPostRequestInformati return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenotePagesItemCopyToSectionRequestBuilder when successful func (m *ItemOnenotePagesItemCopyToSectionRequestBuilder) WithUrl(rawUrl string)(*ItemOnenotePagesItemCopyToSectionRequestBuilder) { return NewItemOnenotePagesItemCopyToSectionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_pages_item_onenote_patch_content_request_builder.go b/users/item_onenote_pages_item_onenote_patch_content_request_builder.go index 9a2715a9b4b..3fb14646f05 100644 --- a/users/item_onenote_pages_item_onenote_patch_content_request_builder.go +++ b/users/item_onenote_pages_item_onenote_patch_content_request_builder.go @@ -31,6 +31,7 @@ func NewItemOnenotePagesItemOnenotePatchContentRequestBuilder(rawUrl string, req return NewItemOnenotePagesItemOnenotePatchContentRequestBuilderInternal(urlParams, requestAdapter) } // Post invoke action onenotePatchContent +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenotePagesItemOnenotePatchContentRequestBuilder) Post(ctx context.Context, body ItemOnenotePagesItemOnenotePatchContentPostRequestBodyable, requestConfiguration *ItemOnenotePagesItemOnenotePatchContentRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemOnenotePagesItemOnenotePatchContentRequestBuilder) Post(ctx context return nil } // ToPostRequestInformation invoke action onenotePatchContent +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenotePagesItemOnenotePatchContentRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemOnenotePagesItemOnenotePatchContentPostRequestBodyable, requestConfiguration *ItemOnenotePagesItemOnenotePatchContentRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -62,6 +64,7 @@ func (m *ItemOnenotePagesItemOnenotePatchContentRequestBuilder) ToPostRequestInf return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenotePagesItemOnenotePatchContentRequestBuilder when successful func (m *ItemOnenotePagesItemOnenotePatchContentRequestBuilder) WithUrl(rawUrl string)(*ItemOnenotePagesItemOnenotePatchContentRequestBuilder) { return NewItemOnenotePagesItemOnenotePatchContentRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_pages_item_parent_notebook_request_builder.go b/users/item_onenote_pages_item_parent_notebook_request_builder.go index f54b5e8569c..75e826bde0c 100644 --- a/users/item_onenote_pages_item_parent_notebook_request_builder.go +++ b/users/item_onenote_pages_item_parent_notebook_request_builder.go @@ -41,6 +41,7 @@ func NewItemOnenotePagesItemParentNotebookRequestBuilder(rawUrl string, requestA return NewItemOnenotePagesItemParentNotebookRequestBuilderInternal(urlParams, requestAdapter) } // Get the notebook that contains the page. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Notebookable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenotePagesItemParentNotebookRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenotePagesItemParentNotebookRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Notebookable, error) { @@ -61,6 +62,7 @@ func (m *ItemOnenotePagesItemParentNotebookRequestBuilder) Get(ctx context.Conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Notebookable), nil } // ToGetRequestInformation the notebook that contains the page. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenotePagesItemParentNotebookRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenotePagesItemParentNotebookRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemOnenotePagesItemParentNotebookRequestBuilder) ToGetRequestInformati return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenotePagesItemParentNotebookRequestBuilder when successful func (m *ItemOnenotePagesItemParentNotebookRequestBuilder) WithUrl(rawUrl string)(*ItemOnenotePagesItemParentNotebookRequestBuilder) { return NewItemOnenotePagesItemParentNotebookRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_pages_item_parent_section_request_builder.go b/users/item_onenote_pages_item_parent_section_request_builder.go index afaa56f35f7..2ae218a5c0c 100644 --- a/users/item_onenote_pages_item_parent_section_request_builder.go +++ b/users/item_onenote_pages_item_parent_section_request_builder.go @@ -41,6 +41,7 @@ func NewItemOnenotePagesItemParentSectionRequestBuilder(rawUrl string, requestAd return NewItemOnenotePagesItemParentSectionRequestBuilderInternal(urlParams, requestAdapter) } // Get the section that contains the page. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenoteSectionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenotePagesItemParentSectionRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenotePagesItemParentSectionRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionable, error) { @@ -61,6 +62,7 @@ func (m *ItemOnenotePagesItemParentSectionRequestBuilder) Get(ctx context.Contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionable), nil } // ToGetRequestInformation the section that contains the page. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenotePagesItemParentSectionRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenotePagesItemParentSectionRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemOnenotePagesItemParentSectionRequestBuilder) ToGetRequestInformatio return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenotePagesItemParentSectionRequestBuilder when successful func (m *ItemOnenotePagesItemParentSectionRequestBuilder) WithUrl(rawUrl string)(*ItemOnenotePagesItemParentSectionRequestBuilder) { return NewItemOnenotePagesItemParentSectionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_pages_item_preview_request_builder.go b/users/item_onenote_pages_item_preview_request_builder.go index 171d435b274..f5af2244fc0 100644 --- a/users/item_onenote_pages_item_preview_request_builder.go +++ b/users/item_onenote_pages_item_preview_request_builder.go @@ -32,6 +32,7 @@ func NewItemOnenotePagesItemPreviewRequestBuilder(rawUrl string, requestAdapter return NewItemOnenotePagesItemPreviewRequestBuilderInternal(urlParams, requestAdapter) } // Get invoke function preview +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenotePagePreviewable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenotePagesItemPreviewRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenotePagesItemPreviewRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePagePreviewable, error) { @@ -52,6 +53,7 @@ func (m *ItemOnenotePagesItemPreviewRequestBuilder) Get(ctx context.Context, req return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePagePreviewable), nil } // ToGetRequestInformation invoke function preview +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenotePagesItemPreviewRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenotePagesItemPreviewRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -63,6 +65,7 @@ func (m *ItemOnenotePagesItemPreviewRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenotePagesItemPreviewRequestBuilder when successful func (m *ItemOnenotePagesItemPreviewRequestBuilder) WithUrl(rawUrl string)(*ItemOnenotePagesItemPreviewRequestBuilder) { return NewItemOnenotePagesItemPreviewRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_pages_onenote_page_item_request_builder.go b/users/item_onenote_pages_onenote_page_item_request_builder.go index 912bf7bde8e..b3da1f53d2f 100644 --- a/users/item_onenote_pages_onenote_page_item_request_builder.go +++ b/users/item_onenote_pages_onenote_page_item_request_builder.go @@ -65,6 +65,7 @@ func (m *ItemOnenotePagesOnenotePageItemRequestBuilder) CopyToSection()(*ItemOne return NewItemOnenotePagesItemCopyToSectionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Delete delete navigation property pages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenotePagesOnenotePageItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOnenotePagesOnenotePageItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -81,6 +82,7 @@ func (m *ItemOnenotePagesOnenotePageItemRequestBuilder) Delete(ctx context.Conte return nil } // Get the pages in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenotePageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenotePagesOnenotePageItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenotePagesOnenotePageItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable, error) { @@ -116,6 +118,7 @@ func (m *ItemOnenotePagesOnenotePageItemRequestBuilder) ParentSection()(*ItemOne return NewItemOnenotePagesItemParentSectionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property pages in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenotePageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenotePagesOnenotePageItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable, requestConfiguration *ItemOnenotePagesOnenotePageItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable, error) { @@ -141,6 +144,7 @@ func (m *ItemOnenotePagesOnenotePageItemRequestBuilder) Preview()(*ItemOnenotePa return NewItemOnenotePagesItemPreviewRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property pages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenotePagesOnenotePageItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOnenotePagesOnenotePageItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -152,6 +156,7 @@ func (m *ItemOnenotePagesOnenotePageItemRequestBuilder) ToDeleteRequestInformati return requestInfo, nil } // ToGetRequestInformation the pages in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenotePagesOnenotePageItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenotePagesOnenotePageItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -166,6 +171,7 @@ func (m *ItemOnenotePagesOnenotePageItemRequestBuilder) ToGetRequestInformation( return requestInfo, nil } // ToPatchRequestInformation update the navigation property pages in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenotePagesOnenotePageItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable, requestConfiguration *ItemOnenotePagesOnenotePageItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -181,6 +187,7 @@ func (m *ItemOnenotePagesOnenotePageItemRequestBuilder) ToPatchRequestInformatio return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenotePagesOnenotePageItemRequestBuilder when successful func (m *ItemOnenotePagesOnenotePageItemRequestBuilder) WithUrl(rawUrl string)(*ItemOnenotePagesOnenotePageItemRequestBuilder) { return NewItemOnenotePagesOnenotePageItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_pages_request_builder.go b/users/item_onenote_pages_request_builder.go index c275fe466a7..e2bf88f70d0 100644 --- a/users/item_onenote_pages_request_builder.go +++ b/users/item_onenote_pages_request_builder.go @@ -47,6 +47,7 @@ type ItemOnenotePagesRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByOnenotePageId provides operations to manage the pages property of the microsoft.graph.onenote entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenotePagesOnenotePageItemRequestBuilder when successful func (m *ItemOnenotePagesRequestBuilder) ByOnenotePageId(onenotePageId string)(*ItemOnenotePagesOnenotePageItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemOnenotePagesRequestBuilder) Count()(*ItemOnenotePagesCountRequestBu return NewItemOnenotePagesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the pages in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenotePageCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenotePagesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenotePagesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemOnenotePagesRequestBuilder) Get(ctx context.Context, requestConfigu return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageCollectionResponseable), nil } // Post create new navigation property to pages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenotePageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenotePagesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable, requestConfiguration *ItemOnenotePagesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable, error) { @@ -117,6 +120,7 @@ func (m *ItemOnenotePagesRequestBuilder) Post(ctx context.Context, body ie233ee7 return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable), nil } // ToGetRequestInformation the pages in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenotePagesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenotePagesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemOnenotePagesRequestBuilder) ToGetRequestInformation(ctx context.Con return requestInfo, nil } // ToPostRequestInformation create new navigation property to pages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenotePagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable, requestConfiguration *ItemOnenotePagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemOnenotePagesRequestBuilder) ToPostRequestInformation(ctx context.Co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenotePagesRequestBuilder when successful func (m *ItemOnenotePagesRequestBuilder) WithUrl(rawUrl string)(*ItemOnenotePagesRequestBuilder) { return NewItemOnenotePagesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_request_builder.go b/users/item_onenote_request_builder.go index 77fa72889f3..95c5e004a7f 100644 --- a/users/item_onenote_request_builder.go +++ b/users/item_onenote_request_builder.go @@ -55,6 +55,7 @@ func NewItemOnenoteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee26 return NewItemOnenoteRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property onenote for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOnenoteRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemOnenoteRequestBuilder) Delete(ctx context.Context, requestConfigura return nil } // Get get onenote from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Onenoteable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Onenoteable, error) { @@ -106,6 +108,7 @@ func (m *ItemOnenoteRequestBuilder) Pages()(*ItemOnenotePagesRequestBuilder) { return NewItemOnenotePagesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property onenote in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Onenoteable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Onenoteable, requestConfiguration *ItemOnenoteRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Onenoteable, error) { @@ -141,6 +144,7 @@ func (m *ItemOnenoteRequestBuilder) Sections()(*ItemOnenoteSectionsRequestBuilde return NewItemOnenoteSectionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property onenote for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -152,6 +156,7 @@ func (m *ItemOnenoteRequestBuilder) ToDeleteRequestInformation(ctx context.Conte return requestInfo, nil } // ToGetRequestInformation get onenote from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -166,6 +171,7 @@ func (m *ItemOnenoteRequestBuilder) ToGetRequestInformation(ctx context.Context, return requestInfo, nil } // ToPatchRequestInformation update the navigation property onenote in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Onenoteable, requestConfiguration *ItemOnenoteRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -181,6 +187,7 @@ func (m *ItemOnenoteRequestBuilder) ToPatchRequestInformation(ctx context.Contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteRequestBuilder when successful func (m *ItemOnenoteRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteRequestBuilder) { return NewItemOnenoteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_resources_count_request_builder.go b/users/item_onenote_resources_count_request_builder.go index 64ef6aa26f2..07a199ca815 100644 --- a/users/item_onenote_resources_count_request_builder.go +++ b/users/item_onenote_resources_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemOnenoteResourcesCountRequestBuilder(rawUrl string, requestAdapter i2 return NewItemOnenoteResourcesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteResourcesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteResourcesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemOnenoteResourcesCountRequestBuilder) Get(ctx context.Context, reque return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteResourcesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteResourcesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemOnenoteResourcesCountRequestBuilder) ToGetRequestInformation(ctx co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteResourcesCountRequestBuilder when successful func (m *ItemOnenoteResourcesCountRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteResourcesCountRequestBuilder) { return NewItemOnenoteResourcesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_resources_item_content_request_builder.go b/users/item_onenote_resources_item_content_request_builder.go index fcdf0f2d5d3..c4280d388f6 100644 --- a/users/item_onenote_resources_item_content_request_builder.go +++ b/users/item_onenote_resources_item_content_request_builder.go @@ -46,6 +46,7 @@ func NewItemOnenoteResourcesItemContentRequestBuilder(rawUrl string, requestAdap return NewItemOnenoteResourcesItemContentRequestBuilderInternal(urlParams, requestAdapter) } // Delete the content of the resource. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteResourcesItemContentRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOnenoteResourcesItemContentRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -62,6 +63,7 @@ func (m *ItemOnenoteResourcesItemContentRequestBuilder) Delete(ctx context.Conte return nil } // Get the content of the resource. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteResourcesItemContentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteResourcesItemContentRequestBuilderGetRequestConfiguration)([]byte, error) { @@ -82,6 +84,7 @@ func (m *ItemOnenoteResourcesItemContentRequestBuilder) Get(ctx context.Context, return res.([]byte), nil } // Put the content of the resource. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenoteResourceable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteResourcesItemContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemOnenoteResourcesItemContentRequestBuilderPutRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteResourceable, error) { @@ -102,6 +105,7 @@ func (m *ItemOnenoteResourcesItemContentRequestBuilder) Put(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteResourceable), nil } // ToDeleteRequestInformation the content of the resource. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteResourcesItemContentRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteResourcesItemContentRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,6 +117,7 @@ func (m *ItemOnenoteResourcesItemContentRequestBuilder) ToDeleteRequestInformati return requestInfo, nil } // ToGetRequestInformation the content of the resource. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteResourcesItemContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteResourcesItemContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -124,6 +129,7 @@ func (m *ItemOnenoteResourcesItemContentRequestBuilder) ToGetRequestInformation( return requestInfo, nil } // ToPutRequestInformation the content of the resource. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteResourcesItemContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemOnenoteResourcesItemContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +142,7 @@ func (m *ItemOnenoteResourcesItemContentRequestBuilder) ToPutRequestInformation( return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteResourcesItemContentRequestBuilder when successful func (m *ItemOnenoteResourcesItemContentRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteResourcesItemContentRequestBuilder) { return NewItemOnenoteResourcesItemContentRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_resources_onenote_resource_item_request_builder.go b/users/item_onenote_resources_onenote_resource_item_request_builder.go index b0c15d0b279..de1216b8b9f 100644 --- a/users/item_onenote_resources_onenote_resource_item_request_builder.go +++ b/users/item_onenote_resources_onenote_resource_item_request_builder.go @@ -60,6 +60,7 @@ func (m *ItemOnenoteResourcesOnenoteResourceItemRequestBuilder) Content()(*ItemO return NewItemOnenoteResourcesItemContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Delete delete navigation property resources for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteResourcesOnenoteResourceItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOnenoteResourcesOnenoteResourceItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -76,6 +77,7 @@ func (m *ItemOnenoteResourcesOnenoteResourceItemRequestBuilder) Delete(ctx conte return nil } // Get the image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenoteResourceable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteResourcesOnenoteResourceItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteResourcesOnenoteResourceItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteResourceable, error) { @@ -96,6 +98,7 @@ func (m *ItemOnenoteResourcesOnenoteResourceItemRequestBuilder) Get(ctx context. return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteResourceable), nil } // Patch update the navigation property resources in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenoteResourceable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteResourcesOnenoteResourceItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteResourceable, requestConfiguration *ItemOnenoteResourcesOnenoteResourceItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteResourceable, error) { @@ -116,6 +119,7 @@ func (m *ItemOnenoteResourcesOnenoteResourceItemRequestBuilder) Patch(ctx contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteResourceable), nil } // ToDeleteRequestInformation delete navigation property resources for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteResourcesOnenoteResourceItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteResourcesOnenoteResourceItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -127,6 +131,7 @@ func (m *ItemOnenoteResourcesOnenoteResourceItemRequestBuilder) ToDeleteRequestI return requestInfo, nil } // ToGetRequestInformation the image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteResourcesOnenoteResourceItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteResourcesOnenoteResourceItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,6 +146,7 @@ func (m *ItemOnenoteResourcesOnenoteResourceItemRequestBuilder) ToGetRequestInfo return requestInfo, nil } // ToPatchRequestInformation update the navigation property resources in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteResourcesOnenoteResourceItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteResourceable, requestConfiguration *ItemOnenoteResourcesOnenoteResourceItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +162,7 @@ func (m *ItemOnenoteResourcesOnenoteResourceItemRequestBuilder) ToPatchRequestIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteResourcesOnenoteResourceItemRequestBuilder when successful func (m *ItemOnenoteResourcesOnenoteResourceItemRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteResourcesOnenoteResourceItemRequestBuilder) { return NewItemOnenoteResourcesOnenoteResourceItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_resources_request_builder.go b/users/item_onenote_resources_request_builder.go index 56ae67f61f7..d81212642bc 100644 --- a/users/item_onenote_resources_request_builder.go +++ b/users/item_onenote_resources_request_builder.go @@ -47,6 +47,7 @@ type ItemOnenoteResourcesRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByOnenoteResourceId provides operations to manage the resources property of the microsoft.graph.onenote entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteResourcesOnenoteResourceItemRequestBuilder when successful func (m *ItemOnenoteResourcesRequestBuilder) ByOnenoteResourceId(onenoteResourceId string)(*ItemOnenoteResourcesOnenoteResourceItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemOnenoteResourcesRequestBuilder) Count()(*ItemOnenoteResourcesCountR return NewItemOnenoteResourcesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenoteResourceCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteResourcesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteResourcesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteResourceCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemOnenoteResourcesRequestBuilder) Get(ctx context.Context, requestCon return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteResourceCollectionResponseable), nil } // Post create new navigation property to resources for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenoteResourceable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteResourcesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteResourceable, requestConfiguration *ItemOnenoteResourcesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteResourceable, error) { @@ -117,6 +120,7 @@ func (m *ItemOnenoteResourcesRequestBuilder) Post(ctx context.Context, body ie23 return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteResourceable), nil } // ToGetRequestInformation the image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteResourcesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteResourcesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemOnenoteResourcesRequestBuilder) ToGetRequestInformation(ctx context return requestInfo, nil } // ToPostRequestInformation create new navigation property to resources for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteResourcesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteResourceable, requestConfiguration *ItemOnenoteResourcesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemOnenoteResourcesRequestBuilder) ToPostRequestInformation(ctx contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteResourcesRequestBuilder when successful func (m *ItemOnenoteResourcesRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteResourcesRequestBuilder) { return NewItemOnenoteResourcesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_section_groups_count_request_builder.go b/users/item_onenote_section_groups_count_request_builder.go index a1e1253ad3b..209566cc330 100644 --- a/users/item_onenote_section_groups_count_request_builder.go +++ b/users/item_onenote_section_groups_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemOnenoteSectionGroupsCountRequestBuilder(rawUrl string, requestAdapte return NewItemOnenoteSectionGroupsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionGroupsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemOnenoteSectionGroupsCountRequestBuilder) Get(ctx context.Context, r return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionGroupsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemOnenoteSectionGroupsCountRequestBuilder) ToGetRequestInformation(ct return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteSectionGroupsCountRequestBuilder when successful func (m *ItemOnenoteSectionGroupsCountRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteSectionGroupsCountRequestBuilder) { return NewItemOnenoteSectionGroupsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_section_groups_item_parent_notebook_request_builder.go b/users/item_onenote_section_groups_item_parent_notebook_request_builder.go index 4364b365747..015d3f1aadd 100644 --- a/users/item_onenote_section_groups_item_parent_notebook_request_builder.go +++ b/users/item_onenote_section_groups_item_parent_notebook_request_builder.go @@ -41,6 +41,7 @@ func NewItemOnenoteSectionGroupsItemParentNotebookRequestBuilder(rawUrl string, return NewItemOnenoteSectionGroupsItemParentNotebookRequestBuilderInternal(urlParams, requestAdapter) } // Get the notebook that contains the section group. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Notebookable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionGroupsItemParentNotebookRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsItemParentNotebookRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Notebookable, error) { @@ -61,6 +62,7 @@ func (m *ItemOnenoteSectionGroupsItemParentNotebookRequestBuilder) Get(ctx conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Notebookable), nil } // ToGetRequestInformation the notebook that contains the section group. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionGroupsItemParentNotebookRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsItemParentNotebookRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemOnenoteSectionGroupsItemParentNotebookRequestBuilder) ToGetRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteSectionGroupsItemParentNotebookRequestBuilder when successful func (m *ItemOnenoteSectionGroupsItemParentNotebookRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteSectionGroupsItemParentNotebookRequestBuilder) { return NewItemOnenoteSectionGroupsItemParentNotebookRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_section_groups_item_parent_section_group_request_builder.go b/users/item_onenote_section_groups_item_parent_section_group_request_builder.go index 9ef5b992aeb..8786439bfd8 100644 --- a/users/item_onenote_section_groups_item_parent_section_group_request_builder.go +++ b/users/item_onenote_section_groups_item_parent_section_group_request_builder.go @@ -41,6 +41,7 @@ func NewItemOnenoteSectionGroupsItemParentSectionGroupRequestBuilder(rawUrl stri return NewItemOnenoteSectionGroupsItemParentSectionGroupRequestBuilderInternal(urlParams, requestAdapter) } // Get the section group that contains the section group. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SectionGroupable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionGroupsItemParentSectionGroupRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsItemParentSectionGroupRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SectionGroupable, error) { @@ -61,6 +62,7 @@ func (m *ItemOnenoteSectionGroupsItemParentSectionGroupRequestBuilder) Get(ctx c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SectionGroupable), nil } // ToGetRequestInformation the section group that contains the section group. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionGroupsItemParentSectionGroupRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsItemParentSectionGroupRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemOnenoteSectionGroupsItemParentSectionGroupRequestBuilder) ToGetRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteSectionGroupsItemParentSectionGroupRequestBuilder when successful func (m *ItemOnenoteSectionGroupsItemParentSectionGroupRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteSectionGroupsItemParentSectionGroupRequestBuilder) { return NewItemOnenoteSectionGroupsItemParentSectionGroupRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_section_groups_item_section_groups_count_request_builder.go b/users/item_onenote_section_groups_item_section_groups_count_request_builder.go index 563529cedb1..30c1a58e313 100644 --- a/users/item_onenote_section_groups_item_section_groups_count_request_builder.go +++ b/users/item_onenote_section_groups_item_section_groups_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemOnenoteSectionGroupsItemSectionGroupsCountRequestBuilder(rawUrl stri return NewItemOnenoteSectionGroupsItemSectionGroupsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionGroupsItemSectionGroupsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsItemSectionGroupsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionGroupsCountRequestBuilder) Get(ctx c return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionGroupsItemSectionGroupsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsItemSectionGroupsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionGroupsCountRequestBuilder) ToGetRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteSectionGroupsItemSectionGroupsCountRequestBuilder when successful func (m *ItemOnenoteSectionGroupsItemSectionGroupsCountRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteSectionGroupsItemSectionGroupsCountRequestBuilder) { return NewItemOnenoteSectionGroupsItemSectionGroupsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_section_groups_item_section_groups_request_builder.go b/users/item_onenote_section_groups_item_section_groups_request_builder.go index 4bf09469d9e..e86cfa170c4 100644 --- a/users/item_onenote_section_groups_item_section_groups_request_builder.go +++ b/users/item_onenote_section_groups_item_section_groups_request_builder.go @@ -40,6 +40,7 @@ type ItemOnenoteSectionGroupsItemSectionGroupsRequestBuilderGetRequestConfigurat QueryParameters *ItemOnenoteSectionGroupsItemSectionGroupsRequestBuilderGetQueryParameters } // BySectionGroupId1 provides operations to manage the sectionGroups property of the microsoft.graph.sectionGroup entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteSectionGroupsItemSectionGroupsSectionGroupItemRequestBuilder when successful func (m *ItemOnenoteSectionGroupsItemSectionGroupsRequestBuilder) BySectionGroupId1(sectionGroupId1 string)(*ItemOnenoteSectionGroupsItemSectionGroupsSectionGroupItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -70,6 +71,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionGroupsRequestBuilder) Count()(*ItemO return NewItemOnenoteSectionGroupsItemSectionGroupsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the section groups in the section. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SectionGroupCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionGroupsItemSectionGroupsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsItemSectionGroupsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SectionGroupCollectionResponseable, error) { @@ -90,6 +92,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionGroupsRequestBuilder) Get(ctx contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SectionGroupCollectionResponseable), nil } // ToGetRequestInformation the section groups in the section. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionGroupsItemSectionGroupsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsItemSectionGroupsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -104,6 +107,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionGroupsRequestBuilder) ToGetRequestIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteSectionGroupsItemSectionGroupsRequestBuilder when successful func (m *ItemOnenoteSectionGroupsItemSectionGroupsRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteSectionGroupsItemSectionGroupsRequestBuilder) { return NewItemOnenoteSectionGroupsItemSectionGroupsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_section_groups_item_section_groups_section_group_item_request_builder.go b/users/item_onenote_section_groups_item_section_groups_section_group_item_request_builder.go index 3b8541ef18a..000d8e0c1be 100644 --- a/users/item_onenote_section_groups_item_section_groups_section_group_item_request_builder.go +++ b/users/item_onenote_section_groups_item_section_groups_section_group_item_request_builder.go @@ -41,6 +41,7 @@ func NewItemOnenoteSectionGroupsItemSectionGroupsSectionGroupItemRequestBuilder( return NewItemOnenoteSectionGroupsItemSectionGroupsSectionGroupItemRequestBuilderInternal(urlParams, requestAdapter) } // Get the section groups in the section. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SectionGroupable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionGroupsItemSectionGroupsSectionGroupItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsItemSectionGroupsSectionGroupItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SectionGroupable, error) { @@ -61,6 +62,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionGroupsSectionGroupItemRequestBuilder return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SectionGroupable), nil } // ToGetRequestInformation the section groups in the section. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionGroupsItemSectionGroupsSectionGroupItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsItemSectionGroupsSectionGroupItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionGroupsSectionGroupItemRequestBuilder return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteSectionGroupsItemSectionGroupsSectionGroupItemRequestBuilder when successful func (m *ItemOnenoteSectionGroupsItemSectionGroupsSectionGroupItemRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteSectionGroupsItemSectionGroupsSectionGroupItemRequestBuilder) { return NewItemOnenoteSectionGroupsItemSectionGroupsSectionGroupItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_section_groups_item_sections_count_request_builder.go b/users/item_onenote_section_groups_item_sections_count_request_builder.go index 8e1bfb8e36d..ef372fae269 100644 --- a/users/item_onenote_section_groups_item_sections_count_request_builder.go +++ b/users/item_onenote_section_groups_item_sections_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemOnenoteSectionGroupsItemSectionsCountRequestBuilder(rawUrl string, r return NewItemOnenoteSectionGroupsItemSectionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionGroupsItemSectionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsItemSectionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsCountRequestBuilder) Get(ctx contex return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionGroupsItemSectionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsItemSectionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsCountRequestBuilder) ToGetRequestIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteSectionGroupsItemSectionsCountRequestBuilder when successful func (m *ItemOnenoteSectionGroupsItemSectionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteSectionGroupsItemSectionsCountRequestBuilder) { return NewItemOnenoteSectionGroupsItemSectionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_section_groups_item_sections_item_copy_to_notebook_request_builder.go b/users/item_onenote_section_groups_item_sections_item_copy_to_notebook_request_builder.go index e07895f3bad..11f429da726 100644 --- a/users/item_onenote_section_groups_item_sections_item_copy_to_notebook_request_builder.go +++ b/users/item_onenote_section_groups_item_sections_item_copy_to_notebook_request_builder.go @@ -32,6 +32,7 @@ func NewItemOnenoteSectionGroupsItemSectionsItemCopyToNotebookRequestBuilder(raw return NewItemOnenoteSectionGroupsItemSectionsItemCopyToNotebookRequestBuilderInternal(urlParams, requestAdapter) } // Post copies a section to a specific notebook. For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenoteOperationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsItemCopyToNotebookRequestBuilder) P return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteOperationable), nil } // ToPostRequestInformation copies a section to a specific notebook. For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionGroupsItemSectionsItemCopyToNotebookRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemOnenoteSectionGroupsItemSectionsItemCopyToNotebookPostRequestBodyable, requestConfiguration *ItemOnenoteSectionGroupsItemSectionsItemCopyToNotebookRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsItemCopyToNotebookRequestBuilder) T return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteSectionGroupsItemSectionsItemCopyToNotebookRequestBuilder when successful func (m *ItemOnenoteSectionGroupsItemSectionsItemCopyToNotebookRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteSectionGroupsItemSectionsItemCopyToNotebookRequestBuilder) { return NewItemOnenoteSectionGroupsItemSectionsItemCopyToNotebookRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_section_groups_item_sections_item_copy_to_section_group_request_builder.go b/users/item_onenote_section_groups_item_sections_item_copy_to_section_group_request_builder.go index ce794abe749..4f9a8348c72 100644 --- a/users/item_onenote_section_groups_item_sections_item_copy_to_section_group_request_builder.go +++ b/users/item_onenote_section_groups_item_sections_item_copy_to_section_group_request_builder.go @@ -32,6 +32,7 @@ func NewItemOnenoteSectionGroupsItemSectionsItemCopyToSectionGroupRequestBuilder return NewItemOnenoteSectionGroupsItemSectionsItemCopyToSectionGroupRequestBuilderInternal(urlParams, requestAdapter) } // Post copies a section to a specific section group. For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenoteOperationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsItemCopyToSectionGroupRequestBuilde return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteOperationable), nil } // ToPostRequestInformation copies a section to a specific section group. For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionGroupsItemSectionsItemCopyToSectionGroupRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemOnenoteSectionGroupsItemSectionsItemCopyToSectionGroupPostRequestBodyable, requestConfiguration *ItemOnenoteSectionGroupsItemSectionsItemCopyToSectionGroupRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsItemCopyToSectionGroupRequestBuilde return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteSectionGroupsItemSectionsItemCopyToSectionGroupRequestBuilder when successful func (m *ItemOnenoteSectionGroupsItemSectionsItemCopyToSectionGroupRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteSectionGroupsItemSectionsItemCopyToSectionGroupRequestBuilder) { return NewItemOnenoteSectionGroupsItemSectionsItemCopyToSectionGroupRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_section_groups_item_sections_item_pages_count_request_builder.go b/users/item_onenote_section_groups_item_sections_item_pages_count_request_builder.go index 820d0e8857c..eb5d7dc6d55 100644 --- a/users/item_onenote_section_groups_item_sections_item_pages_count_request_builder.go +++ b/users/item_onenote_section_groups_item_sections_item_pages_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemOnenoteSectionGroupsItemSectionsItemPagesCountRequestBuilder(rawUrl return NewItemOnenoteSectionGroupsItemSectionsItemPagesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsItemSectionsItemPagesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesCountRequestBuilder) Get(c return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsItemSectionsItemPagesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesCountRequestBuilder) ToGet return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteSectionGroupsItemSectionsItemPagesCountRequestBuilder when successful func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesCountRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteSectionGroupsItemSectionsItemPagesCountRequestBuilder) { return NewItemOnenoteSectionGroupsItemSectionsItemPagesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_section_groups_item_sections_item_pages_item_content_request_builder.go b/users/item_onenote_section_groups_item_sections_item_pages_item_content_request_builder.go index 7afcea5d104..c18a3b85615 100644 --- a/users/item_onenote_section_groups_item_sections_item_pages_item_content_request_builder.go +++ b/users/item_onenote_section_groups_item_sections_item_pages_item_content_request_builder.go @@ -46,6 +46,7 @@ func NewItemOnenoteSectionGroupsItemSectionsItemPagesItemContentRequestBuilder(r return NewItemOnenoteSectionGroupsItemSectionsItemPagesItemContentRequestBuilderInternal(urlParams, requestAdapter) } // Delete the page's HTML content. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesItemContentRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsItemSectionsItemPagesItemContentRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -62,6 +63,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesItemContentRequestBuilder) return nil } // Get the page's HTML content. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesItemContentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsItemSectionsItemPagesItemContentRequestBuilderGetRequestConfiguration)([]byte, error) { @@ -82,6 +84,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesItemContentRequestBuilder) return res.([]byte), nil } // Put the page's HTML content. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenotePageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesItemContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemOnenoteSectionGroupsItemSectionsItemPagesItemContentRequestBuilderPutRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable, error) { @@ -102,6 +105,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesItemContentRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable), nil } // ToDeleteRequestInformation the page's HTML content. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesItemContentRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsItemSectionsItemPagesItemContentRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,6 +117,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesItemContentRequestBuilder) return requestInfo, nil } // ToGetRequestInformation the page's HTML content. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesItemContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsItemSectionsItemPagesItemContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -124,6 +129,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesItemContentRequestBuilder) return requestInfo, nil } // ToPutRequestInformation the page's HTML content. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesItemContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemOnenoteSectionGroupsItemSectionsItemPagesItemContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +142,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesItemContentRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteSectionGroupsItemSectionsItemPagesItemContentRequestBuilder when successful func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesItemContentRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteSectionGroupsItemSectionsItemPagesItemContentRequestBuilder) { return NewItemOnenoteSectionGroupsItemSectionsItemPagesItemContentRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_section_groups_item_sections_item_pages_item_copy_to_section_request_builder.go b/users/item_onenote_section_groups_item_sections_item_pages_item_copy_to_section_request_builder.go index 460278a2576..774a4e3dd2d 100644 --- a/users/item_onenote_section_groups_item_sections_item_pages_item_copy_to_section_request_builder.go +++ b/users/item_onenote_section_groups_item_sections_item_pages_item_copy_to_section_request_builder.go @@ -32,6 +32,7 @@ func NewItemOnenoteSectionGroupsItemSectionsItemPagesItemCopyToSectionRequestBui return NewItemOnenoteSectionGroupsItemSectionsItemPagesItemCopyToSectionRequestBuilderInternal(urlParams, requestAdapter) } // Post copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenoteOperationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesItemCopyToSectionRequestBu return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteOperationable), nil } // ToPostRequestInformation copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesItemCopyToSectionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemOnenoteSectionGroupsItemSectionsItemPagesItemCopyToSectionPostRequestBodyable, requestConfiguration *ItemOnenoteSectionGroupsItemSectionsItemPagesItemCopyToSectionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesItemCopyToSectionRequestBu return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteSectionGroupsItemSectionsItemPagesItemCopyToSectionRequestBuilder when successful func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesItemCopyToSectionRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteSectionGroupsItemSectionsItemPagesItemCopyToSectionRequestBuilder) { return NewItemOnenoteSectionGroupsItemSectionsItemPagesItemCopyToSectionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_section_groups_item_sections_item_pages_item_onenote_patch_content_request_builder.go b/users/item_onenote_section_groups_item_sections_item_pages_item_onenote_patch_content_request_builder.go index 3c3a20786bc..de4f3bf6ead 100644 --- a/users/item_onenote_section_groups_item_sections_item_pages_item_onenote_patch_content_request_builder.go +++ b/users/item_onenote_section_groups_item_sections_item_pages_item_onenote_patch_content_request_builder.go @@ -31,6 +31,7 @@ func NewItemOnenoteSectionGroupsItemSectionsItemPagesItemOnenotePatchContentRequ return NewItemOnenoteSectionGroupsItemSectionsItemPagesItemOnenotePatchContentRequestBuilderInternal(urlParams, requestAdapter) } // Post invoke action onenotePatchContent +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesItemOnenotePatchContentRequestBuilder) Post(ctx context.Context, body ItemOnenoteSectionGroupsItemSectionsItemPagesItemOnenotePatchContentPostRequestBodyable, requestConfiguration *ItemOnenoteSectionGroupsItemSectionsItemPagesItemOnenotePatchContentRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesItemOnenotePatchContentReq return nil } // ToPostRequestInformation invoke action onenotePatchContent +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesItemOnenotePatchContentRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemOnenoteSectionGroupsItemSectionsItemPagesItemOnenotePatchContentPostRequestBodyable, requestConfiguration *ItemOnenoteSectionGroupsItemSectionsItemPagesItemOnenotePatchContentRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -62,6 +64,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesItemOnenotePatchContentReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteSectionGroupsItemSectionsItemPagesItemOnenotePatchContentRequestBuilder when successful func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesItemOnenotePatchContentRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteSectionGroupsItemSectionsItemPagesItemOnenotePatchContentRequestBuilder) { return NewItemOnenoteSectionGroupsItemSectionsItemPagesItemOnenotePatchContentRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_section_groups_item_sections_item_pages_item_parent_notebook_request_builder.go b/users/item_onenote_section_groups_item_sections_item_pages_item_parent_notebook_request_builder.go index 14ef9af733a..c63b683f8b5 100644 --- a/users/item_onenote_section_groups_item_sections_item_pages_item_parent_notebook_request_builder.go +++ b/users/item_onenote_section_groups_item_sections_item_pages_item_parent_notebook_request_builder.go @@ -41,6 +41,7 @@ func NewItemOnenoteSectionGroupsItemSectionsItemPagesItemParentNotebookRequestBu return NewItemOnenoteSectionGroupsItemSectionsItemPagesItemParentNotebookRequestBuilderInternal(urlParams, requestAdapter) } // Get the notebook that contains the page. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Notebookable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesItemParentNotebookRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsItemSectionsItemPagesItemParentNotebookRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Notebookable, error) { @@ -61,6 +62,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesItemParentNotebookRequestB return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Notebookable), nil } // ToGetRequestInformation the notebook that contains the page. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesItemParentNotebookRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsItemSectionsItemPagesItemParentNotebookRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesItemParentNotebookRequestB return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteSectionGroupsItemSectionsItemPagesItemParentNotebookRequestBuilder when successful func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesItemParentNotebookRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteSectionGroupsItemSectionsItemPagesItemParentNotebookRequestBuilder) { return NewItemOnenoteSectionGroupsItemSectionsItemPagesItemParentNotebookRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_section_groups_item_sections_item_pages_item_parent_section_request_builder.go b/users/item_onenote_section_groups_item_sections_item_pages_item_parent_section_request_builder.go index af1f7819a27..b33f499f847 100644 --- a/users/item_onenote_section_groups_item_sections_item_pages_item_parent_section_request_builder.go +++ b/users/item_onenote_section_groups_item_sections_item_pages_item_parent_section_request_builder.go @@ -41,6 +41,7 @@ func NewItemOnenoteSectionGroupsItemSectionsItemPagesItemParentSectionRequestBui return NewItemOnenoteSectionGroupsItemSectionsItemPagesItemParentSectionRequestBuilderInternal(urlParams, requestAdapter) } // Get the section that contains the page. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenoteSectionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesItemParentSectionRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsItemSectionsItemPagesItemParentSectionRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionable, error) { @@ -61,6 +62,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesItemParentSectionRequestBu return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionable), nil } // ToGetRequestInformation the section that contains the page. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesItemParentSectionRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsItemSectionsItemPagesItemParentSectionRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesItemParentSectionRequestBu return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteSectionGroupsItemSectionsItemPagesItemParentSectionRequestBuilder when successful func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesItemParentSectionRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteSectionGroupsItemSectionsItemPagesItemParentSectionRequestBuilder) { return NewItemOnenoteSectionGroupsItemSectionsItemPagesItemParentSectionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_section_groups_item_sections_item_pages_item_preview_request_builder.go b/users/item_onenote_section_groups_item_sections_item_pages_item_preview_request_builder.go index 995af1ef0d1..2d00d987c20 100644 --- a/users/item_onenote_section_groups_item_sections_item_pages_item_preview_request_builder.go +++ b/users/item_onenote_section_groups_item_sections_item_pages_item_preview_request_builder.go @@ -32,6 +32,7 @@ func NewItemOnenoteSectionGroupsItemSectionsItemPagesItemPreviewRequestBuilder(r return NewItemOnenoteSectionGroupsItemSectionsItemPagesItemPreviewRequestBuilderInternal(urlParams, requestAdapter) } // Get invoke function preview +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenotePagePreviewable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesItemPreviewRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsItemSectionsItemPagesItemPreviewRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePagePreviewable, error) { @@ -52,6 +53,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesItemPreviewRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePagePreviewable), nil } // ToGetRequestInformation invoke function preview +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesItemPreviewRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsItemSectionsItemPagesItemPreviewRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -63,6 +65,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesItemPreviewRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteSectionGroupsItemSectionsItemPagesItemPreviewRequestBuilder when successful func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesItemPreviewRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteSectionGroupsItemSectionsItemPagesItemPreviewRequestBuilder) { return NewItemOnenoteSectionGroupsItemSectionsItemPagesItemPreviewRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_section_groups_item_sections_item_pages_onenote_page_item_request_builder.go b/users/item_onenote_section_groups_item_sections_item_pages_onenote_page_item_request_builder.go index e567bc52590..1194c9e894b 100644 --- a/users/item_onenote_section_groups_item_sections_item_pages_onenote_page_item_request_builder.go +++ b/users/item_onenote_section_groups_item_sections_item_pages_onenote_page_item_request_builder.go @@ -65,6 +65,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesOnenotePageItemRequestBuil return NewItemOnenoteSectionGroupsItemSectionsItemPagesItemCopyToSectionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Delete delete navigation property pages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesOnenotePageItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsItemSectionsItemPagesOnenotePageItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -81,6 +82,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesOnenotePageItemRequestBuil return nil } // Get the collection of pages in the section. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenotePageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesOnenotePageItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsItemSectionsItemPagesOnenotePageItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable, error) { @@ -116,6 +118,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesOnenotePageItemRequestBuil return NewItemOnenoteSectionGroupsItemSectionsItemPagesItemParentSectionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property pages in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenotePageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesOnenotePageItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable, requestConfiguration *ItemOnenoteSectionGroupsItemSectionsItemPagesOnenotePageItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable, error) { @@ -141,6 +144,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesOnenotePageItemRequestBuil return NewItemOnenoteSectionGroupsItemSectionsItemPagesItemPreviewRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property pages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesOnenotePageItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsItemSectionsItemPagesOnenotePageItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -152,6 +156,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesOnenotePageItemRequestBuil return requestInfo, nil } // ToGetRequestInformation the collection of pages in the section. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesOnenotePageItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsItemSectionsItemPagesOnenotePageItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -166,6 +171,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesOnenotePageItemRequestBuil return requestInfo, nil } // ToPatchRequestInformation update the navigation property pages in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesOnenotePageItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable, requestConfiguration *ItemOnenoteSectionGroupsItemSectionsItemPagesOnenotePageItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -181,6 +187,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesOnenotePageItemRequestBuil return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteSectionGroupsItemSectionsItemPagesOnenotePageItemRequestBuilder when successful func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesOnenotePageItemRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteSectionGroupsItemSectionsItemPagesOnenotePageItemRequestBuilder) { return NewItemOnenoteSectionGroupsItemSectionsItemPagesOnenotePageItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_section_groups_item_sections_item_pages_request_builder.go b/users/item_onenote_section_groups_item_sections_item_pages_request_builder.go index aa0d0b780d2..ccc6cf5ada4 100644 --- a/users/item_onenote_section_groups_item_sections_item_pages_request_builder.go +++ b/users/item_onenote_section_groups_item_sections_item_pages_request_builder.go @@ -47,6 +47,7 @@ type ItemOnenoteSectionGroupsItemSectionsItemPagesRequestBuilderPostRequestConfi Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByOnenotePageId provides operations to manage the pages property of the microsoft.graph.onenoteSection entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteSectionGroupsItemSectionsItemPagesOnenotePageItemRequestBuilder when successful func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesRequestBuilder) ByOnenotePageId(onenotePageId string)(*ItemOnenoteSectionGroupsItemSectionsItemPagesOnenotePageItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesRequestBuilder) Count()(*I return NewItemOnenoteSectionGroupsItemSectionsItemPagesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of pages in the section. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenotePageCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsItemSectionsItemPagesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesRequestBuilder) Get(ctx co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageCollectionResponseable), nil } // Post create new navigation property to pages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenotePageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable, requestConfiguration *ItemOnenoteSectionGroupsItemSectionsItemPagesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable, error) { @@ -117,6 +120,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesRequestBuilder) Post(ctx c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable), nil } // ToGetRequestInformation the collection of pages in the section. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsItemSectionsItemPagesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesRequestBuilder) ToGetReque return requestInfo, nil } // ToPostRequestInformation create new navigation property to pages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable, requestConfiguration *ItemOnenoteSectionGroupsItemSectionsItemPagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesRequestBuilder) ToPostRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteSectionGroupsItemSectionsItemPagesRequestBuilder when successful func (m *ItemOnenoteSectionGroupsItemSectionsItemPagesRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteSectionGroupsItemSectionsItemPagesRequestBuilder) { return NewItemOnenoteSectionGroupsItemSectionsItemPagesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_section_groups_item_sections_item_parent_notebook_request_builder.go b/users/item_onenote_section_groups_item_sections_item_parent_notebook_request_builder.go index ce0c5def06c..31a70cf75d1 100644 --- a/users/item_onenote_section_groups_item_sections_item_parent_notebook_request_builder.go +++ b/users/item_onenote_section_groups_item_sections_item_parent_notebook_request_builder.go @@ -41,6 +41,7 @@ func NewItemOnenoteSectionGroupsItemSectionsItemParentNotebookRequestBuilder(raw return NewItemOnenoteSectionGroupsItemSectionsItemParentNotebookRequestBuilderInternal(urlParams, requestAdapter) } // Get the notebook that contains the section. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Notebookable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionGroupsItemSectionsItemParentNotebookRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsItemSectionsItemParentNotebookRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Notebookable, error) { @@ -61,6 +62,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsItemParentNotebookRequestBuilder) G return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Notebookable), nil } // ToGetRequestInformation the notebook that contains the section. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionGroupsItemSectionsItemParentNotebookRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsItemSectionsItemParentNotebookRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsItemParentNotebookRequestBuilder) T return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteSectionGroupsItemSectionsItemParentNotebookRequestBuilder when successful func (m *ItemOnenoteSectionGroupsItemSectionsItemParentNotebookRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteSectionGroupsItemSectionsItemParentNotebookRequestBuilder) { return NewItemOnenoteSectionGroupsItemSectionsItemParentNotebookRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_section_groups_item_sections_item_parent_section_group_request_builder.go b/users/item_onenote_section_groups_item_sections_item_parent_section_group_request_builder.go index 16602f56a8f..c27d32132d7 100644 --- a/users/item_onenote_section_groups_item_sections_item_parent_section_group_request_builder.go +++ b/users/item_onenote_section_groups_item_sections_item_parent_section_group_request_builder.go @@ -41,6 +41,7 @@ func NewItemOnenoteSectionGroupsItemSectionsItemParentSectionGroupRequestBuilder return NewItemOnenoteSectionGroupsItemSectionsItemParentSectionGroupRequestBuilderInternal(urlParams, requestAdapter) } // Get the section group that contains the section. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SectionGroupable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionGroupsItemSectionsItemParentSectionGroupRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsItemSectionsItemParentSectionGroupRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SectionGroupable, error) { @@ -61,6 +62,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsItemParentSectionGroupRequestBuilde return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SectionGroupable), nil } // ToGetRequestInformation the section group that contains the section. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionGroupsItemSectionsItemParentSectionGroupRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsItemSectionsItemParentSectionGroupRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsItemParentSectionGroupRequestBuilde return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteSectionGroupsItemSectionsItemParentSectionGroupRequestBuilder when successful func (m *ItemOnenoteSectionGroupsItemSectionsItemParentSectionGroupRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteSectionGroupsItemSectionsItemParentSectionGroupRequestBuilder) { return NewItemOnenoteSectionGroupsItemSectionsItemParentSectionGroupRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_section_groups_item_sections_onenote_section_item_request_builder.go b/users/item_onenote_section_groups_item_sections_onenote_section_item_request_builder.go index 9660cabf1e3..59e4bc2f0a8 100644 --- a/users/item_onenote_section_groups_item_sections_onenote_section_item_request_builder.go +++ b/users/item_onenote_section_groups_item_sections_onenote_section_item_request_builder.go @@ -65,6 +65,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsOnenoteSectionItemRequestBuilder) C return NewItemOnenoteSectionGroupsItemSectionsItemCopyToSectionGroupRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Delete delete navigation property sections for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionGroupsItemSectionsOnenoteSectionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsItemSectionsOnenoteSectionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -81,6 +82,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsOnenoteSectionItemRequestBuilder) D return nil } // Get the sections in the section group. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenoteSectionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionGroupsItemSectionsOnenoteSectionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsItemSectionsOnenoteSectionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionable, error) { @@ -116,6 +118,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsOnenoteSectionItemRequestBuilder) P return NewItemOnenoteSectionGroupsItemSectionsItemParentSectionGroupRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property sections in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenoteSectionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionGroupsItemSectionsOnenoteSectionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionable, requestConfiguration *ItemOnenoteSectionGroupsItemSectionsOnenoteSectionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionable, error) { @@ -136,6 +139,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsOnenoteSectionItemRequestBuilder) P return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionable), nil } // ToDeleteRequestInformation delete navigation property sections for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionGroupsItemSectionsOnenoteSectionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsItemSectionsOnenoteSectionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -147,6 +151,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsOnenoteSectionItemRequestBuilder) T return requestInfo, nil } // ToGetRequestInformation the sections in the section group. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionGroupsItemSectionsOnenoteSectionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsItemSectionsOnenoteSectionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -161,6 +166,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsOnenoteSectionItemRequestBuilder) T return requestInfo, nil } // ToPatchRequestInformation update the navigation property sections in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionGroupsItemSectionsOnenoteSectionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionable, requestConfiguration *ItemOnenoteSectionGroupsItemSectionsOnenoteSectionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -176,6 +182,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsOnenoteSectionItemRequestBuilder) T return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteSectionGroupsItemSectionsOnenoteSectionItemRequestBuilder when successful func (m *ItemOnenoteSectionGroupsItemSectionsOnenoteSectionItemRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteSectionGroupsItemSectionsOnenoteSectionItemRequestBuilder) { return NewItemOnenoteSectionGroupsItemSectionsOnenoteSectionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_section_groups_item_sections_request_builder.go b/users/item_onenote_section_groups_item_sections_request_builder.go index 94369be283f..660a0e781c6 100644 --- a/users/item_onenote_section_groups_item_sections_request_builder.go +++ b/users/item_onenote_section_groups_item_sections_request_builder.go @@ -47,6 +47,7 @@ type ItemOnenoteSectionGroupsItemSectionsRequestBuilderPostRequestConfiguration Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByOnenoteSectionId provides operations to manage the sections property of the microsoft.graph.sectionGroup entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteSectionGroupsItemSectionsOnenoteSectionItemRequestBuilder when successful func (m *ItemOnenoteSectionGroupsItemSectionsRequestBuilder) ByOnenoteSectionId(onenoteSectionId string)(*ItemOnenoteSectionGroupsItemSectionsOnenoteSectionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsRequestBuilder) Count()(*ItemOnenot return NewItemOnenoteSectionGroupsItemSectionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the sections in the section group. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenoteSectionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionGroupsItemSectionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsItemSectionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsRequestBuilder) Get(ctx context.Con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionCollectionResponseable), nil } // Post create new navigation property to sections for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenoteSectionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionGroupsItemSectionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionable, requestConfiguration *ItemOnenoteSectionGroupsItemSectionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionable, error) { @@ -117,6 +120,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsRequestBuilder) Post(ctx context.Co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionable), nil } // ToGetRequestInformation the sections in the section group. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionGroupsItemSectionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsItemSectionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsRequestBuilder) ToGetRequestInforma return requestInfo, nil } // ToPostRequestInformation create new navigation property to sections for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionGroupsItemSectionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionable, requestConfiguration *ItemOnenoteSectionGroupsItemSectionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemOnenoteSectionGroupsItemSectionsRequestBuilder) ToPostRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteSectionGroupsItemSectionsRequestBuilder when successful func (m *ItemOnenoteSectionGroupsItemSectionsRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteSectionGroupsItemSectionsRequestBuilder) { return NewItemOnenoteSectionGroupsItemSectionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_section_groups_request_builder.go b/users/item_onenote_section_groups_request_builder.go index 8b7ee7340e3..13054a2466c 100644 --- a/users/item_onenote_section_groups_request_builder.go +++ b/users/item_onenote_section_groups_request_builder.go @@ -47,6 +47,7 @@ type ItemOnenoteSectionGroupsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // BySectionGroupId provides operations to manage the sectionGroups property of the microsoft.graph.onenote entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteSectionGroupsSectionGroupItemRequestBuilder when successful func (m *ItemOnenoteSectionGroupsRequestBuilder) BySectionGroupId(sectionGroupId string)(*ItemOnenoteSectionGroupsSectionGroupItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemOnenoteSectionGroupsRequestBuilder) Count()(*ItemOnenoteSectionGrou return NewItemOnenoteSectionGroupsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the section groups in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SectionGroupCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionGroupsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SectionGroupCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemOnenoteSectionGroupsRequestBuilder) Get(ctx context.Context, reques return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SectionGroupCollectionResponseable), nil } // Post create new navigation property to sectionGroups for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SectionGroupable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionGroupsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SectionGroupable, requestConfiguration *ItemOnenoteSectionGroupsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SectionGroupable, error) { @@ -117,6 +120,7 @@ func (m *ItemOnenoteSectionGroupsRequestBuilder) Post(ctx context.Context, body return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SectionGroupable), nil } // ToGetRequestInformation the section groups in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionGroupsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemOnenoteSectionGroupsRequestBuilder) ToGetRequestInformation(ctx con return requestInfo, nil } // ToPostRequestInformation create new navigation property to sectionGroups for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SectionGroupable, requestConfiguration *ItemOnenoteSectionGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemOnenoteSectionGroupsRequestBuilder) ToPostRequestInformation(ctx co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteSectionGroupsRequestBuilder when successful func (m *ItemOnenoteSectionGroupsRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteSectionGroupsRequestBuilder) { return NewItemOnenoteSectionGroupsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_section_groups_section_group_item_request_builder.go b/users/item_onenote_section_groups_section_group_item_request_builder.go index 32dde34b9f5..e3ca6609ec7 100644 --- a/users/item_onenote_section_groups_section_group_item_request_builder.go +++ b/users/item_onenote_section_groups_section_group_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemOnenoteSectionGroupsSectionGroupItemRequestBuilder(rawUrl string, re return NewItemOnenoteSectionGroupsSectionGroupItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property sectionGroups for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionGroupsSectionGroupItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsSectionGroupItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemOnenoteSectionGroupsSectionGroupItemRequestBuilder) Delete(ctx cont return nil } // Get the section groups in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SectionGroupable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionGroupsSectionGroupItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsSectionGroupItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SectionGroupable, error) { @@ -101,6 +103,7 @@ func (m *ItemOnenoteSectionGroupsSectionGroupItemRequestBuilder) ParentSectionGr return NewItemOnenoteSectionGroupsItemParentSectionGroupRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property sectionGroups in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SectionGroupable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionGroupsSectionGroupItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SectionGroupable, requestConfiguration *ItemOnenoteSectionGroupsSectionGroupItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SectionGroupable, error) { @@ -131,6 +134,7 @@ func (m *ItemOnenoteSectionGroupsSectionGroupItemRequestBuilder) Sections()(*Ite return NewItemOnenoteSectionGroupsItemSectionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property sectionGroups for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionGroupsSectionGroupItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsSectionGroupItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -142,6 +146,7 @@ func (m *ItemOnenoteSectionGroupsSectionGroupItemRequestBuilder) ToDeleteRequest return requestInfo, nil } // ToGetRequestInformation the section groups in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionGroupsSectionGroupItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteSectionGroupsSectionGroupItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +161,7 @@ func (m *ItemOnenoteSectionGroupsSectionGroupItemRequestBuilder) ToGetRequestInf return requestInfo, nil } // ToPatchRequestInformation update the navigation property sectionGroups in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionGroupsSectionGroupItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SectionGroupable, requestConfiguration *ItemOnenoteSectionGroupsSectionGroupItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -171,6 +177,7 @@ func (m *ItemOnenoteSectionGroupsSectionGroupItemRequestBuilder) ToPatchRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteSectionGroupsSectionGroupItemRequestBuilder when successful func (m *ItemOnenoteSectionGroupsSectionGroupItemRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteSectionGroupsSectionGroupItemRequestBuilder) { return NewItemOnenoteSectionGroupsSectionGroupItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_sections_count_request_builder.go b/users/item_onenote_sections_count_request_builder.go index 0934f9ea3c7..040a1eaa290 100644 --- a/users/item_onenote_sections_count_request_builder.go +++ b/users/item_onenote_sections_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemOnenoteSectionsCountRequestBuilder(rawUrl string, requestAdapter i2a return NewItemOnenoteSectionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteSectionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemOnenoteSectionsCountRequestBuilder) Get(ctx context.Context, reques return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteSectionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemOnenoteSectionsCountRequestBuilder) ToGetRequestInformation(ctx con return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteSectionsCountRequestBuilder when successful func (m *ItemOnenoteSectionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteSectionsCountRequestBuilder) { return NewItemOnenoteSectionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_sections_item_copy_to_notebook_request_builder.go b/users/item_onenote_sections_item_copy_to_notebook_request_builder.go index 36febea380f..f5eafe91cc1 100644 --- a/users/item_onenote_sections_item_copy_to_notebook_request_builder.go +++ b/users/item_onenote_sections_item_copy_to_notebook_request_builder.go @@ -32,6 +32,7 @@ func NewItemOnenoteSectionsItemCopyToNotebookRequestBuilder(rawUrl string, reque return NewItemOnenoteSectionsItemCopyToNotebookRequestBuilderInternal(urlParams, requestAdapter) } // Post copies a section to a specific notebook. For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenoteOperationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemOnenoteSectionsItemCopyToNotebookRequestBuilder) Post(ctx context.C return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteOperationable), nil } // ToPostRequestInformation copies a section to a specific notebook. For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionsItemCopyToNotebookRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemOnenoteSectionsItemCopyToNotebookPostRequestBodyable, requestConfiguration *ItemOnenoteSectionsItemCopyToNotebookRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemOnenoteSectionsItemCopyToNotebookRequestBuilder) ToPostRequestInfor return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteSectionsItemCopyToNotebookRequestBuilder when successful func (m *ItemOnenoteSectionsItemCopyToNotebookRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteSectionsItemCopyToNotebookRequestBuilder) { return NewItemOnenoteSectionsItemCopyToNotebookRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_sections_item_copy_to_section_group_request_builder.go b/users/item_onenote_sections_item_copy_to_section_group_request_builder.go index 9d0f5aedf65..d1ab8c5de6f 100644 --- a/users/item_onenote_sections_item_copy_to_section_group_request_builder.go +++ b/users/item_onenote_sections_item_copy_to_section_group_request_builder.go @@ -32,6 +32,7 @@ func NewItemOnenoteSectionsItemCopyToSectionGroupRequestBuilder(rawUrl string, r return NewItemOnenoteSectionsItemCopyToSectionGroupRequestBuilderInternal(urlParams, requestAdapter) } // Post copies a section to a specific section group. For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenoteOperationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemOnenoteSectionsItemCopyToSectionGroupRequestBuilder) Post(ctx conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteOperationable), nil } // ToPostRequestInformation copies a section to a specific section group. For Copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionsItemCopyToSectionGroupRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemOnenoteSectionsItemCopyToSectionGroupPostRequestBodyable, requestConfiguration *ItemOnenoteSectionsItemCopyToSectionGroupRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemOnenoteSectionsItemCopyToSectionGroupRequestBuilder) ToPostRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteSectionsItemCopyToSectionGroupRequestBuilder when successful func (m *ItemOnenoteSectionsItemCopyToSectionGroupRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteSectionsItemCopyToSectionGroupRequestBuilder) { return NewItemOnenoteSectionsItemCopyToSectionGroupRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_sections_item_pages_count_request_builder.go b/users/item_onenote_sections_item_pages_count_request_builder.go index 64c942f4d20..dde250d49f7 100644 --- a/users/item_onenote_sections_item_pages_count_request_builder.go +++ b/users/item_onenote_sections_item_pages_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemOnenoteSectionsItemPagesCountRequestBuilder(rawUrl string, requestAd return NewItemOnenoteSectionsItemPagesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionsItemPagesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteSectionsItemPagesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemOnenoteSectionsItemPagesCountRequestBuilder) Get(ctx context.Contex return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionsItemPagesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteSectionsItemPagesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemOnenoteSectionsItemPagesCountRequestBuilder) ToGetRequestInformatio return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteSectionsItemPagesCountRequestBuilder when successful func (m *ItemOnenoteSectionsItemPagesCountRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteSectionsItemPagesCountRequestBuilder) { return NewItemOnenoteSectionsItemPagesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_sections_item_pages_item_content_request_builder.go b/users/item_onenote_sections_item_pages_item_content_request_builder.go index eb6f6a401fa..fcc893063f4 100644 --- a/users/item_onenote_sections_item_pages_item_content_request_builder.go +++ b/users/item_onenote_sections_item_pages_item_content_request_builder.go @@ -46,6 +46,7 @@ func NewItemOnenoteSectionsItemPagesItemContentRequestBuilder(rawUrl string, req return NewItemOnenoteSectionsItemPagesItemContentRequestBuilderInternal(urlParams, requestAdapter) } // Delete the page's HTML content. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionsItemPagesItemContentRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOnenoteSectionsItemPagesItemContentRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -62,6 +63,7 @@ func (m *ItemOnenoteSectionsItemPagesItemContentRequestBuilder) Delete(ctx conte return nil } // Get the page's HTML content. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionsItemPagesItemContentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteSectionsItemPagesItemContentRequestBuilderGetRequestConfiguration)([]byte, error) { @@ -82,6 +84,7 @@ func (m *ItemOnenoteSectionsItemPagesItemContentRequestBuilder) Get(ctx context. return res.([]byte), nil } // Put the page's HTML content. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenotePageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionsItemPagesItemContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemOnenoteSectionsItemPagesItemContentRequestBuilderPutRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable, error) { @@ -102,6 +105,7 @@ func (m *ItemOnenoteSectionsItemPagesItemContentRequestBuilder) Put(ctx context. return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable), nil } // ToDeleteRequestInformation the page's HTML content. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionsItemPagesItemContentRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteSectionsItemPagesItemContentRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,6 +117,7 @@ func (m *ItemOnenoteSectionsItemPagesItemContentRequestBuilder) ToDeleteRequestI return requestInfo, nil } // ToGetRequestInformation the page's HTML content. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionsItemPagesItemContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteSectionsItemPagesItemContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -124,6 +129,7 @@ func (m *ItemOnenoteSectionsItemPagesItemContentRequestBuilder) ToGetRequestInfo return requestInfo, nil } // ToPutRequestInformation the page's HTML content. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionsItemPagesItemContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemOnenoteSectionsItemPagesItemContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +142,7 @@ func (m *ItemOnenoteSectionsItemPagesItemContentRequestBuilder) ToPutRequestInfo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteSectionsItemPagesItemContentRequestBuilder when successful func (m *ItemOnenoteSectionsItemPagesItemContentRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteSectionsItemPagesItemContentRequestBuilder) { return NewItemOnenoteSectionsItemPagesItemContentRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_sections_item_pages_item_copy_to_section_request_builder.go b/users/item_onenote_sections_item_pages_item_copy_to_section_request_builder.go index a02a650ac2c..d8e1af20531 100644 --- a/users/item_onenote_sections_item_pages_item_copy_to_section_request_builder.go +++ b/users/item_onenote_sections_item_pages_item_copy_to_section_request_builder.go @@ -32,6 +32,7 @@ func NewItemOnenoteSectionsItemPagesItemCopyToSectionRequestBuilder(rawUrl strin return NewItemOnenoteSectionsItemPagesItemCopyToSectionRequestBuilderInternal(urlParams, requestAdapter) } // Post copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenoteOperationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemOnenoteSectionsItemPagesItemCopyToSectionRequestBuilder) Post(ctx c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteOperationable), nil } // ToPostRequestInformation copy a page to a specific section. For copy operations, you follow an asynchronous calling pattern: First call the Copy action, and then poll the operation endpoint for the result. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionsItemPagesItemCopyToSectionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemOnenoteSectionsItemPagesItemCopyToSectionPostRequestBodyable, requestConfiguration *ItemOnenoteSectionsItemPagesItemCopyToSectionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemOnenoteSectionsItemPagesItemCopyToSectionRequestBuilder) ToPostRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteSectionsItemPagesItemCopyToSectionRequestBuilder when successful func (m *ItemOnenoteSectionsItemPagesItemCopyToSectionRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteSectionsItemPagesItemCopyToSectionRequestBuilder) { return NewItemOnenoteSectionsItemPagesItemCopyToSectionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_sections_item_pages_item_onenote_patch_content_request_builder.go b/users/item_onenote_sections_item_pages_item_onenote_patch_content_request_builder.go index 4a96ebfd7d4..7fc6b429230 100644 --- a/users/item_onenote_sections_item_pages_item_onenote_patch_content_request_builder.go +++ b/users/item_onenote_sections_item_pages_item_onenote_patch_content_request_builder.go @@ -31,6 +31,7 @@ func NewItemOnenoteSectionsItemPagesItemOnenotePatchContentRequestBuilder(rawUrl return NewItemOnenoteSectionsItemPagesItemOnenotePatchContentRequestBuilderInternal(urlParams, requestAdapter) } // Post invoke action onenotePatchContent +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionsItemPagesItemOnenotePatchContentRequestBuilder) Post(ctx context.Context, body ItemOnenoteSectionsItemPagesItemOnenotePatchContentPostRequestBodyable, requestConfiguration *ItemOnenoteSectionsItemPagesItemOnenotePatchContentRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemOnenoteSectionsItemPagesItemOnenotePatchContentRequestBuilder) Post return nil } // ToPostRequestInformation invoke action onenotePatchContent +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionsItemPagesItemOnenotePatchContentRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemOnenoteSectionsItemPagesItemOnenotePatchContentPostRequestBodyable, requestConfiguration *ItemOnenoteSectionsItemPagesItemOnenotePatchContentRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -62,6 +64,7 @@ func (m *ItemOnenoteSectionsItemPagesItemOnenotePatchContentRequestBuilder) ToPo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteSectionsItemPagesItemOnenotePatchContentRequestBuilder when successful func (m *ItemOnenoteSectionsItemPagesItemOnenotePatchContentRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteSectionsItemPagesItemOnenotePatchContentRequestBuilder) { return NewItemOnenoteSectionsItemPagesItemOnenotePatchContentRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_sections_item_pages_item_parent_notebook_request_builder.go b/users/item_onenote_sections_item_pages_item_parent_notebook_request_builder.go index 16ac0f511fb..8e5d1ccfd86 100644 --- a/users/item_onenote_sections_item_pages_item_parent_notebook_request_builder.go +++ b/users/item_onenote_sections_item_pages_item_parent_notebook_request_builder.go @@ -41,6 +41,7 @@ func NewItemOnenoteSectionsItemPagesItemParentNotebookRequestBuilder(rawUrl stri return NewItemOnenoteSectionsItemPagesItemParentNotebookRequestBuilderInternal(urlParams, requestAdapter) } // Get the notebook that contains the page. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Notebookable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionsItemPagesItemParentNotebookRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteSectionsItemPagesItemParentNotebookRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Notebookable, error) { @@ -61,6 +62,7 @@ func (m *ItemOnenoteSectionsItemPagesItemParentNotebookRequestBuilder) Get(ctx c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Notebookable), nil } // ToGetRequestInformation the notebook that contains the page. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionsItemPagesItemParentNotebookRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteSectionsItemPagesItemParentNotebookRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemOnenoteSectionsItemPagesItemParentNotebookRequestBuilder) ToGetRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteSectionsItemPagesItemParentNotebookRequestBuilder when successful func (m *ItemOnenoteSectionsItemPagesItemParentNotebookRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteSectionsItemPagesItemParentNotebookRequestBuilder) { return NewItemOnenoteSectionsItemPagesItemParentNotebookRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_sections_item_pages_item_parent_section_request_builder.go b/users/item_onenote_sections_item_pages_item_parent_section_request_builder.go index 737eecf6d23..94d7f10ab45 100644 --- a/users/item_onenote_sections_item_pages_item_parent_section_request_builder.go +++ b/users/item_onenote_sections_item_pages_item_parent_section_request_builder.go @@ -41,6 +41,7 @@ func NewItemOnenoteSectionsItemPagesItemParentSectionRequestBuilder(rawUrl strin return NewItemOnenoteSectionsItemPagesItemParentSectionRequestBuilderInternal(urlParams, requestAdapter) } // Get the section that contains the page. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenoteSectionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionsItemPagesItemParentSectionRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteSectionsItemPagesItemParentSectionRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionable, error) { @@ -61,6 +62,7 @@ func (m *ItemOnenoteSectionsItemPagesItemParentSectionRequestBuilder) Get(ctx co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionable), nil } // ToGetRequestInformation the section that contains the page. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionsItemPagesItemParentSectionRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteSectionsItemPagesItemParentSectionRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemOnenoteSectionsItemPagesItemParentSectionRequestBuilder) ToGetReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteSectionsItemPagesItemParentSectionRequestBuilder when successful func (m *ItemOnenoteSectionsItemPagesItemParentSectionRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteSectionsItemPagesItemParentSectionRequestBuilder) { return NewItemOnenoteSectionsItemPagesItemParentSectionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_sections_item_pages_item_preview_request_builder.go b/users/item_onenote_sections_item_pages_item_preview_request_builder.go index 204bc99f19f..92c58c85452 100644 --- a/users/item_onenote_sections_item_pages_item_preview_request_builder.go +++ b/users/item_onenote_sections_item_pages_item_preview_request_builder.go @@ -32,6 +32,7 @@ func NewItemOnenoteSectionsItemPagesItemPreviewRequestBuilder(rawUrl string, req return NewItemOnenoteSectionsItemPagesItemPreviewRequestBuilderInternal(urlParams, requestAdapter) } // Get invoke function preview +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenotePagePreviewable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionsItemPagesItemPreviewRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteSectionsItemPagesItemPreviewRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePagePreviewable, error) { @@ -52,6 +53,7 @@ func (m *ItemOnenoteSectionsItemPagesItemPreviewRequestBuilder) Get(ctx context. return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePagePreviewable), nil } // ToGetRequestInformation invoke function preview +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionsItemPagesItemPreviewRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteSectionsItemPagesItemPreviewRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -63,6 +65,7 @@ func (m *ItemOnenoteSectionsItemPagesItemPreviewRequestBuilder) ToGetRequestInfo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteSectionsItemPagesItemPreviewRequestBuilder when successful func (m *ItemOnenoteSectionsItemPagesItemPreviewRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteSectionsItemPagesItemPreviewRequestBuilder) { return NewItemOnenoteSectionsItemPagesItemPreviewRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_sections_item_pages_onenote_page_item_request_builder.go b/users/item_onenote_sections_item_pages_onenote_page_item_request_builder.go index 560448023fb..ed6bdfa3c9f 100644 --- a/users/item_onenote_sections_item_pages_onenote_page_item_request_builder.go +++ b/users/item_onenote_sections_item_pages_onenote_page_item_request_builder.go @@ -65,6 +65,7 @@ func (m *ItemOnenoteSectionsItemPagesOnenotePageItemRequestBuilder) CopyToSectio return NewItemOnenoteSectionsItemPagesItemCopyToSectionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Delete delete navigation property pages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionsItemPagesOnenotePageItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOnenoteSectionsItemPagesOnenotePageItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -81,6 +82,7 @@ func (m *ItemOnenoteSectionsItemPagesOnenotePageItemRequestBuilder) Delete(ctx c return nil } // Get the collection of pages in the section. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenotePageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionsItemPagesOnenotePageItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteSectionsItemPagesOnenotePageItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable, error) { @@ -116,6 +118,7 @@ func (m *ItemOnenoteSectionsItemPagesOnenotePageItemRequestBuilder) ParentSectio return NewItemOnenoteSectionsItemPagesItemParentSectionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property pages in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenotePageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionsItemPagesOnenotePageItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable, requestConfiguration *ItemOnenoteSectionsItemPagesOnenotePageItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable, error) { @@ -141,6 +144,7 @@ func (m *ItemOnenoteSectionsItemPagesOnenotePageItemRequestBuilder) Preview()(*I return NewItemOnenoteSectionsItemPagesItemPreviewRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property pages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionsItemPagesOnenotePageItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteSectionsItemPagesOnenotePageItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -152,6 +156,7 @@ func (m *ItemOnenoteSectionsItemPagesOnenotePageItemRequestBuilder) ToDeleteRequ return requestInfo, nil } // ToGetRequestInformation the collection of pages in the section. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionsItemPagesOnenotePageItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteSectionsItemPagesOnenotePageItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -166,6 +171,7 @@ func (m *ItemOnenoteSectionsItemPagesOnenotePageItemRequestBuilder) ToGetRequest return requestInfo, nil } // ToPatchRequestInformation update the navigation property pages in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionsItemPagesOnenotePageItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable, requestConfiguration *ItemOnenoteSectionsItemPagesOnenotePageItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -181,6 +187,7 @@ func (m *ItemOnenoteSectionsItemPagesOnenotePageItemRequestBuilder) ToPatchReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteSectionsItemPagesOnenotePageItemRequestBuilder when successful func (m *ItemOnenoteSectionsItemPagesOnenotePageItemRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteSectionsItemPagesOnenotePageItemRequestBuilder) { return NewItemOnenoteSectionsItemPagesOnenotePageItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_sections_item_pages_request_builder.go b/users/item_onenote_sections_item_pages_request_builder.go index 8ce686e54fd..61a8df8ec9f 100644 --- a/users/item_onenote_sections_item_pages_request_builder.go +++ b/users/item_onenote_sections_item_pages_request_builder.go @@ -47,6 +47,7 @@ type ItemOnenoteSectionsItemPagesRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByOnenotePageId provides operations to manage the pages property of the microsoft.graph.onenoteSection entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteSectionsItemPagesOnenotePageItemRequestBuilder when successful func (m *ItemOnenoteSectionsItemPagesRequestBuilder) ByOnenotePageId(onenotePageId string)(*ItemOnenoteSectionsItemPagesOnenotePageItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemOnenoteSectionsItemPagesRequestBuilder) Count()(*ItemOnenoteSection return NewItemOnenoteSectionsItemPagesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of pages in the section. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenotePageCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionsItemPagesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteSectionsItemPagesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemOnenoteSectionsItemPagesRequestBuilder) Get(ctx context.Context, re return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageCollectionResponseable), nil } // Post create new navigation property to pages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenotePageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionsItemPagesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable, requestConfiguration *ItemOnenoteSectionsItemPagesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable, error) { @@ -117,6 +120,7 @@ func (m *ItemOnenoteSectionsItemPagesRequestBuilder) Post(ctx context.Context, b return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable), nil } // ToGetRequestInformation the collection of pages in the section. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionsItemPagesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteSectionsItemPagesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemOnenoteSectionsItemPagesRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // ToPostRequestInformation create new navigation property to pages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionsItemPagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenotePageable, requestConfiguration *ItemOnenoteSectionsItemPagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemOnenoteSectionsItemPagesRequestBuilder) ToPostRequestInformation(ct return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteSectionsItemPagesRequestBuilder when successful func (m *ItemOnenoteSectionsItemPagesRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteSectionsItemPagesRequestBuilder) { return NewItemOnenoteSectionsItemPagesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_sections_item_parent_notebook_request_builder.go b/users/item_onenote_sections_item_parent_notebook_request_builder.go index 62552a7ddd6..e3433cd6d5b 100644 --- a/users/item_onenote_sections_item_parent_notebook_request_builder.go +++ b/users/item_onenote_sections_item_parent_notebook_request_builder.go @@ -41,6 +41,7 @@ func NewItemOnenoteSectionsItemParentNotebookRequestBuilder(rawUrl string, reque return NewItemOnenoteSectionsItemParentNotebookRequestBuilderInternal(urlParams, requestAdapter) } // Get the notebook that contains the section. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Notebookable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionsItemParentNotebookRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteSectionsItemParentNotebookRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Notebookable, error) { @@ -61,6 +62,7 @@ func (m *ItemOnenoteSectionsItemParentNotebookRequestBuilder) Get(ctx context.Co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Notebookable), nil } // ToGetRequestInformation the notebook that contains the section. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionsItemParentNotebookRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteSectionsItemParentNotebookRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemOnenoteSectionsItemParentNotebookRequestBuilder) ToGetRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteSectionsItemParentNotebookRequestBuilder when successful func (m *ItemOnenoteSectionsItemParentNotebookRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteSectionsItemParentNotebookRequestBuilder) { return NewItemOnenoteSectionsItemParentNotebookRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_sections_item_parent_section_group_request_builder.go b/users/item_onenote_sections_item_parent_section_group_request_builder.go index 611e0e23912..5a7a00db0c8 100644 --- a/users/item_onenote_sections_item_parent_section_group_request_builder.go +++ b/users/item_onenote_sections_item_parent_section_group_request_builder.go @@ -41,6 +41,7 @@ func NewItemOnenoteSectionsItemParentSectionGroupRequestBuilder(rawUrl string, r return NewItemOnenoteSectionsItemParentSectionGroupRequestBuilderInternal(urlParams, requestAdapter) } // Get the section group that contains the section. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SectionGroupable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionsItemParentSectionGroupRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteSectionsItemParentSectionGroupRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SectionGroupable, error) { @@ -61,6 +62,7 @@ func (m *ItemOnenoteSectionsItemParentSectionGroupRequestBuilder) Get(ctx contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SectionGroupable), nil } // ToGetRequestInformation the section group that contains the section. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionsItemParentSectionGroupRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteSectionsItemParentSectionGroupRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemOnenoteSectionsItemParentSectionGroupRequestBuilder) ToGetRequestIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteSectionsItemParentSectionGroupRequestBuilder when successful func (m *ItemOnenoteSectionsItemParentSectionGroupRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteSectionsItemParentSectionGroupRequestBuilder) { return NewItemOnenoteSectionsItemParentSectionGroupRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_sections_onenote_section_item_request_builder.go b/users/item_onenote_sections_onenote_section_item_request_builder.go index a41d98b731a..7c153e5dc90 100644 --- a/users/item_onenote_sections_onenote_section_item_request_builder.go +++ b/users/item_onenote_sections_onenote_section_item_request_builder.go @@ -65,6 +65,7 @@ func (m *ItemOnenoteSectionsOnenoteSectionItemRequestBuilder) CopyToSectionGroup return NewItemOnenoteSectionsItemCopyToSectionGroupRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Delete delete navigation property sections for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionsOnenoteSectionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOnenoteSectionsOnenoteSectionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -81,6 +82,7 @@ func (m *ItemOnenoteSectionsOnenoteSectionItemRequestBuilder) Delete(ctx context return nil } // Get the sections in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenoteSectionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionsOnenoteSectionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteSectionsOnenoteSectionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionable, error) { @@ -116,6 +118,7 @@ func (m *ItemOnenoteSectionsOnenoteSectionItemRequestBuilder) ParentSectionGroup return NewItemOnenoteSectionsItemParentSectionGroupRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property sections in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenoteSectionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionsOnenoteSectionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionable, requestConfiguration *ItemOnenoteSectionsOnenoteSectionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionable, error) { @@ -136,6 +139,7 @@ func (m *ItemOnenoteSectionsOnenoteSectionItemRequestBuilder) Patch(ctx context. return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionable), nil } // ToDeleteRequestInformation delete navigation property sections for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionsOnenoteSectionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteSectionsOnenoteSectionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -147,6 +151,7 @@ func (m *ItemOnenoteSectionsOnenoteSectionItemRequestBuilder) ToDeleteRequestInf return requestInfo, nil } // ToGetRequestInformation the sections in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionsOnenoteSectionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteSectionsOnenoteSectionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -161,6 +166,7 @@ func (m *ItemOnenoteSectionsOnenoteSectionItemRequestBuilder) ToGetRequestInform return requestInfo, nil } // ToPatchRequestInformation update the navigation property sections in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionsOnenoteSectionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionable, requestConfiguration *ItemOnenoteSectionsOnenoteSectionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -176,6 +182,7 @@ func (m *ItemOnenoteSectionsOnenoteSectionItemRequestBuilder) ToPatchRequestInfo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteSectionsOnenoteSectionItemRequestBuilder when successful func (m *ItemOnenoteSectionsOnenoteSectionItemRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteSectionsOnenoteSectionItemRequestBuilder) { return NewItemOnenoteSectionsOnenoteSectionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_onenote_sections_request_builder.go b/users/item_onenote_sections_request_builder.go index f3c7eac294e..0ec07270844 100644 --- a/users/item_onenote_sections_request_builder.go +++ b/users/item_onenote_sections_request_builder.go @@ -47,6 +47,7 @@ type ItemOnenoteSectionsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByOnenoteSectionId provides operations to manage the sections property of the microsoft.graph.onenote entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteSectionsOnenoteSectionItemRequestBuilder when successful func (m *ItemOnenoteSectionsRequestBuilder) ByOnenoteSectionId(onenoteSectionId string)(*ItemOnenoteSectionsOnenoteSectionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemOnenoteSectionsRequestBuilder) Count()(*ItemOnenoteSectionsCountReq return NewItemOnenoteSectionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the sections in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenoteSectionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnenoteSectionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemOnenoteSectionsRequestBuilder) Get(ctx context.Context, requestConf return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionCollectionResponseable), nil } // Post create new navigation property to sections for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnenoteSectionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnenoteSectionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionable, requestConfiguration *ItemOnenoteSectionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionable, error) { @@ -117,6 +120,7 @@ func (m *ItemOnenoteSectionsRequestBuilder) Post(ctx context.Context, body ie233 return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionable), nil } // ToGetRequestInformation the sections in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnenoteSectionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemOnenoteSectionsRequestBuilder) ToGetRequestInformation(ctx context. return requestInfo, nil } // ToPostRequestInformation create new navigation property to sections for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnenoteSectionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnenoteSectionable, requestConfiguration *ItemOnenoteSectionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemOnenoteSectionsRequestBuilder) ToPostRequestInformation(ctx context return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnenoteSectionsRequestBuilder when successful func (m *ItemOnenoteSectionsRequestBuilder) WithUrl(rawUrl string)(*ItemOnenoteSectionsRequestBuilder) { return NewItemOnenoteSectionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_online_meetings_count_request_builder.go b/users/item_online_meetings_count_request_builder.go index 53a684407cb..9ef48930528 100644 --- a/users/item_online_meetings_count_request_builder.go +++ b/users/item_online_meetings_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemOnlineMeetingsCountRequestBuilder(rawUrl string, requestAdapter i2ae return NewItemOnlineMeetingsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnlineMeetingsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemOnlineMeetingsCountRequestBuilder) Get(ctx context.Context, request return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemOnlineMeetingsCountRequestBuilder) ToGetRequestInformation(ctx cont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsCountRequestBuilder when successful func (m *ItemOnlineMeetingsCountRequestBuilder) WithUrl(rawUrl string)(*ItemOnlineMeetingsCountRequestBuilder) { return NewItemOnlineMeetingsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_online_meetings_create_or_get_request_builder.go b/users/item_online_meetings_create_or_get_request_builder.go index 2f94c482b64..e1add302101 100644 --- a/users/item_online_meetings_create_or_get_request_builder.go +++ b/users/item_online_meetings_create_or_get_request_builder.go @@ -32,6 +32,7 @@ func NewItemOnlineMeetingsCreateOrGetRequestBuilder(rawUrl string, requestAdapte return NewItemOnlineMeetingsCreateOrGetRequestBuilderInternal(urlParams, requestAdapter) } // Post create an onlineMeeting object with a custom specified external ID. If the external ID already exists, this API will return the onlineMeeting object with that external ID. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnlineMeetingable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemOnlineMeetingsCreateOrGetRequestBuilder) Post(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnlineMeetingable), nil } // ToPostRequestInformation create an onlineMeeting object with a custom specified external ID. If the external ID already exists, this API will return the onlineMeeting object with that external ID. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsCreateOrGetRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemOnlineMeetingsCreateOrGetPostRequestBodyable, requestConfiguration *ItemOnlineMeetingsCreateOrGetRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemOnlineMeetingsCreateOrGetRequestBuilder) ToPostRequestInformation(c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsCreateOrGetRequestBuilder when successful func (m *ItemOnlineMeetingsCreateOrGetRequestBuilder) WithUrl(rawUrl string)(*ItemOnlineMeetingsCreateOrGetRequestBuilder) { return NewItemOnlineMeetingsCreateOrGetRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_online_meetings_item_alternative_recording_request_builder.go b/users/item_online_meetings_item_alternative_recording_request_builder.go index cf71452551d..347c4fc9987 100644 --- a/users/item_online_meetings_item_alternative_recording_request_builder.go +++ b/users/item_online_meetings_item_alternative_recording_request_builder.go @@ -45,6 +45,7 @@ func NewItemOnlineMeetingsItemAlternativeRecordingRequestBuilder(rawUrl string, return NewItemOnlineMeetingsItemAlternativeRecordingRequestBuilderInternal(urlParams, requestAdapter) } // Delete the content stream of the alternative recording of a Microsoft Teams live event. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemAlternativeRecordingRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemAlternativeRecordingRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -61,6 +62,7 @@ func (m *ItemOnlineMeetingsItemAlternativeRecordingRequestBuilder) Delete(ctx co return nil } // Get the content stream of the alternative recording of a Microsoft Teams live event. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemAlternativeRecordingRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemAlternativeRecordingRequestBuilderGetRequestConfiguration)([]byte, error) { @@ -81,6 +83,7 @@ func (m *ItemOnlineMeetingsItemAlternativeRecordingRequestBuilder) Get(ctx conte return res.([]byte), nil } // Put the content stream of the alternative recording of a Microsoft Teams live event. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemAlternativeRecordingRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemOnlineMeetingsItemAlternativeRecordingRequestBuilderPutRequestConfiguration)([]byte, error) { @@ -101,6 +104,7 @@ func (m *ItemOnlineMeetingsItemAlternativeRecordingRequestBuilder) Put(ctx conte return res.([]byte), nil } // ToDeleteRequestInformation the content stream of the alternative recording of a Microsoft Teams live event. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemAlternativeRecordingRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemAlternativeRecordingRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -112,6 +116,7 @@ func (m *ItemOnlineMeetingsItemAlternativeRecordingRequestBuilder) ToDeleteReque return requestInfo, nil } // ToGetRequestInformation the content stream of the alternative recording of a Microsoft Teams live event. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemAlternativeRecordingRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemAlternativeRecordingRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -123,6 +128,7 @@ func (m *ItemOnlineMeetingsItemAlternativeRecordingRequestBuilder) ToGetRequestI return requestInfo, nil } // ToPutRequestInformation the content stream of the alternative recording of a Microsoft Teams live event. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemAlternativeRecordingRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemOnlineMeetingsItemAlternativeRecordingRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -135,6 +141,7 @@ func (m *ItemOnlineMeetingsItemAlternativeRecordingRequestBuilder) ToPutRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsItemAlternativeRecordingRequestBuilder when successful func (m *ItemOnlineMeetingsItemAlternativeRecordingRequestBuilder) WithUrl(rawUrl string)(*ItemOnlineMeetingsItemAlternativeRecordingRequestBuilder) { return NewItemOnlineMeetingsItemAlternativeRecordingRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_online_meetings_item_attendance_reports_count_request_builder.go b/users/item_online_meetings_item_attendance_reports_count_request_builder.go index f05a79acdb9..5bf2dda4f3d 100644 --- a/users/item_online_meetings_item_attendance_reports_count_request_builder.go +++ b/users/item_online_meetings_item_attendance_reports_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemOnlineMeetingsItemAttendanceReportsCountRequestBuilder(rawUrl string return NewItemOnlineMeetingsItemAttendanceReportsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemAttendanceReportsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemAttendanceReportsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemOnlineMeetingsItemAttendanceReportsCountRequestBuilder) Get(ctx con return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemAttendanceReportsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemAttendanceReportsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemOnlineMeetingsItemAttendanceReportsCountRequestBuilder) ToGetReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsItemAttendanceReportsCountRequestBuilder when successful func (m *ItemOnlineMeetingsItemAttendanceReportsCountRequestBuilder) WithUrl(rawUrl string)(*ItemOnlineMeetingsItemAttendanceReportsCountRequestBuilder) { return NewItemOnlineMeetingsItemAttendanceReportsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_online_meetings_item_attendance_reports_item_attendance_records_count_request_builder.go b/users/item_online_meetings_item_attendance_reports_item_attendance_records_count_request_builder.go index bade0d9a496..cdfa5183126 100644 --- a/users/item_online_meetings_item_attendance_reports_item_attendance_records_count_request_builder.go +++ b/users/item_online_meetings_item_attendance_reports_item_attendance_records_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsCountRequest return NewItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsCountReques return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsCountReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsCountRequestBuilder when successful func (m *ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsCountRequestBuilder) WithUrl(rawUrl string)(*ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsCountRequestBuilder) { return NewItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_online_meetings_item_attendance_reports_item_attendance_records_request_builder.go b/users/item_online_meetings_item_attendance_reports_item_attendance_records_request_builder.go index 06624097edd..e7610ca79a9 100644 --- a/users/item_online_meetings_item_attendance_reports_item_attendance_records_request_builder.go +++ b/users/item_online_meetings_item_attendance_reports_item_attendance_records_request_builder.go @@ -47,6 +47,7 @@ type ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsRequestBuilderP Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttendanceRecordId provides operations to manage the attendanceRecords property of the microsoft.graph.meetingAttendanceReport entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilder when successful func (m *ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsRequestBuilder) ByAttendanceRecordId(attendanceRecordId string)(*ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsAttendanceRecordItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsRequestBuil return NewItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get list of attendance records of an attendance report. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttendanceRecordCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttendanceRecordCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsRequestBuil return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttendanceRecordCollectionResponseable), nil } // Post create new navigation property to attendanceRecords for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttendanceRecordable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttendanceRecordable, requestConfiguration *ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttendanceRecordable, error) { @@ -117,6 +120,7 @@ func (m *ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsRequestBuil return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttendanceRecordable), nil } // ToGetRequestInformation list of attendance records of an attendance report. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsRequestBuil return requestInfo, nil } // ToPostRequestInformation create new navigation property to attendanceRecords for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttendanceRecordable, requestConfiguration *ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsRequestBuil return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsRequestBuilder when successful func (m *ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsRequestBuilder) WithUrl(rawUrl string)(*ItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsRequestBuilder) { return NewItemOnlineMeetingsItemAttendanceReportsItemAttendanceRecordsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_online_meetings_item_attendance_reports_meeting_attendance_report_item_request_builder.go b/users/item_online_meetings_item_attendance_reports_meeting_attendance_report_item_request_builder.go index c0b1d7d600a..c953137bf82 100644 --- a/users/item_online_meetings_item_attendance_reports_meeting_attendance_report_item_request_builder.go +++ b/users/item_online_meetings_item_attendance_reports_meeting_attendance_report_item_request_builder.go @@ -60,6 +60,7 @@ func NewItemOnlineMeetingsItemAttendanceReportsMeetingAttendanceReportItemReques return NewItemOnlineMeetingsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attendanceReports for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -76,6 +77,7 @@ func (m *ItemOnlineMeetingsItemAttendanceReportsMeetingAttendanceReportItemReque return nil } // Get the attendance reports of an online meeting. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MeetingAttendanceReportable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingAttendanceReportable, error) { @@ -96,6 +98,7 @@ func (m *ItemOnlineMeetingsItemAttendanceReportsMeetingAttendanceReportItemReque return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingAttendanceReportable), nil } // Patch update the navigation property attendanceReports in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MeetingAttendanceReportable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingAttendanceReportable, requestConfiguration *ItemOnlineMeetingsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingAttendanceReportable, error) { @@ -116,6 +119,7 @@ func (m *ItemOnlineMeetingsItemAttendanceReportsMeetingAttendanceReportItemReque return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingAttendanceReportable), nil } // ToDeleteRequestInformation delete navigation property attendanceReports for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -127,6 +131,7 @@ func (m *ItemOnlineMeetingsItemAttendanceReportsMeetingAttendanceReportItemReque return requestInfo, nil } // ToGetRequestInformation the attendance reports of an online meeting. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,6 +146,7 @@ func (m *ItemOnlineMeetingsItemAttendanceReportsMeetingAttendanceReportItemReque return requestInfo, nil } // ToPatchRequestInformation update the navigation property attendanceReports in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingAttendanceReportable, requestConfiguration *ItemOnlineMeetingsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +162,7 @@ func (m *ItemOnlineMeetingsItemAttendanceReportsMeetingAttendanceReportItemReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilder when successful func (m *ItemOnlineMeetingsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilder) WithUrl(rawUrl string)(*ItemOnlineMeetingsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilder) { return NewItemOnlineMeetingsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_online_meetings_item_attendance_reports_request_builder.go b/users/item_online_meetings_item_attendance_reports_request_builder.go index 4fcfec7c16a..906553ffe34 100644 --- a/users/item_online_meetings_item_attendance_reports_request_builder.go +++ b/users/item_online_meetings_item_attendance_reports_request_builder.go @@ -47,6 +47,7 @@ type ItemOnlineMeetingsItemAttendanceReportsRequestBuilderPostRequestConfigurati Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByMeetingAttendanceReportId provides operations to manage the attendanceReports property of the microsoft.graph.onlineMeetingBase entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilder when successful func (m *ItemOnlineMeetingsItemAttendanceReportsRequestBuilder) ByMeetingAttendanceReportId(meetingAttendanceReportId string)(*ItemOnlineMeetingsItemAttendanceReportsMeetingAttendanceReportItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemOnlineMeetingsItemAttendanceReportsRequestBuilder) Count()(*ItemOnl return NewItemOnlineMeetingsItemAttendanceReportsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the attendance reports of an online meeting. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MeetingAttendanceReportCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemAttendanceReportsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemAttendanceReportsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingAttendanceReportCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemOnlineMeetingsItemAttendanceReportsRequestBuilder) Get(ctx context. return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingAttendanceReportCollectionResponseable), nil } // Post create new navigation property to attendanceReports for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MeetingAttendanceReportable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemAttendanceReportsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingAttendanceReportable, requestConfiguration *ItemOnlineMeetingsItemAttendanceReportsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingAttendanceReportable, error) { @@ -117,6 +120,7 @@ func (m *ItemOnlineMeetingsItemAttendanceReportsRequestBuilder) Post(ctx context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingAttendanceReportable), nil } // ToGetRequestInformation the attendance reports of an online meeting. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemAttendanceReportsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemAttendanceReportsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemOnlineMeetingsItemAttendanceReportsRequestBuilder) ToGetRequestInfo return requestInfo, nil } // ToPostRequestInformation create new navigation property to attendanceReports for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemAttendanceReportsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingAttendanceReportable, requestConfiguration *ItemOnlineMeetingsItemAttendanceReportsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemOnlineMeetingsItemAttendanceReportsRequestBuilder) ToPostRequestInf return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsItemAttendanceReportsRequestBuilder when successful func (m *ItemOnlineMeetingsItemAttendanceReportsRequestBuilder) WithUrl(rawUrl string)(*ItemOnlineMeetingsItemAttendanceReportsRequestBuilder) { return NewItemOnlineMeetingsItemAttendanceReportsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_online_meetings_item_attendee_report_request_builder.go b/users/item_online_meetings_item_attendee_report_request_builder.go index c2372155e5d..f72b8cf8304 100644 --- a/users/item_online_meetings_item_attendee_report_request_builder.go +++ b/users/item_online_meetings_item_attendee_report_request_builder.go @@ -45,6 +45,7 @@ func NewItemOnlineMeetingsItemAttendeeReportRequestBuilder(rawUrl string, reques return NewItemOnlineMeetingsItemAttendeeReportRequestBuilderInternal(urlParams, requestAdapter) } // Delete the content stream of the attendee report of a Teams live event. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemAttendeeReportRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemAttendeeReportRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -61,6 +62,7 @@ func (m *ItemOnlineMeetingsItemAttendeeReportRequestBuilder) Delete(ctx context. return nil } // Get the content stream of the attendee report of a Teams live event. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemAttendeeReportRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemAttendeeReportRequestBuilderGetRequestConfiguration)([]byte, error) { @@ -81,6 +83,7 @@ func (m *ItemOnlineMeetingsItemAttendeeReportRequestBuilder) Get(ctx context.Con return res.([]byte), nil } // Put the content stream of the attendee report of a Teams live event. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemAttendeeReportRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemOnlineMeetingsItemAttendeeReportRequestBuilderPutRequestConfiguration)([]byte, error) { @@ -101,6 +104,7 @@ func (m *ItemOnlineMeetingsItemAttendeeReportRequestBuilder) Put(ctx context.Con return res.([]byte), nil } // ToDeleteRequestInformation the content stream of the attendee report of a Teams live event. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemAttendeeReportRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemAttendeeReportRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -112,6 +116,7 @@ func (m *ItemOnlineMeetingsItemAttendeeReportRequestBuilder) ToDeleteRequestInfo return requestInfo, nil } // ToGetRequestInformation the content stream of the attendee report of a Teams live event. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemAttendeeReportRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemAttendeeReportRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -123,6 +128,7 @@ func (m *ItemOnlineMeetingsItemAttendeeReportRequestBuilder) ToGetRequestInforma return requestInfo, nil } // ToPutRequestInformation the content stream of the attendee report of a Teams live event. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemAttendeeReportRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemOnlineMeetingsItemAttendeeReportRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -135,6 +141,7 @@ func (m *ItemOnlineMeetingsItemAttendeeReportRequestBuilder) ToPutRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsItemAttendeeReportRequestBuilder when successful func (m *ItemOnlineMeetingsItemAttendeeReportRequestBuilder) WithUrl(rawUrl string)(*ItemOnlineMeetingsItemAttendeeReportRequestBuilder) { return NewItemOnlineMeetingsItemAttendeeReportRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_online_meetings_item_broadcast_recording_request_builder.go b/users/item_online_meetings_item_broadcast_recording_request_builder.go index 7becda5831b..d849c721d7d 100644 --- a/users/item_online_meetings_item_broadcast_recording_request_builder.go +++ b/users/item_online_meetings_item_broadcast_recording_request_builder.go @@ -45,6 +45,7 @@ func NewItemOnlineMeetingsItemBroadcastRecordingRequestBuilder(rawUrl string, re return NewItemOnlineMeetingsItemBroadcastRecordingRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete broadcastRecording for the navigation property onlineMeetings in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemBroadcastRecordingRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemBroadcastRecordingRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -61,6 +62,7 @@ func (m *ItemOnlineMeetingsItemBroadcastRecordingRequestBuilder) Delete(ctx cont return nil } // Get get broadcastRecording for the navigation property onlineMeetings from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemBroadcastRecordingRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemBroadcastRecordingRequestBuilderGetRequestConfiguration)([]byte, error) { @@ -81,6 +83,7 @@ func (m *ItemOnlineMeetingsItemBroadcastRecordingRequestBuilder) Get(ctx context return res.([]byte), nil } // Put update broadcastRecording for the navigation property onlineMeetings in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemBroadcastRecordingRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemOnlineMeetingsItemBroadcastRecordingRequestBuilderPutRequestConfiguration)([]byte, error) { @@ -101,6 +104,7 @@ func (m *ItemOnlineMeetingsItemBroadcastRecordingRequestBuilder) Put(ctx context return res.([]byte), nil } // ToDeleteRequestInformation delete broadcastRecording for the navigation property onlineMeetings in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemBroadcastRecordingRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemBroadcastRecordingRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -112,6 +116,7 @@ func (m *ItemOnlineMeetingsItemBroadcastRecordingRequestBuilder) ToDeleteRequest return requestInfo, nil } // ToGetRequestInformation get broadcastRecording for the navigation property onlineMeetings from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemBroadcastRecordingRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemBroadcastRecordingRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -123,6 +128,7 @@ func (m *ItemOnlineMeetingsItemBroadcastRecordingRequestBuilder) ToGetRequestInf return requestInfo, nil } // ToPutRequestInformation update broadcastRecording for the navigation property onlineMeetings in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemBroadcastRecordingRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemOnlineMeetingsItemBroadcastRecordingRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -135,6 +141,7 @@ func (m *ItemOnlineMeetingsItemBroadcastRecordingRequestBuilder) ToPutRequestInf return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsItemBroadcastRecordingRequestBuilder when successful func (m *ItemOnlineMeetingsItemBroadcastRecordingRequestBuilder) WithUrl(rawUrl string)(*ItemOnlineMeetingsItemBroadcastRecordingRequestBuilder) { return NewItemOnlineMeetingsItemBroadcastRecordingRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_online_meetings_item_get_virtual_appointment_join_web_url_request_builder.go b/users/item_online_meetings_item_get_virtual_appointment_join_web_url_request_builder.go index e1629080ddd..4971d9deea9 100644 --- a/users/item_online_meetings_item_get_virtual_appointment_join_web_url_request_builder.go +++ b/users/item_online_meetings_item_get_virtual_appointment_join_web_url_request_builder.go @@ -55,6 +55,7 @@ func (m *ItemOnlineMeetingsItemGetVirtualAppointmentJoinWebUrlRequestBuilder) Ge return res.(ItemOnlineMeetingsItemGetVirtualAppointmentJoinWebUrlResponseable), nil } // GetAsGetVirtualAppointmentJoinWebUrlGetResponse get a join web URL for a Teams Virtual Appointment. This web URL includes enhanced business-to-customer experiences such as mobile browser join and virtual lobby rooms. With Teams Premium, you can configure a custom lobby room experience for attendees by adding your company logo and access the Virtual Appointments usage report for organizational analytics. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemOnlineMeetingsItemGetVirtualAppointmentJoinWebUrlGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -78,6 +79,7 @@ func (m *ItemOnlineMeetingsItemGetVirtualAppointmentJoinWebUrlRequestBuilder) Ge return res.(ItemOnlineMeetingsItemGetVirtualAppointmentJoinWebUrlGetResponseable), nil } // ToGetRequestInformation get a join web URL for a Teams Virtual Appointment. This web URL includes enhanced business-to-customer experiences such as mobile browser join and virtual lobby rooms. With Teams Premium, you can configure a custom lobby room experience for attendees by adding your company logo and access the Virtual Appointments usage report for organizational analytics. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemGetVirtualAppointmentJoinWebUrlRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemGetVirtualAppointmentJoinWebUrlRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -89,6 +91,7 @@ func (m *ItemOnlineMeetingsItemGetVirtualAppointmentJoinWebUrlRequestBuilder) To return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsItemGetVirtualAppointmentJoinWebUrlRequestBuilder when successful func (m *ItemOnlineMeetingsItemGetVirtualAppointmentJoinWebUrlRequestBuilder) WithUrl(rawUrl string)(*ItemOnlineMeetingsItemGetVirtualAppointmentJoinWebUrlRequestBuilder) { return NewItemOnlineMeetingsItemGetVirtualAppointmentJoinWebUrlRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_online_meetings_item_meeting_attendance_report_attendance_records_count_request_builder.go b/users/item_online_meetings_item_meeting_attendance_report_attendance_records_count_request_builder.go index 0e237b7cb48..980af8ee2e4 100644 --- a/users/item_online_meetings_item_meeting_attendance_report_attendance_records_count_request_builder.go +++ b/users/item_online_meetings_item_meeting_attendance_report_attendance_records_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsCountReque return NewItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsCountRequ return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsCountRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsCountRequestBuilder when successful func (m *ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsCountRequestBuilder) WithUrl(rawUrl string)(*ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsCountRequestBuilder) { return NewItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_online_meetings_item_meeting_attendance_report_attendance_records_request_builder.go b/users/item_online_meetings_item_meeting_attendance_report_attendance_records_request_builder.go index 75b7217b63e..3782d164d56 100644 --- a/users/item_online_meetings_item_meeting_attendance_report_attendance_records_request_builder.go +++ b/users/item_online_meetings_item_meeting_attendance_report_attendance_records_request_builder.go @@ -47,6 +47,7 @@ type ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsRequestBuilde Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttendanceRecordId provides operations to manage the attendanceRecords property of the microsoft.graph.meetingAttendanceReport entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsAttendanceRecordItemRequestBuilder when successful func (m *ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsRequestBuilder) ByAttendanceRecordId(attendanceRecordId string)(*ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsAttendanceRecordItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsRequestBu return NewItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get list of attendance records of an attendance report. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttendanceRecordCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttendanceRecordCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsRequestBu return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttendanceRecordCollectionResponseable), nil } // Post create new navigation property to attendanceRecords for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttendanceRecordable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttendanceRecordable, requestConfiguration *ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttendanceRecordable, error) { @@ -117,6 +120,7 @@ func (m *ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsRequestBu return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttendanceRecordable), nil } // ToGetRequestInformation list of attendance records of an attendance report. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsRequestBu return requestInfo, nil } // ToPostRequestInformation create new navigation property to attendanceRecords for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttendanceRecordable, requestConfiguration *ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsRequestBu return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsRequestBuilder when successful func (m *ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsRequestBuilder) WithUrl(rawUrl string)(*ItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsRequestBuilder) { return NewItemOnlineMeetingsItemMeetingAttendanceReportAttendanceRecordsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_online_meetings_item_meeting_attendance_report_request_builder.go b/users/item_online_meetings_item_meeting_attendance_report_request_builder.go index 2c4febfae7d..5fb3a4ecf33 100644 --- a/users/item_online_meetings_item_meeting_attendance_report_request_builder.go +++ b/users/item_online_meetings_item_meeting_attendance_report_request_builder.go @@ -60,6 +60,7 @@ func NewItemOnlineMeetingsItemMeetingAttendanceReportRequestBuilder(rawUrl strin return NewItemOnlineMeetingsItemMeetingAttendanceReportRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property meetingAttendanceReport for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemMeetingAttendanceReportRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemMeetingAttendanceReportRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -76,6 +77,7 @@ func (m *ItemOnlineMeetingsItemMeetingAttendanceReportRequestBuilder) Delete(ctx return nil } // Get the attendance report of the latest online meeting session. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MeetingAttendanceReportable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemMeetingAttendanceReportRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemMeetingAttendanceReportRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingAttendanceReportable, error) { @@ -96,6 +98,7 @@ func (m *ItemOnlineMeetingsItemMeetingAttendanceReportRequestBuilder) Get(ctx co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingAttendanceReportable), nil } // Patch update the navigation property meetingAttendanceReport in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MeetingAttendanceReportable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemMeetingAttendanceReportRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingAttendanceReportable, requestConfiguration *ItemOnlineMeetingsItemMeetingAttendanceReportRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingAttendanceReportable, error) { @@ -116,6 +119,7 @@ func (m *ItemOnlineMeetingsItemMeetingAttendanceReportRequestBuilder) Patch(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingAttendanceReportable), nil } // ToDeleteRequestInformation delete navigation property meetingAttendanceReport for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemMeetingAttendanceReportRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemMeetingAttendanceReportRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -127,6 +131,7 @@ func (m *ItemOnlineMeetingsItemMeetingAttendanceReportRequestBuilder) ToDeleteRe return requestInfo, nil } // ToGetRequestInformation the attendance report of the latest online meeting session. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemMeetingAttendanceReportRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemMeetingAttendanceReportRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,6 +146,7 @@ func (m *ItemOnlineMeetingsItemMeetingAttendanceReportRequestBuilder) ToGetReque return requestInfo, nil } // ToPatchRequestInformation update the navigation property meetingAttendanceReport in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemMeetingAttendanceReportRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingAttendanceReportable, requestConfiguration *ItemOnlineMeetingsItemMeetingAttendanceReportRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +162,7 @@ func (m *ItemOnlineMeetingsItemMeetingAttendanceReportRequestBuilder) ToPatchReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsItemMeetingAttendanceReportRequestBuilder when successful func (m *ItemOnlineMeetingsItemMeetingAttendanceReportRequestBuilder) WithUrl(rawUrl string)(*ItemOnlineMeetingsItemMeetingAttendanceReportRequestBuilder) { return NewItemOnlineMeetingsItemMeetingAttendanceReportRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_online_meetings_item_recording_request_builder.go b/users/item_online_meetings_item_recording_request_builder.go index bff9e4bbdc2..7f153e31646 100644 --- a/users/item_online_meetings_item_recording_request_builder.go +++ b/users/item_online_meetings_item_recording_request_builder.go @@ -45,6 +45,7 @@ func NewItemOnlineMeetingsItemRecordingRequestBuilder(rawUrl string, requestAdap return NewItemOnlineMeetingsItemRecordingRequestBuilderInternal(urlParams, requestAdapter) } // Delete the content stream of the recording of a Teams live event. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemRecordingRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRecordingRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -61,6 +62,7 @@ func (m *ItemOnlineMeetingsItemRecordingRequestBuilder) Delete(ctx context.Conte return nil } // Get the content stream of the recording of a Teams live event. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemRecordingRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRecordingRequestBuilderGetRequestConfiguration)([]byte, error) { @@ -81,6 +83,7 @@ func (m *ItemOnlineMeetingsItemRecordingRequestBuilder) Get(ctx context.Context, return res.([]byte), nil } // Put the content stream of the recording of a Teams live event. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemRecordingRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemOnlineMeetingsItemRecordingRequestBuilderPutRequestConfiguration)([]byte, error) { @@ -101,6 +104,7 @@ func (m *ItemOnlineMeetingsItemRecordingRequestBuilder) Put(ctx context.Context, return res.([]byte), nil } // ToDeleteRequestInformation the content stream of the recording of a Teams live event. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemRecordingRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRecordingRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -112,6 +116,7 @@ func (m *ItemOnlineMeetingsItemRecordingRequestBuilder) ToDeleteRequestInformati return requestInfo, nil } // ToGetRequestInformation the content stream of the recording of a Teams live event. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemRecordingRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRecordingRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -123,6 +128,7 @@ func (m *ItemOnlineMeetingsItemRecordingRequestBuilder) ToGetRequestInformation( return requestInfo, nil } // ToPutRequestInformation the content stream of the recording of a Teams live event. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemRecordingRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemOnlineMeetingsItemRecordingRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -135,6 +141,7 @@ func (m *ItemOnlineMeetingsItemRecordingRequestBuilder) ToPutRequestInformation( return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsItemRecordingRequestBuilder when successful func (m *ItemOnlineMeetingsItemRecordingRequestBuilder) WithUrl(rawUrl string)(*ItemOnlineMeetingsItemRecordingRequestBuilder) { return NewItemOnlineMeetingsItemRecordingRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_online_meetings_item_recordings_call_recording_item_request_builder.go b/users/item_online_meetings_item_recordings_call_recording_item_request_builder.go index c15ad0a1e8a..abbaf84820a 100644 --- a/users/item_online_meetings_item_recordings_call_recording_item_request_builder.go +++ b/users/item_online_meetings_item_recordings_call_recording_item_request_builder.go @@ -60,6 +60,7 @@ func (m *ItemOnlineMeetingsItemRecordingsCallRecordingItemRequestBuilder) Conten return NewItemOnlineMeetingsItemRecordingsItemContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Delete delete navigation property recordings for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemRecordingsCallRecordingItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRecordingsCallRecordingItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -76,6 +77,7 @@ func (m *ItemOnlineMeetingsItemRecordingsCallRecordingItemRequestBuilder) Delete return nil } // Get get a callRecording object associated with a scheduled onlineMeeting. This API doesn't support getting call recordings from channel meetings. For a recording, this API returns the metadata of the single recording associated with the online meeting. For the content of a recording, this API returns the stream of bytes associated with the recording. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a CallRecordingable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -99,6 +101,7 @@ func (m *ItemOnlineMeetingsItemRecordingsCallRecordingItemRequestBuilder) Get(ct return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable), nil } // Patch update the navigation property recordings in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a CallRecordingable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemRecordingsCallRecordingItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable, requestConfiguration *ItemOnlineMeetingsItemRecordingsCallRecordingItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable, error) { @@ -119,6 +122,7 @@ func (m *ItemOnlineMeetingsItemRecordingsCallRecordingItemRequestBuilder) Patch( return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable), nil } // ToDeleteRequestInformation delete navigation property recordings for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemRecordingsCallRecordingItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRecordingsCallRecordingItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -130,6 +134,7 @@ func (m *ItemOnlineMeetingsItemRecordingsCallRecordingItemRequestBuilder) ToDele return requestInfo, nil } // ToGetRequestInformation get a callRecording object associated with a scheduled onlineMeeting. This API doesn't support getting call recordings from channel meetings. For a recording, this API returns the metadata of the single recording associated with the online meeting. For the content of a recording, this API returns the stream of bytes associated with the recording. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemRecordingsCallRecordingItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRecordingsCallRecordingItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -144,6 +149,7 @@ func (m *ItemOnlineMeetingsItemRecordingsCallRecordingItemRequestBuilder) ToGetR return requestInfo, nil } // ToPatchRequestInformation update the navigation property recordings in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemRecordingsCallRecordingItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable, requestConfiguration *ItemOnlineMeetingsItemRecordingsCallRecordingItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -159,6 +165,7 @@ func (m *ItemOnlineMeetingsItemRecordingsCallRecordingItemRequestBuilder) ToPatc return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsItemRecordingsCallRecordingItemRequestBuilder when successful func (m *ItemOnlineMeetingsItemRecordingsCallRecordingItemRequestBuilder) WithUrl(rawUrl string)(*ItemOnlineMeetingsItemRecordingsCallRecordingItemRequestBuilder) { return NewItemOnlineMeetingsItemRecordingsCallRecordingItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_online_meetings_item_recordings_count_request_builder.go b/users/item_online_meetings_item_recordings_count_request_builder.go index 0830b38a30d..04d0c896df8 100644 --- a/users/item_online_meetings_item_recordings_count_request_builder.go +++ b/users/item_online_meetings_item_recordings_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemOnlineMeetingsItemRecordingsCountRequestBuilder(rawUrl string, reque return NewItemOnlineMeetingsItemRecordingsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemRecordingsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRecordingsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemOnlineMeetingsItemRecordingsCountRequestBuilder) Get(ctx context.Co return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemRecordingsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRecordingsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemOnlineMeetingsItemRecordingsCountRequestBuilder) ToGetRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsItemRecordingsCountRequestBuilder when successful func (m *ItemOnlineMeetingsItemRecordingsCountRequestBuilder) WithUrl(rawUrl string)(*ItemOnlineMeetingsItemRecordingsCountRequestBuilder) { return NewItemOnlineMeetingsItemRecordingsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_online_meetings_item_recordings_delta_request_builder.go b/users/item_online_meetings_item_recordings_delta_request_builder.go index 447a6513747..a69b74998d3 100644 --- a/users/item_online_meetings_item_recordings_delta_request_builder.go +++ b/users/item_online_meetings_item_recordings_delta_request_builder.go @@ -73,6 +73,7 @@ func (m *ItemOnlineMeetingsItemRecordingsDeltaRequestBuilder) Get(ctx context.Co return res.(ItemOnlineMeetingsItemRecordingsDeltaResponseable), nil } // GetAsDeltaGetResponse invoke function delta +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemOnlineMeetingsItemRecordingsDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemRecordingsDeltaRequestBuilder) GetAsDeltaGetResponse(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRecordingsDeltaRequestBuilderGetRequestConfiguration)(ItemOnlineMeetingsItemRecordingsDeltaGetResponseable, error) { @@ -93,6 +94,7 @@ func (m *ItemOnlineMeetingsItemRecordingsDeltaRequestBuilder) GetAsDeltaGetRespo return res.(ItemOnlineMeetingsItemRecordingsDeltaGetResponseable), nil } // ToGetRequestInformation invoke function delta +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemRecordingsDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRecordingsDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -107,6 +109,7 @@ func (m *ItemOnlineMeetingsItemRecordingsDeltaRequestBuilder) ToGetRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsItemRecordingsDeltaRequestBuilder when successful func (m *ItemOnlineMeetingsItemRecordingsDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemOnlineMeetingsItemRecordingsDeltaRequestBuilder) { return NewItemOnlineMeetingsItemRecordingsDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_online_meetings_item_recordings_item_content_request_builder.go b/users/item_online_meetings_item_recordings_item_content_request_builder.go index cc551792a3f..1eae7481ec1 100644 --- a/users/item_online_meetings_item_recordings_item_content_request_builder.go +++ b/users/item_online_meetings_item_recordings_item_content_request_builder.go @@ -46,6 +46,7 @@ func NewItemOnlineMeetingsItemRecordingsItemContentRequestBuilder(rawUrl string, return NewItemOnlineMeetingsItemRecordingsItemContentRequestBuilderInternal(urlParams, requestAdapter) } // Delete the content of the recording. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemRecordingsItemContentRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRecordingsItemContentRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -62,6 +63,7 @@ func (m *ItemOnlineMeetingsItemRecordingsItemContentRequestBuilder) Delete(ctx c return nil } // Get get a callRecording object associated with a scheduled onlineMeeting. This API doesn't support getting call recordings from channel meetings. For a recording, this API returns the metadata of the single recording associated with the online meeting. For the content of a recording, this API returns the stream of bytes associated with the recording. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -85,6 +87,7 @@ func (m *ItemOnlineMeetingsItemRecordingsItemContentRequestBuilder) Get(ctx cont return res.([]byte), nil } // Put the content of the recording. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a CallRecordingable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemRecordingsItemContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemOnlineMeetingsItemRecordingsItemContentRequestBuilderPutRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable, error) { @@ -105,6 +108,7 @@ func (m *ItemOnlineMeetingsItemRecordingsItemContentRequestBuilder) Put(ctx cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable), nil } // ToDeleteRequestInformation the content of the recording. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemRecordingsItemContentRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRecordingsItemContentRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -116,6 +120,7 @@ func (m *ItemOnlineMeetingsItemRecordingsItemContentRequestBuilder) ToDeleteRequ return requestInfo, nil } // ToGetRequestInformation get a callRecording object associated with a scheduled onlineMeeting. This API doesn't support getting call recordings from channel meetings. For a recording, this API returns the metadata of the single recording associated with the online meeting. For the content of a recording, this API returns the stream of bytes associated with the recording. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemRecordingsItemContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRecordingsItemContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -127,6 +132,7 @@ func (m *ItemOnlineMeetingsItemRecordingsItemContentRequestBuilder) ToGetRequest return requestInfo, nil } // ToPutRequestInformation the content of the recording. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemRecordingsItemContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemOnlineMeetingsItemRecordingsItemContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -139,6 +145,7 @@ func (m *ItemOnlineMeetingsItemRecordingsItemContentRequestBuilder) ToPutRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsItemRecordingsItemContentRequestBuilder when successful func (m *ItemOnlineMeetingsItemRecordingsItemContentRequestBuilder) WithUrl(rawUrl string)(*ItemOnlineMeetingsItemRecordingsItemContentRequestBuilder) { return NewItemOnlineMeetingsItemRecordingsItemContentRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_online_meetings_item_recordings_request_builder.go b/users/item_online_meetings_item_recordings_request_builder.go index 0990fbc08dc..0a1b5e5f360 100644 --- a/users/item_online_meetings_item_recordings_request_builder.go +++ b/users/item_online_meetings_item_recordings_request_builder.go @@ -47,6 +47,7 @@ type ItemOnlineMeetingsItemRecordingsRequestBuilderPostRequestConfiguration stru Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByCallRecordingId provides operations to manage the recordings property of the microsoft.graph.onlineMeeting entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsItemRecordingsCallRecordingItemRequestBuilder when successful func (m *ItemOnlineMeetingsItemRecordingsRequestBuilder) ByCallRecordingId(callRecordingId string)(*ItemOnlineMeetingsItemRecordingsCallRecordingItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemOnlineMeetingsItemRecordingsRequestBuilder) Delta()(*ItemOnlineMeet return NewItemOnlineMeetingsItemRecordingsDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get a callRecording object associated with a scheduled onlineMeeting. This API doesn't support getting call recordings from channel meetings. For a recording, this API returns the metadata of the single recording associated with the online meeting. For the content of a recording, this API returns the stream of bytes associated with the recording. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a CallRecordingCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemRecordingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRecordingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemOnlineMeetingsItemRecordingsRequestBuilder) Get(ctx context.Context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingCollectionResponseable), nil } // Post create new navigation property to recordings for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a CallRecordingable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemRecordingsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable, requestConfiguration *ItemOnlineMeetingsItemRecordingsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable, error) { @@ -122,6 +125,7 @@ func (m *ItemOnlineMeetingsItemRecordingsRequestBuilder) Post(ctx context.Contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable), nil } // ToGetRequestInformation get a callRecording object associated with a scheduled onlineMeeting. This API doesn't support getting call recordings from channel meetings. For a recording, this API returns the metadata of the single recording associated with the online meeting. For the content of a recording, this API returns the stream of bytes associated with the recording. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemRecordingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRecordingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemOnlineMeetingsItemRecordingsRequestBuilder) ToGetRequestInformation return requestInfo, nil } // ToPostRequestInformation create new navigation property to recordings for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemRecordingsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallRecordingable, requestConfiguration *ItemOnlineMeetingsItemRecordingsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemOnlineMeetingsItemRecordingsRequestBuilder) ToPostRequestInformatio return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsItemRecordingsRequestBuilder when successful func (m *ItemOnlineMeetingsItemRecordingsRequestBuilder) WithUrl(rawUrl string)(*ItemOnlineMeetingsItemRecordingsRequestBuilder) { return NewItemOnlineMeetingsItemRecordingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_online_meetings_item_registration_custom_questions_count_request_builder.go b/users/item_online_meetings_item_registration_custom_questions_count_request_builder.go index 430ef76de10..7c3cde34ccb 100644 --- a/users/item_online_meetings_item_registration_custom_questions_count_request_builder.go +++ b/users/item_online_meetings_item_registration_custom_questions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemOnlineMeetingsItemRegistrationCustomQuestionsCountRequestBuilder(raw return NewItemOnlineMeetingsItemRegistrationCustomQuestionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemRegistrationCustomQuestionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRegistrationCustomQuestionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemOnlineMeetingsItemRegistrationCustomQuestionsCountRequestBuilder) G return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemRegistrationCustomQuestionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRegistrationCustomQuestionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemOnlineMeetingsItemRegistrationCustomQuestionsCountRequestBuilder) T return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsItemRegistrationCustomQuestionsCountRequestBuilder when successful func (m *ItemOnlineMeetingsItemRegistrationCustomQuestionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemOnlineMeetingsItemRegistrationCustomQuestionsCountRequestBuilder) { return NewItemOnlineMeetingsItemRegistrationCustomQuestionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_online_meetings_item_registration_custom_questions_request_builder.go b/users/item_online_meetings_item_registration_custom_questions_request_builder.go index b98a4aceae9..b55284fb834 100644 --- a/users/item_online_meetings_item_registration_custom_questions_request_builder.go +++ b/users/item_online_meetings_item_registration_custom_questions_request_builder.go @@ -47,6 +47,7 @@ type ItemOnlineMeetingsItemRegistrationCustomQuestionsRequestBuilderPostRequestC Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByMeetingRegistrationQuestionId provides operations to manage the customQuestions property of the microsoft.graph.meetingRegistration entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsItemRegistrationCustomQuestionsMeetingRegistrationQuestionItemRequestBuilder when successful func (m *ItemOnlineMeetingsItemRegistrationCustomQuestionsRequestBuilder) ByMeetingRegistrationQuestionId(meetingRegistrationQuestionId string)(*ItemOnlineMeetingsItemRegistrationCustomQuestionsMeetingRegistrationQuestionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemOnlineMeetingsItemRegistrationCustomQuestionsRequestBuilder) Count( return NewItemOnlineMeetingsItemRegistrationCustomQuestionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get custom registration questions. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MeetingRegistrationQuestionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemRegistrationCustomQuestionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRegistrationCustomQuestionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingRegistrationQuestionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemOnlineMeetingsItemRegistrationCustomQuestionsRequestBuilder) Get(ct return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingRegistrationQuestionCollectionResponseable), nil } // Post create new navigation property to customQuestions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MeetingRegistrationQuestionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemRegistrationCustomQuestionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingRegistrationQuestionable, requestConfiguration *ItemOnlineMeetingsItemRegistrationCustomQuestionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingRegistrationQuestionable, error) { @@ -117,6 +120,7 @@ func (m *ItemOnlineMeetingsItemRegistrationCustomQuestionsRequestBuilder) Post(c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingRegistrationQuestionable), nil } // ToGetRequestInformation custom registration questions. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemRegistrationCustomQuestionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRegistrationCustomQuestionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemOnlineMeetingsItemRegistrationCustomQuestionsRequestBuilder) ToGetR return requestInfo, nil } // ToPostRequestInformation create new navigation property to customQuestions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemRegistrationCustomQuestionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingRegistrationQuestionable, requestConfiguration *ItemOnlineMeetingsItemRegistrationCustomQuestionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemOnlineMeetingsItemRegistrationCustomQuestionsRequestBuilder) ToPost return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsItemRegistrationCustomQuestionsRequestBuilder when successful func (m *ItemOnlineMeetingsItemRegistrationCustomQuestionsRequestBuilder) WithUrl(rawUrl string)(*ItemOnlineMeetingsItemRegistrationCustomQuestionsRequestBuilder) { return NewItemOnlineMeetingsItemRegistrationCustomQuestionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_online_meetings_item_registration_registrants_count_request_builder.go b/users/item_online_meetings_item_registration_registrants_count_request_builder.go index dfa225d6e66..1288a47b908 100644 --- a/users/item_online_meetings_item_registration_registrants_count_request_builder.go +++ b/users/item_online_meetings_item_registration_registrants_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemOnlineMeetingsItemRegistrationRegistrantsCountRequestBuilder(rawUrl return NewItemOnlineMeetingsItemRegistrationRegistrantsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemRegistrationRegistrantsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRegistrationRegistrantsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemOnlineMeetingsItemRegistrationRegistrantsCountRequestBuilder) Get(c return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemRegistrationRegistrantsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRegistrationRegistrantsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemOnlineMeetingsItemRegistrationRegistrantsCountRequestBuilder) ToGet return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsItemRegistrationRegistrantsCountRequestBuilder when successful func (m *ItemOnlineMeetingsItemRegistrationRegistrantsCountRequestBuilder) WithUrl(rawUrl string)(*ItemOnlineMeetingsItemRegistrationRegistrantsCountRequestBuilder) { return NewItemOnlineMeetingsItemRegistrationRegistrantsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_online_meetings_item_registration_registrants_meeting_registrant_base_item_request_builder.go b/users/item_online_meetings_item_registration_registrants_meeting_registrant_base_item_request_builder.go index 1dd1f2d5cb8..e698c338e6e 100644 --- a/users/item_online_meetings_item_registration_registrants_meeting_registrant_base_item_request_builder.go +++ b/users/item_online_meetings_item_registration_registrants_meeting_registrant_base_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemOnlineMeetingsItemRegistrationRegistrantsMeetingRegistrantBaseItemRe return NewItemOnlineMeetingsItemRegistrationRegistrantsMeetingRegistrantBaseItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete cancel an onlineMeeting registration for a meetingRegistrant on behalf of the registrant. Only use this method when the allowedRegistrant property of the meetingRegistration object has a value of organization and the registrant's delegated permission was used to enroll. When the allowedRegistrant value is everyone, registrants can only use the link in the email they receive to cancel their registration. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -74,6 +75,7 @@ func (m *ItemOnlineMeetingsItemRegistrationRegistrantsMeetingRegistrantBaseItemR return nil } // Get registrants of the online meeting. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MeetingRegistrantBaseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemRegistrationRegistrantsMeetingRegistrantBaseItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRegistrationRegistrantsMeetingRegistrantBaseItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingRegistrantBaseable, error) { @@ -94,6 +96,7 @@ func (m *ItemOnlineMeetingsItemRegistrationRegistrantsMeetingRegistrantBaseItemR return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingRegistrantBaseable), nil } // Patch update the navigation property registrants in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MeetingRegistrantBaseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemRegistrationRegistrantsMeetingRegistrantBaseItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingRegistrantBaseable, requestConfiguration *ItemOnlineMeetingsItemRegistrationRegistrantsMeetingRegistrantBaseItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingRegistrantBaseable, error) { @@ -114,6 +117,7 @@ func (m *ItemOnlineMeetingsItemRegistrationRegistrantsMeetingRegistrantBaseItemR return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingRegistrantBaseable), nil } // ToDeleteRequestInformation cancel an onlineMeeting registration for a meetingRegistrant on behalf of the registrant. Only use this method when the allowedRegistrant property of the meetingRegistration object has a value of organization and the registrant's delegated permission was used to enroll. When the allowedRegistrant value is everyone, registrants can only use the link in the email they receive to cancel their registration. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemRegistrationRegistrantsMeetingRegistrantBaseItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRegistrationRegistrantsMeetingRegistrantBaseItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -125,6 +129,7 @@ func (m *ItemOnlineMeetingsItemRegistrationRegistrantsMeetingRegistrantBaseItemR return requestInfo, nil } // ToGetRequestInformation registrants of the online meeting. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemRegistrationRegistrantsMeetingRegistrantBaseItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRegistrationRegistrantsMeetingRegistrantBaseItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -139,6 +144,7 @@ func (m *ItemOnlineMeetingsItemRegistrationRegistrantsMeetingRegistrantBaseItemR return requestInfo, nil } // ToPatchRequestInformation update the navigation property registrants in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemRegistrationRegistrantsMeetingRegistrantBaseItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingRegistrantBaseable, requestConfiguration *ItemOnlineMeetingsItemRegistrationRegistrantsMeetingRegistrantBaseItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -154,6 +160,7 @@ func (m *ItemOnlineMeetingsItemRegistrationRegistrantsMeetingRegistrantBaseItemR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsItemRegistrationRegistrantsMeetingRegistrantBaseItemRequestBuilder when successful func (m *ItemOnlineMeetingsItemRegistrationRegistrantsMeetingRegistrantBaseItemRequestBuilder) WithUrl(rawUrl string)(*ItemOnlineMeetingsItemRegistrationRegistrantsMeetingRegistrantBaseItemRequestBuilder) { return NewItemOnlineMeetingsItemRegistrationRegistrantsMeetingRegistrantBaseItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_online_meetings_item_registration_registrants_request_builder.go b/users/item_online_meetings_item_registration_registrants_request_builder.go index 77330c2992b..c150631dea0 100644 --- a/users/item_online_meetings_item_registration_registrants_request_builder.go +++ b/users/item_online_meetings_item_registration_registrants_request_builder.go @@ -47,6 +47,7 @@ type ItemOnlineMeetingsItemRegistrationRegistrantsRequestBuilderPostRequestConfi Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByMeetingRegistrantBaseId provides operations to manage the registrants property of the microsoft.graph.meetingRegistrationBase entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsItemRegistrationRegistrantsMeetingRegistrantBaseItemRequestBuilder when successful func (m *ItemOnlineMeetingsItemRegistrationRegistrantsRequestBuilder) ByMeetingRegistrantBaseId(meetingRegistrantBaseId string)(*ItemOnlineMeetingsItemRegistrationRegistrantsMeetingRegistrantBaseItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemOnlineMeetingsItemRegistrationRegistrantsRequestBuilder) Count()(*I return NewItemOnlineMeetingsItemRegistrationRegistrantsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get registrants of the online meeting. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MeetingRegistrantBaseCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemRegistrationRegistrantsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRegistrationRegistrantsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingRegistrantBaseCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemOnlineMeetingsItemRegistrationRegistrantsRequestBuilder) Get(ctx co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingRegistrantBaseCollectionResponseable), nil } // Post enroll a meeting registrant in an online meeting that has meeting registration enabled on behalf of the registrant. This operation has two scenarios: In either scenario, the registrant will receive an email notification that contains their registration information. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MeetingRegistrantBaseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -120,6 +123,7 @@ func (m *ItemOnlineMeetingsItemRegistrationRegistrantsRequestBuilder) Post(ctx c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingRegistrantBaseable), nil } // ToGetRequestInformation registrants of the online meeting. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemRegistrationRegistrantsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRegistrationRegistrantsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -134,6 +138,7 @@ func (m *ItemOnlineMeetingsItemRegistrationRegistrantsRequestBuilder) ToGetReque return requestInfo, nil } // ToPostRequestInformation enroll a meeting registrant in an online meeting that has meeting registration enabled on behalf of the registrant. This operation has two scenarios: In either scenario, the registrant will receive an email notification that contains their registration information. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemRegistrationRegistrantsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingRegistrantBaseable, requestConfiguration *ItemOnlineMeetingsItemRegistrationRegistrantsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -149,6 +154,7 @@ func (m *ItemOnlineMeetingsItemRegistrationRegistrantsRequestBuilder) ToPostRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsItemRegistrationRegistrantsRequestBuilder when successful func (m *ItemOnlineMeetingsItemRegistrationRegistrantsRequestBuilder) WithUrl(rawUrl string)(*ItemOnlineMeetingsItemRegistrationRegistrantsRequestBuilder) { return NewItemOnlineMeetingsItemRegistrationRegistrantsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_online_meetings_item_registration_request_builder.go b/users/item_online_meetings_item_registration_request_builder.go index c77226196cc..5cf9e673a7a 100644 --- a/users/item_online_meetings_item_registration_request_builder.go +++ b/users/item_online_meetings_item_registration_request_builder.go @@ -60,6 +60,7 @@ func (m *ItemOnlineMeetingsItemRegistrationRequestBuilder) CustomQuestions()(*It return NewItemOnlineMeetingsItemRegistrationCustomQuestionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Delete delete navigation property registration for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemRegistrationRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRegistrationRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -76,6 +77,7 @@ func (m *ItemOnlineMeetingsItemRegistrationRequestBuilder) Delete(ctx context.Co return nil } // Get the registration that is enabled for an online meeting. One online meeting can only have one registration enabled. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MeetingRegistrationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemRegistrationRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRegistrationRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingRegistrationable, error) { @@ -96,6 +98,7 @@ func (m *ItemOnlineMeetingsItemRegistrationRequestBuilder) Get(ctx context.Conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingRegistrationable), nil } // Patch update the navigation property registration in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a MeetingRegistrationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemRegistrationRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingRegistrationable, requestConfiguration *ItemOnlineMeetingsItemRegistrationRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingRegistrationable, error) { @@ -121,6 +124,7 @@ func (m *ItemOnlineMeetingsItemRegistrationRequestBuilder) Registrants()(*ItemOn return NewItemOnlineMeetingsItemRegistrationRegistrantsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property registration for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemRegistrationRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRegistrationRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -132,6 +136,7 @@ func (m *ItemOnlineMeetingsItemRegistrationRequestBuilder) ToDeleteRequestInform return requestInfo, nil } // ToGetRequestInformation the registration that is enabled for an online meeting. One online meeting can only have one registration enabled. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemRegistrationRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemRegistrationRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemOnlineMeetingsItemRegistrationRequestBuilder) ToGetRequestInformati return requestInfo, nil } // ToPatchRequestInformation update the navigation property registration in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemRegistrationRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.MeetingRegistrationable, requestConfiguration *ItemOnlineMeetingsItemRegistrationRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -161,6 +167,7 @@ func (m *ItemOnlineMeetingsItemRegistrationRequestBuilder) ToPatchRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsItemRegistrationRequestBuilder when successful func (m *ItemOnlineMeetingsItemRegistrationRequestBuilder) WithUrl(rawUrl string)(*ItemOnlineMeetingsItemRegistrationRequestBuilder) { return NewItemOnlineMeetingsItemRegistrationRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_online_meetings_item_send_virtual_appointment_reminder_sms_request_builder.go b/users/item_online_meetings_item_send_virtual_appointment_reminder_sms_request_builder.go index 8508acdc18b..208a77bf7c4 100644 --- a/users/item_online_meetings_item_send_virtual_appointment_reminder_sms_request_builder.go +++ b/users/item_online_meetings_item_send_virtual_appointment_reminder_sms_request_builder.go @@ -31,6 +31,7 @@ func NewItemOnlineMeetingsItemSendVirtualAppointmentReminderSmsRequestBuilder(ra return NewItemOnlineMeetingsItemSendVirtualAppointmentReminderSmsRequestBuilderInternal(urlParams, requestAdapter) } // Post send an SMS reminder to external attendees for a Teams Virtual Appointment. This feature requires Teams Premium and attendees must have a valid United States phone number to receive SMS notifications. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemOnlineMeetingsItemSendVirtualAppointmentReminderSmsRequestBuilder) return nil } // ToPostRequestInformation send an SMS reminder to external attendees for a Teams Virtual Appointment. This feature requires Teams Premium and attendees must have a valid United States phone number to receive SMS notifications. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemSendVirtualAppointmentReminderSmsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemOnlineMeetingsItemSendVirtualAppointmentReminderSmsPostRequestBodyable, requestConfiguration *ItemOnlineMeetingsItemSendVirtualAppointmentReminderSmsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemOnlineMeetingsItemSendVirtualAppointmentReminderSmsRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsItemSendVirtualAppointmentReminderSmsRequestBuilder when successful func (m *ItemOnlineMeetingsItemSendVirtualAppointmentReminderSmsRequestBuilder) WithUrl(rawUrl string)(*ItemOnlineMeetingsItemSendVirtualAppointmentReminderSmsRequestBuilder) { return NewItemOnlineMeetingsItemSendVirtualAppointmentReminderSmsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_online_meetings_item_send_virtual_appointment_sms_request_builder.go b/users/item_online_meetings_item_send_virtual_appointment_sms_request_builder.go index 9af685a891b..f7d297fab0a 100644 --- a/users/item_online_meetings_item_send_virtual_appointment_sms_request_builder.go +++ b/users/item_online_meetings_item_send_virtual_appointment_sms_request_builder.go @@ -31,6 +31,7 @@ func NewItemOnlineMeetingsItemSendVirtualAppointmentSmsRequestBuilder(rawUrl str return NewItemOnlineMeetingsItemSendVirtualAppointmentSmsRequestBuilderInternal(urlParams, requestAdapter) } // Post send an SMS notification to external attendees when a Teams Virtual Appointment is confirmed, rescheduled, or canceled. This feature requires Teams Premium. Attendees must have a valid United States phone number to receive these SMS notifications. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemOnlineMeetingsItemSendVirtualAppointmentSmsRequestBuilder) Post(ctx return nil } // ToPostRequestInformation send an SMS notification to external attendees when a Teams Virtual Appointment is confirmed, rescheduled, or canceled. This feature requires Teams Premium. Attendees must have a valid United States phone number to receive these SMS notifications. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemSendVirtualAppointmentSmsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemOnlineMeetingsItemSendVirtualAppointmentSmsPostRequestBodyable, requestConfiguration *ItemOnlineMeetingsItemSendVirtualAppointmentSmsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemOnlineMeetingsItemSendVirtualAppointmentSmsRequestBuilder) ToPostRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsItemSendVirtualAppointmentSmsRequestBuilder when successful func (m *ItemOnlineMeetingsItemSendVirtualAppointmentSmsRequestBuilder) WithUrl(rawUrl string)(*ItemOnlineMeetingsItemSendVirtualAppointmentSmsRequestBuilder) { return NewItemOnlineMeetingsItemSendVirtualAppointmentSmsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_online_meetings_item_transcripts_call_transcript_item_request_builder.go b/users/item_online_meetings_item_transcripts_call_transcript_item_request_builder.go index 4419157982c..2909f0422c5 100644 --- a/users/item_online_meetings_item_transcripts_call_transcript_item_request_builder.go +++ b/users/item_online_meetings_item_transcripts_call_transcript_item_request_builder.go @@ -60,6 +60,7 @@ func (m *ItemOnlineMeetingsItemTranscriptsCallTranscriptItemRequestBuilder) Cont return NewItemOnlineMeetingsItemTranscriptsItemContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Delete delete navigation property transcripts for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemTranscriptsCallTranscriptItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemTranscriptsCallTranscriptItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -76,6 +77,7 @@ func (m *ItemOnlineMeetingsItemTranscriptsCallTranscriptItemRequestBuilder) Dele return nil } // Get retrieve a callTranscript object associated with a scheduled onlineMeeting. This API doesn't support getting call transcripts from channel meetings. Retrieving the transcript returns the metadata of the single transcript associated with the online meeting. Retrieving the content of the transcript returns the stream of text associated with the transcript. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a CallTranscriptable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -104,6 +106,7 @@ func (m *ItemOnlineMeetingsItemTranscriptsCallTranscriptItemRequestBuilder) Meta return NewItemOnlineMeetingsItemTranscriptsItemMetadataContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property transcripts in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a CallTranscriptable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemTranscriptsCallTranscriptItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallTranscriptable, requestConfiguration *ItemOnlineMeetingsItemTranscriptsCallTranscriptItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallTranscriptable, error) { @@ -124,6 +127,7 @@ func (m *ItemOnlineMeetingsItemTranscriptsCallTranscriptItemRequestBuilder) Patc return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallTranscriptable), nil } // ToDeleteRequestInformation delete navigation property transcripts for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemTranscriptsCallTranscriptItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemTranscriptsCallTranscriptItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -135,6 +139,7 @@ func (m *ItemOnlineMeetingsItemTranscriptsCallTranscriptItemRequestBuilder) ToDe return requestInfo, nil } // ToGetRequestInformation retrieve a callTranscript object associated with a scheduled onlineMeeting. This API doesn't support getting call transcripts from channel meetings. Retrieving the transcript returns the metadata of the single transcript associated with the online meeting. Retrieving the content of the transcript returns the stream of text associated with the transcript. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemTranscriptsCallTranscriptItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemTranscriptsCallTranscriptItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -149,6 +154,7 @@ func (m *ItemOnlineMeetingsItemTranscriptsCallTranscriptItemRequestBuilder) ToGe return requestInfo, nil } // ToPatchRequestInformation update the navigation property transcripts in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemTranscriptsCallTranscriptItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallTranscriptable, requestConfiguration *ItemOnlineMeetingsItemTranscriptsCallTranscriptItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -164,6 +170,7 @@ func (m *ItemOnlineMeetingsItemTranscriptsCallTranscriptItemRequestBuilder) ToPa return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsItemTranscriptsCallTranscriptItemRequestBuilder when successful func (m *ItemOnlineMeetingsItemTranscriptsCallTranscriptItemRequestBuilder) WithUrl(rawUrl string)(*ItemOnlineMeetingsItemTranscriptsCallTranscriptItemRequestBuilder) { return NewItemOnlineMeetingsItemTranscriptsCallTranscriptItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_online_meetings_item_transcripts_count_request_builder.go b/users/item_online_meetings_item_transcripts_count_request_builder.go index e957d98f4d3..99cd4e301e1 100644 --- a/users/item_online_meetings_item_transcripts_count_request_builder.go +++ b/users/item_online_meetings_item_transcripts_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemOnlineMeetingsItemTranscriptsCountRequestBuilder(rawUrl string, requ return NewItemOnlineMeetingsItemTranscriptsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemTranscriptsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemTranscriptsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemOnlineMeetingsItemTranscriptsCountRequestBuilder) Get(ctx context.C return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemTranscriptsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemTranscriptsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemOnlineMeetingsItemTranscriptsCountRequestBuilder) ToGetRequestInfor return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsItemTranscriptsCountRequestBuilder when successful func (m *ItemOnlineMeetingsItemTranscriptsCountRequestBuilder) WithUrl(rawUrl string)(*ItemOnlineMeetingsItemTranscriptsCountRequestBuilder) { return NewItemOnlineMeetingsItemTranscriptsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_online_meetings_item_transcripts_delta_request_builder.go b/users/item_online_meetings_item_transcripts_delta_request_builder.go index 3cc904c0b5f..bfbb870e3bb 100644 --- a/users/item_online_meetings_item_transcripts_delta_request_builder.go +++ b/users/item_online_meetings_item_transcripts_delta_request_builder.go @@ -73,6 +73,7 @@ func (m *ItemOnlineMeetingsItemTranscriptsDeltaRequestBuilder) Get(ctx context.C return res.(ItemOnlineMeetingsItemTranscriptsDeltaResponseable), nil } // GetAsDeltaGetResponse invoke function delta +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemOnlineMeetingsItemTranscriptsDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemTranscriptsDeltaRequestBuilder) GetAsDeltaGetResponse(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemTranscriptsDeltaRequestBuilderGetRequestConfiguration)(ItemOnlineMeetingsItemTranscriptsDeltaGetResponseable, error) { @@ -93,6 +94,7 @@ func (m *ItemOnlineMeetingsItemTranscriptsDeltaRequestBuilder) GetAsDeltaGetResp return res.(ItemOnlineMeetingsItemTranscriptsDeltaGetResponseable), nil } // ToGetRequestInformation invoke function delta +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemTranscriptsDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemTranscriptsDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -107,6 +109,7 @@ func (m *ItemOnlineMeetingsItemTranscriptsDeltaRequestBuilder) ToGetRequestInfor return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsItemTranscriptsDeltaRequestBuilder when successful func (m *ItemOnlineMeetingsItemTranscriptsDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemOnlineMeetingsItemTranscriptsDeltaRequestBuilder) { return NewItemOnlineMeetingsItemTranscriptsDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_online_meetings_item_transcripts_item_content_request_builder.go b/users/item_online_meetings_item_transcripts_item_content_request_builder.go index 4b54fbd6482..6752d1452a5 100644 --- a/users/item_online_meetings_item_transcripts_item_content_request_builder.go +++ b/users/item_online_meetings_item_transcripts_item_content_request_builder.go @@ -46,6 +46,7 @@ func NewItemOnlineMeetingsItemTranscriptsItemContentRequestBuilder(rawUrl string return NewItemOnlineMeetingsItemTranscriptsItemContentRequestBuilderInternal(urlParams, requestAdapter) } // Delete the content of the transcript. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemTranscriptsItemContentRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemTranscriptsItemContentRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -62,6 +63,7 @@ func (m *ItemOnlineMeetingsItemTranscriptsItemContentRequestBuilder) Delete(ctx return nil } // Get retrieve a callTranscript object associated with a scheduled onlineMeeting. This API doesn't support getting call transcripts from channel meetings. Retrieving the transcript returns the metadata of the single transcript associated with the online meeting. Retrieving the content of the transcript returns the stream of text associated with the transcript. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -85,6 +87,7 @@ func (m *ItemOnlineMeetingsItemTranscriptsItemContentRequestBuilder) Get(ctx con return res.([]byte), nil } // Put the content of the transcript. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a CallTranscriptable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemTranscriptsItemContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemOnlineMeetingsItemTranscriptsItemContentRequestBuilderPutRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallTranscriptable, error) { @@ -105,6 +108,7 @@ func (m *ItemOnlineMeetingsItemTranscriptsItemContentRequestBuilder) Put(ctx con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallTranscriptable), nil } // ToDeleteRequestInformation the content of the transcript. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemTranscriptsItemContentRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemTranscriptsItemContentRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -116,6 +120,7 @@ func (m *ItemOnlineMeetingsItemTranscriptsItemContentRequestBuilder) ToDeleteReq return requestInfo, nil } // ToGetRequestInformation retrieve a callTranscript object associated with a scheduled onlineMeeting. This API doesn't support getting call transcripts from channel meetings. Retrieving the transcript returns the metadata of the single transcript associated with the online meeting. Retrieving the content of the transcript returns the stream of text associated with the transcript. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemTranscriptsItemContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemTranscriptsItemContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -127,6 +132,7 @@ func (m *ItemOnlineMeetingsItemTranscriptsItemContentRequestBuilder) ToGetReques return requestInfo, nil } // ToPutRequestInformation the content of the transcript. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemTranscriptsItemContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemOnlineMeetingsItemTranscriptsItemContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -139,6 +145,7 @@ func (m *ItemOnlineMeetingsItemTranscriptsItemContentRequestBuilder) ToPutReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsItemTranscriptsItemContentRequestBuilder when successful func (m *ItemOnlineMeetingsItemTranscriptsItemContentRequestBuilder) WithUrl(rawUrl string)(*ItemOnlineMeetingsItemTranscriptsItemContentRequestBuilder) { return NewItemOnlineMeetingsItemTranscriptsItemContentRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_online_meetings_item_transcripts_item_metadata_content_request_builder.go b/users/item_online_meetings_item_transcripts_item_metadata_content_request_builder.go index 8c7707db136..c32c4be82af 100644 --- a/users/item_online_meetings_item_transcripts_item_metadata_content_request_builder.go +++ b/users/item_online_meetings_item_transcripts_item_metadata_content_request_builder.go @@ -45,6 +45,7 @@ func NewItemOnlineMeetingsItemTranscriptsItemMetadataContentRequestBuilder(rawUr return NewItemOnlineMeetingsItemTranscriptsItemMetadataContentRequestBuilderInternal(urlParams, requestAdapter) } // Delete the time-aligned metadata of the utterances in the transcript. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemTranscriptsItemMetadataContentRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemTranscriptsItemMetadataContentRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -61,6 +62,7 @@ func (m *ItemOnlineMeetingsItemTranscriptsItemMetadataContentRequestBuilder) Del return nil } // Get retrieve a callTranscript object associated with a scheduled onlineMeeting. This API doesn't support getting call transcripts from channel meetings. Retrieving the transcript returns the metadata of the single transcript associated with the online meeting. Retrieving the content of the transcript returns the stream of text associated with the transcript. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -84,6 +86,7 @@ func (m *ItemOnlineMeetingsItemTranscriptsItemMetadataContentRequestBuilder) Get return res.([]byte), nil } // Put the time-aligned metadata of the utterances in the transcript. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemTranscriptsItemMetadataContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemOnlineMeetingsItemTranscriptsItemMetadataContentRequestBuilderPutRequestConfiguration)([]byte, error) { @@ -104,6 +107,7 @@ func (m *ItemOnlineMeetingsItemTranscriptsItemMetadataContentRequestBuilder) Put return res.([]byte), nil } // ToDeleteRequestInformation the time-aligned metadata of the utterances in the transcript. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemTranscriptsItemMetadataContentRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemTranscriptsItemMetadataContentRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -115,6 +119,7 @@ func (m *ItemOnlineMeetingsItemTranscriptsItemMetadataContentRequestBuilder) ToD return requestInfo, nil } // ToGetRequestInformation retrieve a callTranscript object associated with a scheduled onlineMeeting. This API doesn't support getting call transcripts from channel meetings. Retrieving the transcript returns the metadata of the single transcript associated with the online meeting. Retrieving the content of the transcript returns the stream of text associated with the transcript. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemTranscriptsItemMetadataContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemTranscriptsItemMetadataContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -126,6 +131,7 @@ func (m *ItemOnlineMeetingsItemTranscriptsItemMetadataContentRequestBuilder) ToG return requestInfo, nil } // ToPutRequestInformation the time-aligned metadata of the utterances in the transcript. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemTranscriptsItemMetadataContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemOnlineMeetingsItemTranscriptsItemMetadataContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -138,6 +144,7 @@ func (m *ItemOnlineMeetingsItemTranscriptsItemMetadataContentRequestBuilder) ToP return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsItemTranscriptsItemMetadataContentRequestBuilder when successful func (m *ItemOnlineMeetingsItemTranscriptsItemMetadataContentRequestBuilder) WithUrl(rawUrl string)(*ItemOnlineMeetingsItemTranscriptsItemMetadataContentRequestBuilder) { return NewItemOnlineMeetingsItemTranscriptsItemMetadataContentRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_online_meetings_item_transcripts_request_builder.go b/users/item_online_meetings_item_transcripts_request_builder.go index fe958aef98b..2f6f19d0a77 100644 --- a/users/item_online_meetings_item_transcripts_request_builder.go +++ b/users/item_online_meetings_item_transcripts_request_builder.go @@ -47,6 +47,7 @@ type ItemOnlineMeetingsItemTranscriptsRequestBuilderPostRequestConfiguration str Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByCallTranscriptId provides operations to manage the transcripts property of the microsoft.graph.onlineMeeting entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsItemTranscriptsCallTranscriptItemRequestBuilder when successful func (m *ItemOnlineMeetingsItemTranscriptsRequestBuilder) ByCallTranscriptId(callTranscriptId string)(*ItemOnlineMeetingsItemTranscriptsCallTranscriptItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemOnlineMeetingsItemTranscriptsRequestBuilder) Delta()(*ItemOnlineMee return NewItemOnlineMeetingsItemTranscriptsDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get retrieve the list of callTranscript objects associated with a scheduled onlineMeeting. This API doesn't support getting call transcripts from channel meetings. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a CallTranscriptCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -105,6 +107,7 @@ func (m *ItemOnlineMeetingsItemTranscriptsRequestBuilder) Get(ctx context.Contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallTranscriptCollectionResponseable), nil } // Post create new navigation property to transcripts for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a CallTranscriptable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsItemTranscriptsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallTranscriptable, requestConfiguration *ItemOnlineMeetingsItemTranscriptsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallTranscriptable, error) { @@ -125,6 +128,7 @@ func (m *ItemOnlineMeetingsItemTranscriptsRequestBuilder) Post(ctx context.Conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallTranscriptable), nil } // ToGetRequestInformation retrieve the list of callTranscript objects associated with a scheduled onlineMeeting. This API doesn't support getting call transcripts from channel meetings. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemTranscriptsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsItemTranscriptsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -139,6 +143,7 @@ func (m *ItemOnlineMeetingsItemTranscriptsRequestBuilder) ToGetRequestInformatio return requestInfo, nil } // ToPostRequestInformation create new navigation property to transcripts for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsItemTranscriptsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.CallTranscriptable, requestConfiguration *ItemOnlineMeetingsItemTranscriptsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -154,6 +159,7 @@ func (m *ItemOnlineMeetingsItemTranscriptsRequestBuilder) ToPostRequestInformati return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsItemTranscriptsRequestBuilder when successful func (m *ItemOnlineMeetingsItemTranscriptsRequestBuilder) WithUrl(rawUrl string)(*ItemOnlineMeetingsItemTranscriptsRequestBuilder) { return NewItemOnlineMeetingsItemTranscriptsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_online_meetings_online_meeting_item_request_builder.go b/users/item_online_meetings_online_meeting_item_request_builder.go index e0a134699d8..96e027948e3 100644 --- a/users/item_online_meetings_online_meeting_item_request_builder.go +++ b/users/item_online_meetings_online_meeting_item_request_builder.go @@ -75,6 +75,7 @@ func NewItemOnlineMeetingsOnlineMeetingItemRequestBuilder(rawUrl string, request return NewItemOnlineMeetingsOnlineMeetingItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property onlineMeetings for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsOnlineMeetingItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOnlineMeetingsOnlineMeetingItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -91,6 +92,7 @@ func (m *ItemOnlineMeetingsOnlineMeetingItemRequestBuilder) Delete(ctx context.C return nil } // Get information about a meeting, including the URL used to join a meeting, the attendees list, and the description. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnlineMeetingable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsOnlineMeetingItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnlineMeetingsOnlineMeetingItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnlineMeetingable, error) { @@ -121,6 +123,7 @@ func (m *ItemOnlineMeetingsOnlineMeetingItemRequestBuilder) MeetingAttendanceRep return NewItemOnlineMeetingsItemMeetingAttendanceReportRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property onlineMeetings in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnlineMeetingable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsOnlineMeetingItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnlineMeetingable, requestConfiguration *ItemOnlineMeetingsOnlineMeetingItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnlineMeetingable, error) { @@ -166,6 +169,7 @@ func (m *ItemOnlineMeetingsOnlineMeetingItemRequestBuilder) SendVirtualAppointme return NewItemOnlineMeetingsItemSendVirtualAppointmentSmsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property onlineMeetings for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsOnlineMeetingItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsOnlineMeetingItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -177,6 +181,7 @@ func (m *ItemOnlineMeetingsOnlineMeetingItemRequestBuilder) ToDeleteRequestInfor return requestInfo, nil } // ToGetRequestInformation information about a meeting, including the URL used to join a meeting, the attendees list, and the description. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsOnlineMeetingItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsOnlineMeetingItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -191,6 +196,7 @@ func (m *ItemOnlineMeetingsOnlineMeetingItemRequestBuilder) ToGetRequestInformat return requestInfo, nil } // ToPatchRequestInformation update the navigation property onlineMeetings in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsOnlineMeetingItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnlineMeetingable, requestConfiguration *ItemOnlineMeetingsOnlineMeetingItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -211,6 +217,7 @@ func (m *ItemOnlineMeetingsOnlineMeetingItemRequestBuilder) Transcripts()(*ItemO return NewItemOnlineMeetingsItemTranscriptsRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsOnlineMeetingItemRequestBuilder when successful func (m *ItemOnlineMeetingsOnlineMeetingItemRequestBuilder) WithUrl(rawUrl string)(*ItemOnlineMeetingsOnlineMeetingItemRequestBuilder) { return NewItemOnlineMeetingsOnlineMeetingItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_online_meetings_request_builder.go b/users/item_online_meetings_request_builder.go index 6470162f13d..cfb70b6d8b2 100644 --- a/users/item_online_meetings_request_builder.go +++ b/users/item_online_meetings_request_builder.go @@ -47,6 +47,7 @@ type ItemOnlineMeetingsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByOnlineMeetingId provides operations to manage the onlineMeetings property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsOnlineMeetingItemRequestBuilder when successful func (m *ItemOnlineMeetingsRequestBuilder) ByOnlineMeetingId(onlineMeetingId string)(*ItemOnlineMeetingsOnlineMeetingItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemOnlineMeetingsRequestBuilder) CreateOrGet()(*ItemOnlineMeetingsCrea return NewItemOnlineMeetingsCreateOrGetRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get information about a meeting, including the URL used to join a meeting, the attendees list, and the description. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnlineMeetingCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnlineMeetingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnlineMeetingCollectionResponseable, error) { @@ -112,6 +114,7 @@ func (m *ItemOnlineMeetingsRequestBuilder) GetAllTranscriptsmeetingOrganizerUser return NewItemOnlineMeetingsGetAllTranscriptsmeetingOrganizerUserIdMeetingOrganizerUserIdWithStartDateTimeWithEndDateTimeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Post create new navigation property to onlineMeetings for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnlineMeetingable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnlineMeetingable, requestConfiguration *ItemOnlineMeetingsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnlineMeetingable, error) { @@ -132,6 +135,7 @@ func (m *ItemOnlineMeetingsRequestBuilder) Post(ctx context.Context, body ie233e return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnlineMeetingable), nil } // ToGetRequestInformation information about a meeting, including the URL used to join a meeting, the attendees list, and the description. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +150,7 @@ func (m *ItemOnlineMeetingsRequestBuilder) ToGetRequestInformation(ctx context.C return requestInfo, nil } // ToPostRequestInformation create new navigation property to onlineMeetings for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnlineMeetingable, requestConfiguration *ItemOnlineMeetingsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -161,6 +166,7 @@ func (m *ItemOnlineMeetingsRequestBuilder) ToPostRequestInformation(ctx context. return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsRequestBuilder when successful func (m *ItemOnlineMeetingsRequestBuilder) WithUrl(rawUrl string)(*ItemOnlineMeetingsRequestBuilder) { return NewItemOnlineMeetingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_online_meetings_with_join_web_url_get_virtual_appointment_join_web_url_request_builder.go b/users/item_online_meetings_with_join_web_url_get_virtual_appointment_join_web_url_request_builder.go index 8d1c45fca36..38de5af5433 100644 --- a/users/item_online_meetings_with_join_web_url_get_virtual_appointment_join_web_url_request_builder.go +++ b/users/item_online_meetings_with_join_web_url_get_virtual_appointment_join_web_url_request_builder.go @@ -55,6 +55,7 @@ func (m *ItemOnlineMeetingsWithJoinWebUrlGetVirtualAppointmentJoinWebUrlRequestB return res.(ItemOnlineMeetingsWithJoinWebUrlGetVirtualAppointmentJoinWebUrlResponseable), nil } // GetAsGetVirtualAppointmentJoinWebUrlGetResponse get a join web URL for a Teams Virtual Appointment. This web URL includes enhanced business-to-customer experiences such as mobile browser join and virtual lobby rooms. With Teams Premium, you can configure a custom lobby room experience for attendees by adding your company logo and access the Virtual Appointments usage report for organizational analytics. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemOnlineMeetingsWithJoinWebUrlGetVirtualAppointmentJoinWebUrlGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -78,6 +79,7 @@ func (m *ItemOnlineMeetingsWithJoinWebUrlGetVirtualAppointmentJoinWebUrlRequestB return res.(ItemOnlineMeetingsWithJoinWebUrlGetVirtualAppointmentJoinWebUrlGetResponseable), nil } // ToGetRequestInformation get a join web URL for a Teams Virtual Appointment. This web URL includes enhanced business-to-customer experiences such as mobile browser join and virtual lobby rooms. With Teams Premium, you can configure a custom lobby room experience for attendees by adding your company logo and access the Virtual Appointments usage report for organizational analytics. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsWithJoinWebUrlGetVirtualAppointmentJoinWebUrlRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsWithJoinWebUrlGetVirtualAppointmentJoinWebUrlRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -89,6 +91,7 @@ func (m *ItemOnlineMeetingsWithJoinWebUrlGetVirtualAppointmentJoinWebUrlRequestB return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsWithJoinWebUrlGetVirtualAppointmentJoinWebUrlRequestBuilder when successful func (m *ItemOnlineMeetingsWithJoinWebUrlGetVirtualAppointmentJoinWebUrlRequestBuilder) WithUrl(rawUrl string)(*ItemOnlineMeetingsWithJoinWebUrlGetVirtualAppointmentJoinWebUrlRequestBuilder) { return NewItemOnlineMeetingsWithJoinWebUrlGetVirtualAppointmentJoinWebUrlRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_online_meetings_with_join_web_url_request_builder.go b/users/item_online_meetings_with_join_web_url_request_builder.go index fa1e8e4dffd..f6b0e9a45df 100644 --- a/users/item_online_meetings_with_join_web_url_request_builder.go +++ b/users/item_online_meetings_with_join_web_url_request_builder.go @@ -58,6 +58,7 @@ func NewItemOnlineMeetingsWithJoinWebUrlRequestBuilder(rawUrl string, requestAda return NewItemOnlineMeetingsWithJoinWebUrlRequestBuilderInternal(urlParams, requestAdapter, nil) } // Delete delete navigation property onlineMeetings for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsWithJoinWebUrlRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOnlineMeetingsWithJoinWebUrlRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -74,6 +75,7 @@ func (m *ItemOnlineMeetingsWithJoinWebUrlRequestBuilder) Delete(ctx context.Cont return nil } // Get information about a meeting, including the URL used to join a meeting, the attendees list, and the description. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnlineMeetingable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsWithJoinWebUrlRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOnlineMeetingsWithJoinWebUrlRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnlineMeetingable, error) { @@ -99,6 +101,7 @@ func (m *ItemOnlineMeetingsWithJoinWebUrlRequestBuilder) GetVirtualAppointmentJo return NewItemOnlineMeetingsWithJoinWebUrlGetVirtualAppointmentJoinWebUrlRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property onlineMeetings in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OnlineMeetingable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOnlineMeetingsWithJoinWebUrlRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnlineMeetingable, requestConfiguration *ItemOnlineMeetingsWithJoinWebUrlRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnlineMeetingable, error) { @@ -129,6 +132,7 @@ func (m *ItemOnlineMeetingsWithJoinWebUrlRequestBuilder) SendVirtualAppointmentS return NewItemOnlineMeetingsWithJoinWebUrlSendVirtualAppointmentSmsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property onlineMeetings for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsWithJoinWebUrlRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsWithJoinWebUrlRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -140,6 +144,7 @@ func (m *ItemOnlineMeetingsWithJoinWebUrlRequestBuilder) ToDeleteRequestInformat return requestInfo, nil } // ToGetRequestInformation information about a meeting, including the URL used to join a meeting, the attendees list, and the description. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsWithJoinWebUrlRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOnlineMeetingsWithJoinWebUrlRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -154,6 +159,7 @@ func (m *ItemOnlineMeetingsWithJoinWebUrlRequestBuilder) ToGetRequestInformation return requestInfo, nil } // ToPatchRequestInformation update the navigation property onlineMeetings in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsWithJoinWebUrlRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OnlineMeetingable, requestConfiguration *ItemOnlineMeetingsWithJoinWebUrlRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -169,6 +175,7 @@ func (m *ItemOnlineMeetingsWithJoinWebUrlRequestBuilder) ToPatchRequestInformati return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsWithJoinWebUrlRequestBuilder when successful func (m *ItemOnlineMeetingsWithJoinWebUrlRequestBuilder) WithUrl(rawUrl string)(*ItemOnlineMeetingsWithJoinWebUrlRequestBuilder) { return NewItemOnlineMeetingsWithJoinWebUrlRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_online_meetings_with_join_web_url_send_virtual_appointment_reminder_sms_request_builder.go b/users/item_online_meetings_with_join_web_url_send_virtual_appointment_reminder_sms_request_builder.go index 295344b0220..f57cc53811a 100644 --- a/users/item_online_meetings_with_join_web_url_send_virtual_appointment_reminder_sms_request_builder.go +++ b/users/item_online_meetings_with_join_web_url_send_virtual_appointment_reminder_sms_request_builder.go @@ -31,6 +31,7 @@ func NewItemOnlineMeetingsWithJoinWebUrlSendVirtualAppointmentReminderSmsRequest return NewItemOnlineMeetingsWithJoinWebUrlSendVirtualAppointmentReminderSmsRequestBuilderInternal(urlParams, requestAdapter) } // Post send an SMS reminder to external attendees for a Teams Virtual Appointment. This feature requires Teams Premium and attendees must have a valid United States phone number to receive SMS notifications. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemOnlineMeetingsWithJoinWebUrlSendVirtualAppointmentReminderSmsReques return nil } // ToPostRequestInformation send an SMS reminder to external attendees for a Teams Virtual Appointment. This feature requires Teams Premium and attendees must have a valid United States phone number to receive SMS notifications. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsWithJoinWebUrlSendVirtualAppointmentReminderSmsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemOnlineMeetingsWithJoinWebUrlSendVirtualAppointmentReminderSmsPostRequestBodyable, requestConfiguration *ItemOnlineMeetingsWithJoinWebUrlSendVirtualAppointmentReminderSmsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemOnlineMeetingsWithJoinWebUrlSendVirtualAppointmentReminderSmsReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsWithJoinWebUrlSendVirtualAppointmentReminderSmsRequestBuilder when successful func (m *ItemOnlineMeetingsWithJoinWebUrlSendVirtualAppointmentReminderSmsRequestBuilder) WithUrl(rawUrl string)(*ItemOnlineMeetingsWithJoinWebUrlSendVirtualAppointmentReminderSmsRequestBuilder) { return NewItemOnlineMeetingsWithJoinWebUrlSendVirtualAppointmentReminderSmsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_online_meetings_with_join_web_url_send_virtual_appointment_sms_request_builder.go b/users/item_online_meetings_with_join_web_url_send_virtual_appointment_sms_request_builder.go index 7f807eb0b55..b901d8461e4 100644 --- a/users/item_online_meetings_with_join_web_url_send_virtual_appointment_sms_request_builder.go +++ b/users/item_online_meetings_with_join_web_url_send_virtual_appointment_sms_request_builder.go @@ -31,6 +31,7 @@ func NewItemOnlineMeetingsWithJoinWebUrlSendVirtualAppointmentSmsRequestBuilder( return NewItemOnlineMeetingsWithJoinWebUrlSendVirtualAppointmentSmsRequestBuilderInternal(urlParams, requestAdapter) } // Post send an SMS notification to external attendees when a Teams Virtual Appointment is confirmed, rescheduled, or canceled. This feature requires Teams Premium. Attendees must have a valid United States phone number to receive these SMS notifications. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemOnlineMeetingsWithJoinWebUrlSendVirtualAppointmentSmsRequestBuilder return nil } // ToPostRequestInformation send an SMS notification to external attendees when a Teams Virtual Appointment is confirmed, rescheduled, or canceled. This feature requires Teams Premium. Attendees must have a valid United States phone number to receive these SMS notifications. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOnlineMeetingsWithJoinWebUrlSendVirtualAppointmentSmsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemOnlineMeetingsWithJoinWebUrlSendVirtualAppointmentSmsPostRequestBodyable, requestConfiguration *ItemOnlineMeetingsWithJoinWebUrlSendVirtualAppointmentSmsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemOnlineMeetingsWithJoinWebUrlSendVirtualAppointmentSmsRequestBuilder return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsWithJoinWebUrlSendVirtualAppointmentSmsRequestBuilder when successful func (m *ItemOnlineMeetingsWithJoinWebUrlSendVirtualAppointmentSmsRequestBuilder) WithUrl(rawUrl string)(*ItemOnlineMeetingsWithJoinWebUrlSendVirtualAppointmentSmsRequestBuilder) { return NewItemOnlineMeetingsWithJoinWebUrlSendVirtualAppointmentSmsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_outlook_master_categories_count_request_builder.go b/users/item_outlook_master_categories_count_request_builder.go index 2e9d7a0b4ab..95a5a11be09 100644 --- a/users/item_outlook_master_categories_count_request_builder.go +++ b/users/item_outlook_master_categories_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemOutlookMasterCategoriesCountRequestBuilder(rawUrl string, requestAda return NewItemOutlookMasterCategoriesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookMasterCategoriesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOutlookMasterCategoriesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemOutlookMasterCategoriesCountRequestBuilder) Get(ctx context.Context return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookMasterCategoriesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookMasterCategoriesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemOutlookMasterCategoriesCountRequestBuilder) ToGetRequestInformation return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookMasterCategoriesCountRequestBuilder when successful func (m *ItemOutlookMasterCategoriesCountRequestBuilder) WithUrl(rawUrl string)(*ItemOutlookMasterCategoriesCountRequestBuilder) { return NewItemOutlookMasterCategoriesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_outlook_master_categories_outlook_category_item_request_builder.go b/users/item_outlook_master_categories_outlook_category_item_request_builder.go index 9941ad53a11..b805f07865d 100644 --- a/users/item_outlook_master_categories_outlook_category_item_request_builder.go +++ b/users/item_outlook_master_categories_outlook_category_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemOutlookMasterCategoriesOutlookCategoryItemRequestBuilder(rawUrl stri return NewItemOutlookMasterCategoriesOutlookCategoryItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property masterCategories for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookMasterCategoriesOutlookCategoryItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOutlookMasterCategoriesOutlookCategoryItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemOutlookMasterCategoriesOutlookCategoryItemRequestBuilder) Delete(ct return nil } // Get a list of categories defined for the user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OutlookCategoryable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookMasterCategoriesOutlookCategoryItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOutlookMasterCategoriesOutlookCategoryItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookCategoryable, error) { @@ -91,6 +93,7 @@ func (m *ItemOutlookMasterCategoriesOutlookCategoryItemRequestBuilder) Get(ctx c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookCategoryable), nil } // Patch update the navigation property masterCategories in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OutlookCategoryable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookMasterCategoriesOutlookCategoryItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookCategoryable, requestConfiguration *ItemOutlookMasterCategoriesOutlookCategoryItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookCategoryable, error) { @@ -111,6 +114,7 @@ func (m *ItemOutlookMasterCategoriesOutlookCategoryItemRequestBuilder) Patch(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookCategoryable), nil } // ToDeleteRequestInformation delete navigation property masterCategories for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookMasterCategoriesOutlookCategoryItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookMasterCategoriesOutlookCategoryItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemOutlookMasterCategoriesOutlookCategoryItemRequestBuilder) ToDeleteR return requestInfo, nil } // ToGetRequestInformation a list of categories defined for the user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookMasterCategoriesOutlookCategoryItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookMasterCategoriesOutlookCategoryItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemOutlookMasterCategoriesOutlookCategoryItemRequestBuilder) ToGetRequ return requestInfo, nil } // ToPatchRequestInformation update the navigation property masterCategories in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookMasterCategoriesOutlookCategoryItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookCategoryable, requestConfiguration *ItemOutlookMasterCategoriesOutlookCategoryItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemOutlookMasterCategoriesOutlookCategoryItemRequestBuilder) ToPatchRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookMasterCategoriesOutlookCategoryItemRequestBuilder when successful func (m *ItemOutlookMasterCategoriesOutlookCategoryItemRequestBuilder) WithUrl(rawUrl string)(*ItemOutlookMasterCategoriesOutlookCategoryItemRequestBuilder) { return NewItemOutlookMasterCategoriesOutlookCategoryItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_outlook_master_categories_request_builder.go b/users/item_outlook_master_categories_request_builder.go index e871030c14c..781c7b00b40 100644 --- a/users/item_outlook_master_categories_request_builder.go +++ b/users/item_outlook_master_categories_request_builder.go @@ -47,6 +47,7 @@ type ItemOutlookMasterCategoriesRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByOutlookCategoryId provides operations to manage the masterCategories property of the microsoft.graph.outlookUser entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookMasterCategoriesOutlookCategoryItemRequestBuilder when successful func (m *ItemOutlookMasterCategoriesRequestBuilder) ByOutlookCategoryId(outlookCategoryId string)(*ItemOutlookMasterCategoriesOutlookCategoryItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemOutlookMasterCategoriesRequestBuilder) Count()(*ItemOutlookMasterCa return NewItemOutlookMasterCategoriesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get a list of categories defined for the user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OutlookCategoryCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookMasterCategoriesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOutlookMasterCategoriesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookCategoryCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemOutlookMasterCategoriesRequestBuilder) Get(ctx context.Context, req return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookCategoryCollectionResponseable), nil } // Post create new navigation property to masterCategories for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OutlookCategoryable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookMasterCategoriesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookCategoryable, requestConfiguration *ItemOutlookMasterCategoriesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookCategoryable, error) { @@ -117,6 +120,7 @@ func (m *ItemOutlookMasterCategoriesRequestBuilder) Post(ctx context.Context, bo return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookCategoryable), nil } // ToGetRequestInformation a list of categories defined for the user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookMasterCategoriesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookMasterCategoriesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemOutlookMasterCategoriesRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // ToPostRequestInformation create new navigation property to masterCategories for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookMasterCategoriesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookCategoryable, requestConfiguration *ItemOutlookMasterCategoriesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemOutlookMasterCategoriesRequestBuilder) ToPostRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookMasterCategoriesRequestBuilder when successful func (m *ItemOutlookMasterCategoriesRequestBuilder) WithUrl(rawUrl string)(*ItemOutlookMasterCategoriesRequestBuilder) { return NewItemOutlookMasterCategoriesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_outlook_request_builder.go b/users/item_outlook_request_builder.go index 91e9996a90b..d31139683ec 100644 --- a/users/item_outlook_request_builder.go +++ b/users/item_outlook_request_builder.go @@ -41,6 +41,7 @@ func NewItemOutlookRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee26 return NewItemOutlookRequestBuilderInternal(urlParams, requestAdapter) } // Get selective Outlook services available to the user. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OutlookUserable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOutlookRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookUserable, error) { @@ -76,6 +77,7 @@ func (m *ItemOutlookRequestBuilder) SupportedTimeZones()(*ItemOutlookSupportedTi return NewItemOutlookSupportedTimeZonesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // SupportedTimeZonesWithTimeZoneStandard provides operations to call the supportedTimeZones method. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookSupportedTimeZonesWithTimeZoneStandardRequestBuilder when successful func (m *ItemOutlookRequestBuilder) SupportedTimeZonesWithTimeZoneStandard(timeZoneStandard *string)(*ItemOutlookSupportedTimeZonesWithTimeZoneStandardRequestBuilder) { return NewItemOutlookSupportedTimeZonesWithTimeZoneStandardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, timeZoneStandard) @@ -96,6 +98,7 @@ func (m *ItemOutlookRequestBuilder) Tasks()(*ItemOutlookTasksRequestBuilder) { return NewItemOutlookTasksRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation selective Outlook services available to the user. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -110,6 +113,7 @@ func (m *ItemOutlookRequestBuilder) ToGetRequestInformation(ctx context.Context, return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookRequestBuilder when successful func (m *ItemOutlookRequestBuilder) WithUrl(rawUrl string)(*ItemOutlookRequestBuilder) { return NewItemOutlookRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_outlook_supported_languages_request_builder.go b/users/item_outlook_supported_languages_request_builder.go index 76263dc234b..941363c0f81 100644 --- a/users/item_outlook_supported_languages_request_builder.go +++ b/users/item_outlook_supported_languages_request_builder.go @@ -70,6 +70,7 @@ func (m *ItemOutlookSupportedLanguagesRequestBuilder) Get(ctx context.Context, r return res.(ItemOutlookSupportedLanguagesResponseable), nil } // GetAsSupportedLanguagesGetResponse get the list of locales and languages that are supported for the user, as configured on the user's mailbox server. When setting up an Outlook client, the user selects the preferred language from this supported list. You can subsequently get the preferred language bygetting the user's mailbox settings. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemOutlookSupportedLanguagesGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -93,6 +94,7 @@ func (m *ItemOutlookSupportedLanguagesRequestBuilder) GetAsSupportedLanguagesGet return res.(ItemOutlookSupportedLanguagesGetResponseable), nil } // ToGetRequestInformation get the list of locales and languages that are supported for the user, as configured on the user's mailbox server. When setting up an Outlook client, the user selects the preferred language from this supported list. You can subsequently get the preferred language bygetting the user's mailbox settings. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookSupportedLanguagesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookSupportedLanguagesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -107,6 +109,7 @@ func (m *ItemOutlookSupportedLanguagesRequestBuilder) ToGetRequestInformation(ct return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookSupportedLanguagesRequestBuilder when successful func (m *ItemOutlookSupportedLanguagesRequestBuilder) WithUrl(rawUrl string)(*ItemOutlookSupportedLanguagesRequestBuilder) { return NewItemOutlookSupportedLanguagesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_outlook_supported_time_zones_request_builder.go b/users/item_outlook_supported_time_zones_request_builder.go index e6cb254972f..23906ca7dad 100644 --- a/users/item_outlook_supported_time_zones_request_builder.go +++ b/users/item_outlook_supported_time_zones_request_builder.go @@ -67,6 +67,7 @@ func (m *ItemOutlookSupportedTimeZonesRequestBuilder) Get(ctx context.Context, r return res.(ItemOutlookSupportedTimeZonesResponseable), nil } // GetAsSupportedTimeZonesGetResponse invoke function supportedTimeZones +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemOutlookSupportedTimeZonesGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookSupportedTimeZonesRequestBuilder) GetAsSupportedTimeZonesGetResponse(ctx context.Context, requestConfiguration *ItemOutlookSupportedTimeZonesRequestBuilderGetRequestConfiguration)(ItemOutlookSupportedTimeZonesGetResponseable, error) { @@ -87,6 +88,7 @@ func (m *ItemOutlookSupportedTimeZonesRequestBuilder) GetAsSupportedTimeZonesGet return res.(ItemOutlookSupportedTimeZonesGetResponseable), nil } // ToGetRequestInformation invoke function supportedTimeZones +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookSupportedTimeZonesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookSupportedTimeZonesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -101,6 +103,7 @@ func (m *ItemOutlookSupportedTimeZonesRequestBuilder) ToGetRequestInformation(ct return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookSupportedTimeZonesRequestBuilder when successful func (m *ItemOutlookSupportedTimeZonesRequestBuilder) WithUrl(rawUrl string)(*ItemOutlookSupportedTimeZonesRequestBuilder) { return NewItemOutlookSupportedTimeZonesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_outlook_supported_time_zones_with_time_zone_standard_request_builder.go b/users/item_outlook_supported_time_zones_with_time_zone_standard_request_builder.go index 2525477a327..089e5c8f1aa 100644 --- a/users/item_outlook_supported_time_zones_with_time_zone_standard_request_builder.go +++ b/users/item_outlook_supported_time_zones_with_time_zone_standard_request_builder.go @@ -70,6 +70,7 @@ func (m *ItemOutlookSupportedTimeZonesWithTimeZoneStandardRequestBuilder) Get(ct return res.(ItemOutlookSupportedTimeZonesWithTimeZoneStandardResponseable), nil } // GetAsSupportedTimeZonesWithTimeZoneStandardGetResponse invoke function supportedTimeZones +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemOutlookSupportedTimeZonesWithTimeZoneStandardGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookSupportedTimeZonesWithTimeZoneStandardRequestBuilder) GetAsSupportedTimeZonesWithTimeZoneStandardGetResponse(ctx context.Context, requestConfiguration *ItemOutlookSupportedTimeZonesWithTimeZoneStandardRequestBuilderGetRequestConfiguration)(ItemOutlookSupportedTimeZonesWithTimeZoneStandardGetResponseable, error) { @@ -90,6 +91,7 @@ func (m *ItemOutlookSupportedTimeZonesWithTimeZoneStandardRequestBuilder) GetAsS return res.(ItemOutlookSupportedTimeZonesWithTimeZoneStandardGetResponseable), nil } // ToGetRequestInformation invoke function supportedTimeZones +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookSupportedTimeZonesWithTimeZoneStandardRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookSupportedTimeZonesWithTimeZoneStandardRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -104,6 +106,7 @@ func (m *ItemOutlookSupportedTimeZonesWithTimeZoneStandardRequestBuilder) ToGetR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookSupportedTimeZonesWithTimeZoneStandardRequestBuilder when successful func (m *ItemOutlookSupportedTimeZonesWithTimeZoneStandardRequestBuilder) WithUrl(rawUrl string)(*ItemOutlookSupportedTimeZonesWithTimeZoneStandardRequestBuilder) { return NewItemOutlookSupportedTimeZonesWithTimeZoneStandardRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_outlook_task_folders_count_request_builder.go b/users/item_outlook_task_folders_count_request_builder.go index b876e909fed..66045d2b2f6 100644 --- a/users/item_outlook_task_folders_count_request_builder.go +++ b/users/item_outlook_task_folders_count_request_builder.go @@ -40,7 +40,7 @@ func NewItemOutlookTaskFoldersCountRequestBuilder(rawUrl string, requestAdapter return NewItemOutlookTaskFoldersCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTaskFoldersCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOutlookTaskFoldersCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -61,7 +61,7 @@ func (m *ItemOutlookTaskFoldersCountRequestBuilder) Get(ctx context.Context, req return res.(*int32), nil } // ToGetRequestInformation get the number of the resource -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTaskFoldersCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookTaskFoldersCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -76,7 +76,7 @@ func (m *ItemOutlookTaskFoldersCountRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookTaskFoldersCountRequestBuilder when successful func (m *ItemOutlookTaskFoldersCountRequestBuilder) WithUrl(rawUrl string)(*ItemOutlookTaskFoldersCountRequestBuilder) { return NewItemOutlookTaskFoldersCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_outlook_task_folders_item_permanent_delete_request_builder.go b/users/item_outlook_task_folders_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..ae557b0626c --- /dev/null +++ b/users/item_outlook_task_folders_item_permanent_delete_request_builder.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemOutlookTaskFoldersItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemOutlookTaskFoldersItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemOutlookTaskFoldersItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemOutlookTaskFoldersItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemOutlookTaskFoldersItemPermanentDeleteRequestBuilderInternal instantiates a new ItemOutlookTaskFoldersItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemOutlookTaskFoldersItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemOutlookTaskFoldersItemPermanentDeleteRequestBuilder) { + m := &ItemOutlookTaskFoldersItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/outlook/taskFolders/{outlookTaskFolder%2Did}/permanentDelete", pathParameters), + } + return m +} +// NewItemOutlookTaskFoldersItemPermanentDeleteRequestBuilder instantiates a new ItemOutlookTaskFoldersItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemOutlookTaskFoldersItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemOutlookTaskFoldersItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemOutlookTaskFoldersItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an outlook task folder and remove its items from the user's mailbox. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/outlooktaskfolder-permanentdelete?view=graph-rest-beta +func (m *ItemOutlookTaskFoldersItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemOutlookTaskFoldersItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an outlook task folder and remove its items from the user's mailbox. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemOutlookTaskFoldersItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookTaskFoldersItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemOutlookTaskFoldersItemPermanentDeleteRequestBuilder when successful +func (m *ItemOutlookTaskFoldersItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemOutlookTaskFoldersItemPermanentDeleteRequestBuilder) { + return NewItemOutlookTaskFoldersItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_outlook_task_folders_item_tasks_count_request_builder.go b/users/item_outlook_task_folders_item_tasks_count_request_builder.go index f37fee1f7c9..cdcd622ebd5 100644 --- a/users/item_outlook_task_folders_item_tasks_count_request_builder.go +++ b/users/item_outlook_task_folders_item_tasks_count_request_builder.go @@ -40,7 +40,7 @@ func NewItemOutlookTaskFoldersItemTasksCountRequestBuilder(rawUrl string, reques return NewItemOutlookTaskFoldersItemTasksCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTaskFoldersItemTasksCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOutlookTaskFoldersItemTasksCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -61,7 +61,7 @@ func (m *ItemOutlookTaskFoldersItemTasksCountRequestBuilder) Get(ctx context.Con return res.(*int32), nil } // ToGetRequestInformation get the number of the resource -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTaskFoldersItemTasksCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookTaskFoldersItemTasksCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -76,7 +76,7 @@ func (m *ItemOutlookTaskFoldersItemTasksCountRequestBuilder) ToGetRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookTaskFoldersItemTasksCountRequestBuilder when successful func (m *ItemOutlookTaskFoldersItemTasksCountRequestBuilder) WithUrl(rawUrl string)(*ItemOutlookTaskFoldersItemTasksCountRequestBuilder) { return NewItemOutlookTaskFoldersItemTasksCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_outlook_task_folders_item_tasks_item_attachments_attachment_item_request_builder.go b/users/item_outlook_task_folders_item_tasks_item_attachments_attachment_item_request_builder.go index ca1fabd6e30..90faddb782f 100644 --- a/users/item_outlook_task_folders_item_tasks_item_attachments_attachment_item_request_builder.go +++ b/users/item_outlook_task_folders_item_tasks_item_attachments_attachment_item_request_builder.go @@ -18,7 +18,7 @@ type ItemOutlookTaskFoldersItemTasksItemAttachmentsAttachmentItemRequestBuilderD // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemOutlookTaskFoldersItemTasksItemAttachmentsAttachmentItemRequestBuilderGetQueryParameters the collection of fileAttachment, itemAttachment, and referenceAttachment attachments for the task. Read-only. Nullable. +// ItemOutlookTaskFoldersItemTasksItemAttachmentsAttachmentItemRequestBuilderGetQueryParameters the collection of fileAttachment, itemAttachment, and referenceAttachment attachments for the task. Read-only. Nullable. type ItemOutlookTaskFoldersItemTasksItemAttachmentsAttachmentItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -48,7 +48,7 @@ func NewItemOutlookTaskFoldersItemTasksItemAttachmentsAttachmentItemRequestBuild return NewItemOutlookTaskFoldersItemTasksItemAttachmentsAttachmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attachments for users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTaskFoldersItemTasksItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOutlookTaskFoldersItemTasksItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,8 +64,8 @@ func (m *ItemOutlookTaskFoldersItemTasksItemAttachmentsAttachmentItemRequestBuil } return nil } -// Get the collection of fileAttachment, itemAttachment, and referenceAttachment attachments for the task. Read-only. Nullable. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Get the collection of fileAttachment, itemAttachment, and referenceAttachment attachments for the task. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTaskFoldersItemTasksItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOutlookTaskFoldersItemTasksItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -86,7 +86,7 @@ func (m *ItemOutlookTaskFoldersItemTasksItemAttachmentsAttachmentItemRequestBuil return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToDeleteRequestInformation delete navigation property attachments for users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTaskFoldersItemTasksItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookTaskFoldersItemTasksItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -97,8 +97,8 @@ func (m *ItemOutlookTaskFoldersItemTasksItemAttachmentsAttachmentItemRequestBuil requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the collection of fileAttachment, itemAttachment, and referenceAttachment attachments for the task. Read-only. Nullable. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// ToGetRequestInformation the collection of fileAttachment, itemAttachment, and referenceAttachment attachments for the task. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTaskFoldersItemTasksItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookTaskFoldersItemTasksItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,7 +113,7 @@ func (m *ItemOutlookTaskFoldersItemTasksItemAttachmentsAttachmentItemRequestBuil return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookTaskFoldersItemTasksItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemOutlookTaskFoldersItemTasksItemAttachmentsAttachmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemOutlookTaskFoldersItemTasksItemAttachmentsAttachmentItemRequestBuilder) { return NewItemOutlookTaskFoldersItemTasksItemAttachmentsAttachmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_outlook_task_folders_item_tasks_item_attachments_count_request_builder.go b/users/item_outlook_task_folders_item_tasks_item_attachments_count_request_builder.go index 7df30665b75..73e5b52af3e 100644 --- a/users/item_outlook_task_folders_item_tasks_item_attachments_count_request_builder.go +++ b/users/item_outlook_task_folders_item_tasks_item_attachments_count_request_builder.go @@ -40,7 +40,7 @@ func NewItemOutlookTaskFoldersItemTasksItemAttachmentsCountRequestBuilder(rawUrl return NewItemOutlookTaskFoldersItemTasksItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTaskFoldersItemTasksItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOutlookTaskFoldersItemTasksItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -61,7 +61,7 @@ func (m *ItemOutlookTaskFoldersItemTasksItemAttachmentsCountRequestBuilder) Get( return res.(*int32), nil } // ToGetRequestInformation get the number of the resource -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTaskFoldersItemTasksItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookTaskFoldersItemTasksItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -76,7 +76,7 @@ func (m *ItemOutlookTaskFoldersItemTasksItemAttachmentsCountRequestBuilder) ToGe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookTaskFoldersItemTasksItemAttachmentsCountRequestBuilder when successful func (m *ItemOutlookTaskFoldersItemTasksItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemOutlookTaskFoldersItemTasksItemAttachmentsCountRequestBuilder) { return NewItemOutlookTaskFoldersItemTasksItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_outlook_task_folders_item_tasks_item_attachments_create_upload_session_request_builder.go b/users/item_outlook_task_folders_item_tasks_item_attachments_create_upload_session_request_builder.go index eaa714b80cd..42f1a42ee18 100644 --- a/users/item_outlook_task_folders_item_tasks_item_attachments_create_upload_session_request_builder.go +++ b/users/item_outlook_task_folders_item_tasks_item_attachments_create_upload_session_request_builder.go @@ -32,7 +32,7 @@ func NewItemOutlookTaskFoldersItemTasksItemAttachmentsCreateUploadSessionRequest return NewItemOutlookTaskFoldersItemTasksItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -56,7 +56,7 @@ func (m *ItemOutlookTaskFoldersItemTasksItemAttachmentsCreateUploadSessionReques return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTaskFoldersItemTasksItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemOutlookTaskFoldersItemTasksItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemOutlookTaskFoldersItemTasksItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -72,7 +72,7 @@ func (m *ItemOutlookTaskFoldersItemTasksItemAttachmentsCreateUploadSessionReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookTaskFoldersItemTasksItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemOutlookTaskFoldersItemTasksItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemOutlookTaskFoldersItemTasksItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemOutlookTaskFoldersItemTasksItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_outlook_task_folders_item_tasks_item_attachments_request_builder.go b/users/item_outlook_task_folders_item_tasks_item_attachments_request_builder.go index 1e80222cb5f..3c8ac539f24 100644 --- a/users/item_outlook_task_folders_item_tasks_item_attachments_request_builder.go +++ b/users/item_outlook_task_folders_item_tasks_item_attachments_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemOutlookTaskFoldersItemTasksItemAttachmentsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemOutlookTaskFoldersItemTasksItemAttachmentsRequestBuilderGetQueryParameters the collection of fileAttachment, itemAttachment, and referenceAttachment attachments for the task. Read-only. Nullable. +// ItemOutlookTaskFoldersItemTasksItemAttachmentsRequestBuilderGetQueryParameters the collection of fileAttachment, itemAttachment, and referenceAttachment attachments for the task. Read-only. Nullable. type ItemOutlookTaskFoldersItemTasksItemAttachmentsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -47,7 +47,7 @@ type ItemOutlookTaskFoldersItemTasksItemAttachmentsRequestBuilderPostRequestConf Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentId provides operations to manage the attachments property of the microsoft.graph.outlookTask entity. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookTaskFoldersItemTasksItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemOutlookTaskFoldersItemTasksItemAttachmentsRequestBuilder) ByAttachmentId(attachmentId string)(*ItemOutlookTaskFoldersItemTasksItemAttachmentsAttachmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,8 +82,8 @@ func (m *ItemOutlookTaskFoldersItemTasksItemAttachmentsRequestBuilder) Count()(* func (m *ItemOutlookTaskFoldersItemTasksItemAttachmentsRequestBuilder) CreateUploadSession()(*ItemOutlookTaskFoldersItemTasksItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemOutlookTaskFoldersItemTasksItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the collection of fileAttachment, itemAttachment, and referenceAttachment attachments for the task. Read-only. Nullable. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Get the collection of fileAttachment, itemAttachment, and referenceAttachment attachments for the task. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTaskFoldersItemTasksItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOutlookTaskFoldersItemTasksItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { @@ -104,7 +104,7 @@ func (m *ItemOutlookTaskFoldersItemTasksItemAttachmentsRequestBuilder) Get(ctx c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } // Post create new navigation property to attachments for users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTaskFoldersItemTasksItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemOutlookTaskFoldersItemTasksItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -124,8 +124,8 @@ func (m *ItemOutlookTaskFoldersItemTasksItemAttachmentsRequestBuilder) Post(ctx } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } -// ToGetRequestInformation the collection of fileAttachment, itemAttachment, and referenceAttachment attachments for the task. Read-only. Nullable. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// ToGetRequestInformation the collection of fileAttachment, itemAttachment, and referenceAttachment attachments for the task. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTaskFoldersItemTasksItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookTaskFoldersItemTasksItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -140,7 +140,7 @@ func (m *ItemOutlookTaskFoldersItemTasksItemAttachmentsRequestBuilder) ToGetRequ return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTaskFoldersItemTasksItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemOutlookTaskFoldersItemTasksItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,7 +156,7 @@ func (m *ItemOutlookTaskFoldersItemTasksItemAttachmentsRequestBuilder) ToPostReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookTaskFoldersItemTasksItemAttachmentsRequestBuilder when successful func (m *ItemOutlookTaskFoldersItemTasksItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemOutlookTaskFoldersItemTasksItemAttachmentsRequestBuilder) { return NewItemOutlookTaskFoldersItemTasksItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_outlook_task_folders_item_tasks_item_complete_request_builder.go b/users/item_outlook_task_folders_item_tasks_item_complete_request_builder.go index c44c441c2f3..f50a178b0e0 100644 --- a/users/item_outlook_task_folders_item_tasks_item_complete_request_builder.go +++ b/users/item_outlook_task_folders_item_tasks_item_complete_request_builder.go @@ -55,7 +55,7 @@ func (m *ItemOutlookTaskFoldersItemTasksItemCompleteRequestBuilder) Post(ctx con return res.(ItemOutlookTaskFoldersItemTasksItemCompleteResponseable), nil } // PostAsCompletePostResponse complete an Outlook task which sets the completedDateTime property to the current date, and the status property to completed. If you are completing a task in a recurring series, in the response, the task collection will contain the completed task in the series, and the next task in the series. The completedDateTime property represents the date when the task is finished. The time portion of completedDateTime is set to midnight UTC by default. By default, this operation (and the POST, GET, and PATCH task operations) returns date-related properties in UTC. You can use the Prefer: outlook.timezone header to have all the date-related properties in the response represented in a time zone different than UTC. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemOutlookTaskFoldersItemTasksItemCompletePostResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -79,7 +79,7 @@ func (m *ItemOutlookTaskFoldersItemTasksItemCompleteRequestBuilder) PostAsComple return res.(ItemOutlookTaskFoldersItemTasksItemCompletePostResponseable), nil } // ToPostRequestInformation complete an Outlook task which sets the completedDateTime property to the current date, and the status property to completed. If you are completing a task in a recurring series, in the response, the task collection will contain the completed task in the series, and the next task in the series. The completedDateTime property represents the date when the task is finished. The time portion of completedDateTime is set to midnight UTC by default. By default, this operation (and the POST, GET, and PATCH task operations) returns date-related properties in UTC. You can use the Prefer: outlook.timezone header to have all the date-related properties in the response represented in a time zone different than UTC. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTaskFoldersItemTasksItemCompleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookTaskFoldersItemTasksItemCompleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -91,7 +91,7 @@ func (m *ItemOutlookTaskFoldersItemTasksItemCompleteRequestBuilder) ToPostReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookTaskFoldersItemTasksItemCompleteRequestBuilder when successful func (m *ItemOutlookTaskFoldersItemTasksItemCompleteRequestBuilder) WithUrl(rawUrl string)(*ItemOutlookTaskFoldersItemTasksItemCompleteRequestBuilder) { return NewItemOutlookTaskFoldersItemTasksItemCompleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_outlook_task_folders_item_tasks_item_permanent_delete_request_builder.go b/users/item_outlook_task_folders_item_tasks_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..46ad7e07e19 --- /dev/null +++ b/users/item_outlook_task_folders_item_tasks_item_permanent_delete_request_builder.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemOutlookTaskFoldersItemTasksItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemOutlookTaskFoldersItemTasksItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemOutlookTaskFoldersItemTasksItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemOutlookTaskFoldersItemTasksItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemOutlookTaskFoldersItemTasksItemPermanentDeleteRequestBuilderInternal instantiates a new ItemOutlookTaskFoldersItemTasksItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemOutlookTaskFoldersItemTasksItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemOutlookTaskFoldersItemTasksItemPermanentDeleteRequestBuilder) { + m := &ItemOutlookTaskFoldersItemTasksItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/outlook/taskFolders/{outlookTaskFolder%2Did}/tasks/{outlookTask%2Did}/permanentDelete", pathParameters), + } + return m +} +// NewItemOutlookTaskFoldersItemTasksItemPermanentDeleteRequestBuilder instantiates a new ItemOutlookTaskFoldersItemTasksItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemOutlookTaskFoldersItemTasksItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemOutlookTaskFoldersItemTasksItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemOutlookTaskFoldersItemTasksItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an Outlook task and place it in the Purges folder in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/outlooktask-permanentdelete?view=graph-rest-beta +func (m *ItemOutlookTaskFoldersItemTasksItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemOutlookTaskFoldersItemTasksItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an Outlook task and place it in the Purges folder in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemOutlookTaskFoldersItemTasksItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookTaskFoldersItemTasksItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemOutlookTaskFoldersItemTasksItemPermanentDeleteRequestBuilder when successful +func (m *ItemOutlookTaskFoldersItemTasksItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemOutlookTaskFoldersItemTasksItemPermanentDeleteRequestBuilder) { + return NewItemOutlookTaskFoldersItemTasksItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_outlook_task_folders_item_tasks_outlook_task_item_request_builder.go b/users/item_outlook_task_folders_item_tasks_outlook_task_item_request_builder.go index cf4ee252b9a..f185de654db 100644 --- a/users/item_outlook_task_folders_item_tasks_outlook_task_item_request_builder.go +++ b/users/item_outlook_task_folders_item_tasks_outlook_task_item_request_builder.go @@ -65,7 +65,7 @@ func NewItemOutlookTaskFoldersItemTasksOutlookTaskItemRequestBuilder(rawUrl stri return NewItemOutlookTaskFoldersItemTasksOutlookTaskItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property tasks for users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTaskFoldersItemTasksOutlookTaskItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOutlookTaskFoldersItemTasksOutlookTaskItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -82,7 +82,7 @@ func (m *ItemOutlookTaskFoldersItemTasksOutlookTaskItemRequestBuilder) Delete(ct return nil } // Get the tasks in this task folder. Read-only. Nullable. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OutlookTaskable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTaskFoldersItemTasksOutlookTaskItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOutlookTaskFoldersItemTasksOutlookTaskItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskable, error) { @@ -103,7 +103,7 @@ func (m *ItemOutlookTaskFoldersItemTasksOutlookTaskItemRequestBuilder) Get(ctx c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskable), nil } // Patch update the navigation property tasks in users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OutlookTaskable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTaskFoldersItemTasksOutlookTaskItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskable, requestConfiguration *ItemOutlookTaskFoldersItemTasksOutlookTaskItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskable, error) { @@ -123,8 +123,13 @@ func (m *ItemOutlookTaskFoldersItemTasksOutlookTaskItemRequestBuilder) Patch(ctx } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemOutlookTaskFoldersItemTasksItemPermanentDeleteRequestBuilder when successful +func (m *ItemOutlookTaskFoldersItemTasksOutlookTaskItemRequestBuilder) PermanentDelete()(*ItemOutlookTaskFoldersItemTasksItemPermanentDeleteRequestBuilder) { + return NewItemOutlookTaskFoldersItemTasksItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToDeleteRequestInformation delete navigation property tasks for users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTaskFoldersItemTasksOutlookTaskItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookTaskFoldersItemTasksOutlookTaskItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,7 +141,7 @@ func (m *ItemOutlookTaskFoldersItemTasksOutlookTaskItemRequestBuilder) ToDeleteR return requestInfo, nil } // ToGetRequestInformation the tasks in this task folder. Read-only. Nullable. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTaskFoldersItemTasksOutlookTaskItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookTaskFoldersItemTasksOutlookTaskItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,7 +156,7 @@ func (m *ItemOutlookTaskFoldersItemTasksOutlookTaskItemRequestBuilder) ToGetRequ return requestInfo, nil } // ToPatchRequestInformation update the navigation property tasks in users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTaskFoldersItemTasksOutlookTaskItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskable, requestConfiguration *ItemOutlookTaskFoldersItemTasksOutlookTaskItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -167,7 +172,7 @@ func (m *ItemOutlookTaskFoldersItemTasksOutlookTaskItemRequestBuilder) ToPatchRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookTaskFoldersItemTasksOutlookTaskItemRequestBuilder when successful func (m *ItemOutlookTaskFoldersItemTasksOutlookTaskItemRequestBuilder) WithUrl(rawUrl string)(*ItemOutlookTaskFoldersItemTasksOutlookTaskItemRequestBuilder) { return NewItemOutlookTaskFoldersItemTasksOutlookTaskItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_outlook_task_folders_item_tasks_request_builder.go b/users/item_outlook_task_folders_item_tasks_request_builder.go index 055e5326951..2dd26861b1a 100644 --- a/users/item_outlook_task_folders_item_tasks_request_builder.go +++ b/users/item_outlook_task_folders_item_tasks_request_builder.go @@ -47,7 +47,7 @@ type ItemOutlookTaskFoldersItemTasksRequestBuilderPostRequestConfiguration struc Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByOutlookTaskId provides operations to manage the tasks property of the microsoft.graph.outlookTaskFolder entity. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookTaskFoldersItemTasksOutlookTaskItemRequestBuilder when successful func (m *ItemOutlookTaskFoldersItemTasksRequestBuilder) ByOutlookTaskId(outlookTaskId string)(*ItemOutlookTaskFoldersItemTasksOutlookTaskItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -78,7 +78,7 @@ func (m *ItemOutlookTaskFoldersItemTasksRequestBuilder) Count()(*ItemOutlookTask return NewItemOutlookTaskFoldersItemTasksCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the tasks in this task folder. Read-only. Nullable. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OutlookTaskCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTaskFoldersItemTasksRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOutlookTaskFoldersItemTasksRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskCollectionResponseable, error) { @@ -99,7 +99,7 @@ func (m *ItemOutlookTaskFoldersItemTasksRequestBuilder) Get(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskCollectionResponseable), nil } // Post create new navigation property to tasks for users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OutlookTaskable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTaskFoldersItemTasksRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskable, requestConfiguration *ItemOutlookTaskFoldersItemTasksRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskable, error) { @@ -120,7 +120,7 @@ func (m *ItemOutlookTaskFoldersItemTasksRequestBuilder) Post(ctx context.Context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskable), nil } // ToGetRequestInformation the tasks in this task folder. Read-only. Nullable. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTaskFoldersItemTasksRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookTaskFoldersItemTasksRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -135,7 +135,7 @@ func (m *ItemOutlookTaskFoldersItemTasksRequestBuilder) ToGetRequestInformation( return requestInfo, nil } // ToPostRequestInformation create new navigation property to tasks for users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTaskFoldersItemTasksRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskable, requestConfiguration *ItemOutlookTaskFoldersItemTasksRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,7 +151,7 @@ func (m *ItemOutlookTaskFoldersItemTasksRequestBuilder) ToPostRequestInformation return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookTaskFoldersItemTasksRequestBuilder when successful func (m *ItemOutlookTaskFoldersItemTasksRequestBuilder) WithUrl(rawUrl string)(*ItemOutlookTaskFoldersItemTasksRequestBuilder) { return NewItemOutlookTaskFoldersItemTasksRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_outlook_task_folders_outlook_task_folder_item_request_builder.go b/users/item_outlook_task_folders_outlook_task_folder_item_request_builder.go index f067cff436f..2dda709ea54 100644 --- a/users/item_outlook_task_folders_outlook_task_folder_item_request_builder.go +++ b/users/item_outlook_task_folders_outlook_task_folder_item_request_builder.go @@ -55,7 +55,7 @@ func NewItemOutlookTaskFoldersOutlookTaskFolderItemRequestBuilder(rawUrl string, return NewItemOutlookTaskFoldersOutlookTaskFolderItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property taskFolders for users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTaskFoldersOutlookTaskFolderItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOutlookTaskFoldersOutlookTaskFolderItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -72,7 +72,7 @@ func (m *ItemOutlookTaskFoldersOutlookTaskFolderItemRequestBuilder) Delete(ctx c return nil } // Get the user's Outlook task folders. Read-only. Nullable. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OutlookTaskFolderable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTaskFoldersOutlookTaskFolderItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOutlookTaskFoldersOutlookTaskFolderItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskFolderable, error) { @@ -93,7 +93,7 @@ func (m *ItemOutlookTaskFoldersOutlookTaskFolderItemRequestBuilder) Get(ctx cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskFolderable), nil } // Patch update the navigation property taskFolders in users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OutlookTaskFolderable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTaskFoldersOutlookTaskFolderItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskFolderable, requestConfiguration *ItemOutlookTaskFoldersOutlookTaskFolderItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskFolderable, error) { @@ -113,13 +113,18 @@ func (m *ItemOutlookTaskFoldersOutlookTaskFolderItemRequestBuilder) Patch(ctx co } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskFolderable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemOutlookTaskFoldersItemPermanentDeleteRequestBuilder when successful +func (m *ItemOutlookTaskFoldersOutlookTaskFolderItemRequestBuilder) PermanentDelete()(*ItemOutlookTaskFoldersItemPermanentDeleteRequestBuilder) { + return NewItemOutlookTaskFoldersItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Tasks provides operations to manage the tasks property of the microsoft.graph.outlookTaskFolder entity. // returns a *ItemOutlookTaskFoldersItemTasksRequestBuilder when successful func (m *ItemOutlookTaskFoldersOutlookTaskFolderItemRequestBuilder) Tasks()(*ItemOutlookTaskFoldersItemTasksRequestBuilder) { return NewItemOutlookTaskFoldersItemTasksRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property taskFolders for users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTaskFoldersOutlookTaskFolderItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookTaskFoldersOutlookTaskFolderItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,7 +136,7 @@ func (m *ItemOutlookTaskFoldersOutlookTaskFolderItemRequestBuilder) ToDeleteRequ return requestInfo, nil } // ToGetRequestInformation the user's Outlook task folders. Read-only. Nullable. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTaskFoldersOutlookTaskFolderItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookTaskFoldersOutlookTaskFolderItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,7 +151,7 @@ func (m *ItemOutlookTaskFoldersOutlookTaskFolderItemRequestBuilder) ToGetRequest return requestInfo, nil } // ToPatchRequestInformation update the navigation property taskFolders in users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTaskFoldersOutlookTaskFolderItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskFolderable, requestConfiguration *ItemOutlookTaskFoldersOutlookTaskFolderItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -162,7 +167,7 @@ func (m *ItemOutlookTaskFoldersOutlookTaskFolderItemRequestBuilder) ToPatchReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookTaskFoldersOutlookTaskFolderItemRequestBuilder when successful func (m *ItemOutlookTaskFoldersOutlookTaskFolderItemRequestBuilder) WithUrl(rawUrl string)(*ItemOutlookTaskFoldersOutlookTaskFolderItemRequestBuilder) { return NewItemOutlookTaskFoldersOutlookTaskFolderItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_outlook_task_folders_request_builder.go b/users/item_outlook_task_folders_request_builder.go index 9cd51e5d6a2..ae6f2c91104 100644 --- a/users/item_outlook_task_folders_request_builder.go +++ b/users/item_outlook_task_folders_request_builder.go @@ -47,7 +47,7 @@ type ItemOutlookTaskFoldersRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByOutlookTaskFolderId provides operations to manage the taskFolders property of the microsoft.graph.outlookUser entity. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookTaskFoldersOutlookTaskFolderItemRequestBuilder when successful func (m *ItemOutlookTaskFoldersRequestBuilder) ByOutlookTaskFolderId(outlookTaskFolderId string)(*ItemOutlookTaskFoldersOutlookTaskFolderItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -78,7 +78,7 @@ func (m *ItemOutlookTaskFoldersRequestBuilder) Count()(*ItemOutlookTaskFoldersCo return NewItemOutlookTaskFoldersCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the user's Outlook task folders. Read-only. Nullable. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OutlookTaskFolderCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTaskFoldersRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOutlookTaskFoldersRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskFolderCollectionResponseable, error) { @@ -99,7 +99,7 @@ func (m *ItemOutlookTaskFoldersRequestBuilder) Get(ctx context.Context, requestC return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskFolderCollectionResponseable), nil } // Post create new navigation property to taskFolders for users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OutlookTaskFolderable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTaskFoldersRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskFolderable, requestConfiguration *ItemOutlookTaskFoldersRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskFolderable, error) { @@ -120,7 +120,7 @@ func (m *ItemOutlookTaskFoldersRequestBuilder) Post(ctx context.Context, body ie return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskFolderable), nil } // ToGetRequestInformation the user's Outlook task folders. Read-only. Nullable. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTaskFoldersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookTaskFoldersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -135,7 +135,7 @@ func (m *ItemOutlookTaskFoldersRequestBuilder) ToGetRequestInformation(ctx conte return requestInfo, nil } // ToPostRequestInformation create new navigation property to taskFolders for users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTaskFoldersRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskFolderable, requestConfiguration *ItemOutlookTaskFoldersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,7 +151,7 @@ func (m *ItemOutlookTaskFoldersRequestBuilder) ToPostRequestInformation(ctx cont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookTaskFoldersRequestBuilder when successful func (m *ItemOutlookTaskFoldersRequestBuilder) WithUrl(rawUrl string)(*ItemOutlookTaskFoldersRequestBuilder) { return NewItemOutlookTaskFoldersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_outlook_task_groups_count_request_builder.go b/users/item_outlook_task_groups_count_request_builder.go index 085f322a86d..8ff7a1ba989 100644 --- a/users/item_outlook_task_groups_count_request_builder.go +++ b/users/item_outlook_task_groups_count_request_builder.go @@ -40,7 +40,7 @@ func NewItemOutlookTaskGroupsCountRequestBuilder(rawUrl string, requestAdapter i return NewItemOutlookTaskGroupsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTaskGroupsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOutlookTaskGroupsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -61,7 +61,7 @@ func (m *ItemOutlookTaskGroupsCountRequestBuilder) Get(ctx context.Context, requ return res.(*int32), nil } // ToGetRequestInformation get the number of the resource -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTaskGroupsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookTaskGroupsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -76,7 +76,7 @@ func (m *ItemOutlookTaskGroupsCountRequestBuilder) ToGetRequestInformation(ctx c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookTaskGroupsCountRequestBuilder when successful func (m *ItemOutlookTaskGroupsCountRequestBuilder) WithUrl(rawUrl string)(*ItemOutlookTaskGroupsCountRequestBuilder) { return NewItemOutlookTaskGroupsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_outlook_task_groups_item_task_folders_count_request_builder.go b/users/item_outlook_task_groups_item_task_folders_count_request_builder.go index 1d8420c2541..4c6ac4369ed 100644 --- a/users/item_outlook_task_groups_item_task_folders_count_request_builder.go +++ b/users/item_outlook_task_groups_item_task_folders_count_request_builder.go @@ -40,7 +40,7 @@ func NewItemOutlookTaskGroupsItemTaskFoldersCountRequestBuilder(rawUrl string, r return NewItemOutlookTaskGroupsItemTaskFoldersCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTaskGroupsItemTaskFoldersCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOutlookTaskGroupsItemTaskFoldersCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -61,7 +61,7 @@ func (m *ItemOutlookTaskGroupsItemTaskFoldersCountRequestBuilder) Get(ctx contex return res.(*int32), nil } // ToGetRequestInformation get the number of the resource -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTaskGroupsItemTaskFoldersCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookTaskGroupsItemTaskFoldersCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -76,7 +76,7 @@ func (m *ItemOutlookTaskGroupsItemTaskFoldersCountRequestBuilder) ToGetRequestIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookTaskGroupsItemTaskFoldersCountRequestBuilder when successful func (m *ItemOutlookTaskGroupsItemTaskFoldersCountRequestBuilder) WithUrl(rawUrl string)(*ItemOutlookTaskGroupsItemTaskFoldersCountRequestBuilder) { return NewItemOutlookTaskGroupsItemTaskFoldersCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_outlook_task_groups_item_task_folders_item_permanent_delete_request_builder.go b/users/item_outlook_task_groups_item_task_folders_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..5f82bb201ce --- /dev/null +++ b/users/item_outlook_task_groups_item_task_folders_item_permanent_delete_request_builder.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemOutlookTaskGroupsItemTaskFoldersItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemOutlookTaskGroupsItemTaskFoldersItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemOutlookTaskGroupsItemTaskFoldersItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemOutlookTaskGroupsItemTaskFoldersItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemOutlookTaskGroupsItemTaskFoldersItemPermanentDeleteRequestBuilderInternal instantiates a new ItemOutlookTaskGroupsItemTaskFoldersItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemOutlookTaskGroupsItemTaskFoldersItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemOutlookTaskGroupsItemTaskFoldersItemPermanentDeleteRequestBuilder) { + m := &ItemOutlookTaskGroupsItemTaskFoldersItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/outlook/taskGroups/{outlookTaskGroup%2Did}/taskFolders/{outlookTaskFolder%2Did}/permanentDelete", pathParameters), + } + return m +} +// NewItemOutlookTaskGroupsItemTaskFoldersItemPermanentDeleteRequestBuilder instantiates a new ItemOutlookTaskGroupsItemTaskFoldersItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemOutlookTaskGroupsItemTaskFoldersItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemOutlookTaskGroupsItemTaskFoldersItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemOutlookTaskGroupsItemTaskFoldersItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an outlook task folder and remove its items from the user's mailbox. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/outlooktaskfolder-permanentdelete?view=graph-rest-beta +func (m *ItemOutlookTaskGroupsItemTaskFoldersItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemOutlookTaskGroupsItemTaskFoldersItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an outlook task folder and remove its items from the user's mailbox. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemOutlookTaskGroupsItemTaskFoldersItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookTaskGroupsItemTaskFoldersItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemOutlookTaskGroupsItemTaskFoldersItemPermanentDeleteRequestBuilder when successful +func (m *ItemOutlookTaskGroupsItemTaskFoldersItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemOutlookTaskGroupsItemTaskFoldersItemPermanentDeleteRequestBuilder) { + return NewItemOutlookTaskGroupsItemTaskFoldersItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_outlook_task_groups_item_task_folders_item_tasks_count_request_builder.go b/users/item_outlook_task_groups_item_task_folders_item_tasks_count_request_builder.go index 098aacb7532..a44aaad16db 100644 --- a/users/item_outlook_task_groups_item_task_folders_item_tasks_count_request_builder.go +++ b/users/item_outlook_task_groups_item_task_folders_item_tasks_count_request_builder.go @@ -40,7 +40,7 @@ func NewItemOutlookTaskGroupsItemTaskFoldersItemTasksCountRequestBuilder(rawUrl return NewItemOutlookTaskGroupsItemTaskFoldersItemTasksCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOutlookTaskGroupsItemTaskFoldersItemTasksCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -61,7 +61,7 @@ func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksCountRequestBuilder) Get(c return res.(*int32), nil } // ToGetRequestInformation get the number of the resource -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookTaskGroupsItemTaskFoldersItemTasksCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -76,7 +76,7 @@ func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksCountRequestBuilder) ToGet return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookTaskGroupsItemTaskFoldersItemTasksCountRequestBuilder when successful func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksCountRequestBuilder) WithUrl(rawUrl string)(*ItemOutlookTaskGroupsItemTaskFoldersItemTasksCountRequestBuilder) { return NewItemOutlookTaskGroupsItemTaskFoldersItemTasksCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_outlook_task_groups_item_task_folders_item_tasks_item_attachments_count_request_builder.go b/users/item_outlook_task_groups_item_task_folders_item_tasks_item_attachments_count_request_builder.go index 3a447ae3e2d..889b741438e 100644 --- a/users/item_outlook_task_groups_item_task_folders_item_tasks_item_attachments_count_request_builder.go +++ b/users/item_outlook_task_groups_item_task_folders_item_tasks_item_attachments_count_request_builder.go @@ -40,7 +40,7 @@ func NewItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsCountRequest return NewItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -61,7 +61,7 @@ func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsCountReques return res.(*int32), nil } // ToGetRequestInformation get the number of the resource -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -76,7 +76,7 @@ func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsCountReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsCountRequestBuilder when successful func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsCountRequestBuilder) { return NewItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_outlook_task_groups_item_task_folders_item_tasks_item_attachments_request_builder.go b/users/item_outlook_task_groups_item_task_folders_item_tasks_item_attachments_request_builder.go index b4a8bb91428..04eac0c784d 100644 --- a/users/item_outlook_task_groups_item_task_folders_item_tasks_item_attachments_request_builder.go +++ b/users/item_outlook_task_groups_item_task_folders_item_tasks_item_attachments_request_builder.go @@ -11,7 +11,7 @@ import ( type ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsRequestBuilderGetQueryParameters the collection of fileAttachment, itemAttachment, and referenceAttachment attachments for the task. Read-only. Nullable. +// ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsRequestBuilderGetQueryParameters the collection of fileAttachment, itemAttachment, and referenceAttachment attachments for the task. Read-only. Nullable. type ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsRequestBuilderGetQueryParameters struct { // Include count of items Count *bool `uriparametername:"%24count"` @@ -47,7 +47,7 @@ type ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsRequestBuilderP Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentId provides operations to manage the attachments property of the microsoft.graph.outlookTask entity. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsRequestBuilder) ByAttachmentId(attachmentId string)(*ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsAttachmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,8 +82,8 @@ func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsRequestBuil func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsRequestBuilder) CreateUploadSession()(*ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get the collection of fileAttachment, itemAttachment, and referenceAttachment attachments for the task. Read-only. Nullable. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Get the collection of fileAttachment, itemAttachment, and referenceAttachment attachments for the task. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable, error) { @@ -104,7 +104,7 @@ func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsRequestBuil return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } // Post create new navigation property to attachments for users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -124,8 +124,8 @@ func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsRequestBuil } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } -// ToGetRequestInformation the collection of fileAttachment, itemAttachment, and referenceAttachment attachments for the task. Read-only. Nullable. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// ToGetRequestInformation the collection of fileAttachment, itemAttachment, and referenceAttachment attachments for the task. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -140,7 +140,7 @@ func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsRequestBuil return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,7 +156,7 @@ func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsRequestBuil return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsRequestBuilder when successful func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsRequestBuilder) { return NewItemOutlookTaskGroupsItemTaskFoldersItemTasksItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_outlook_task_groups_item_task_folders_item_tasks_item_complete_request_builder.go b/users/item_outlook_task_groups_item_task_folders_item_tasks_item_complete_request_builder.go index 66b5e7f3720..274b27179e4 100644 --- a/users/item_outlook_task_groups_item_task_folders_item_tasks_item_complete_request_builder.go +++ b/users/item_outlook_task_groups_item_task_folders_item_tasks_item_complete_request_builder.go @@ -55,7 +55,7 @@ func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemCompleteRequestBuilder return res.(ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemCompleteResponseable), nil } // PostAsCompletePostResponse complete an Outlook task which sets the completedDateTime property to the current date, and the status property to completed. If you are completing a task in a recurring series, in the response, the task collection will contain the completed task in the series, and the next task in the series. The completedDateTime property represents the date when the task is finished. The time portion of completedDateTime is set to midnight UTC by default. By default, this operation (and the POST, GET, and PATCH task operations) returns date-related properties in UTC. You can use the Prefer: outlook.timezone header to have all the date-related properties in the response represented in a time zone different than UTC. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemCompletePostResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -79,7 +79,7 @@ func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemCompleteRequestBuilder return res.(ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemCompletePostResponseable), nil } // ToPostRequestInformation complete an Outlook task which sets the completedDateTime property to the current date, and the status property to completed. If you are completing a task in a recurring series, in the response, the task collection will contain the completed task in the series, and the next task in the series. The completedDateTime property represents the date when the task is finished. The time portion of completedDateTime is set to midnight UTC by default. By default, this operation (and the POST, GET, and PATCH task operations) returns date-related properties in UTC. You can use the Prefer: outlook.timezone header to have all the date-related properties in the response represented in a time zone different than UTC. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemCompleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemCompleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -91,7 +91,7 @@ func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemCompleteRequestBuilder return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemCompleteRequestBuilder when successful func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemCompleteRequestBuilder) WithUrl(rawUrl string)(*ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemCompleteRequestBuilder) { return NewItemOutlookTaskGroupsItemTaskFoldersItemTasksItemCompleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_outlook_task_groups_item_task_folders_item_tasks_item_permanent_delete_request_builder.go b/users/item_outlook_task_groups_item_task_folders_item_tasks_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..478b7d0fcb3 --- /dev/null +++ b/users/item_outlook_task_groups_item_task_folders_item_tasks_item_permanent_delete_request_builder.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemOutlookTaskGroupsItemTaskFoldersItemTasksItemPermanentDeleteRequestBuilderInternal instantiates a new ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemOutlookTaskGroupsItemTaskFoldersItemTasksItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemPermanentDeleteRequestBuilder) { + m := &ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/outlook/taskGroups/{outlookTaskGroup%2Did}/taskFolders/{outlookTaskFolder%2Did}/tasks/{outlookTask%2Did}/permanentDelete", pathParameters), + } + return m +} +// NewItemOutlookTaskGroupsItemTaskFoldersItemTasksItemPermanentDeleteRequestBuilder instantiates a new ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemOutlookTaskGroupsItemTaskFoldersItemTasksItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemOutlookTaskGroupsItemTaskFoldersItemTasksItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an Outlook task and place it in the Purges folder in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/outlooktask-permanentdelete?view=graph-rest-beta +func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an Outlook task and place it in the Purges folder in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemPermanentDeleteRequestBuilder when successful +func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemPermanentDeleteRequestBuilder) { + return NewItemOutlookTaskGroupsItemTaskFoldersItemTasksItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_outlook_task_groups_item_task_folders_item_tasks_outlook_task_item_request_builder.go b/users/item_outlook_task_groups_item_task_folders_item_tasks_outlook_task_item_request_builder.go index 8be082c52f8..83638722a53 100644 --- a/users/item_outlook_task_groups_item_task_folders_item_tasks_outlook_task_item_request_builder.go +++ b/users/item_outlook_task_groups_item_task_folders_item_tasks_outlook_task_item_request_builder.go @@ -65,7 +65,7 @@ func NewItemOutlookTaskGroupsItemTaskFoldersItemTasksOutlookTaskItemRequestBuild return NewItemOutlookTaskGroupsItemTaskFoldersItemTasksOutlookTaskItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property tasks for users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksOutlookTaskItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOutlookTaskGroupsItemTaskFoldersItemTasksOutlookTaskItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -82,7 +82,7 @@ func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksOutlookTaskItemRequestBuil return nil } // Get the tasks in this task folder. Read-only. Nullable. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OutlookTaskable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksOutlookTaskItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOutlookTaskGroupsItemTaskFoldersItemTasksOutlookTaskItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskable, error) { @@ -103,7 +103,7 @@ func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksOutlookTaskItemRequestBuil return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskable), nil } // Patch update the navigation property tasks in users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OutlookTaskable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksOutlookTaskItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskable, requestConfiguration *ItemOutlookTaskGroupsItemTaskFoldersItemTasksOutlookTaskItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskable, error) { @@ -123,8 +123,13 @@ func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksOutlookTaskItemRequestBuil } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemPermanentDeleteRequestBuilder when successful +func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksOutlookTaskItemRequestBuilder) PermanentDelete()(*ItemOutlookTaskGroupsItemTaskFoldersItemTasksItemPermanentDeleteRequestBuilder) { + return NewItemOutlookTaskGroupsItemTaskFoldersItemTasksItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToDeleteRequestInformation delete navigation property tasks for users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksOutlookTaskItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookTaskGroupsItemTaskFoldersItemTasksOutlookTaskItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,7 +141,7 @@ func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksOutlookTaskItemRequestBuil return requestInfo, nil } // ToGetRequestInformation the tasks in this task folder. Read-only. Nullable. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksOutlookTaskItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookTaskGroupsItemTaskFoldersItemTasksOutlookTaskItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,7 +156,7 @@ func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksOutlookTaskItemRequestBuil return requestInfo, nil } // ToPatchRequestInformation update the navigation property tasks in users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksOutlookTaskItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskable, requestConfiguration *ItemOutlookTaskGroupsItemTaskFoldersItemTasksOutlookTaskItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -167,7 +172,7 @@ func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksOutlookTaskItemRequestBuil return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookTaskGroupsItemTaskFoldersItemTasksOutlookTaskItemRequestBuilder when successful func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksOutlookTaskItemRequestBuilder) WithUrl(rawUrl string)(*ItemOutlookTaskGroupsItemTaskFoldersItemTasksOutlookTaskItemRequestBuilder) { return NewItemOutlookTaskGroupsItemTaskFoldersItemTasksOutlookTaskItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_outlook_task_groups_item_task_folders_item_tasks_request_builder.go b/users/item_outlook_task_groups_item_task_folders_item_tasks_request_builder.go index 8249a52c39e..354a346111b 100644 --- a/users/item_outlook_task_groups_item_task_folders_item_tasks_request_builder.go +++ b/users/item_outlook_task_groups_item_task_folders_item_tasks_request_builder.go @@ -47,7 +47,7 @@ type ItemOutlookTaskGroupsItemTaskFoldersItemTasksRequestBuilderPostRequestConfi Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByOutlookTaskId provides operations to manage the tasks property of the microsoft.graph.outlookTaskFolder entity. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookTaskGroupsItemTaskFoldersItemTasksOutlookTaskItemRequestBuilder when successful func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksRequestBuilder) ByOutlookTaskId(outlookTaskId string)(*ItemOutlookTaskGroupsItemTaskFoldersItemTasksOutlookTaskItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -78,7 +78,7 @@ func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksRequestBuilder) Count()(*I return NewItemOutlookTaskGroupsItemTaskFoldersItemTasksCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the tasks in this task folder. Read-only. Nullable. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OutlookTaskCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOutlookTaskGroupsItemTaskFoldersItemTasksRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskCollectionResponseable, error) { @@ -99,7 +99,7 @@ func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksRequestBuilder) Get(ctx co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskCollectionResponseable), nil } // Post create new navigation property to tasks for users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OutlookTaskable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskable, requestConfiguration *ItemOutlookTaskGroupsItemTaskFoldersItemTasksRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskable, error) { @@ -120,7 +120,7 @@ func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksRequestBuilder) Post(ctx c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskable), nil } // ToGetRequestInformation the tasks in this task folder. Read-only. Nullable. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookTaskGroupsItemTaskFoldersItemTasksRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -135,7 +135,7 @@ func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksRequestBuilder) ToGetReque return requestInfo, nil } // ToPostRequestInformation create new navigation property to tasks for users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskable, requestConfiguration *ItemOutlookTaskGroupsItemTaskFoldersItemTasksRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,7 +151,7 @@ func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksRequestBuilder) ToPostRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookTaskGroupsItemTaskFoldersItemTasksRequestBuilder when successful func (m *ItemOutlookTaskGroupsItemTaskFoldersItemTasksRequestBuilder) WithUrl(rawUrl string)(*ItemOutlookTaskGroupsItemTaskFoldersItemTasksRequestBuilder) { return NewItemOutlookTaskGroupsItemTaskFoldersItemTasksRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_outlook_task_groups_item_task_folders_outlook_task_folder_item_request_builder.go b/users/item_outlook_task_groups_item_task_folders_outlook_task_folder_item_request_builder.go index d2a7f48900c..390c60cedbd 100644 --- a/users/item_outlook_task_groups_item_task_folders_outlook_task_folder_item_request_builder.go +++ b/users/item_outlook_task_groups_item_task_folders_outlook_task_folder_item_request_builder.go @@ -55,7 +55,7 @@ func NewItemOutlookTaskGroupsItemTaskFoldersOutlookTaskFolderItemRequestBuilder( return NewItemOutlookTaskGroupsItemTaskFoldersOutlookTaskFolderItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property taskFolders for users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTaskGroupsItemTaskFoldersOutlookTaskFolderItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOutlookTaskGroupsItemTaskFoldersOutlookTaskFolderItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -72,7 +72,7 @@ func (m *ItemOutlookTaskGroupsItemTaskFoldersOutlookTaskFolderItemRequestBuilder return nil } // Get the collection of task folders in the task group. Read-only. Nullable. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OutlookTaskFolderable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTaskGroupsItemTaskFoldersOutlookTaskFolderItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOutlookTaskGroupsItemTaskFoldersOutlookTaskFolderItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskFolderable, error) { @@ -93,7 +93,7 @@ func (m *ItemOutlookTaskGroupsItemTaskFoldersOutlookTaskFolderItemRequestBuilder return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskFolderable), nil } // Patch update the navigation property taskFolders in users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OutlookTaskFolderable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTaskGroupsItemTaskFoldersOutlookTaskFolderItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskFolderable, requestConfiguration *ItemOutlookTaskGroupsItemTaskFoldersOutlookTaskFolderItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskFolderable, error) { @@ -113,13 +113,18 @@ func (m *ItemOutlookTaskGroupsItemTaskFoldersOutlookTaskFolderItemRequestBuilder } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskFolderable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemOutlookTaskGroupsItemTaskFoldersItemPermanentDeleteRequestBuilder when successful +func (m *ItemOutlookTaskGroupsItemTaskFoldersOutlookTaskFolderItemRequestBuilder) PermanentDelete()(*ItemOutlookTaskGroupsItemTaskFoldersItemPermanentDeleteRequestBuilder) { + return NewItemOutlookTaskGroupsItemTaskFoldersItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // Tasks provides operations to manage the tasks property of the microsoft.graph.outlookTaskFolder entity. // returns a *ItemOutlookTaskGroupsItemTaskFoldersItemTasksRequestBuilder when successful func (m *ItemOutlookTaskGroupsItemTaskFoldersOutlookTaskFolderItemRequestBuilder) Tasks()(*ItemOutlookTaskGroupsItemTaskFoldersItemTasksRequestBuilder) { return NewItemOutlookTaskGroupsItemTaskFoldersItemTasksRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property taskFolders for users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTaskGroupsItemTaskFoldersOutlookTaskFolderItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookTaskGroupsItemTaskFoldersOutlookTaskFolderItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,7 +136,7 @@ func (m *ItemOutlookTaskGroupsItemTaskFoldersOutlookTaskFolderItemRequestBuilder return requestInfo, nil } // ToGetRequestInformation the collection of task folders in the task group. Read-only. Nullable. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTaskGroupsItemTaskFoldersOutlookTaskFolderItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookTaskGroupsItemTaskFoldersOutlookTaskFolderItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,7 +151,7 @@ func (m *ItemOutlookTaskGroupsItemTaskFoldersOutlookTaskFolderItemRequestBuilder return requestInfo, nil } // ToPatchRequestInformation update the navigation property taskFolders in users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTaskGroupsItemTaskFoldersOutlookTaskFolderItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskFolderable, requestConfiguration *ItemOutlookTaskGroupsItemTaskFoldersOutlookTaskFolderItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -162,7 +167,7 @@ func (m *ItemOutlookTaskGroupsItemTaskFoldersOutlookTaskFolderItemRequestBuilder return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookTaskGroupsItemTaskFoldersOutlookTaskFolderItemRequestBuilder when successful func (m *ItemOutlookTaskGroupsItemTaskFoldersOutlookTaskFolderItemRequestBuilder) WithUrl(rawUrl string)(*ItemOutlookTaskGroupsItemTaskFoldersOutlookTaskFolderItemRequestBuilder) { return NewItemOutlookTaskGroupsItemTaskFoldersOutlookTaskFolderItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_outlook_task_groups_item_task_folders_request_builder.go b/users/item_outlook_task_groups_item_task_folders_request_builder.go index 7aac725d22b..a70fd757dd4 100644 --- a/users/item_outlook_task_groups_item_task_folders_request_builder.go +++ b/users/item_outlook_task_groups_item_task_folders_request_builder.go @@ -47,7 +47,7 @@ type ItemOutlookTaskGroupsItemTaskFoldersRequestBuilderPostRequestConfiguration Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByOutlookTaskFolderId provides operations to manage the taskFolders property of the microsoft.graph.outlookTaskGroup entity. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookTaskGroupsItemTaskFoldersOutlookTaskFolderItemRequestBuilder when successful func (m *ItemOutlookTaskGroupsItemTaskFoldersRequestBuilder) ByOutlookTaskFolderId(outlookTaskFolderId string)(*ItemOutlookTaskGroupsItemTaskFoldersOutlookTaskFolderItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -78,7 +78,7 @@ func (m *ItemOutlookTaskGroupsItemTaskFoldersRequestBuilder) Count()(*ItemOutloo return NewItemOutlookTaskGroupsItemTaskFoldersCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of task folders in the task group. Read-only. Nullable. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OutlookTaskFolderCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTaskGroupsItemTaskFoldersRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOutlookTaskGroupsItemTaskFoldersRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskFolderCollectionResponseable, error) { @@ -99,7 +99,7 @@ func (m *ItemOutlookTaskGroupsItemTaskFoldersRequestBuilder) Get(ctx context.Con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskFolderCollectionResponseable), nil } // Post create new navigation property to taskFolders for users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OutlookTaskFolderable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTaskGroupsItemTaskFoldersRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskFolderable, requestConfiguration *ItemOutlookTaskGroupsItemTaskFoldersRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskFolderable, error) { @@ -120,7 +120,7 @@ func (m *ItemOutlookTaskGroupsItemTaskFoldersRequestBuilder) Post(ctx context.Co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskFolderable), nil } // ToGetRequestInformation the collection of task folders in the task group. Read-only. Nullable. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTaskGroupsItemTaskFoldersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookTaskGroupsItemTaskFoldersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -135,7 +135,7 @@ func (m *ItemOutlookTaskGroupsItemTaskFoldersRequestBuilder) ToGetRequestInforma return requestInfo, nil } // ToPostRequestInformation create new navigation property to taskFolders for users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTaskGroupsItemTaskFoldersRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskFolderable, requestConfiguration *ItemOutlookTaskGroupsItemTaskFoldersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,7 +151,7 @@ func (m *ItemOutlookTaskGroupsItemTaskFoldersRequestBuilder) ToPostRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookTaskGroupsItemTaskFoldersRequestBuilder when successful func (m *ItemOutlookTaskGroupsItemTaskFoldersRequestBuilder) WithUrl(rawUrl string)(*ItemOutlookTaskGroupsItemTaskFoldersRequestBuilder) { return NewItemOutlookTaskGroupsItemTaskFoldersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_outlook_task_groups_outlook_task_group_item_request_builder.go b/users/item_outlook_task_groups_outlook_task_group_item_request_builder.go index 67855832b93..e6079c61afe 100644 --- a/users/item_outlook_task_groups_outlook_task_group_item_request_builder.go +++ b/users/item_outlook_task_groups_outlook_task_group_item_request_builder.go @@ -55,7 +55,7 @@ func NewItemOutlookTaskGroupsOutlookTaskGroupItemRequestBuilder(rawUrl string, r return NewItemOutlookTaskGroupsOutlookTaskGroupItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property taskGroups for users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTaskGroupsOutlookTaskGroupItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOutlookTaskGroupsOutlookTaskGroupItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -72,7 +72,7 @@ func (m *ItemOutlookTaskGroupsOutlookTaskGroupItemRequestBuilder) Delete(ctx con return nil } // Get the user's Outlook task groups. Read-only. Nullable. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OutlookTaskGroupable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTaskGroupsOutlookTaskGroupItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOutlookTaskGroupsOutlookTaskGroupItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskGroupable, error) { @@ -93,7 +93,7 @@ func (m *ItemOutlookTaskGroupsOutlookTaskGroupItemRequestBuilder) Get(ctx contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskGroupable), nil } // Patch update the navigation property taskGroups in users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OutlookTaskGroupable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTaskGroupsOutlookTaskGroupItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskGroupable, requestConfiguration *ItemOutlookTaskGroupsOutlookTaskGroupItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskGroupable, error) { @@ -119,7 +119,7 @@ func (m *ItemOutlookTaskGroupsOutlookTaskGroupItemRequestBuilder) TaskFolders()( return NewItemOutlookTaskGroupsItemTaskFoldersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property taskGroups for users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTaskGroupsOutlookTaskGroupItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookTaskGroupsOutlookTaskGroupItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,7 +131,7 @@ func (m *ItemOutlookTaskGroupsOutlookTaskGroupItemRequestBuilder) ToDeleteReques return requestInfo, nil } // ToGetRequestInformation the user's Outlook task groups. Read-only. Nullable. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTaskGroupsOutlookTaskGroupItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookTaskGroupsOutlookTaskGroupItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,7 +146,7 @@ func (m *ItemOutlookTaskGroupsOutlookTaskGroupItemRequestBuilder) ToGetRequestIn return requestInfo, nil } // ToPatchRequestInformation update the navigation property taskGroups in users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTaskGroupsOutlookTaskGroupItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskGroupable, requestConfiguration *ItemOutlookTaskGroupsOutlookTaskGroupItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -162,7 +162,7 @@ func (m *ItemOutlookTaskGroupsOutlookTaskGroupItemRequestBuilder) ToPatchRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookTaskGroupsOutlookTaskGroupItemRequestBuilder when successful func (m *ItemOutlookTaskGroupsOutlookTaskGroupItemRequestBuilder) WithUrl(rawUrl string)(*ItemOutlookTaskGroupsOutlookTaskGroupItemRequestBuilder) { return NewItemOutlookTaskGroupsOutlookTaskGroupItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_outlook_task_groups_request_builder.go b/users/item_outlook_task_groups_request_builder.go index d73b25a5cad..549c6f06324 100644 --- a/users/item_outlook_task_groups_request_builder.go +++ b/users/item_outlook_task_groups_request_builder.go @@ -47,7 +47,7 @@ type ItemOutlookTaskGroupsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByOutlookTaskGroupId provides operations to manage the taskGroups property of the microsoft.graph.outlookUser entity. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookTaskGroupsOutlookTaskGroupItemRequestBuilder when successful func (m *ItemOutlookTaskGroupsRequestBuilder) ByOutlookTaskGroupId(outlookTaskGroupId string)(*ItemOutlookTaskGroupsOutlookTaskGroupItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -78,7 +78,7 @@ func (m *ItemOutlookTaskGroupsRequestBuilder) Count()(*ItemOutlookTaskGroupsCoun return NewItemOutlookTaskGroupsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the user's Outlook task groups. Read-only. Nullable. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OutlookTaskGroupCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTaskGroupsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOutlookTaskGroupsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskGroupCollectionResponseable, error) { @@ -99,7 +99,7 @@ func (m *ItemOutlookTaskGroupsRequestBuilder) Get(ctx context.Context, requestCo return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskGroupCollectionResponseable), nil } // Post create new navigation property to taskGroups for users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OutlookTaskGroupable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTaskGroupsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskGroupable, requestConfiguration *ItemOutlookTaskGroupsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskGroupable, error) { @@ -120,7 +120,7 @@ func (m *ItemOutlookTaskGroupsRequestBuilder) Post(ctx context.Context, body ie2 return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskGroupable), nil } // ToGetRequestInformation the user's Outlook task groups. Read-only. Nullable. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTaskGroupsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookTaskGroupsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -135,7 +135,7 @@ func (m *ItemOutlookTaskGroupsRequestBuilder) ToGetRequestInformation(ctx contex return requestInfo, nil } // ToPostRequestInformation create new navigation property to taskGroups for users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTaskGroupsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskGroupable, requestConfiguration *ItemOutlookTaskGroupsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,7 +151,7 @@ func (m *ItemOutlookTaskGroupsRequestBuilder) ToPostRequestInformation(ctx conte return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookTaskGroupsRequestBuilder when successful func (m *ItemOutlookTaskGroupsRequestBuilder) WithUrl(rawUrl string)(*ItemOutlookTaskGroupsRequestBuilder) { return NewItemOutlookTaskGroupsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_outlook_tasks_count_request_builder.go b/users/item_outlook_tasks_count_request_builder.go index b74f7c19316..99fa99d70f9 100644 --- a/users/item_outlook_tasks_count_request_builder.go +++ b/users/item_outlook_tasks_count_request_builder.go @@ -40,7 +40,7 @@ func NewItemOutlookTasksCountRequestBuilder(rawUrl string, requestAdapter i2ae41 return NewItemOutlookTasksCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTasksCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOutlookTasksCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -61,7 +61,7 @@ func (m *ItemOutlookTasksCountRequestBuilder) Get(ctx context.Context, requestCo return res.(*int32), nil } // ToGetRequestInformation get the number of the resource -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTasksCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookTasksCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -76,7 +76,7 @@ func (m *ItemOutlookTasksCountRequestBuilder) ToGetRequestInformation(ctx contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookTasksCountRequestBuilder when successful func (m *ItemOutlookTasksCountRequestBuilder) WithUrl(rawUrl string)(*ItemOutlookTasksCountRequestBuilder) { return NewItemOutlookTasksCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_outlook_tasks_item_attachments_attachment_item_request_builder.go b/users/item_outlook_tasks_item_attachments_attachment_item_request_builder.go index 265e10b3292..29d77968132 100644 --- a/users/item_outlook_tasks_item_attachments_attachment_item_request_builder.go +++ b/users/item_outlook_tasks_item_attachments_attachment_item_request_builder.go @@ -18,7 +18,7 @@ type ItemOutlookTasksItemAttachmentsAttachmentItemRequestBuilderDeleteRequestCon // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemOutlookTasksItemAttachmentsAttachmentItemRequestBuilderGetQueryParameters the collection of fileAttachment, itemAttachment, and referenceAttachment attachments for the task. Read-only. Nullable. +// ItemOutlookTasksItemAttachmentsAttachmentItemRequestBuilderGetQueryParameters the collection of fileAttachment, itemAttachment, and referenceAttachment attachments for the task. Read-only. Nullable. type ItemOutlookTasksItemAttachmentsAttachmentItemRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -48,7 +48,7 @@ func NewItemOutlookTasksItemAttachmentsAttachmentItemRequestBuilder(rawUrl strin return NewItemOutlookTasksItemAttachmentsAttachmentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property attachments for users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTasksItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOutlookTasksItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -64,8 +64,8 @@ func (m *ItemOutlookTasksItemAttachmentsAttachmentItemRequestBuilder) Delete(ctx } return nil } -// Get the collection of fileAttachment, itemAttachment, and referenceAttachment attachments for the task. Read-only. Nullable. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Get the collection of fileAttachment, itemAttachment, and referenceAttachment attachments for the task. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTasksItemAttachmentsAttachmentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOutlookTasksItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -86,7 +86,7 @@ func (m *ItemOutlookTasksItemAttachmentsAttachmentItemRequestBuilder) Get(ctx co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToDeleteRequestInformation delete navigation property attachments for users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTasksItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookTasksItemAttachmentsAttachmentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -97,8 +97,8 @@ func (m *ItemOutlookTasksItemAttachmentsAttachmentItemRequestBuilder) ToDeleteRe requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation the collection of fileAttachment, itemAttachment, and referenceAttachment attachments for the task. Read-only. Nullable. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// ToGetRequestInformation the collection of fileAttachment, itemAttachment, and referenceAttachment attachments for the task. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTasksItemAttachmentsAttachmentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookTasksItemAttachmentsAttachmentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,7 +113,7 @@ func (m *ItemOutlookTasksItemAttachmentsAttachmentItemRequestBuilder) ToGetReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookTasksItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemOutlookTasksItemAttachmentsAttachmentItemRequestBuilder) WithUrl(rawUrl string)(*ItemOutlookTasksItemAttachmentsAttachmentItemRequestBuilder) { return NewItemOutlookTasksItemAttachmentsAttachmentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_outlook_tasks_item_attachments_count_request_builder.go b/users/item_outlook_tasks_item_attachments_count_request_builder.go index 82613c32ca8..59a9a8fa017 100644 --- a/users/item_outlook_tasks_item_attachments_count_request_builder.go +++ b/users/item_outlook_tasks_item_attachments_count_request_builder.go @@ -40,7 +40,7 @@ func NewItemOutlookTasksItemAttachmentsCountRequestBuilder(rawUrl string, reques return NewItemOutlookTasksItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTasksItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOutlookTasksItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -61,7 +61,7 @@ func (m *ItemOutlookTasksItemAttachmentsCountRequestBuilder) Get(ctx context.Con return res.(*int32), nil } // ToGetRequestInformation get the number of the resource -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTasksItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookTasksItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -76,7 +76,7 @@ func (m *ItemOutlookTasksItemAttachmentsCountRequestBuilder) ToGetRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookTasksItemAttachmentsCountRequestBuilder when successful func (m *ItemOutlookTasksItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemOutlookTasksItemAttachmentsCountRequestBuilder) { return NewItemOutlookTasksItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_outlook_tasks_item_attachments_create_upload_session_request_builder.go b/users/item_outlook_tasks_item_attachments_create_upload_session_request_builder.go index ff0bc51b665..86d8ef9e3a9 100644 --- a/users/item_outlook_tasks_item_attachments_create_upload_session_request_builder.go +++ b/users/item_outlook_tasks_item_attachments_create_upload_session_request_builder.go @@ -32,7 +32,7 @@ func NewItemOutlookTasksItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl return NewItemOutlookTasksItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -56,7 +56,7 @@ func (m *ItemOutlookTasksItemAttachmentsCreateUploadSessionRequestBuilder) Post( return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTasksItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemOutlookTasksItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemOutlookTasksItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -72,7 +72,7 @@ func (m *ItemOutlookTasksItemAttachmentsCreateUploadSessionRequestBuilder) ToPos return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookTasksItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemOutlookTasksItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemOutlookTasksItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemOutlookTasksItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_outlook_tasks_item_attachments_request_builder.go b/users/item_outlook_tasks_item_attachments_request_builder.go index 9a9fc6c12ba..d9b1e801d93 100644 --- a/users/item_outlook_tasks_item_attachments_request_builder.go +++ b/users/item_outlook_tasks_item_attachments_request_builder.go @@ -47,7 +47,7 @@ type ItemOutlookTasksItemAttachmentsRequestBuilderPostRequestConfiguration struc Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentId provides operations to manage the attachments property of the microsoft.graph.outlookTask entity. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookTasksItemAttachmentsAttachmentItemRequestBuilder when successful func (m *ItemOutlookTasksItemAttachmentsRequestBuilder) ByAttachmentId(attachmentId string)(*ItemOutlookTasksItemAttachmentsAttachmentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -83,7 +83,7 @@ func (m *ItemOutlookTasksItemAttachmentsRequestBuilder) CreateUploadSession()(*I return NewItemOutlookTasksItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get a list of attachment objects attached to an Outlook task. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -107,7 +107,7 @@ func (m *ItemOutlookTasksItemAttachmentsRequestBuilder) Get(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentCollectionResponseable), nil } // Post create new navigation property to attachments for users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Attachmentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTasksItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemOutlookTasksItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, error) { @@ -128,7 +128,7 @@ func (m *ItemOutlookTasksItemAttachmentsRequestBuilder) Post(ctx context.Context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable), nil } // ToGetRequestInformation get a list of attachment objects attached to an Outlook task. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTasksItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookTasksItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -143,7 +143,7 @@ func (m *ItemOutlookTasksItemAttachmentsRequestBuilder) ToGetRequestInformation( return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTasksItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Attachmentable, requestConfiguration *ItemOutlookTasksItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -159,7 +159,7 @@ func (m *ItemOutlookTasksItemAttachmentsRequestBuilder) ToPostRequestInformation return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookTasksItemAttachmentsRequestBuilder when successful func (m *ItemOutlookTasksItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemOutlookTasksItemAttachmentsRequestBuilder) { return NewItemOutlookTasksItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_outlook_tasks_item_complete_request_builder.go b/users/item_outlook_tasks_item_complete_request_builder.go index dcc8a4c9f50..0492967d2b4 100644 --- a/users/item_outlook_tasks_item_complete_request_builder.go +++ b/users/item_outlook_tasks_item_complete_request_builder.go @@ -55,7 +55,7 @@ func (m *ItemOutlookTasksItemCompleteRequestBuilder) Post(ctx context.Context, r return res.(ItemOutlookTasksItemCompleteResponseable), nil } // PostAsCompletePostResponse complete an Outlook task which sets the completedDateTime property to the current date, and the status property to completed. If you are completing a task in a recurring series, in the response, the task collection will contain the completed task in the series, and the next task in the series. The completedDateTime property represents the date when the task is finished. The time portion of completedDateTime is set to midnight UTC by default. By default, this operation (and the POST, GET, and PATCH task operations) returns date-related properties in UTC. You can use the Prefer: outlook.timezone header to have all the date-related properties in the response represented in a time zone different than UTC. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemOutlookTasksItemCompletePostResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -79,7 +79,7 @@ func (m *ItemOutlookTasksItemCompleteRequestBuilder) PostAsCompletePostResponse( return res.(ItemOutlookTasksItemCompletePostResponseable), nil } // ToPostRequestInformation complete an Outlook task which sets the completedDateTime property to the current date, and the status property to completed. If you are completing a task in a recurring series, in the response, the task collection will contain the completed task in the series, and the next task in the series. The completedDateTime property represents the date when the task is finished. The time portion of completedDateTime is set to midnight UTC by default. By default, this operation (and the POST, GET, and PATCH task operations) returns date-related properties in UTC. You can use the Prefer: outlook.timezone header to have all the date-related properties in the response represented in a time zone different than UTC. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTasksItemCompleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookTasksItemCompleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -91,7 +91,7 @@ func (m *ItemOutlookTasksItemCompleteRequestBuilder) ToPostRequestInformation(ct return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookTasksItemCompleteRequestBuilder when successful func (m *ItemOutlookTasksItemCompleteRequestBuilder) WithUrl(rawUrl string)(*ItemOutlookTasksItemCompleteRequestBuilder) { return NewItemOutlookTasksItemCompleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_outlook_tasks_item_permanent_delete_request_builder.go b/users/item_outlook_tasks_item_permanent_delete_request_builder.go new file mode 100644 index 00000000000..82fde789447 --- /dev/null +++ b/users/item_outlook_tasks_item_permanent_delete_request_builder.go @@ -0,0 +1,70 @@ +package users + +import ( + "context" + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go" + i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors" +) + +// ItemOutlookTasksItemPermanentDeleteRequestBuilder provides operations to call the permanentDelete method. +type ItemOutlookTasksItemPermanentDeleteRequestBuilder struct { + i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder +} +// ItemOutlookTasksItemPermanentDeleteRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options. +type ItemOutlookTasksItemPermanentDeleteRequestBuilderPostRequestConfiguration struct { + // Request headers + Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders + // Request options + Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption +} +// NewItemOutlookTasksItemPermanentDeleteRequestBuilderInternal instantiates a new ItemOutlookTasksItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemOutlookTasksItemPermanentDeleteRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemOutlookTasksItemPermanentDeleteRequestBuilder) { + m := &ItemOutlookTasksItemPermanentDeleteRequestBuilder{ + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/users/{user%2Did}/outlook/tasks/{outlookTask%2Did}/permanentDelete", pathParameters), + } + return m +} +// NewItemOutlookTasksItemPermanentDeleteRequestBuilder instantiates a new ItemOutlookTasksItemPermanentDeleteRequestBuilder and sets the default values. +func NewItemOutlookTasksItemPermanentDeleteRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemOutlookTasksItemPermanentDeleteRequestBuilder) { + urlParams := make(map[string]string) + urlParams["request-raw-url"] = rawUrl + return NewItemOutlookTasksItemPermanentDeleteRequestBuilderInternal(urlParams, requestAdapter) +} +// Post permanently delete an Outlook task and place it in the Purges folder in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// 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/outlooktask-permanentdelete?view=graph-rest-beta +func (m *ItemOutlookTasksItemPermanentDeleteRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemOutlookTasksItemPermanentDeleteRequestBuilderPostRequestConfiguration)(error) { + requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); + if err != nil { + return err + } + errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings { + "XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue, + } + err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping) + if err != nil { + return err + } + return nil +} +// ToPostRequestInformation permanently delete an Outlook task and place it in the Purges folder in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *RequestInformation when successful +func (m *ItemOutlookTasksItemPermanentDeleteRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookTasksItemPermanentDeleteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { + requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, 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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI +// returns a *ItemOutlookTasksItemPermanentDeleteRequestBuilder when successful +func (m *ItemOutlookTasksItemPermanentDeleteRequestBuilder) WithUrl(rawUrl string)(*ItemOutlookTasksItemPermanentDeleteRequestBuilder) { + return NewItemOutlookTasksItemPermanentDeleteRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); +} diff --git a/users/item_outlook_tasks_outlook_task_item_request_builder.go b/users/item_outlook_tasks_outlook_task_item_request_builder.go index e43c601722f..84ecd250d0a 100644 --- a/users/item_outlook_tasks_outlook_task_item_request_builder.go +++ b/users/item_outlook_tasks_outlook_task_item_request_builder.go @@ -65,7 +65,7 @@ func NewItemOutlookTasksOutlookTaskItemRequestBuilder(rawUrl string, requestAdap return NewItemOutlookTasksOutlookTaskItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property tasks for users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTasksOutlookTaskItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemOutlookTasksOutlookTaskItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -82,7 +82,7 @@ func (m *ItemOutlookTasksOutlookTaskItemRequestBuilder) Delete(ctx context.Conte return nil } // Get the user's Outlook tasks. Read-only. Nullable. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OutlookTaskable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTasksOutlookTaskItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOutlookTasksOutlookTaskItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskable, error) { @@ -103,7 +103,7 @@ func (m *ItemOutlookTasksOutlookTaskItemRequestBuilder) Get(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskable), nil } // Patch update the navigation property tasks in users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OutlookTaskable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTasksOutlookTaskItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskable, requestConfiguration *ItemOutlookTasksOutlookTaskItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskable, error) { @@ -123,8 +123,13 @@ func (m *ItemOutlookTasksOutlookTaskItemRequestBuilder) Patch(ctx context.Contex } return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskable), nil } +// PermanentDelete provides operations to call the permanentDelete method. +// returns a *ItemOutlookTasksItemPermanentDeleteRequestBuilder when successful +func (m *ItemOutlookTasksOutlookTaskItemRequestBuilder) PermanentDelete()(*ItemOutlookTasksItemPermanentDeleteRequestBuilder) { + return NewItemOutlookTasksItemPermanentDeleteRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) +} // ToDeleteRequestInformation delete navigation property tasks for users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTasksOutlookTaskItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookTasksOutlookTaskItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,7 +141,7 @@ func (m *ItemOutlookTasksOutlookTaskItemRequestBuilder) ToDeleteRequestInformati return requestInfo, nil } // ToGetRequestInformation the user's Outlook tasks. Read-only. Nullable. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTasksOutlookTaskItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookTasksOutlookTaskItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,7 +156,7 @@ func (m *ItemOutlookTasksOutlookTaskItemRequestBuilder) ToGetRequestInformation( return requestInfo, nil } // ToPatchRequestInformation update the navigation property tasks in users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTasksOutlookTaskItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskable, requestConfiguration *ItemOutlookTasksOutlookTaskItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -167,7 +172,7 @@ func (m *ItemOutlookTasksOutlookTaskItemRequestBuilder) ToPatchRequestInformatio return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookTasksOutlookTaskItemRequestBuilder when successful func (m *ItemOutlookTasksOutlookTaskItemRequestBuilder) WithUrl(rawUrl string)(*ItemOutlookTasksOutlookTaskItemRequestBuilder) { return NewItemOutlookTasksOutlookTaskItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_outlook_tasks_request_builder.go b/users/item_outlook_tasks_request_builder.go index 5f69dd3730e..21404094fb0 100644 --- a/users/item_outlook_tasks_request_builder.go +++ b/users/item_outlook_tasks_request_builder.go @@ -47,7 +47,7 @@ type ItemOutlookTasksRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByOutlookTaskId provides operations to manage the tasks property of the microsoft.graph.outlookUser entity. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookTasksOutlookTaskItemRequestBuilder when successful func (m *ItemOutlookTasksRequestBuilder) ByOutlookTaskId(outlookTaskId string)(*ItemOutlookTasksOutlookTaskItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -78,7 +78,7 @@ func (m *ItemOutlookTasksRequestBuilder) Count()(*ItemOutlookTasksCountRequestBu return NewItemOutlookTasksCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the user's Outlook tasks. Read-only. Nullable. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OutlookTaskCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTasksRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOutlookTasksRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskCollectionResponseable, error) { @@ -99,7 +99,7 @@ func (m *ItemOutlookTasksRequestBuilder) Get(ctx context.Context, requestConfigu return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskCollectionResponseable), nil } // Post create new navigation property to tasks for users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a OutlookTaskable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOutlookTasksRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskable, requestConfiguration *ItemOutlookTasksRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskable, error) { @@ -120,7 +120,7 @@ func (m *ItemOutlookTasksRequestBuilder) Post(ctx context.Context, body ie233ee7 return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskable), nil } // ToGetRequestInformation the user's Outlook tasks. Read-only. Nullable. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTasksRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookTasksRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -135,7 +135,7 @@ func (m *ItemOutlookTasksRequestBuilder) ToGetRequestInformation(ctx context.Con return requestInfo, nil } // ToPostRequestInformation create new navigation property to tasks for users -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOutlookTasksRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookTaskable, requestConfiguration *ItemOutlookTasksRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,7 +151,7 @@ func (m *ItemOutlookTasksRequestBuilder) ToPostRequestInformation(ctx context.Co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. -// Deprecated: The Outlook tasks API is deprecated and will stop returning data on February 20, 2023. Please use the new To Do API. For more details, please visit https://developer.microsoft.com/en-us/office/blogs/announcing-the-general-availability-of-microsoft-to-do-apis-on-graph/ as of 2020-08/Outlook_Tasks +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOutlookTasksRequestBuilder when successful func (m *ItemOutlookTasksRequestBuilder) WithUrl(rawUrl string)(*ItemOutlookTasksRequestBuilder) { return NewItemOutlookTasksRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_owned_devices_count_request_builder.go b/users/item_owned_devices_count_request_builder.go index e066036d117..ab92c88d8f5 100644 --- a/users/item_owned_devices_count_request_builder.go +++ b/users/item_owned_devices_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemOwnedDevicesCountRequestBuilder(rawUrl string, requestAdapter i2ae41 return NewItemOwnedDevicesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOwnedDevicesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOwnedDevicesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemOwnedDevicesCountRequestBuilder) Get(ctx context.Context, requestCo return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOwnedDevicesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnedDevicesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemOwnedDevicesCountRequestBuilder) ToGetRequestInformation(ctx contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOwnedDevicesCountRequestBuilder when successful func (m *ItemOwnedDevicesCountRequestBuilder) WithUrl(rawUrl string)(*ItemOwnedDevicesCountRequestBuilder) { return NewItemOwnedDevicesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_owned_devices_directory_object_item_request_builder.go b/users/item_owned_devices_directory_object_item_request_builder.go index af2e583d986..e862785b3c2 100644 --- a/users/item_owned_devices_directory_object_item_request_builder.go +++ b/users/item_owned_devices_directory_object_item_request_builder.go @@ -41,6 +41,7 @@ func NewItemOwnedDevicesDirectoryObjectItemRequestBuilder(rawUrl string, request return NewItemOwnedDevicesDirectoryObjectItemRequestBuilderInternal(urlParams, requestAdapter) } // Get devices owned by the user. Read-only. Nullable. Supports $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DirectoryObjectable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOwnedDevicesDirectoryObjectItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOwnedDevicesDirectoryObjectItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryObjectable, error) { @@ -71,6 +72,7 @@ func (m *ItemOwnedDevicesDirectoryObjectItemRequestBuilder) GraphEndpoint()(*Ite return NewItemOwnedDevicesItemGraphEndpointRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation devices owned by the user. Read-only. Nullable. Supports $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOwnedDevicesDirectoryObjectItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnedDevicesDirectoryObjectItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemOwnedDevicesDirectoryObjectItemRequestBuilder) ToGetRequestInformat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOwnedDevicesDirectoryObjectItemRequestBuilder when successful func (m *ItemOwnedDevicesDirectoryObjectItemRequestBuilder) WithUrl(rawUrl string)(*ItemOwnedDevicesDirectoryObjectItemRequestBuilder) { return NewItemOwnedDevicesDirectoryObjectItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_owned_devices_graph_device_count_request_builder.go b/users/item_owned_devices_graph_device_count_request_builder.go index 55ba3400912..e647a2fbd72 100644 --- a/users/item_owned_devices_graph_device_count_request_builder.go +++ b/users/item_owned_devices_graph_device_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemOwnedDevicesGraphDeviceCountRequestBuilder(rawUrl string, requestAda return NewItemOwnedDevicesGraphDeviceCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOwnedDevicesGraphDeviceCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOwnedDevicesGraphDeviceCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemOwnedDevicesGraphDeviceCountRequestBuilder) Get(ctx context.Context return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOwnedDevicesGraphDeviceCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnedDevicesGraphDeviceCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemOwnedDevicesGraphDeviceCountRequestBuilder) ToGetRequestInformation return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOwnedDevicesGraphDeviceCountRequestBuilder when successful func (m *ItemOwnedDevicesGraphDeviceCountRequestBuilder) WithUrl(rawUrl string)(*ItemOwnedDevicesGraphDeviceCountRequestBuilder) { return NewItemOwnedDevicesGraphDeviceCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_owned_devices_graph_device_request_builder.go b/users/item_owned_devices_graph_device_request_builder.go index d89000adb63..820b7d0233a 100644 --- a/users/item_owned_devices_graph_device_request_builder.go +++ b/users/item_owned_devices_graph_device_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemOwnedDevicesGraphDeviceRequestBuilder) Count()(*ItemOwnedDevicesGra return NewItemOwnedDevicesGraphDeviceCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get the items of type microsoft.graph.device in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DeviceCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOwnedDevicesGraphDeviceRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOwnedDevicesGraphDeviceRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemOwnedDevicesGraphDeviceRequestBuilder) Get(ctx context.Context, req return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceCollectionResponseable), nil } // ToGetRequestInformation get the items of type microsoft.graph.device in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOwnedDevicesGraphDeviceRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnedDevicesGraphDeviceRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemOwnedDevicesGraphDeviceRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOwnedDevicesGraphDeviceRequestBuilder when successful func (m *ItemOwnedDevicesGraphDeviceRequestBuilder) WithUrl(rawUrl string)(*ItemOwnedDevicesGraphDeviceRequestBuilder) { return NewItemOwnedDevicesGraphDeviceRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_owned_devices_graph_endpoint_count_request_builder.go b/users/item_owned_devices_graph_endpoint_count_request_builder.go index e70c12636d1..4428878ffe7 100644 --- a/users/item_owned_devices_graph_endpoint_count_request_builder.go +++ b/users/item_owned_devices_graph_endpoint_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemOwnedDevicesGraphEndpointCountRequestBuilder(rawUrl string, requestA return NewItemOwnedDevicesGraphEndpointCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOwnedDevicesGraphEndpointCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOwnedDevicesGraphEndpointCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemOwnedDevicesGraphEndpointCountRequestBuilder) Get(ctx context.Conte return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOwnedDevicesGraphEndpointCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnedDevicesGraphEndpointCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemOwnedDevicesGraphEndpointCountRequestBuilder) ToGetRequestInformati return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOwnedDevicesGraphEndpointCountRequestBuilder when successful func (m *ItemOwnedDevicesGraphEndpointCountRequestBuilder) WithUrl(rawUrl string)(*ItemOwnedDevicesGraphEndpointCountRequestBuilder) { return NewItemOwnedDevicesGraphEndpointCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_owned_devices_graph_endpoint_request_builder.go b/users/item_owned_devices_graph_endpoint_request_builder.go index 2663dd89e09..8db57ee9f89 100644 --- a/users/item_owned_devices_graph_endpoint_request_builder.go +++ b/users/item_owned_devices_graph_endpoint_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemOwnedDevicesGraphEndpointRequestBuilder) Count()(*ItemOwnedDevicesG return NewItemOwnedDevicesGraphEndpointCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get the items of type microsoft.graph.endpoint in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EndpointCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOwnedDevicesGraphEndpointRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOwnedDevicesGraphEndpointRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EndpointCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemOwnedDevicesGraphEndpointRequestBuilder) Get(ctx context.Context, r return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EndpointCollectionResponseable), nil } // ToGetRequestInformation get the items of type microsoft.graph.endpoint in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOwnedDevicesGraphEndpointRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnedDevicesGraphEndpointRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemOwnedDevicesGraphEndpointRequestBuilder) ToGetRequestInformation(ct return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOwnedDevicesGraphEndpointRequestBuilder when successful func (m *ItemOwnedDevicesGraphEndpointRequestBuilder) WithUrl(rawUrl string)(*ItemOwnedDevicesGraphEndpointRequestBuilder) { return NewItemOwnedDevicesGraphEndpointRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_owned_devices_item_graph_device_request_builder.go b/users/item_owned_devices_item_graph_device_request_builder.go index c22ca18bf33..fdd6ad4c0f1 100644 --- a/users/item_owned_devices_item_graph_device_request_builder.go +++ b/users/item_owned_devices_item_graph_device_request_builder.go @@ -41,6 +41,7 @@ func NewItemOwnedDevicesItemGraphDeviceRequestBuilder(rawUrl string, requestAdap return NewItemOwnedDevicesItemGraphDeviceRequestBuilderInternal(urlParams, requestAdapter) } // Get get the item of type microsoft.graph.directoryObject as microsoft.graph.device +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Deviceable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOwnedDevicesItemGraphDeviceRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOwnedDevicesItemGraphDeviceRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Deviceable, error) { @@ -61,6 +62,7 @@ func (m *ItemOwnedDevicesItemGraphDeviceRequestBuilder) Get(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Deviceable), nil } // ToGetRequestInformation get the item of type microsoft.graph.directoryObject as microsoft.graph.device +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOwnedDevicesItemGraphDeviceRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnedDevicesItemGraphDeviceRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemOwnedDevicesItemGraphDeviceRequestBuilder) ToGetRequestInformation( return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOwnedDevicesItemGraphDeviceRequestBuilder when successful func (m *ItemOwnedDevicesItemGraphDeviceRequestBuilder) WithUrl(rawUrl string)(*ItemOwnedDevicesItemGraphDeviceRequestBuilder) { return NewItemOwnedDevicesItemGraphDeviceRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_owned_devices_item_graph_endpoint_request_builder.go b/users/item_owned_devices_item_graph_endpoint_request_builder.go index ac9e099aa35..e9110a225e2 100644 --- a/users/item_owned_devices_item_graph_endpoint_request_builder.go +++ b/users/item_owned_devices_item_graph_endpoint_request_builder.go @@ -41,6 +41,7 @@ func NewItemOwnedDevicesItemGraphEndpointRequestBuilder(rawUrl string, requestAd return NewItemOwnedDevicesItemGraphEndpointRequestBuilderInternal(urlParams, requestAdapter) } // Get get the item of type microsoft.graph.directoryObject as microsoft.graph.endpoint +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Endpointable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOwnedDevicesItemGraphEndpointRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOwnedDevicesItemGraphEndpointRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Endpointable, error) { @@ -61,6 +62,7 @@ func (m *ItemOwnedDevicesItemGraphEndpointRequestBuilder) Get(ctx context.Contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Endpointable), nil } // ToGetRequestInformation get the item of type microsoft.graph.directoryObject as microsoft.graph.endpoint +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOwnedDevicesItemGraphEndpointRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnedDevicesItemGraphEndpointRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemOwnedDevicesItemGraphEndpointRequestBuilder) ToGetRequestInformatio return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOwnedDevicesItemGraphEndpointRequestBuilder when successful func (m *ItemOwnedDevicesItemGraphEndpointRequestBuilder) WithUrl(rawUrl string)(*ItemOwnedDevicesItemGraphEndpointRequestBuilder) { return NewItemOwnedDevicesItemGraphEndpointRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_owned_devices_request_builder.go b/users/item_owned_devices_request_builder.go index 21faa556412..f9134a57755 100644 --- a/users/item_owned_devices_request_builder.go +++ b/users/item_owned_devices_request_builder.go @@ -40,6 +40,7 @@ type ItemOwnedDevicesRequestBuilderGetRequestConfiguration struct { QueryParameters *ItemOwnedDevicesRequestBuilderGetQueryParameters } // ByDirectoryObjectId provides operations to manage the ownedDevices property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOwnedDevicesDirectoryObjectItemRequestBuilder when successful func (m *ItemOwnedDevicesRequestBuilder) ByDirectoryObjectId(directoryObjectId string)(*ItemOwnedDevicesDirectoryObjectItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -70,6 +71,7 @@ func (m *ItemOwnedDevicesRequestBuilder) Count()(*ItemOwnedDevicesCountRequestBu return NewItemOwnedDevicesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get devices owned by the user. Read-only. Nullable. Supports $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DirectoryObjectCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOwnedDevicesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOwnedDevicesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryObjectCollectionResponseable, error) { @@ -100,6 +102,7 @@ func (m *ItemOwnedDevicesRequestBuilder) GraphEndpoint()(*ItemOwnedDevicesGraphE return NewItemOwnedDevicesGraphEndpointRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation devices owned by the user. Read-only. Nullable. Supports $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOwnedDevicesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnedDevicesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -114,6 +117,7 @@ func (m *ItemOwnedDevicesRequestBuilder) ToGetRequestInformation(ctx context.Con return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOwnedDevicesRequestBuilder when successful func (m *ItemOwnedDevicesRequestBuilder) WithUrl(rawUrl string)(*ItemOwnedDevicesRequestBuilder) { return NewItemOwnedDevicesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_owned_objects_count_request_builder.go b/users/item_owned_objects_count_request_builder.go index aaadd0cc6ee..5a2356bc307 100644 --- a/users/item_owned_objects_count_request_builder.go +++ b/users/item_owned_objects_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemOwnedObjectsCountRequestBuilder(rawUrl string, requestAdapter i2ae41 return NewItemOwnedObjectsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOwnedObjectsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOwnedObjectsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemOwnedObjectsCountRequestBuilder) Get(ctx context.Context, requestCo return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOwnedObjectsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnedObjectsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemOwnedObjectsCountRequestBuilder) ToGetRequestInformation(ctx contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOwnedObjectsCountRequestBuilder when successful func (m *ItemOwnedObjectsCountRequestBuilder) WithUrl(rawUrl string)(*ItemOwnedObjectsCountRequestBuilder) { return NewItemOwnedObjectsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_owned_objects_directory_object_item_request_builder.go b/users/item_owned_objects_directory_object_item_request_builder.go index afe2e15dbe9..420a454bf50 100644 --- a/users/item_owned_objects_directory_object_item_request_builder.go +++ b/users/item_owned_objects_directory_object_item_request_builder.go @@ -41,6 +41,7 @@ func NewItemOwnedObjectsDirectoryObjectItemRequestBuilder(rawUrl string, request return NewItemOwnedObjectsDirectoryObjectItemRequestBuilderInternal(urlParams, requestAdapter) } // Get directory objects owned by the user. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DirectoryObjectable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOwnedObjectsDirectoryObjectItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOwnedObjectsDirectoryObjectItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryObjectable, error) { @@ -76,6 +77,7 @@ func (m *ItemOwnedObjectsDirectoryObjectItemRequestBuilder) GraphServicePrincipa return NewItemOwnedObjectsItemGraphServicePrincipalRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation directory objects owned by the user. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOwnedObjectsDirectoryObjectItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnedObjectsDirectoryObjectItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -90,6 +92,7 @@ func (m *ItemOwnedObjectsDirectoryObjectItemRequestBuilder) ToGetRequestInformat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOwnedObjectsDirectoryObjectItemRequestBuilder when successful func (m *ItemOwnedObjectsDirectoryObjectItemRequestBuilder) WithUrl(rawUrl string)(*ItemOwnedObjectsDirectoryObjectItemRequestBuilder) { return NewItemOwnedObjectsDirectoryObjectItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_owned_objects_graph_application_count_request_builder.go b/users/item_owned_objects_graph_application_count_request_builder.go index 5b7bae7d3c1..3441d1d304b 100644 --- a/users/item_owned_objects_graph_application_count_request_builder.go +++ b/users/item_owned_objects_graph_application_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemOwnedObjectsGraphApplicationCountRequestBuilder(rawUrl string, reque return NewItemOwnedObjectsGraphApplicationCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOwnedObjectsGraphApplicationCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOwnedObjectsGraphApplicationCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemOwnedObjectsGraphApplicationCountRequestBuilder) Get(ctx context.Co return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOwnedObjectsGraphApplicationCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnedObjectsGraphApplicationCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemOwnedObjectsGraphApplicationCountRequestBuilder) ToGetRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOwnedObjectsGraphApplicationCountRequestBuilder when successful func (m *ItemOwnedObjectsGraphApplicationCountRequestBuilder) WithUrl(rawUrl string)(*ItemOwnedObjectsGraphApplicationCountRequestBuilder) { return NewItemOwnedObjectsGraphApplicationCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_owned_objects_graph_application_request_builder.go b/users/item_owned_objects_graph_application_request_builder.go index 76d8736335d..beba763872f 100644 --- a/users/item_owned_objects_graph_application_request_builder.go +++ b/users/item_owned_objects_graph_application_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemOwnedObjectsGraphApplicationRequestBuilder) Count()(*ItemOwnedObjec return NewItemOwnedObjectsGraphApplicationCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get the items of type microsoft.graph.application in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ApplicationCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOwnedObjectsGraphApplicationRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOwnedObjectsGraphApplicationRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApplicationCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemOwnedObjectsGraphApplicationRequestBuilder) Get(ctx context.Context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ApplicationCollectionResponseable), nil } // ToGetRequestInformation get the items of type microsoft.graph.application in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOwnedObjectsGraphApplicationRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnedObjectsGraphApplicationRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemOwnedObjectsGraphApplicationRequestBuilder) ToGetRequestInformation return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOwnedObjectsGraphApplicationRequestBuilder when successful func (m *ItemOwnedObjectsGraphApplicationRequestBuilder) WithUrl(rawUrl string)(*ItemOwnedObjectsGraphApplicationRequestBuilder) { return NewItemOwnedObjectsGraphApplicationRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_owned_objects_graph_group_count_request_builder.go b/users/item_owned_objects_graph_group_count_request_builder.go index 1ff413b161a..f0610f0522a 100644 --- a/users/item_owned_objects_graph_group_count_request_builder.go +++ b/users/item_owned_objects_graph_group_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemOwnedObjectsGraphGroupCountRequestBuilder(rawUrl string, requestAdap return NewItemOwnedObjectsGraphGroupCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOwnedObjectsGraphGroupCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOwnedObjectsGraphGroupCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemOwnedObjectsGraphGroupCountRequestBuilder) Get(ctx context.Context, return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOwnedObjectsGraphGroupCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnedObjectsGraphGroupCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemOwnedObjectsGraphGroupCountRequestBuilder) ToGetRequestInformation( return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOwnedObjectsGraphGroupCountRequestBuilder when successful func (m *ItemOwnedObjectsGraphGroupCountRequestBuilder) WithUrl(rawUrl string)(*ItemOwnedObjectsGraphGroupCountRequestBuilder) { return NewItemOwnedObjectsGraphGroupCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_owned_objects_graph_group_request_builder.go b/users/item_owned_objects_graph_group_request_builder.go index 1daddfc266a..49655c32fae 100644 --- a/users/item_owned_objects_graph_group_request_builder.go +++ b/users/item_owned_objects_graph_group_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemOwnedObjectsGraphGroupRequestBuilder) Count()(*ItemOwnedObjectsGrap return NewItemOwnedObjectsGraphGroupCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a GroupCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOwnedObjectsGraphGroupRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOwnedObjectsGraphGroupRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GroupCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemOwnedObjectsGraphGroupRequestBuilder) Get(ctx context.Context, requ return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GroupCollectionResponseable), nil } // ToGetRequestInformation get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOwnedObjectsGraphGroupRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnedObjectsGraphGroupRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemOwnedObjectsGraphGroupRequestBuilder) ToGetRequestInformation(ctx c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOwnedObjectsGraphGroupRequestBuilder when successful func (m *ItemOwnedObjectsGraphGroupRequestBuilder) WithUrl(rawUrl string)(*ItemOwnedObjectsGraphGroupRequestBuilder) { return NewItemOwnedObjectsGraphGroupRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_owned_objects_graph_service_principal_count_request_builder.go b/users/item_owned_objects_graph_service_principal_count_request_builder.go index 0e4fa211169..983902dd59e 100644 --- a/users/item_owned_objects_graph_service_principal_count_request_builder.go +++ b/users/item_owned_objects_graph_service_principal_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemOwnedObjectsGraphServicePrincipalCountRequestBuilder(rawUrl string, return NewItemOwnedObjectsGraphServicePrincipalCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOwnedObjectsGraphServicePrincipalCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOwnedObjectsGraphServicePrincipalCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemOwnedObjectsGraphServicePrincipalCountRequestBuilder) Get(ctx conte return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOwnedObjectsGraphServicePrincipalCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnedObjectsGraphServicePrincipalCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemOwnedObjectsGraphServicePrincipalCountRequestBuilder) ToGetRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOwnedObjectsGraphServicePrincipalCountRequestBuilder when successful func (m *ItemOwnedObjectsGraphServicePrincipalCountRequestBuilder) WithUrl(rawUrl string)(*ItemOwnedObjectsGraphServicePrincipalCountRequestBuilder) { return NewItemOwnedObjectsGraphServicePrincipalCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_owned_objects_graph_service_principal_request_builder.go b/users/item_owned_objects_graph_service_principal_request_builder.go index 6179faa6baf..acd248bc7c3 100644 --- a/users/item_owned_objects_graph_service_principal_request_builder.go +++ b/users/item_owned_objects_graph_service_principal_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemOwnedObjectsGraphServicePrincipalRequestBuilder) Count()(*ItemOwned return NewItemOwnedObjectsGraphServicePrincipalCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get the items of type microsoft.graph.servicePrincipal in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServicePrincipalCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOwnedObjectsGraphServicePrincipalRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOwnedObjectsGraphServicePrincipalRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServicePrincipalCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemOwnedObjectsGraphServicePrincipalRequestBuilder) Get(ctx context.Co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServicePrincipalCollectionResponseable), nil } // ToGetRequestInformation get the items of type microsoft.graph.servicePrincipal in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOwnedObjectsGraphServicePrincipalRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnedObjectsGraphServicePrincipalRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemOwnedObjectsGraphServicePrincipalRequestBuilder) ToGetRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOwnedObjectsGraphServicePrincipalRequestBuilder when successful func (m *ItemOwnedObjectsGraphServicePrincipalRequestBuilder) WithUrl(rawUrl string)(*ItemOwnedObjectsGraphServicePrincipalRequestBuilder) { return NewItemOwnedObjectsGraphServicePrincipalRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_owned_objects_item_graph_application_request_builder.go b/users/item_owned_objects_item_graph_application_request_builder.go index e9dee57cf26..6ee93dbca63 100644 --- a/users/item_owned_objects_item_graph_application_request_builder.go +++ b/users/item_owned_objects_item_graph_application_request_builder.go @@ -41,6 +41,7 @@ func NewItemOwnedObjectsItemGraphApplicationRequestBuilder(rawUrl string, reques return NewItemOwnedObjectsItemGraphApplicationRequestBuilderInternal(urlParams, requestAdapter) } // Get get the item of type microsoft.graph.directoryObject as microsoft.graph.application +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Applicationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOwnedObjectsItemGraphApplicationRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOwnedObjectsItemGraphApplicationRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Applicationable, error) { @@ -61,6 +62,7 @@ func (m *ItemOwnedObjectsItemGraphApplicationRequestBuilder) Get(ctx context.Con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Applicationable), nil } // ToGetRequestInformation get the item of type microsoft.graph.directoryObject as microsoft.graph.application +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOwnedObjectsItemGraphApplicationRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnedObjectsItemGraphApplicationRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemOwnedObjectsItemGraphApplicationRequestBuilder) ToGetRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOwnedObjectsItemGraphApplicationRequestBuilder when successful func (m *ItemOwnedObjectsItemGraphApplicationRequestBuilder) WithUrl(rawUrl string)(*ItemOwnedObjectsItemGraphApplicationRequestBuilder) { return NewItemOwnedObjectsItemGraphApplicationRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_owned_objects_item_graph_group_request_builder.go b/users/item_owned_objects_item_graph_group_request_builder.go index 019c7a13202..b65ec8cf9fc 100644 --- a/users/item_owned_objects_item_graph_group_request_builder.go +++ b/users/item_owned_objects_item_graph_group_request_builder.go @@ -41,6 +41,7 @@ func NewItemOwnedObjectsItemGraphGroupRequestBuilder(rawUrl string, requestAdapt return NewItemOwnedObjectsItemGraphGroupRequestBuilderInternal(urlParams, requestAdapter) } // Get get the item of type microsoft.graph.directoryObject as microsoft.graph.group +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Groupable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOwnedObjectsItemGraphGroupRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOwnedObjectsItemGraphGroupRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Groupable, error) { @@ -61,6 +62,7 @@ func (m *ItemOwnedObjectsItemGraphGroupRequestBuilder) Get(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Groupable), nil } // ToGetRequestInformation get the item of type microsoft.graph.directoryObject as microsoft.graph.group +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOwnedObjectsItemGraphGroupRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnedObjectsItemGraphGroupRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemOwnedObjectsItemGraphGroupRequestBuilder) ToGetRequestInformation(c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOwnedObjectsItemGraphGroupRequestBuilder when successful func (m *ItemOwnedObjectsItemGraphGroupRequestBuilder) WithUrl(rawUrl string)(*ItemOwnedObjectsItemGraphGroupRequestBuilder) { return NewItemOwnedObjectsItemGraphGroupRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_owned_objects_item_graph_service_principal_request_builder.go b/users/item_owned_objects_item_graph_service_principal_request_builder.go index 1c0a6fddece..5663a779526 100644 --- a/users/item_owned_objects_item_graph_service_principal_request_builder.go +++ b/users/item_owned_objects_item_graph_service_principal_request_builder.go @@ -41,6 +41,7 @@ func NewItemOwnedObjectsItemGraphServicePrincipalRequestBuilder(rawUrl string, r return NewItemOwnedObjectsItemGraphServicePrincipalRequestBuilderInternal(urlParams, requestAdapter) } // Get get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServicePrincipalable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOwnedObjectsItemGraphServicePrincipalRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOwnedObjectsItemGraphServicePrincipalRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServicePrincipalable, error) { @@ -61,6 +62,7 @@ func (m *ItemOwnedObjectsItemGraphServicePrincipalRequestBuilder) Get(ctx contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServicePrincipalable), nil } // ToGetRequestInformation get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOwnedObjectsItemGraphServicePrincipalRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnedObjectsItemGraphServicePrincipalRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemOwnedObjectsItemGraphServicePrincipalRequestBuilder) ToGetRequestIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOwnedObjectsItemGraphServicePrincipalRequestBuilder when successful func (m *ItemOwnedObjectsItemGraphServicePrincipalRequestBuilder) WithUrl(rawUrl string)(*ItemOwnedObjectsItemGraphServicePrincipalRequestBuilder) { return NewItemOwnedObjectsItemGraphServicePrincipalRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_owned_objects_request_builder.go b/users/item_owned_objects_request_builder.go index 12bda9434f7..ca23d879130 100644 --- a/users/item_owned_objects_request_builder.go +++ b/users/item_owned_objects_request_builder.go @@ -40,6 +40,7 @@ type ItemOwnedObjectsRequestBuilderGetRequestConfiguration struct { QueryParameters *ItemOwnedObjectsRequestBuilderGetQueryParameters } // ByDirectoryObjectId provides operations to manage the ownedObjects property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOwnedObjectsDirectoryObjectItemRequestBuilder when successful func (m *ItemOwnedObjectsRequestBuilder) ByDirectoryObjectId(directoryObjectId string)(*ItemOwnedObjectsDirectoryObjectItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -70,6 +71,7 @@ func (m *ItemOwnedObjectsRequestBuilder) Count()(*ItemOwnedObjectsCountRequestBu return NewItemOwnedObjectsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get directory objects owned by the user. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DirectoryObjectCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemOwnedObjectsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOwnedObjectsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryObjectCollectionResponseable, error) { @@ -105,6 +107,7 @@ func (m *ItemOwnedObjectsRequestBuilder) GraphServicePrincipal()(*ItemOwnedObjec return NewItemOwnedObjectsGraphServicePrincipalRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation directory objects owned by the user. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemOwnedObjectsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOwnedObjectsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -119,6 +122,7 @@ func (m *ItemOwnedObjectsRequestBuilder) ToGetRequestInformation(ctx context.Con return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOwnedObjectsRequestBuilder when successful func (m *ItemOwnedObjectsRequestBuilder) WithUrl(rawUrl string)(*ItemOwnedObjectsRequestBuilder) { return NewItemOwnedObjectsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_pending_access_review_instances_access_review_instance_item_request_builder.go b/users/item_pending_access_review_instances_access_review_instance_item_request_builder.go index e980348ba2a..7b3ebd98583 100644 --- a/users/item_pending_access_review_instances_access_review_instance_item_request_builder.go +++ b/users/item_pending_access_review_instances_access_review_instance_item_request_builder.go @@ -85,6 +85,7 @@ func (m *ItemPendingAccessReviewInstancesAccessReviewInstanceItemRequestBuilder) return NewItemPendingAccessReviewInstancesItemDefinitionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Delete delete navigation property pendingAccessReviewInstances for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesAccessReviewInstanceItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesAccessReviewInstanceItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -101,6 +102,7 @@ func (m *ItemPendingAccessReviewInstancesAccessReviewInstanceItemRequestBuilder) return nil } // Get navigation property to get a list of access reviews pending approval by the reviewer. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewInstanceable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesAccessReviewInstanceItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesAccessReviewInstanceItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceable, error) { @@ -121,6 +123,7 @@ func (m *ItemPendingAccessReviewInstancesAccessReviewInstanceItemRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceable), nil } // Patch update the navigation property pendingAccessReviewInstances in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewInstanceable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesAccessReviewInstanceItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceable, requestConfiguration *ItemPendingAccessReviewInstancesAccessReviewInstanceItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceable, error) { @@ -166,6 +169,7 @@ func (m *ItemPendingAccessReviewInstancesAccessReviewInstanceItemRequestBuilder) return NewItemPendingAccessReviewInstancesItemStopApplyDecisionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property pendingAccessReviewInstances for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesAccessReviewInstanceItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesAccessReviewInstanceItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -177,6 +181,7 @@ func (m *ItemPendingAccessReviewInstancesAccessReviewInstanceItemRequestBuilder) return requestInfo, nil } // ToGetRequestInformation navigation property to get a list of access reviews pending approval by the reviewer. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesAccessReviewInstanceItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesAccessReviewInstanceItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -191,6 +196,7 @@ func (m *ItemPendingAccessReviewInstancesAccessReviewInstanceItemRequestBuilder) return requestInfo, nil } // ToPatchRequestInformation update the navigation property pendingAccessReviewInstances in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesAccessReviewInstanceItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceable, requestConfiguration *ItemPendingAccessReviewInstancesAccessReviewInstanceItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -206,6 +212,7 @@ func (m *ItemPendingAccessReviewInstancesAccessReviewInstanceItemRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesAccessReviewInstanceItemRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesAccessReviewInstanceItemRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesAccessReviewInstanceItemRequestBuilder) { return NewItemPendingAccessReviewInstancesAccessReviewInstanceItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_pending_access_review_instances_count_request_builder.go b/users/item_pending_access_review_instances_count_request_builder.go index 2b130b69d2c..5563c91e3b6 100644 --- a/users/item_pending_access_review_instances_count_request_builder.go +++ b/users/item_pending_access_review_instances_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemPendingAccessReviewInstancesCountRequestBuilder(rawUrl string, reque return NewItemPendingAccessReviewInstancesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemPendingAccessReviewInstancesCountRequestBuilder) Get(ctx context.Co return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemPendingAccessReviewInstancesCountRequestBuilder) ToGetRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesCountRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesCountRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesCountRequestBuilder) { return NewItemPendingAccessReviewInstancesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_pending_access_review_instances_filter_by_current_user_with_on_request_builder.go b/users/item_pending_access_review_instances_filter_by_current_user_with_on_request_builder.go index 2fff0136956..8e70fc47f71 100644 --- a/users/item_pending_access_review_instances_filter_by_current_user_with_on_request_builder.go +++ b/users/item_pending_access_review_instances_filter_by_current_user_with_on_request_builder.go @@ -79,6 +79,7 @@ func (m *ItemPendingAccessReviewInstancesFilterByCurrentUserWithOnRequestBuilder return res.(ItemPendingAccessReviewInstancesFilterByCurrentUserWithOnResponseable), nil } // GetAsFilterByCurrentUserWithOnGetResponse returns all accessReviewInstance objects on a given accessReviewScheduleDefinition where the calling user is a reviewer on one or more accessReviewInstanceDecisionItem objects. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemPendingAccessReviewInstancesFilterByCurrentUserWithOnGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -102,6 +103,7 @@ func (m *ItemPendingAccessReviewInstancesFilterByCurrentUserWithOnRequestBuilder return res.(ItemPendingAccessReviewInstancesFilterByCurrentUserWithOnGetResponseable), nil } // ToGetRequestInformation returns all accessReviewInstance objects on a given accessReviewScheduleDefinition where the calling user is a reviewer on one or more accessReviewInstanceDecisionItem objects. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesFilterByCurrentUserWithOnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesFilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -116,6 +118,7 @@ func (m *ItemPendingAccessReviewInstancesFilterByCurrentUserWithOnRequestBuilder return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesFilterByCurrentUserWithOnRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesFilterByCurrentUserWithOnRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesFilterByCurrentUserWithOnRequestBuilder) { return NewItemPendingAccessReviewInstancesFilterByCurrentUserWithOnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_pending_access_review_instances_item_accept_recommendations_request_builder.go b/users/item_pending_access_review_instances_item_accept_recommendations_request_builder.go index 792531b45ee..c737f085932 100644 --- a/users/item_pending_access_review_instances_item_accept_recommendations_request_builder.go +++ b/users/item_pending_access_review_instances_item_accept_recommendations_request_builder.go @@ -31,6 +31,7 @@ func NewItemPendingAccessReviewInstancesItemAcceptRecommendationsRequestBuilder( return NewItemPendingAccessReviewInstancesItemAcceptRecommendationsRequestBuilderInternal(urlParams, requestAdapter) } // Post allows the acceptance of recommendations on all accessReviewInstanceDecisionItem objects that haven't been reviewed for an accessReviewInstance object for which the calling user is a reviewer. Recommendations are generated if recommendationsEnabled is true on the accessReviewScheduleDefinition object. If there isn't a recommendation on an accessReviewInstanceDecisionItem object no decision will be recorded. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemPendingAccessReviewInstancesItemAcceptRecommendationsRequestBuilder return nil } // ToPostRequestInformation allows the acceptance of recommendations on all accessReviewInstanceDecisionItem objects that haven't been reviewed for an accessReviewInstance object for which the calling user is a reviewer. Recommendations are generated if recommendationsEnabled is true on the accessReviewScheduleDefinition object. If there isn't a recommendation on an accessReviewInstanceDecisionItem object no decision will be recorded. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemAcceptRecommendationsRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemAcceptRecommendationsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemPendingAccessReviewInstancesItemAcceptRecommendationsRequestBuilder return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemAcceptRecommendationsRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemAcceptRecommendationsRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemAcceptRecommendationsRequestBuilder) { return NewItemPendingAccessReviewInstancesItemAcceptRecommendationsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_pending_access_review_instances_item_apply_decisions_request_builder.go b/users/item_pending_access_review_instances_item_apply_decisions_request_builder.go index 62ee530348c..324e4926cb8 100644 --- a/users/item_pending_access_review_instances_item_apply_decisions_request_builder.go +++ b/users/item_pending_access_review_instances_item_apply_decisions_request_builder.go @@ -31,6 +31,7 @@ func NewItemPendingAccessReviewInstancesItemApplyDecisionsRequestBuilder(rawUrl return NewItemPendingAccessReviewInstancesItemApplyDecisionsRequestBuilderInternal(urlParams, requestAdapter) } // Post apply review decisions on an accessReviewInstance if the decisions were not applied automatically because the autoApplyDecisionsEnabled property is false in the review's accessReviewScheduleSettings. The status of the accessReviewInstance must be Completed to call this method. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemPendingAccessReviewInstancesItemApplyDecisionsRequestBuilder) Post( return nil } // ToPostRequestInformation apply review decisions on an accessReviewInstance if the decisions were not applied automatically because the autoApplyDecisionsEnabled property is false in the review's accessReviewScheduleSettings. The status of the accessReviewInstance must be Completed to call this method. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemApplyDecisionsRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemApplyDecisionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemPendingAccessReviewInstancesItemApplyDecisionsRequestBuilder) ToPos return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemApplyDecisionsRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemApplyDecisionsRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemApplyDecisionsRequestBuilder) { return NewItemPendingAccessReviewInstancesItemApplyDecisionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_pending_access_review_instances_item_batch_record_decisions_request_builder.go b/users/item_pending_access_review_instances_item_batch_record_decisions_request_builder.go index db46f084d86..f7769041582 100644 --- a/users/item_pending_access_review_instances_item_batch_record_decisions_request_builder.go +++ b/users/item_pending_access_review_instances_item_batch_record_decisions_request_builder.go @@ -31,6 +31,7 @@ func NewItemPendingAccessReviewInstancesItemBatchRecordDecisionsRequestBuilder(r return NewItemPendingAccessReviewInstancesItemBatchRecordDecisionsRequestBuilderInternal(urlParams, requestAdapter) } // Post enables reviewers to review all accessReviewInstanceDecisionItem objects in batches by using principalId, resourceId, or neither. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemPendingAccessReviewInstancesItemBatchRecordDecisionsRequestBuilder) return nil } // ToPostRequestInformation enables reviewers to review all accessReviewInstanceDecisionItem objects in batches by using principalId, resourceId, or neither. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemBatchRecordDecisionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemPendingAccessReviewInstancesItemBatchRecordDecisionsPostRequestBodyable, requestConfiguration *ItemPendingAccessReviewInstancesItemBatchRecordDecisionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemPendingAccessReviewInstancesItemBatchRecordDecisionsRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemBatchRecordDecisionsRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemBatchRecordDecisionsRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemBatchRecordDecisionsRequestBuilder) { return NewItemPendingAccessReviewInstancesItemBatchRecordDecisionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_pending_access_review_instances_item_contacted_reviewers_count_request_builder.go b/users/item_pending_access_review_instances_item_contacted_reviewers_count_request_builder.go index 58aa4e816a6..474ea34dc2e 100644 --- a/users/item_pending_access_review_instances_item_contacted_reviewers_count_request_builder.go +++ b/users/item_pending_access_review_instances_item_contacted_reviewers_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemPendingAccessReviewInstancesItemContactedReviewersCountRequestBuilde return NewItemPendingAccessReviewInstancesItemContactedReviewersCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemContactedReviewersCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemContactedReviewersCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemPendingAccessReviewInstancesItemContactedReviewersCountRequestBuild return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemContactedReviewersCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemContactedReviewersCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemPendingAccessReviewInstancesItemContactedReviewersCountRequestBuild return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemContactedReviewersCountRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemContactedReviewersCountRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemContactedReviewersCountRequestBuilder) { return NewItemPendingAccessReviewInstancesItemContactedReviewersCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_pending_access_review_instances_item_contacted_reviewers_request_builder.go b/users/item_pending_access_review_instances_item_contacted_reviewers_request_builder.go index dd6508b7017..32922041b37 100644 --- a/users/item_pending_access_review_instances_item_contacted_reviewers_request_builder.go +++ b/users/item_pending_access_review_instances_item_contacted_reviewers_request_builder.go @@ -47,6 +47,7 @@ type ItemPendingAccessReviewInstancesItemContactedReviewersRequestBuilderPostReq Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAccessReviewReviewerId provides operations to manage the contactedReviewers property of the microsoft.graph.accessReviewInstance entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemContactedReviewersAccessReviewReviewerItemRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemContactedReviewersRequestBuilder) ByAccessReviewReviewerId(accessReviewReviewerId string)(*ItemPendingAccessReviewInstancesItemContactedReviewersAccessReviewReviewerItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemPendingAccessReviewInstancesItemContactedReviewersRequestBuilder) C return NewItemPendingAccessReviewInstancesItemContactedReviewersCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get returns the collection of reviewers who were contacted to complete this review. While the reviewers and fallbackReviewers properties of the accessReviewScheduleDefinition might specify group owners or managers as reviewers, contactedReviewers returns their individual identities. Supports $select. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewReviewerCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemContactedReviewersRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemContactedReviewersRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewReviewerCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemPendingAccessReviewInstancesItemContactedReviewersRequestBuilder) G return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewReviewerCollectionResponseable), nil } // Post create new navigation property to contactedReviewers for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewReviewerable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemContactedReviewersRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewReviewerable, requestConfiguration *ItemPendingAccessReviewInstancesItemContactedReviewersRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewReviewerable, error) { @@ -117,6 +120,7 @@ func (m *ItemPendingAccessReviewInstancesItemContactedReviewersRequestBuilder) P return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewReviewerable), nil } // ToGetRequestInformation returns the collection of reviewers who were contacted to complete this review. While the reviewers and fallbackReviewers properties of the accessReviewScheduleDefinition might specify group owners or managers as reviewers, contactedReviewers returns their individual identities. Supports $select. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemContactedReviewersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemContactedReviewersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemPendingAccessReviewInstancesItemContactedReviewersRequestBuilder) T return requestInfo, nil } // ToPostRequestInformation create new navigation property to contactedReviewers for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemContactedReviewersRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewReviewerable, requestConfiguration *ItemPendingAccessReviewInstancesItemContactedReviewersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemPendingAccessReviewInstancesItemContactedReviewersRequestBuilder) T return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemContactedReviewersRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemContactedReviewersRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemContactedReviewersRequestBuilder) { return NewItemPendingAccessReviewInstancesItemContactedReviewersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_pending_access_review_instances_item_decisions_count_request_builder.go b/users/item_pending_access_review_instances_item_decisions_count_request_builder.go index 6cb1b928bde..6052d67b41e 100644 --- a/users/item_pending_access_review_instances_item_decisions_count_request_builder.go +++ b/users/item_pending_access_review_instances_item_decisions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemPendingAccessReviewInstancesItemDecisionsCountRequestBuilder(rawUrl return NewItemPendingAccessReviewInstancesItemDecisionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemDecisionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsCountRequestBuilder) Get(c return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsCountRequestBuilder) ToGet return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemDecisionsCountRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemDecisionsCountRequestBuilder) { return NewItemPendingAccessReviewInstancesItemDecisionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_pending_access_review_instances_item_decisions_filter_by_current_user_with_on_request_builder.go b/users/item_pending_access_review_instances_item_decisions_filter_by_current_user_with_on_request_builder.go index 74fe5be5447..162f9fd8390 100644 --- a/users/item_pending_access_review_instances_item_decisions_filter_by_current_user_with_on_request_builder.go +++ b/users/item_pending_access_review_instances_item_decisions_filter_by_current_user_with_on_request_builder.go @@ -79,6 +79,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsFilterByCurrentUserWithOnR return res.(ItemPendingAccessReviewInstancesItemDecisionsFilterByCurrentUserWithOnResponseable), nil } // GetAsFilterByCurrentUserWithOnGetResponse retrieve the accessReviewInstanceDecisionItem objects for a specific accessReviewInstance. A list of zero or more accessReviewInstanceDecisionItem objects are returned, including all of their nested properties. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemPendingAccessReviewInstancesItemDecisionsFilterByCurrentUserWithOnGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -102,6 +103,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsFilterByCurrentUserWithOnR return res.(ItemPendingAccessReviewInstancesItemDecisionsFilterByCurrentUserWithOnGetResponseable), nil } // ToGetRequestInformation retrieve the accessReviewInstanceDecisionItem objects for a specific accessReviewInstance. A list of zero or more accessReviewInstanceDecisionItem objects are returned, including all of their nested properties. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsFilterByCurrentUserWithOnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsFilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -116,6 +118,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsFilterByCurrentUserWithOnR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemDecisionsFilterByCurrentUserWithOnRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsFilterByCurrentUserWithOnRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemDecisionsFilterByCurrentUserWithOnRequestBuilder) { return NewItemPendingAccessReviewInstancesItemDecisionsFilterByCurrentUserWithOnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_pending_access_review_instances_item_decisions_item_insights_count_request_builder.go b/users/item_pending_access_review_instances_item_decisions_item_insights_count_request_builder.go index 8002d2ce733..d9f272da016 100644 --- a/users/item_pending_access_review_instances_item_decisions_item_insights_count_request_builder.go +++ b/users/item_pending_access_review_instances_item_decisions_item_insights_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemPendingAccessReviewInstancesItemDecisionsItemInsightsCountRequestBui return NewItemPendingAccessReviewInstancesItemDecisionsItemInsightsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInsightsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInsightsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInsightsCountRequestBu return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInsightsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInsightsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInsightsCountRequestBu return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemDecisionsItemInsightsCountRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInsightsCountRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemDecisionsItemInsightsCountRequestBuilder) { return NewItemPendingAccessReviewInstancesItemDecisionsItemInsightsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_pending_access_review_instances_item_decisions_item_insights_request_builder.go b/users/item_pending_access_review_instances_item_decisions_item_insights_request_builder.go index 1357c25d045..3a7d4d896b5 100644 --- a/users/item_pending_access_review_instances_item_decisions_item_insights_request_builder.go +++ b/users/item_pending_access_review_instances_item_decisions_item_insights_request_builder.go @@ -47,6 +47,7 @@ type ItemPendingAccessReviewInstancesItemDecisionsItemInsightsRequestBuilderPost Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByGovernanceInsightId provides operations to manage the insights property of the microsoft.graph.accessReviewInstanceDecisionItem entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInsightsRequestBuilder) ByGovernanceInsightId(governanceInsightId string)(*ItemPendingAccessReviewInstancesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInsightsRequestBuilder return NewItemPendingAccessReviewInstancesItemDecisionsItemInsightsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a GovernanceInsightCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInsightsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInsightsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInsightsRequestBuilder return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightCollectionResponseable), nil } // Post create new navigation property to insights for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a GovernanceInsightable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInsightsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightable, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInsightsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightable, error) { @@ -117,6 +120,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInsightsRequestBuilder return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightable), nil } // ToGetRequestInformation insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInsightsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInsightsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInsightsRequestBuilder return requestInfo, nil } // ToPostRequestInformation create new navigation property to insights for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInsightsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightable, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInsightsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInsightsRequestBuilder return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemDecisionsItemInsightsRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInsightsRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemDecisionsItemInsightsRequestBuilder) { return NewItemPendingAccessReviewInstancesItemDecisionsItemInsightsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_pending_access_review_instances_item_decisions_item_instance_apply_decisions_request_builder.go b/users/item_pending_access_review_instances_item_decisions_item_instance_apply_decisions_request_builder.go index 00889d1b3fe..262651f7fc0 100644 --- a/users/item_pending_access_review_instances_item_decisions_item_instance_apply_decisions_request_builder.go +++ b/users/item_pending_access_review_instances_item_decisions_item_instance_apply_decisions_request_builder.go @@ -31,6 +31,7 @@ func NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceApplyDecisionsR return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceApplyDecisionsRequestBuilderInternal(urlParams, requestAdapter) } // Post apply review decisions on an accessReviewInstance if the decisions were not applied automatically because the autoApplyDecisionsEnabled property is false in the review's accessReviewScheduleSettings. The status of the accessReviewInstance must be Completed to call this method. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceApplyDecisions return nil } // ToPostRequestInformation apply review decisions on an accessReviewInstance if the decisions were not applied automatically because the autoApplyDecisionsEnabled property is false in the review's accessReviewScheduleSettings. The status of the accessReviewInstance must be Completed to call this method. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceApplyDecisionsRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceApplyDecisionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceApplyDecisions return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceApplyDecisionsRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceApplyDecisionsRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemDecisionsItemInstanceApplyDecisionsRequestBuilder) { return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceApplyDecisionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_pending_access_review_instances_item_decisions_item_instance_definition_request_builder.go b/users/item_pending_access_review_instances_item_decisions_item_instance_definition_request_builder.go index b8c49c4ae49..bc835d5cbe8 100644 --- a/users/item_pending_access_review_instances_item_decisions_item_instance_definition_request_builder.go +++ b/users/item_pending_access_review_instances_item_decisions_item_instance_definition_request_builder.go @@ -41,6 +41,7 @@ func NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceDefinitionReque return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceDefinitionRequestBuilderInternal(urlParams, requestAdapter) } // Get there's exactly one accessReviewScheduleDefinition associated with each instance. It's the parent schedule for the instance, where instances are created for each recurrence of a review definition and each group selected to review by the definition. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewScheduleDefinitionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceDefinitionRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceDefinitionRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewScheduleDefinitionable, error) { @@ -61,6 +62,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceDefinitionRequ return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewScheduleDefinitionable), nil } // ToGetRequestInformation there's exactly one accessReviewScheduleDefinition associated with each instance. It's the parent schedule for the instance, where instances are created for each recurrence of a review definition and each group selected to review by the definition. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceDefinitionRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceDefinitionRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceDefinitionRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceDefinitionRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceDefinitionRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemDecisionsItemInstanceDefinitionRequestBuilder) { return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceDefinitionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_pending_access_review_instances_item_decisions_item_instance_request_builder.go b/users/item_pending_access_review_instances_item_decisions_item_instance_request_builder.go index 2f0c4af5e36..4b54bd09650 100644 --- a/users/item_pending_access_review_instances_item_decisions_item_instance_request_builder.go +++ b/users/item_pending_access_review_instances_item_decisions_item_instance_request_builder.go @@ -80,6 +80,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceRequestBuilder return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceDefinitionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Delete delete navigation property instance for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -96,6 +97,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceRequestBuilder return nil } // Get there's exactly one accessReviewInstance associated with each decision. The instance is the parent of the decision item, representing the recurrence of the access review the decision is made on. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewInstanceable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceable, error) { @@ -116,6 +118,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceRequestBuilder return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceable), nil } // Patch update the navigation property instance in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewInstanceable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceable, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceable, error) { @@ -161,6 +164,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceRequestBuilder return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceStopApplyDecisionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property instance for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -172,6 +176,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceRequestBuilder return requestInfo, nil } // ToGetRequestInformation there's exactly one accessReviewInstance associated with each decision. The instance is the parent of the decision item, representing the recurrence of the access review the decision is made on. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -186,6 +191,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceRequestBuilder return requestInfo, nil } // ToPatchRequestInformation update the navigation property instance in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceable, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -201,6 +207,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceRequestBuilder return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemDecisionsItemInstanceRequestBuilder) { return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_pending_access_review_instances_item_decisions_item_instance_reset_decisions_request_builder.go b/users/item_pending_access_review_instances_item_decisions_item_instance_reset_decisions_request_builder.go index 558d39530e6..c7c9c9419bb 100644 --- a/users/item_pending_access_review_instances_item_decisions_item_instance_reset_decisions_request_builder.go +++ b/users/item_pending_access_review_instances_item_decisions_item_instance_reset_decisions_request_builder.go @@ -31,6 +31,7 @@ func NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceResetDecisionsR return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceResetDecisionsRequestBuilderInternal(urlParams, requestAdapter) } // Post resets decisions of all accessReviewInstanceDecisionItem objects on an accessReviewInstance to notReviewed. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceResetDecisions return nil } // ToPostRequestInformation resets decisions of all accessReviewInstanceDecisionItem objects on an accessReviewInstance to notReviewed. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceResetDecisionsRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceResetDecisionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceResetDecisions return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceResetDecisionsRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceResetDecisionsRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemDecisionsItemInstanceResetDecisionsRequestBuilder) { return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceResetDecisionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_pending_access_review_instances_item_decisions_item_instance_send_reminder_request_builder.go b/users/item_pending_access_review_instances_item_decisions_item_instance_send_reminder_request_builder.go index 9c4162f61e8..02206107e8f 100644 --- a/users/item_pending_access_review_instances_item_decisions_item_instance_send_reminder_request_builder.go +++ b/users/item_pending_access_review_instances_item_decisions_item_instance_send_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceSendReminderReq return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceSendReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post send a reminder to the reviewers of a currently active accessReviewInstance. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceSendReminderRe return nil } // ToPostRequestInformation send a reminder to the reviewers of a currently active accessReviewInstance. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceSendReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceSendReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceSendReminderRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceSendReminderRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceSendReminderRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemDecisionsItemInstanceSendReminderRequestBuilder) { return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceSendReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_pending_access_review_instances_item_decisions_item_instance_stages_count_request_builder.go b/users/item_pending_access_review_instances_item_decisions_item_instance_stages_count_request_builder.go index c578ed07410..a547921ddb2 100644 --- a/users/item_pending_access_review_instances_item_decisions_item_instance_stages_count_request_builder.go +++ b/users/item_pending_access_review_instances_item_decisions_item_instance_stages_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesCountRequ return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesCountReq return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesCountReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesCountRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesCountRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesCountRequestBuilder) { return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_pending_access_review_instances_item_decisions_item_instance_stages_item_stop_request_builder.go b/users/item_pending_access_review_instances_item_decisions_item_instance_stages_item_stop_request_builder.go index 1d52ecbfaf6..fdc52db3487 100644 --- a/users/item_pending_access_review_instances_item_decisions_item_instance_stages_item_stop_request_builder.go +++ b/users/item_pending_access_review_instances_item_decisions_item_instance_stages_item_stop_request_builder.go @@ -31,6 +31,7 @@ func NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemStopR return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemStopRequestBuilderInternal(urlParams, requestAdapter) } // Post stop an access review stage that is inProgress. After the access review stage stops, the stage status will be Completed and the reviewers can no longer give input. If there are subsequent stages that depend on the completed stage, the next stage will be created. The accessReviewInstanceDecisionItem objects will always reflect the last decisions recorded across all stages at that given time, regardless of the status of the stages. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemStop return nil } // ToPostRequestInformation stop an access review stage that is inProgress. After the access review stage stops, the stage status will be Completed and the reviewers can no longer give input. If there are subsequent stages that depend on the completed stage, the next stage will be created. The accessReviewInstanceDecisionItem objects will always reflect the last decisions recorded across all stages at that given time, regardless of the status of the stages. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemStopRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemStopRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemStop return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemStopRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemStopRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemStopRequestBuilder) { return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesItemStopRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_pending_access_review_instances_item_decisions_item_instance_stages_request_builder.go b/users/item_pending_access_review_instances_item_decisions_item_instance_stages_request_builder.go index 1165a535c64..6f4c48657c8 100644 --- a/users/item_pending_access_review_instances_item_decisions_item_instance_stages_request_builder.go +++ b/users/item_pending_access_review_instances_item_decisions_item_instance_stages_request_builder.go @@ -47,6 +47,7 @@ type ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesRequestBuild Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAccessReviewStageId provides operations to manage the stages property of the microsoft.graph.accessReviewInstance entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesAccessReviewStageItemRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesRequestBuilder) ByAccessReviewStageId(accessReviewStageId string)(*ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesAccessReviewStageItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,11 +78,13 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesRequestB return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // FilterByCurrentUserWithOn provides operations to call the filterByCurrentUser method. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesFilterByCurrentUserWithOnRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesRequestBuilder) FilterByCurrentUserWithOn(on *string)(*ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesFilterByCurrentUserWithOnRequestBuilder) { return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesFilterByCurrentUserWithOnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, on) } // Get if the instance has multiple stages, this returns the collection of stages. A new stage will only be created when the previous stage ends. The existence, number, and settings of stages on a review instance are created based on the accessReviewStageSettings on the parent accessReviewScheduleDefinition. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewStageCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewStageCollectionResponseable, error) { @@ -102,6 +105,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesRequestB return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewStageCollectionResponseable), nil } // Post create new navigation property to stages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewStageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewStageable, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewStageable, error) { @@ -122,6 +126,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesRequestB return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewStageable), nil } // ToGetRequestInformation if the instance has multiple stages, this returns the collection of stages. A new stage will only be created when the previous stage ends. The existence, number, and settings of stages on a review instance are created based on the accessReviewStageSettings on the parent accessReviewScheduleDefinition. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesRequestB return requestInfo, nil } // ToPostRequestInformation create new navigation property to stages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewStageable, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesRequestB return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesRequestBuilder) { return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceStagesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_pending_access_review_instances_item_decisions_item_instance_stop_request_builder.go b/users/item_pending_access_review_instances_item_decisions_item_instance_stop_request_builder.go index 3192be70b08..a9852898dc6 100644 --- a/users/item_pending_access_review_instances_item_decisions_item_instance_stop_request_builder.go +++ b/users/item_pending_access_review_instances_item_decisions_item_instance_stop_request_builder.go @@ -31,6 +31,7 @@ func NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceStopRequestBuil return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceStopRequestBuilderInternal(urlParams, requestAdapter) } // Post stop a currently active accessReviewInstance. After the access review instance stops, the instance status will be Completed, the reviewers can no longer give input, and the access review decisions can be applied. Stopping an instance will not effect future instances. To prevent a recurring access review from starting future instances, update the schedule definition to change its scheduled end date. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStopRequestBui return nil } // ToPostRequestInformation stop a currently active accessReviewInstance. After the access review instance stops, the instance status will be Completed, the reviewers can no longer give input, and the access review decisions can be applied. Stopping an instance will not effect future instances. To prevent a recurring access review from starting future instances, update the schedule definition to change its scheduled end date. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStopRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStopRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStopRequestBui return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStopRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStopRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemDecisionsItemInstanceStopRequestBuilder) { return NewItemPendingAccessReviewInstancesItemDecisionsItemInstanceStopRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_pending_access_review_instances_item_decisions_record_all_decisions_request_builder.go b/users/item_pending_access_review_instances_item_decisions_record_all_decisions_request_builder.go index e829275011c..8c5f0fa2097 100644 --- a/users/item_pending_access_review_instances_item_decisions_record_all_decisions_request_builder.go +++ b/users/item_pending_access_review_instances_item_decisions_record_all_decisions_request_builder.go @@ -31,6 +31,7 @@ func NewItemPendingAccessReviewInstancesItemDecisionsRecordAllDecisionsRequestBu return NewItemPendingAccessReviewInstancesItemDecisionsRecordAllDecisionsRequestBuilderInternal(urlParams, requestAdapter) } // Post as a reviewer of an access review, record a decision for an accessReviewInstanceDecisionItem that is assigned to you and that matches the principal or resource IDs specified. If no IDs are specified, the decisions will apply to every accessReviewInstanceDecisionItem for which you are the reviewer. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsRecordAllDecisionsRequestB return nil } // ToPostRequestInformation as a reviewer of an access review, record a decision for an accessReviewInstanceDecisionItem that is assigned to you and that matches the principal or resource IDs specified. If no IDs are specified, the decisions will apply to every accessReviewInstanceDecisionItem for which you are the reviewer. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsRecordAllDecisionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemPendingAccessReviewInstancesItemDecisionsRecordAllDecisionsPostRequestBodyable, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsRecordAllDecisionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsRecordAllDecisionsRequestB return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemDecisionsRecordAllDecisionsRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsRecordAllDecisionsRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemDecisionsRecordAllDecisionsRequestBuilder) { return NewItemPendingAccessReviewInstancesItemDecisionsRecordAllDecisionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_pending_access_review_instances_item_decisions_request_builder.go b/users/item_pending_access_review_instances_item_decisions_request_builder.go index a7e0adb6251..ecea97e558e 100644 --- a/users/item_pending_access_review_instances_item_decisions_request_builder.go +++ b/users/item_pending_access_review_instances_item_decisions_request_builder.go @@ -47,6 +47,7 @@ type ItemPendingAccessReviewInstancesItemDecisionsRequestBuilderPostRequestConfi Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAccessReviewInstanceDecisionItemId provides operations to manage the decisions property of the microsoft.graph.accessReviewInstance entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsRequestBuilder) ByAccessReviewInstanceDecisionItemId(accessReviewInstanceDecisionItemId string)(*ItemPendingAccessReviewInstancesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,11 +78,13 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsRequestBuilder) Count()(*I return NewItemPendingAccessReviewInstancesItemDecisionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // FilterByCurrentUserWithOn provides operations to call the filterByCurrentUser method. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemDecisionsFilterByCurrentUserWithOnRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsRequestBuilder) FilterByCurrentUserWithOn(on *string)(*ItemPendingAccessReviewInstancesItemDecisionsFilterByCurrentUserWithOnRequestBuilder) { return NewItemPendingAccessReviewInstancesItemDecisionsFilterByCurrentUserWithOnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, on) } // Get each user reviewed in an accessReviewInstance has a decision item representing if they were approved, denied, or not yet reviewed. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewInstanceDecisionItemCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemDecisionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceDecisionItemCollectionResponseable, error) { @@ -102,6 +105,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsRequestBuilder) Get(ctx co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceDecisionItemCollectionResponseable), nil } // Post create new navigation property to decisions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewInstanceDecisionItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemDecisionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceDecisionItemable, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceDecisionItemable, error) { @@ -127,6 +131,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsRequestBuilder) RecordAllD return NewItemPendingAccessReviewInstancesItemDecisionsRecordAllDecisionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation each user reviewed in an accessReviewInstance has a decision item representing if they were approved, denied, or not yet reviewed. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,6 +146,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsRequestBuilder) ToGetReque return requestInfo, nil } // ToPostRequestInformation create new navigation property to decisions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceDecisionItemable, requestConfiguration *ItemPendingAccessReviewInstancesItemDecisionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +162,7 @@ func (m *ItemPendingAccessReviewInstancesItemDecisionsRequestBuilder) ToPostRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemDecisionsRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemDecisionsRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemDecisionsRequestBuilder) { return NewItemPendingAccessReviewInstancesItemDecisionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_pending_access_review_instances_item_definition_request_builder.go b/users/item_pending_access_review_instances_item_definition_request_builder.go index b486bf873ec..c19b38cf70c 100644 --- a/users/item_pending_access_review_instances_item_definition_request_builder.go +++ b/users/item_pending_access_review_instances_item_definition_request_builder.go @@ -41,6 +41,7 @@ func NewItemPendingAccessReviewInstancesItemDefinitionRequestBuilder(rawUrl stri return NewItemPendingAccessReviewInstancesItemDefinitionRequestBuilderInternal(urlParams, requestAdapter) } // Get there's exactly one accessReviewScheduleDefinition associated with each instance. It's the parent schedule for the instance, where instances are created for each recurrence of a review definition and each group selected to review by the definition. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewScheduleDefinitionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemDefinitionRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDefinitionRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewScheduleDefinitionable, error) { @@ -61,6 +62,7 @@ func (m *ItemPendingAccessReviewInstancesItemDefinitionRequestBuilder) Get(ctx c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewScheduleDefinitionable), nil } // ToGetRequestInformation there's exactly one accessReviewScheduleDefinition associated with each instance. It's the parent schedule for the instance, where instances are created for each recurrence of a review definition and each group selected to review by the definition. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemDefinitionRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemDefinitionRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemPendingAccessReviewInstancesItemDefinitionRequestBuilder) ToGetRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemDefinitionRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemDefinitionRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemDefinitionRequestBuilder) { return NewItemPendingAccessReviewInstancesItemDefinitionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_pending_access_review_instances_item_reset_decisions_request_builder.go b/users/item_pending_access_review_instances_item_reset_decisions_request_builder.go index 14a2988da4d..39606b653ec 100644 --- a/users/item_pending_access_review_instances_item_reset_decisions_request_builder.go +++ b/users/item_pending_access_review_instances_item_reset_decisions_request_builder.go @@ -31,6 +31,7 @@ func NewItemPendingAccessReviewInstancesItemResetDecisionsRequestBuilder(rawUrl return NewItemPendingAccessReviewInstancesItemResetDecisionsRequestBuilderInternal(urlParams, requestAdapter) } // Post resets decisions of all accessReviewInstanceDecisionItem objects on an accessReviewInstance to notReviewed. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemPendingAccessReviewInstancesItemResetDecisionsRequestBuilder) Post( return nil } // ToPostRequestInformation resets decisions of all accessReviewInstanceDecisionItem objects on an accessReviewInstance to notReviewed. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemResetDecisionsRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemResetDecisionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemPendingAccessReviewInstancesItemResetDecisionsRequestBuilder) ToPos return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemResetDecisionsRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemResetDecisionsRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemResetDecisionsRequestBuilder) { return NewItemPendingAccessReviewInstancesItemResetDecisionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_pending_access_review_instances_item_send_reminder_request_builder.go b/users/item_pending_access_review_instances_item_send_reminder_request_builder.go index 0379ae3b235..5505efff84b 100644 --- a/users/item_pending_access_review_instances_item_send_reminder_request_builder.go +++ b/users/item_pending_access_review_instances_item_send_reminder_request_builder.go @@ -31,6 +31,7 @@ func NewItemPendingAccessReviewInstancesItemSendReminderRequestBuilder(rawUrl st return NewItemPendingAccessReviewInstancesItemSendReminderRequestBuilderInternal(urlParams, requestAdapter) } // Post send a reminder to the reviewers of a currently active accessReviewInstance. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemPendingAccessReviewInstancesItemSendReminderRequestBuilder) Post(ct return nil } // ToPostRequestInformation send a reminder to the reviewers of a currently active accessReviewInstance. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemSendReminderRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemSendReminderRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemPendingAccessReviewInstancesItemSendReminderRequestBuilder) ToPostR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemSendReminderRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemSendReminderRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemSendReminderRequestBuilder) { return NewItemPendingAccessReviewInstancesItemSendReminderRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_pending_access_review_instances_item_stages_access_review_stage_item_request_builder.go b/users/item_pending_access_review_instances_item_stages_access_review_stage_item_request_builder.go index 1d366c4ae7f..861b253ad76 100644 --- a/users/item_pending_access_review_instances_item_stages_access_review_stage_item_request_builder.go +++ b/users/item_pending_access_review_instances_item_stages_access_review_stage_item_request_builder.go @@ -60,6 +60,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesAccessReviewStageItemRequestB return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Delete delete navigation property stages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemStagesAccessReviewStageItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesAccessReviewStageItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -76,6 +77,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesAccessReviewStageItemRequestB return nil } // Get if the instance has multiple stages, this returns the collection of stages. A new stage will only be created when the previous stage ends. The existence, number, and settings of stages on a review instance are created based on the accessReviewStageSettings on the parent accessReviewScheduleDefinition. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewStageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemStagesAccessReviewStageItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesAccessReviewStageItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewStageable, error) { @@ -96,6 +98,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesAccessReviewStageItemRequestB return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewStageable), nil } // Patch update the navigation property stages in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewStageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemStagesAccessReviewStageItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewStageable, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesAccessReviewStageItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewStageable, error) { @@ -121,6 +124,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesAccessReviewStageItemRequestB return NewItemPendingAccessReviewInstancesItemStagesItemStopRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property stages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesAccessReviewStageItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesAccessReviewStageItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -132,6 +136,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesAccessReviewStageItemRequestB return requestInfo, nil } // ToGetRequestInformation if the instance has multiple stages, this returns the collection of stages. A new stage will only be created when the previous stage ends. The existence, number, and settings of stages on a review instance are created based on the accessReviewStageSettings on the parent accessReviewScheduleDefinition. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesAccessReviewStageItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesAccessReviewStageItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesAccessReviewStageItemRequestB return requestInfo, nil } // ToPatchRequestInformation update the navigation property stages in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesAccessReviewStageItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewStageable, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesAccessReviewStageItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -161,6 +167,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesAccessReviewStageItemRequestB return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemStagesAccessReviewStageItemRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemStagesAccessReviewStageItemRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemStagesAccessReviewStageItemRequestBuilder) { return NewItemPendingAccessReviewInstancesItemStagesAccessReviewStageItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_pending_access_review_instances_item_stages_count_request_builder.go b/users/item_pending_access_review_instances_item_stages_count_request_builder.go index 44ba7b8867a..495a0a5d430 100644 --- a/users/item_pending_access_review_instances_item_stages_count_request_builder.go +++ b/users/item_pending_access_review_instances_item_stages_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemPendingAccessReviewInstancesItemStagesCountRequestBuilder(rawUrl str return NewItemPendingAccessReviewInstancesItemStagesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemStagesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesCountRequestBuilder) Get(ctx return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesCountRequestBuilder) ToGetReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemStagesCountRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemStagesCountRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemStagesCountRequestBuilder) { return NewItemPendingAccessReviewInstancesItemStagesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_pending_access_review_instances_item_stages_filter_by_current_user_with_on_request_builder.go b/users/item_pending_access_review_instances_item_stages_filter_by_current_user_with_on_request_builder.go index 872856c6679..fcc8476d1ac 100644 --- a/users/item_pending_access_review_instances_item_stages_filter_by_current_user_with_on_request_builder.go +++ b/users/item_pending_access_review_instances_item_stages_filter_by_current_user_with_on_request_builder.go @@ -79,6 +79,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesFilterByCurrentUserWithOnRequ return res.(ItemPendingAccessReviewInstancesItemStagesFilterByCurrentUserWithOnResponseable), nil } // GetAsFilterByCurrentUserWithOnGetResponse return all accessReviewStage objects on a given accessReviewInstance where the calling user is a reviewer on one or more accessReviewInstanceDecisionItem objects. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemPendingAccessReviewInstancesItemStagesFilterByCurrentUserWithOnGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -102,6 +103,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesFilterByCurrentUserWithOnRequ return res.(ItemPendingAccessReviewInstancesItemStagesFilterByCurrentUserWithOnGetResponseable), nil } // ToGetRequestInformation return all accessReviewStage objects on a given accessReviewInstance where the calling user is a reviewer on one or more accessReviewInstanceDecisionItem objects. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesFilterByCurrentUserWithOnRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesFilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -116,6 +118,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesFilterByCurrentUserWithOnRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemStagesFilterByCurrentUserWithOnRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemStagesFilterByCurrentUserWithOnRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemStagesFilterByCurrentUserWithOnRequestBuilder) { return NewItemPendingAccessReviewInstancesItemStagesFilterByCurrentUserWithOnRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_pending_access_review_instances_item_stages_item_decisions_count_request_builder.go b/users/item_pending_access_review_instances_item_stages_item_decisions_count_request_builder.go index 81c74924729..039779f6631 100644 --- a/users/item_pending_access_review_instances_item_stages_item_decisions_count_request_builder.go +++ b/users/item_pending_access_review_instances_item_stages_item_decisions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemPendingAccessReviewInstancesItemStagesItemDecisionsCountRequestBuild return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsCountRequestBuil return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsCountRequestBuil return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemStagesItemDecisionsCountRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemStagesItemDecisionsCountRequestBuilder) { return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_pending_access_review_instances_item_stages_item_decisions_item_insights_count_request_builder.go b/users/item_pending_access_review_instances_item_stages_item_decisions_item_insights_count_request_builder.go index 177fb550ad0..1487971bf78 100644 --- a/users/item_pending_access_review_instances_item_stages_item_decisions_item_insights_count_request_builder.go +++ b/users/item_pending_access_review_instances_item_stages_item_decisions_item_insights_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsCount return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsCoun return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsCoun return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsCountRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsCountRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsCountRequestBuilder) { return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_pending_access_review_instances_item_stages_item_decisions_item_insights_request_builder.go b/users/item_pending_access_review_instances_item_stages_item_decisions_item_insights_request_builder.go index 336f629a5f3..9c79f2de704 100644 --- a/users/item_pending_access_review_instances_item_stages_item_decisions_item_insights_request_builder.go +++ b/users/item_pending_access_review_instances_item_stages_item_decisions_item_insights_request_builder.go @@ -47,6 +47,7 @@ type ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsRequestB Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByGovernanceInsightId provides operations to manage the insights property of the microsoft.graph.accessReviewInstanceDecisionItem entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsRequestBuilder) ByGovernanceInsightId(governanceInsightId string)(*ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsGovernanceInsightItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsRequ return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a GovernanceInsightCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsRequ return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightCollectionResponseable), nil } // Post create new navigation property to insights for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a GovernanceInsightable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightable, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightable, error) { @@ -117,6 +120,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsRequ return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightable), nil } // ToGetRequestInformation insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsRequ return requestInfo, nil } // ToPostRequestInformation create new navigation property to insights for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GovernanceInsightable, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsRequestBuilder) { return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInsightsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_pending_access_review_instances_item_stages_item_decisions_item_instance_request_builder.go b/users/item_pending_access_review_instances_item_stages_item_decisions_item_instance_request_builder.go index 5616507ae4c..004a0658e0d 100644 --- a/users/item_pending_access_review_instances_item_stages_item_decisions_item_instance_request_builder.go +++ b/users/item_pending_access_review_instances_item_stages_item_decisions_item_instance_request_builder.go @@ -85,6 +85,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceRequ return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceDefinitionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Delete delete navigation property instance for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -101,6 +102,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceRequ return nil } // Get there's exactly one accessReviewInstance associated with each decision. The instance is the parent of the decision item, representing the recurrence of the access review the decision is made on. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewInstanceable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceable, error) { @@ -121,6 +123,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceRequ return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceable), nil } // Patch update the navigation property instance in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewInstanceable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceable, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceable, error) { @@ -161,6 +164,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceRequ return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceStopApplyDecisionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property instance for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -172,6 +176,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceRequ return requestInfo, nil } // ToGetRequestInformation there's exactly one accessReviewInstance associated with each decision. The instance is the parent of the decision item, representing the recurrence of the access review the decision is made on. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -186,6 +191,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceRequ return requestInfo, nil } // ToPatchRequestInformation update the navigation property instance in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceable, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -201,6 +207,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceRequestBuilder) { return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_pending_access_review_instances_item_stages_item_decisions_item_instance_stop_request_builder.go b/users/item_pending_access_review_instances_item_stages_item_decisions_item_instance_stop_request_builder.go index 663b2613a00..9e27595955a 100644 --- a/users/item_pending_access_review_instances_item_stages_item_decisions_item_instance_stop_request_builder.go +++ b/users/item_pending_access_review_instances_item_stages_item_decisions_item_instance_stop_request_builder.go @@ -31,6 +31,7 @@ func NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceStopR return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceStopRequestBuilderInternal(urlParams, requestAdapter) } // Post stop a currently active accessReviewInstance. After the access review instance stops, the instance status will be Completed, the reviewers can no longer give input, and the access review decisions can be applied. Stopping an instance will not effect future instances. To prevent a recurring access review from starting future instances, update the schedule definition to change its scheduled end date. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceStop return nil } // ToPostRequestInformation stop a currently active accessReviewInstance. After the access review instance stops, the instance status will be Completed, the reviewers can no longer give input, and the access review decisions can be applied. Stopping an instance will not effect future instances. To prevent a recurring access review from starting future instances, update the schedule definition to change its scheduled end date. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceStopRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceStopRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceStop return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceStopRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceStopRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceStopRequestBuilder) { return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsItemInstanceStopRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_pending_access_review_instances_item_stages_item_decisions_record_all_decisions_request_builder.go b/users/item_pending_access_review_instances_item_stages_item_decisions_record_all_decisions_request_builder.go index 007657663f1..b5658358aed 100644 --- a/users/item_pending_access_review_instances_item_stages_item_decisions_record_all_decisions_request_builder.go +++ b/users/item_pending_access_review_instances_item_stages_item_decisions_record_all_decisions_request_builder.go @@ -31,6 +31,7 @@ func NewItemPendingAccessReviewInstancesItemStagesItemDecisionsRecordAllDecision return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsRecordAllDecisionsRequestBuilderInternal(urlParams, requestAdapter) } // Post as a reviewer of an access review, record a decision for an accessReviewInstanceDecisionItem that is assigned to you and that matches the principal or resource IDs specified. If no IDs are specified, the decisions will apply to every accessReviewInstanceDecisionItem for which you are the reviewer. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsRecordAllDecisio return nil } // ToPostRequestInformation as a reviewer of an access review, record a decision for an accessReviewInstanceDecisionItem that is assigned to you and that matches the principal or resource IDs specified. If no IDs are specified, the decisions will apply to every accessReviewInstanceDecisionItem for which you are the reviewer. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsRecordAllDecisionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemPendingAccessReviewInstancesItemStagesItemDecisionsRecordAllDecisionsPostRequestBodyable, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsRecordAllDecisionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsRecordAllDecisio return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemStagesItemDecisionsRecordAllDecisionsRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsRecordAllDecisionsRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemStagesItemDecisionsRecordAllDecisionsRequestBuilder) { return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsRecordAllDecisionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_pending_access_review_instances_item_stages_item_decisions_request_builder.go b/users/item_pending_access_review_instances_item_stages_item_decisions_request_builder.go index e92f458a348..c9ad57b2164 100644 --- a/users/item_pending_access_review_instances_item_stages_item_decisions_request_builder.go +++ b/users/item_pending_access_review_instances_item_stages_item_decisions_request_builder.go @@ -47,6 +47,7 @@ type ItemPendingAccessReviewInstancesItemStagesItemDecisionsRequestBuilderPostRe Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAccessReviewInstanceDecisionItemId provides operations to manage the decisions property of the microsoft.graph.accessReviewStage entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemStagesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsRequestBuilder) ByAccessReviewInstanceDecisionItemId(accessReviewInstanceDecisionItemId string)(*ItemPendingAccessReviewInstancesItemStagesItemDecisionsAccessReviewInstanceDecisionItemItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,11 +78,13 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsRequestBuilder) return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // FilterByCurrentUserWithOn provides operations to call the filterByCurrentUser method. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemStagesItemDecisionsFilterByCurrentUserWithOnRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsRequestBuilder) FilterByCurrentUserWithOn(on *string)(*ItemPendingAccessReviewInstancesItemStagesItemDecisionsFilterByCurrentUserWithOnRequestBuilder) { return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsFilterByCurrentUserWithOnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, on) } // Get each user reviewed in an accessReviewStage has a decision item representing if they were approved, denied, or not yet reviewed. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewInstanceDecisionItemCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceDecisionItemCollectionResponseable, error) { @@ -102,6 +105,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceDecisionItemCollectionResponseable), nil } // Post create new navigation property to decisions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewInstanceDecisionItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceDecisionItemable, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceDecisionItemable, error) { @@ -127,6 +131,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsRequestBuilder) return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsRecordAllDecisionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation each user reviewed in an accessReviewStage has a decision item representing if they were approved, denied, or not yet reviewed. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,6 +146,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsRequestBuilder) return requestInfo, nil } // ToPostRequestInformation create new navigation property to decisions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceDecisionItemable, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemDecisionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +162,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemStagesItemDecisionsRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemDecisionsRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemStagesItemDecisionsRequestBuilder) { return NewItemPendingAccessReviewInstancesItemStagesItemDecisionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_pending_access_review_instances_item_stages_item_stop_request_builder.go b/users/item_pending_access_review_instances_item_stages_item_stop_request_builder.go index 4437b30d2fc..cd29a647251 100644 --- a/users/item_pending_access_review_instances_item_stages_item_stop_request_builder.go +++ b/users/item_pending_access_review_instances_item_stages_item_stop_request_builder.go @@ -31,6 +31,7 @@ func NewItemPendingAccessReviewInstancesItemStagesItemStopRequestBuilder(rawUrl return NewItemPendingAccessReviewInstancesItemStagesItemStopRequestBuilderInternal(urlParams, requestAdapter) } // Post stop an access review stage that is inProgress. After the access review stage stops, the stage status will be Completed and the reviewers can no longer give input. If there are subsequent stages that depend on the completed stage, the next stage will be created. The accessReviewInstanceDecisionItem objects will always reflect the last decisions recorded across all stages at that given time, regardless of the status of the stages. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemStopRequestBuilder) Post( return nil } // ToPostRequestInformation stop an access review stage that is inProgress. After the access review stage stops, the stage status will be Completed and the reviewers can no longer give input. If there are subsequent stages that depend on the completed stage, the next stage will be created. The accessReviewInstanceDecisionItem objects will always reflect the last decisions recorded across all stages at that given time, regardless of the status of the stages. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemStopRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesItemStopRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesItemStopRequestBuilder) ToPos return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemStagesItemStopRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemStagesItemStopRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemStagesItemStopRequestBuilder) { return NewItemPendingAccessReviewInstancesItemStagesItemStopRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_pending_access_review_instances_item_stages_request_builder.go b/users/item_pending_access_review_instances_item_stages_request_builder.go index b3ac79f8751..e4deabbd178 100644 --- a/users/item_pending_access_review_instances_item_stages_request_builder.go +++ b/users/item_pending_access_review_instances_item_stages_request_builder.go @@ -47,6 +47,7 @@ type ItemPendingAccessReviewInstancesItemStagesRequestBuilderPostRequestConfigur Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAccessReviewStageId provides operations to manage the stages property of the microsoft.graph.accessReviewInstance entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemStagesAccessReviewStageItemRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemStagesRequestBuilder) ByAccessReviewStageId(accessReviewStageId string)(*ItemPendingAccessReviewInstancesItemStagesAccessReviewStageItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,11 +78,13 @@ func (m *ItemPendingAccessReviewInstancesItemStagesRequestBuilder) Count()(*Item return NewItemPendingAccessReviewInstancesItemStagesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // FilterByCurrentUserWithOn provides operations to call the filterByCurrentUser method. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemStagesFilterByCurrentUserWithOnRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemStagesRequestBuilder) FilterByCurrentUserWithOn(on *string)(*ItemPendingAccessReviewInstancesItemStagesFilterByCurrentUserWithOnRequestBuilder) { return NewItemPendingAccessReviewInstancesItemStagesFilterByCurrentUserWithOnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, on) } // Get if the instance has multiple stages, this returns the collection of stages. A new stage will only be created when the previous stage ends. The existence, number, and settings of stages on a review instance are created based on the accessReviewStageSettings on the parent accessReviewScheduleDefinition. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewStageCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemStagesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewStageCollectionResponseable, error) { @@ -102,6 +105,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesRequestBuilder) Get(ctx conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewStageCollectionResponseable), nil } // Post create new navigation property to stages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewStageable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemStagesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewStageable, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewStageable, error) { @@ -122,6 +126,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesRequestBuilder) Post(ctx cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewStageable), nil } // ToGetRequestInformation if the instance has multiple stages, this returns the collection of stages. A new stage will only be created when the previous stage ends. The existence, number, and settings of stages on a review instance are created based on the accessReviewStageSettings on the parent accessReviewScheduleDefinition. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesRequestBuilder) ToGetRequestI return requestInfo, nil } // ToPostRequestInformation create new navigation property to stages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewStageable, requestConfiguration *ItemPendingAccessReviewInstancesItemStagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemPendingAccessReviewInstancesItemStagesRequestBuilder) ToPostRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemStagesRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemStagesRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemStagesRequestBuilder) { return NewItemPendingAccessReviewInstancesItemStagesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_pending_access_review_instances_item_stop_apply_decisions_request_builder.go b/users/item_pending_access_review_instances_item_stop_apply_decisions_request_builder.go index 7bcbadbc1c9..5cd7a0f4613 100644 --- a/users/item_pending_access_review_instances_item_stop_apply_decisions_request_builder.go +++ b/users/item_pending_access_review_instances_item_stop_apply_decisions_request_builder.go @@ -31,6 +31,7 @@ func NewItemPendingAccessReviewInstancesItemStopApplyDecisionsRequestBuilder(raw return NewItemPendingAccessReviewInstancesItemStopApplyDecisionsRequestBuilderInternal(urlParams, requestAdapter) } // Post invoke action stopApplyDecisions +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesItemStopApplyDecisionsRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStopApplyDecisionsRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemPendingAccessReviewInstancesItemStopApplyDecisionsRequestBuilder) P return nil } // ToPostRequestInformation invoke action stopApplyDecisions +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStopApplyDecisionsRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStopApplyDecisionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -58,6 +60,7 @@ func (m *ItemPendingAccessReviewInstancesItemStopApplyDecisionsRequestBuilder) T return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemStopApplyDecisionsRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemStopApplyDecisionsRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemStopApplyDecisionsRequestBuilder) { return NewItemPendingAccessReviewInstancesItemStopApplyDecisionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_pending_access_review_instances_item_stop_request_builder.go b/users/item_pending_access_review_instances_item_stop_request_builder.go index b94db1cab6e..3b2e4d5acc8 100644 --- a/users/item_pending_access_review_instances_item_stop_request_builder.go +++ b/users/item_pending_access_review_instances_item_stop_request_builder.go @@ -31,6 +31,7 @@ func NewItemPendingAccessReviewInstancesItemStopRequestBuilder(rawUrl string, re return NewItemPendingAccessReviewInstancesItemStopRequestBuilderInternal(urlParams, requestAdapter) } // Post stop a currently active accessReviewInstance. After the access review instance stops, the instance status will be Completed, the reviewers can no longer give input, and the access review decisions can be applied. Stopping an instance will not effect future instances. To prevent a recurring access review from starting future instances, update the schedule definition to change its scheduled end date. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemPendingAccessReviewInstancesItemStopRequestBuilder) Post(ctx contex return nil } // ToPostRequestInformation stop a currently active accessReviewInstance. After the access review instance stops, the instance status will be Completed, the reviewers can no longer give input, and the access review decisions can be applied. Stopping an instance will not effect future instances. To prevent a recurring access review from starting future instances, update the schedule definition to change its scheduled end date. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesItemStopRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesItemStopRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemPendingAccessReviewInstancesItemStopRequestBuilder) ToPostRequestIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesItemStopRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesItemStopRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesItemStopRequestBuilder) { return NewItemPendingAccessReviewInstancesItemStopRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_pending_access_review_instances_request_builder.go b/users/item_pending_access_review_instances_request_builder.go index d7943ea2a74..54fb47d2766 100644 --- a/users/item_pending_access_review_instances_request_builder.go +++ b/users/item_pending_access_review_instances_request_builder.go @@ -47,6 +47,7 @@ type ItemPendingAccessReviewInstancesRequestBuilderPostRequestConfiguration stru Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAccessReviewInstanceId provides operations to manage the pendingAccessReviewInstances property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesAccessReviewInstanceItemRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesRequestBuilder) ByAccessReviewInstanceId(accessReviewInstanceId string)(*ItemPendingAccessReviewInstancesAccessReviewInstanceItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,11 +78,13 @@ func (m *ItemPendingAccessReviewInstancesRequestBuilder) Count()(*ItemPendingAcc return NewItemPendingAccessReviewInstancesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // FilterByCurrentUserWithOn provides operations to call the filterByCurrentUser method. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesFilterByCurrentUserWithOnRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesRequestBuilder) FilterByCurrentUserWithOn(on *string)(*ItemPendingAccessReviewInstancesFilterByCurrentUserWithOnRequestBuilder) { return NewItemPendingAccessReviewInstancesFilterByCurrentUserWithOnRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, on) } // Get navigation property to get a list of access reviews pending approval by the reviewer. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewInstanceCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceCollectionResponseable, error) { @@ -102,6 +105,7 @@ func (m *ItemPendingAccessReviewInstancesRequestBuilder) Get(ctx context.Context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceCollectionResponseable), nil } // Post create new navigation property to pendingAccessReviewInstances for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AccessReviewInstanceable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPendingAccessReviewInstancesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceable, requestConfiguration *ItemPendingAccessReviewInstancesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceable, error) { @@ -122,6 +126,7 @@ func (m *ItemPendingAccessReviewInstancesRequestBuilder) Post(ctx context.Contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceable), nil } // ToGetRequestInformation navigation property to get a list of access reviews pending approval by the reviewer. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPendingAccessReviewInstancesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemPendingAccessReviewInstancesRequestBuilder) ToGetRequestInformation return requestInfo, nil } // ToPostRequestInformation create new navigation property to pendingAccessReviewInstances for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPendingAccessReviewInstancesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewInstanceable, requestConfiguration *ItemPendingAccessReviewInstancesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemPendingAccessReviewInstancesRequestBuilder) ToPostRequestInformatio return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPendingAccessReviewInstancesRequestBuilder when successful func (m *ItemPendingAccessReviewInstancesRequestBuilder) WithUrl(rawUrl string)(*ItemPendingAccessReviewInstancesRequestBuilder) { return NewItemPendingAccessReviewInstancesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_people_count_request_builder.go b/users/item_people_count_request_builder.go index 57585ef849d..630718d38ae 100644 --- a/users/item_people_count_request_builder.go +++ b/users/item_people_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemPeopleCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7da return NewItemPeopleCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPeopleCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPeopleCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemPeopleCountRequestBuilder) Get(ctx context.Context, requestConfigur return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPeopleCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPeopleCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemPeopleCountRequestBuilder) ToGetRequestInformation(ctx context.Cont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPeopleCountRequestBuilder when successful func (m *ItemPeopleCountRequestBuilder) WithUrl(rawUrl string)(*ItemPeopleCountRequestBuilder) { return NewItemPeopleCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_people_person_item_request_builder.go b/users/item_people_person_item_request_builder.go index 4bd85636127..5e51192e2a4 100644 --- a/users/item_people_person_item_request_builder.go +++ b/users/item_people_person_item_request_builder.go @@ -41,6 +41,7 @@ func NewItemPeoplePersonItemRequestBuilder(rawUrl string, requestAdapter i2ae418 return NewItemPeoplePersonItemRequestBuilderInternal(urlParams, requestAdapter) } // Get read-only. The most relevant people to the user. The collection is ordered by their relevance to the user, which is determined by the user's communication, collaboration, and business relationships. A person aggregates information from mail, contacts, and social networks. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Personable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPeoplePersonItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPeoplePersonItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Personable, error) { @@ -61,6 +62,7 @@ func (m *ItemPeoplePersonItemRequestBuilder) Get(ctx context.Context, requestCon return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Personable), nil } // ToGetRequestInformation read-only. The most relevant people to the user. The collection is ordered by their relevance to the user, which is determined by the user's communication, collaboration, and business relationships. A person aggregates information from mail, contacts, and social networks. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPeoplePersonItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPeoplePersonItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemPeoplePersonItemRequestBuilder) ToGetRequestInformation(ctx context return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPeoplePersonItemRequestBuilder when successful func (m *ItemPeoplePersonItemRequestBuilder) WithUrl(rawUrl string)(*ItemPeoplePersonItemRequestBuilder) { return NewItemPeoplePersonItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_people_request_builder.go b/users/item_people_request_builder.go index 813cbb8d711..fb3314d3dee 100644 --- a/users/item_people_request_builder.go +++ b/users/item_people_request_builder.go @@ -40,6 +40,7 @@ type ItemPeopleRequestBuilderGetRequestConfiguration struct { QueryParameters *ItemPeopleRequestBuilderGetQueryParameters } // ByPersonId provides operations to manage the people property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPeoplePersonItemRequestBuilder when successful func (m *ItemPeopleRequestBuilder) ByPersonId(personId string)(*ItemPeoplePersonItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -70,6 +71,7 @@ func (m *ItemPeopleRequestBuilder) Count()(*ItemPeopleCountRequestBuilder) { return NewItemPeopleCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get read-only. The most relevant people to the user. The collection is ordered by their relevance to the user, which is determined by the user's communication, collaboration, and business relationships. A person aggregates information from mail, contacts, and social networks. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PersonCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPeopleRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPeopleRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonCollectionResponseable, error) { @@ -90,6 +92,7 @@ func (m *ItemPeopleRequestBuilder) Get(ctx context.Context, requestConfiguration return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonCollectionResponseable), nil } // ToGetRequestInformation read-only. The most relevant people to the user. The collection is ordered by their relevance to the user, which is determined by the user's communication, collaboration, and business relationships. A person aggregates information from mail, contacts, and social networks. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPeopleRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPeopleRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -104,6 +107,7 @@ func (m *ItemPeopleRequestBuilder) ToGetRequestInformation(ctx context.Context, return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPeopleRequestBuilder when successful func (m *ItemPeopleRequestBuilder) WithUrl(rawUrl string)(*ItemPeopleRequestBuilder) { return NewItemPeopleRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_permission_grants_count_request_builder.go b/users/item_permission_grants_count_request_builder.go index 60e3824a150..293a8c2034a 100644 --- a/users/item_permission_grants_count_request_builder.go +++ b/users/item_permission_grants_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemPermissionGrantsCountRequestBuilder(rawUrl string, requestAdapter i2 return NewItemPermissionGrantsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPermissionGrantsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPermissionGrantsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemPermissionGrantsCountRequestBuilder) Get(ctx context.Context, reque return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPermissionGrantsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPermissionGrantsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemPermissionGrantsCountRequestBuilder) ToGetRequestInformation(ctx co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPermissionGrantsCountRequestBuilder when successful func (m *ItemPermissionGrantsCountRequestBuilder) WithUrl(rawUrl string)(*ItemPermissionGrantsCountRequestBuilder) { return NewItemPermissionGrantsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_permission_grants_request_builder.go b/users/item_permission_grants_request_builder.go index 50903c1ef9c..d483f614e85 100644 --- a/users/item_permission_grants_request_builder.go +++ b/users/item_permission_grants_request_builder.go @@ -47,6 +47,7 @@ type ItemPermissionGrantsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByResourceSpecificPermissionGrantId provides operations to manage the permissionGrants property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilder when successful func (m *ItemPermissionGrantsRequestBuilder) ByResourceSpecificPermissionGrantId(resourceSpecificPermissionGrantId string)(*ItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemPermissionGrantsRequestBuilder) Count()(*ItemPermissionGrantsCountR return NewItemPermissionGrantsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get list all resource-specific permission grants of a user. This list specifies the Microsoft Entra apps that have access to the user, along with the corresponding kind of resource-specific access that each app has. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ResourceSpecificPermissionGrantCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -100,6 +102,7 @@ func (m *ItemPermissionGrantsRequestBuilder) Get(ctx context.Context, requestCon return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ResourceSpecificPermissionGrantCollectionResponseable), nil } // Post create new navigation property to permissionGrants for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ResourceSpecificPermissionGrantable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPermissionGrantsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ResourceSpecificPermissionGrantable, requestConfiguration *ItemPermissionGrantsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ResourceSpecificPermissionGrantable, error) { @@ -120,6 +123,7 @@ func (m *ItemPermissionGrantsRequestBuilder) Post(ctx context.Context, body ie23 return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ResourceSpecificPermissionGrantable), nil } // ToGetRequestInformation list all resource-specific permission grants of a user. This list specifies the Microsoft Entra apps that have access to the user, along with the corresponding kind of resource-specific access that each app has. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPermissionGrantsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPermissionGrantsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -134,6 +138,7 @@ func (m *ItemPermissionGrantsRequestBuilder) ToGetRequestInformation(ctx context return requestInfo, nil } // ToPostRequestInformation create new navigation property to permissionGrants for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPermissionGrantsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ResourceSpecificPermissionGrantable, requestConfiguration *ItemPermissionGrantsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -149,6 +154,7 @@ func (m *ItemPermissionGrantsRequestBuilder) ToPostRequestInformation(ctx contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPermissionGrantsRequestBuilder when successful func (m *ItemPermissionGrantsRequestBuilder) WithUrl(rawUrl string)(*ItemPermissionGrantsRequestBuilder) { return NewItemPermissionGrantsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_permission_grants_resource_specific_permission_grant_item_request_builder.go b/users/item_permission_grants_resource_specific_permission_grant_item_request_builder.go index 2a1f8277ea5..77385f701d7 100644 --- a/users/item_permission_grants_resource_specific_permission_grant_item_request_builder.go +++ b/users/item_permission_grants_resource_specific_permission_grant_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilder(ra return NewItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property permissionGrants for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilder) return nil } // Get list all resource-specific permission grants of a user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ResourceSpecificPermissionGrantable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ResourceSpecificPermissionGrantable, error) { @@ -91,6 +93,7 @@ func (m *ItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ResourceSpecificPermissionGrantable), nil } // Patch update the navigation property permissionGrants in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ResourceSpecificPermissionGrantable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ResourceSpecificPermissionGrantable, requestConfiguration *ItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ResourceSpecificPermissionGrantable, error) { @@ -111,6 +114,7 @@ func (m *ItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ResourceSpecificPermissionGrantable), nil } // ToDeleteRequestInformation delete navigation property permissionGrants for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilder) return requestInfo, nil } // ToGetRequestInformation list all resource-specific permission grants of a user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilder) return requestInfo, nil } // ToPatchRequestInformation update the navigation property permissionGrants in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ResourceSpecificPermissionGrantable, requestConfiguration *ItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilder when successful func (m *ItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilder) WithUrl(rawUrl string)(*ItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilder) { return NewItemPermissionGrantsResourceSpecificPermissionGrantItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_photo_request_builder.go b/users/item_photo_request_builder.go index 7ad6606cba4..88d6e1c4840 100644 --- a/users/item_photo_request_builder.go +++ b/users/item_photo_request_builder.go @@ -60,6 +60,7 @@ func (m *ItemPhotoRequestBuilder) Content()(*ItemPhotoValueContentRequestBuilder return NewItemPhotoValueContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Delete delete navigation property photo for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPhotoRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemPhotoRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -76,6 +77,7 @@ func (m *ItemPhotoRequestBuilder) Delete(ctx context.Context, requestConfigurati return nil } // Get the user's profile photo. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ProfilePhotoable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPhotoRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPhotoRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfilePhotoable, error) { @@ -96,6 +98,7 @@ func (m *ItemPhotoRequestBuilder) Get(ctx context.Context, requestConfiguration return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfilePhotoable), nil } // Patch update the navigation property photo in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ProfilePhotoable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPhotoRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfilePhotoable, requestConfiguration *ItemPhotoRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfilePhotoable, error) { @@ -116,6 +119,7 @@ func (m *ItemPhotoRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfilePhotoable), nil } // ToDeleteRequestInformation delete navigation property photo for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPhotoRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPhotoRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -127,6 +131,7 @@ func (m *ItemPhotoRequestBuilder) ToDeleteRequestInformation(ctx context.Context return requestInfo, nil } // ToGetRequestInformation the user's profile photo. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPhotoRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPhotoRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,6 +146,7 @@ func (m *ItemPhotoRequestBuilder) ToGetRequestInformation(ctx context.Context, r return requestInfo, nil } // ToPatchRequestInformation update the navigation property photo in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPhotoRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfilePhotoable, requestConfiguration *ItemPhotoRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +162,7 @@ func (m *ItemPhotoRequestBuilder) ToPatchRequestInformation(ctx context.Context, return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPhotoRequestBuilder when successful func (m *ItemPhotoRequestBuilder) WithUrl(rawUrl string)(*ItemPhotoRequestBuilder) { return NewItemPhotoRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_photo_value_content_request_builder.go b/users/item_photo_value_content_request_builder.go index 9e8626e1a41..a459f675b1e 100644 --- a/users/item_photo_value_content_request_builder.go +++ b/users/item_photo_value_content_request_builder.go @@ -45,6 +45,7 @@ func NewItemPhotoValueContentRequestBuilder(rawUrl string, requestAdapter i2ae41 return NewItemPhotoValueContentRequestBuilderInternal(urlParams, requestAdapter) } // Delete the user's profile photo. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPhotoValueContentRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemPhotoValueContentRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -61,6 +62,7 @@ func (m *ItemPhotoValueContentRequestBuilder) Delete(ctx context.Context, reques return nil } // Get the user's profile photo. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPhotoValueContentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPhotoValueContentRequestBuilderGetRequestConfiguration)([]byte, error) { @@ -81,6 +83,7 @@ func (m *ItemPhotoValueContentRequestBuilder) Get(ctx context.Context, requestCo return res.([]byte), nil } // Put the user's profile photo. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPhotoValueContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemPhotoValueContentRequestBuilderPutRequestConfiguration)([]byte, error) { @@ -101,6 +104,7 @@ func (m *ItemPhotoValueContentRequestBuilder) Put(ctx context.Context, body []by return res.([]byte), nil } // ToDeleteRequestInformation the user's profile photo. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPhotoValueContentRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPhotoValueContentRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -112,6 +116,7 @@ func (m *ItemPhotoValueContentRequestBuilder) ToDeleteRequestInformation(ctx con return requestInfo, nil } // ToGetRequestInformation the user's profile photo. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPhotoValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPhotoValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -123,6 +128,7 @@ func (m *ItemPhotoValueContentRequestBuilder) ToGetRequestInformation(ctx contex return requestInfo, nil } // ToPutRequestInformation the user's profile photo. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPhotoValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemPhotoValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -135,6 +141,7 @@ func (m *ItemPhotoValueContentRequestBuilder) ToPutRequestInformation(ctx contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPhotoValueContentRequestBuilder when successful func (m *ItemPhotoValueContentRequestBuilder) WithUrl(rawUrl string)(*ItemPhotoValueContentRequestBuilder) { return NewItemPhotoValueContentRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_photos_item_value_content_request_builder.go b/users/item_photos_item_value_content_request_builder.go index 6995c41aac8..8b6a7a5d6da 100644 --- a/users/item_photos_item_value_content_request_builder.go +++ b/users/item_photos_item_value_content_request_builder.go @@ -45,6 +45,7 @@ func NewItemPhotosItemValueContentRequestBuilder(rawUrl string, requestAdapter i return NewItemPhotosItemValueContentRequestBuilderInternal(urlParams, requestAdapter) } // Delete the unique identifier for an entity. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPhotosItemValueContentRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemPhotosItemValueContentRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -61,6 +62,7 @@ func (m *ItemPhotosItemValueContentRequestBuilder) Delete(ctx context.Context, r return nil } // Get the unique identifier for an entity. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPhotosItemValueContentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPhotosItemValueContentRequestBuilderGetRequestConfiguration)([]byte, error) { @@ -81,6 +83,7 @@ func (m *ItemPhotosItemValueContentRequestBuilder) Get(ctx context.Context, requ return res.([]byte), nil } // Put the unique identifier for an entity. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPhotosItemValueContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemPhotosItemValueContentRequestBuilderPutRequestConfiguration)([]byte, error) { @@ -101,6 +104,7 @@ func (m *ItemPhotosItemValueContentRequestBuilder) Put(ctx context.Context, body return res.([]byte), nil } // ToDeleteRequestInformation the unique identifier for an entity. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPhotosItemValueContentRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPhotosItemValueContentRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -112,6 +116,7 @@ func (m *ItemPhotosItemValueContentRequestBuilder) ToDeleteRequestInformation(ct return requestInfo, nil } // ToGetRequestInformation the unique identifier for an entity. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPhotosItemValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPhotosItemValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -123,6 +128,7 @@ func (m *ItemPhotosItemValueContentRequestBuilder) ToGetRequestInformation(ctx c return requestInfo, nil } // ToPutRequestInformation the unique identifier for an entity. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPhotosItemValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemPhotosItemValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -135,6 +141,7 @@ func (m *ItemPhotosItemValueContentRequestBuilder) ToPutRequestInformation(ctx c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPhotosItemValueContentRequestBuilder when successful func (m *ItemPhotosItemValueContentRequestBuilder) WithUrl(rawUrl string)(*ItemPhotosItemValueContentRequestBuilder) { return NewItemPhotosItemValueContentRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_photos_profile_photo_item_request_builder.go b/users/item_photos_profile_photo_item_request_builder.go index 26a13a67bd7..f4810ae6d21 100644 --- a/users/item_photos_profile_photo_item_request_builder.go +++ b/users/item_photos_profile_photo_item_request_builder.go @@ -46,6 +46,7 @@ func (m *ItemPhotosProfilePhotoItemRequestBuilder) Content()(*ItemPhotosItemValu return NewItemPhotosItemValueContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of the user's profile photos in different sizes. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ProfilePhotoable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPhotosProfilePhotoItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPhotosProfilePhotoItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfilePhotoable, error) { @@ -66,6 +67,7 @@ func (m *ItemPhotosProfilePhotoItemRequestBuilder) Get(ctx context.Context, requ return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfilePhotoable), nil } // ToGetRequestInformation the collection of the user's profile photos in different sizes. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPhotosProfilePhotoItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPhotosProfilePhotoItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -80,6 +82,7 @@ func (m *ItemPhotosProfilePhotoItemRequestBuilder) ToGetRequestInformation(ctx c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPhotosProfilePhotoItemRequestBuilder when successful func (m *ItemPhotosProfilePhotoItemRequestBuilder) WithUrl(rawUrl string)(*ItemPhotosProfilePhotoItemRequestBuilder) { return NewItemPhotosProfilePhotoItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_photos_request_builder.go b/users/item_photos_request_builder.go index 950999984ff..b6299be62dd 100644 --- a/users/item_photos_request_builder.go +++ b/users/item_photos_request_builder.go @@ -40,6 +40,7 @@ type ItemPhotosRequestBuilderGetRequestConfiguration struct { QueryParameters *ItemPhotosRequestBuilderGetQueryParameters } // ByProfilePhotoId provides operations to manage the photos property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPhotosProfilePhotoItemRequestBuilder when successful func (m *ItemPhotosRequestBuilder) ByProfilePhotoId(profilePhotoId string)(*ItemPhotosProfilePhotoItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -65,6 +66,7 @@ func NewItemPhotosRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263 return NewItemPhotosRequestBuilderInternal(urlParams, requestAdapter) } // Get the collection of the user's profile photos in different sizes. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ProfilePhotoCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPhotosRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPhotosRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfilePhotoCollectionResponseable, error) { @@ -85,6 +87,7 @@ func (m *ItemPhotosRequestBuilder) Get(ctx context.Context, requestConfiguration return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProfilePhotoCollectionResponseable), nil } // ToGetRequestInformation the collection of the user's profile photos in different sizes. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPhotosRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPhotosRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -99,6 +102,7 @@ func (m *ItemPhotosRequestBuilder) ToGetRequestInformation(ctx context.Context, return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPhotosRequestBuilder when successful func (m *ItemPhotosRequestBuilder) WithUrl(rawUrl string)(*ItemPhotosRequestBuilder) { return NewItemPhotosRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_all_count_request_builder.go b/users/item_planner_all_count_request_builder.go index d54a4e2494b..4156d4b29f7 100644 --- a/users/item_planner_all_count_request_builder.go +++ b/users/item_planner_all_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemPlannerAllCountRequestBuilder(rawUrl string, requestAdapter i2ae4187 return NewItemPlannerAllCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerAllCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerAllCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemPlannerAllCountRequestBuilder) Get(ctx context.Context, requestConf return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerAllCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerAllCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemPlannerAllCountRequestBuilder) ToGetRequestInformation(ctx context. return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerAllCountRequestBuilder when successful func (m *ItemPlannerAllCountRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerAllCountRequestBuilder) { return NewItemPlannerAllCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_all_delta_request_builder.go b/users/item_planner_all_delta_request_builder.go index 35cb707fe0e..500e6bfd09f 100644 --- a/users/item_planner_all_delta_request_builder.go +++ b/users/item_planner_all_delta_request_builder.go @@ -76,6 +76,7 @@ func (m *ItemPlannerAllDeltaRequestBuilder) Get(ctx context.Context, requestConf return res.(ItemPlannerAllDeltaResponseable), nil } // GetAsDeltaGetResponse retrieves changes to objects that the user is subscribed to. This method allows your application to track changes to objects that the user can access from within Planner over time. The return value of this method might contain heterogeneous types of objects from Planner. For more information about tracking changes in Microsoft Graph data, see Use delta query to track changes in Microsoft Graph data. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemPlannerAllDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -99,6 +100,7 @@ func (m *ItemPlannerAllDeltaRequestBuilder) GetAsDeltaGetResponse(ctx context.Co return res.(ItemPlannerAllDeltaGetResponseable), nil } // ToGetRequestInformation retrieves changes to objects that the user is subscribed to. This method allows your application to track changes to objects that the user can access from within Planner over time. The return value of this method might contain heterogeneous types of objects from Planner. For more information about tracking changes in Microsoft Graph data, see Use delta query to track changes in Microsoft Graph data. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerAllDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerAllDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,6 +115,7 @@ func (m *ItemPlannerAllDeltaRequestBuilder) ToGetRequestInformation(ctx context. return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerAllDeltaRequestBuilder when successful func (m *ItemPlannerAllDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerAllDeltaRequestBuilder) { return NewItemPlannerAllDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_all_planner_delta_item_request_builder.go b/users/item_planner_all_planner_delta_item_request_builder.go index 51b0006ec70..963f00b2284 100644 --- a/users/item_planner_all_planner_delta_item_request_builder.go +++ b/users/item_planner_all_planner_delta_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemPlannerAllPlannerDeltaItemRequestBuilder(rawUrl string, requestAdapt return NewItemPlannerAllPlannerDeltaItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property all for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerAllPlannerDeltaItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemPlannerAllPlannerDeltaItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemPlannerAllPlannerDeltaItemRequestBuilder) Delete(ctx context.Contex return nil } // Get get all from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerDeltaable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerAllPlannerDeltaItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerAllPlannerDeltaItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerDeltaable, error) { @@ -91,6 +93,7 @@ func (m *ItemPlannerAllPlannerDeltaItemRequestBuilder) Get(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerDeltaable), nil } // Patch update the navigation property all in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerDeltaable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerAllPlannerDeltaItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerDeltaable, requestConfiguration *ItemPlannerAllPlannerDeltaItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerDeltaable, error) { @@ -111,6 +114,7 @@ func (m *ItemPlannerAllPlannerDeltaItemRequestBuilder) Patch(ctx context.Context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerDeltaable), nil } // ToDeleteRequestInformation delete navigation property all for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerAllPlannerDeltaItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerAllPlannerDeltaItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemPlannerAllPlannerDeltaItemRequestBuilder) ToDeleteRequestInformatio return requestInfo, nil } // ToGetRequestInformation get all from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerAllPlannerDeltaItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerAllPlannerDeltaItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemPlannerAllPlannerDeltaItemRequestBuilder) ToGetRequestInformation(c return requestInfo, nil } // ToPatchRequestInformation update the navigation property all in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerAllPlannerDeltaItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerDeltaable, requestConfiguration *ItemPlannerAllPlannerDeltaItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemPlannerAllPlannerDeltaItemRequestBuilder) ToPatchRequestInformation return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerAllPlannerDeltaItemRequestBuilder when successful func (m *ItemPlannerAllPlannerDeltaItemRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerAllPlannerDeltaItemRequestBuilder) { return NewItemPlannerAllPlannerDeltaItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_all_request_builder.go b/users/item_planner_all_request_builder.go index 7396eabdc7d..401c41fad74 100644 --- a/users/item_planner_all_request_builder.go +++ b/users/item_planner_all_request_builder.go @@ -47,6 +47,7 @@ type ItemPlannerAllRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByPlannerDeltaId provides operations to manage the all property of the microsoft.graph.plannerUser entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerAllPlannerDeltaItemRequestBuilder when successful func (m *ItemPlannerAllRequestBuilder) ByPlannerDeltaId(plannerDeltaId string)(*ItemPlannerAllPlannerDeltaItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemPlannerAllRequestBuilder) Delta()(*ItemPlannerAllDeltaRequestBuilde return NewItemPlannerAllDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get all from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerDeltaCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerAllRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerAllRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerDeltaCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemPlannerAllRequestBuilder) Get(ctx context.Context, requestConfigura return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerDeltaCollectionResponseable), nil } // Post create new navigation property to all for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerDeltaable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerAllRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerDeltaable, requestConfiguration *ItemPlannerAllRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerDeltaable, error) { @@ -122,6 +125,7 @@ func (m *ItemPlannerAllRequestBuilder) Post(ctx context.Context, body ie233ee762 return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerDeltaable), nil } // ToGetRequestInformation get all from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerAllRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerAllRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemPlannerAllRequestBuilder) ToGetRequestInformation(ctx context.Conte return requestInfo, nil } // ToPostRequestInformation create new navigation property to all for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerAllRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerDeltaable, requestConfiguration *ItemPlannerAllRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemPlannerAllRequestBuilder) ToPostRequestInformation(ctx context.Cont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerAllRequestBuilder when successful func (m *ItemPlannerAllRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerAllRequestBuilder) { return NewItemPlannerAllRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_favorite_plans_count_request_builder.go b/users/item_planner_favorite_plans_count_request_builder.go index f540ea7a21d..7072ef65468 100644 --- a/users/item_planner_favorite_plans_count_request_builder.go +++ b/users/item_planner_favorite_plans_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemPlannerFavoritePlansCountRequestBuilder(rawUrl string, requestAdapte return NewItemPlannerFavoritePlansCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerFavoritePlansCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerFavoritePlansCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemPlannerFavoritePlansCountRequestBuilder) Get(ctx context.Context, r return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerFavoritePlansCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerFavoritePlansCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemPlannerFavoritePlansCountRequestBuilder) ToGetRequestInformation(ct return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerFavoritePlansCountRequestBuilder when successful func (m *ItemPlannerFavoritePlansCountRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerFavoritePlansCountRequestBuilder) { return NewItemPlannerFavoritePlansCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_favorite_plans_planner_plan_item_request_builder.go b/users/item_planner_favorite_plans_planner_plan_item_request_builder.go index a2c31e9e668..eaea05c8d99 100644 --- a/users/item_planner_favorite_plans_planner_plan_item_request_builder.go +++ b/users/item_planner_favorite_plans_planner_plan_item_request_builder.go @@ -41,6 +41,7 @@ func NewItemPlannerFavoritePlansPlannerPlanItemRequestBuilder(rawUrl string, req return NewItemPlannerFavoritePlansPlannerPlanItemRequestBuilderInternal(urlParams, requestAdapter) } // Get read-only. Nullable. Returns the plannerPlans that the user marked as favorites. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerPlanable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerFavoritePlansPlannerPlanItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerFavoritePlansPlannerPlanItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerPlanable, error) { @@ -61,6 +62,7 @@ func (m *ItemPlannerFavoritePlansPlannerPlanItemRequestBuilder) Get(ctx context. return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerPlanable), nil } // ToGetRequestInformation read-only. Nullable. Returns the plannerPlans that the user marked as favorites. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerFavoritePlansPlannerPlanItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerFavoritePlansPlannerPlanItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemPlannerFavoritePlansPlannerPlanItemRequestBuilder) ToGetRequestInfo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerFavoritePlansPlannerPlanItemRequestBuilder when successful func (m *ItemPlannerFavoritePlansPlannerPlanItemRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerFavoritePlansPlannerPlanItemRequestBuilder) { return NewItemPlannerFavoritePlansPlannerPlanItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_favorite_plans_request_builder.go b/users/item_planner_favorite_plans_request_builder.go index 95d23a8d6de..83a1bd803b9 100644 --- a/users/item_planner_favorite_plans_request_builder.go +++ b/users/item_planner_favorite_plans_request_builder.go @@ -40,6 +40,7 @@ type ItemPlannerFavoritePlansRequestBuilderGetRequestConfiguration struct { QueryParameters *ItemPlannerFavoritePlansRequestBuilderGetQueryParameters } // ByPlannerPlanId provides operations to manage the favoritePlans property of the microsoft.graph.plannerUser entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerFavoritePlansPlannerPlanItemRequestBuilder when successful func (m *ItemPlannerFavoritePlansRequestBuilder) ByPlannerPlanId(plannerPlanId string)(*ItemPlannerFavoritePlansPlannerPlanItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -70,6 +71,7 @@ func (m *ItemPlannerFavoritePlansRequestBuilder) Count()(*ItemPlannerFavoritePla return NewItemPlannerFavoritePlansCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get read-only. Nullable. Returns the plannerPlans that the user marked as favorites. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerPlanCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerFavoritePlansRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerFavoritePlansRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerPlanCollectionResponseable, error) { @@ -90,6 +92,7 @@ func (m *ItemPlannerFavoritePlansRequestBuilder) Get(ctx context.Context, reques return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerPlanCollectionResponseable), nil } // ToGetRequestInformation read-only. Nullable. Returns the plannerPlans that the user marked as favorites. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerFavoritePlansRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerFavoritePlansRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -104,6 +107,7 @@ func (m *ItemPlannerFavoritePlansRequestBuilder) ToGetRequestInformation(ctx con return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerFavoritePlansRequestBuilder when successful func (m *ItemPlannerFavoritePlansRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerFavoritePlansRequestBuilder) { return NewItemPlannerFavoritePlansRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_my_day_tasks_count_request_builder.go b/users/item_planner_my_day_tasks_count_request_builder.go index 7a8f9638a08..eca0fdebecc 100644 --- a/users/item_planner_my_day_tasks_count_request_builder.go +++ b/users/item_planner_my_day_tasks_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemPlannerMyDayTasksCountRequestBuilder(rawUrl string, requestAdapter i return NewItemPlannerMyDayTasksCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerMyDayTasksCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerMyDayTasksCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemPlannerMyDayTasksCountRequestBuilder) Get(ctx context.Context, requ return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerMyDayTasksCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerMyDayTasksCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemPlannerMyDayTasksCountRequestBuilder) ToGetRequestInformation(ctx c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerMyDayTasksCountRequestBuilder when successful func (m *ItemPlannerMyDayTasksCountRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerMyDayTasksCountRequestBuilder) { return NewItemPlannerMyDayTasksCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_my_day_tasks_planner_task_item_request_builder.go b/users/item_planner_my_day_tasks_planner_task_item_request_builder.go index 18b3b42f137..2378137dc84 100644 --- a/users/item_planner_my_day_tasks_planner_task_item_request_builder.go +++ b/users/item_planner_my_day_tasks_planner_task_item_request_builder.go @@ -41,6 +41,7 @@ func NewItemPlannerMyDayTasksPlannerTaskItemRequestBuilder(rawUrl string, reques return NewItemPlannerMyDayTasksPlannerTaskItemRequestBuilderInternal(urlParams, requestAdapter) } // Get read-only. Nullable. Returns the plannerTasks to be shown in the My Day view of the user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerTaskable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerMyDayTasksPlannerTaskItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerMyDayTasksPlannerTaskItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskable, error) { @@ -61,6 +62,7 @@ func (m *ItemPlannerMyDayTasksPlannerTaskItemRequestBuilder) Get(ctx context.Con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskable), nil } // ToGetRequestInformation read-only. Nullable. Returns the plannerTasks to be shown in the My Day view of the user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerMyDayTasksPlannerTaskItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerMyDayTasksPlannerTaskItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemPlannerMyDayTasksPlannerTaskItemRequestBuilder) ToGetRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerMyDayTasksPlannerTaskItemRequestBuilder when successful func (m *ItemPlannerMyDayTasksPlannerTaskItemRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerMyDayTasksPlannerTaskItemRequestBuilder) { return NewItemPlannerMyDayTasksPlannerTaskItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_my_day_tasks_request_builder.go b/users/item_planner_my_day_tasks_request_builder.go index 48689eeb9a8..eacdc535b68 100644 --- a/users/item_planner_my_day_tasks_request_builder.go +++ b/users/item_planner_my_day_tasks_request_builder.go @@ -40,6 +40,7 @@ type ItemPlannerMyDayTasksRequestBuilderGetRequestConfiguration struct { QueryParameters *ItemPlannerMyDayTasksRequestBuilderGetQueryParameters } // ByPlannerTaskId provides operations to manage the myDayTasks property of the microsoft.graph.plannerUser entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerMyDayTasksPlannerTaskItemRequestBuilder when successful func (m *ItemPlannerMyDayTasksRequestBuilder) ByPlannerTaskId(plannerTaskId string)(*ItemPlannerMyDayTasksPlannerTaskItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -70,6 +71,7 @@ func (m *ItemPlannerMyDayTasksRequestBuilder) Count()(*ItemPlannerMyDayTasksCoun return NewItemPlannerMyDayTasksCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get read-only. Nullable. Returns the plannerTasks to be shown in the My Day view of the user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerTaskCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerMyDayTasksRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerMyDayTasksRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskCollectionResponseable, error) { @@ -90,6 +92,7 @@ func (m *ItemPlannerMyDayTasksRequestBuilder) Get(ctx context.Context, requestCo return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskCollectionResponseable), nil } // ToGetRequestInformation read-only. Nullable. Returns the plannerTasks to be shown in the My Day view of the user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerMyDayTasksRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerMyDayTasksRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -104,6 +107,7 @@ func (m *ItemPlannerMyDayTasksRequestBuilder) ToGetRequestInformation(ctx contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerMyDayTasksRequestBuilder when successful func (m *ItemPlannerMyDayTasksRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerMyDayTasksRequestBuilder) { return NewItemPlannerMyDayTasksRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_plans_count_request_builder.go b/users/item_planner_plans_count_request_builder.go index 51fee024ebd..a1171e7a0ae 100644 --- a/users/item_planner_plans_count_request_builder.go +++ b/users/item_planner_plans_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemPlannerPlansCountRequestBuilder(rawUrl string, requestAdapter i2ae41 return NewItemPlannerPlansCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerPlansCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemPlannerPlansCountRequestBuilder) Get(ctx context.Context, requestCo return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerPlansCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemPlannerPlansCountRequestBuilder) ToGetRequestInformation(ctx contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerPlansCountRequestBuilder when successful func (m *ItemPlannerPlansCountRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerPlansCountRequestBuilder) { return NewItemPlannerPlansCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_plans_delta_request_builder.go b/users/item_planner_plans_delta_request_builder.go index 48e11081629..b349f636d06 100644 --- a/users/item_planner_plans_delta_request_builder.go +++ b/users/item_planner_plans_delta_request_builder.go @@ -76,6 +76,7 @@ func (m *ItemPlannerPlansDeltaRequestBuilder) Get(ctx context.Context, requestCo return res.(ItemPlannerPlansDeltaResponseable), nil } // GetAsDeltaGetResponse get newly created, updated, or deleted Planner plans in either a group or a Planner roster without having to perform a full read of the entire resource collection. For details, see Use delta query to track changes in Microsoft Graph data. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemPlannerPlansDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -99,6 +100,7 @@ func (m *ItemPlannerPlansDeltaRequestBuilder) GetAsDeltaGetResponse(ctx context. return res.(ItemPlannerPlansDeltaGetResponseable), nil } // ToGetRequestInformation get newly created, updated, or deleted Planner plans in either a group or a Planner roster without having to perform a full read of the entire resource collection. For details, see Use delta query to track changes in Microsoft Graph data. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerPlansDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,6 +115,7 @@ func (m *ItemPlannerPlansDeltaRequestBuilder) ToGetRequestInformation(ctx contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerPlansDeltaRequestBuilder when successful func (m *ItemPlannerPlansDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerPlansDeltaRequestBuilder) { return NewItemPlannerPlansDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_plans_item_archive_request_builder.go b/users/item_planner_plans_item_archive_request_builder.go index 5ca08a03780..4e93594d53c 100644 --- a/users/item_planner_plans_item_archive_request_builder.go +++ b/users/item_planner_plans_item_archive_request_builder.go @@ -31,6 +31,7 @@ func NewItemPlannerPlansItemArchiveRequestBuilder(rawUrl string, requestAdapter return NewItemPlannerPlansItemArchiveRequestBuilderInternal(urlParams, requestAdapter) } // Post archive a plannerPlan object. Archiving a plan, also archives the plannerTasks and plannerBuckets in the plan. An archived entity is read-only. Archived entities cannot be updated. An archived plan can be unarchived. All archived entities can be deleted. Archived tasks are not included in the response for list of tasks assigned to a user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemPlannerPlansItemArchiveRequestBuilder) Post(ctx context.Context, bo return nil } // ToPostRequestInformation archive a plannerPlan object. Archiving a plan, also archives the plannerTasks and plannerBuckets in the plan. An archived entity is read-only. Archived entities cannot be updated. An archived plan can be unarchived. All archived entities can be deleted. Archived tasks are not included in the response for list of tasks assigned to a user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemArchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemPlannerPlansItemArchivePostRequestBodyable, requestConfiguration *ItemPlannerPlansItemArchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemPlannerPlansItemArchiveRequestBuilder) ToPostRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerPlansItemArchiveRequestBuilder when successful func (m *ItemPlannerPlansItemArchiveRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerPlansItemArchiveRequestBuilder) { return NewItemPlannerPlansItemArchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_plans_item_buckets_count_request_builder.go b/users/item_planner_plans_item_buckets_count_request_builder.go index 79d73fddf99..32fcf8d0029 100644 --- a/users/item_planner_plans_item_buckets_count_request_builder.go +++ b/users/item_planner_plans_item_buckets_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemPlannerPlansItemBucketsCountRequestBuilder(rawUrl string, requestAda return NewItemPlannerPlansItemBucketsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansItemBucketsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerPlansItemBucketsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemPlannerPlansItemBucketsCountRequestBuilder) Get(ctx context.Context return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemBucketsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerPlansItemBucketsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemPlannerPlansItemBucketsCountRequestBuilder) ToGetRequestInformation return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerPlansItemBucketsCountRequestBuilder when successful func (m *ItemPlannerPlansItemBucketsCountRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerPlansItemBucketsCountRequestBuilder) { return NewItemPlannerPlansItemBucketsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_plans_item_buckets_delta_request_builder.go b/users/item_planner_plans_item_buckets_delta_request_builder.go index a5ed46bac31..0e36eadecc7 100644 --- a/users/item_planner_plans_item_buckets_delta_request_builder.go +++ b/users/item_planner_plans_item_buckets_delta_request_builder.go @@ -76,6 +76,7 @@ func (m *ItemPlannerPlansItemBucketsDeltaRequestBuilder) Get(ctx context.Context return res.(ItemPlannerPlansItemBucketsDeltaResponseable), nil } // GetAsDeltaGetResponse get newly created, updated, or deleted buckets in a Planner plan without having to perform a full read of the entire resource collection. For details, see Use delta query to track changes in Microsoft Graph data. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemPlannerPlansItemBucketsDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -99,6 +100,7 @@ func (m *ItemPlannerPlansItemBucketsDeltaRequestBuilder) GetAsDeltaGetResponse(c return res.(ItemPlannerPlansItemBucketsDeltaGetResponseable), nil } // ToGetRequestInformation get newly created, updated, or deleted buckets in a Planner plan without having to perform a full read of the entire resource collection. For details, see Use delta query to track changes in Microsoft Graph data. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemBucketsDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerPlansItemBucketsDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,6 +115,7 @@ func (m *ItemPlannerPlansItemBucketsDeltaRequestBuilder) ToGetRequestInformation return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerPlansItemBucketsDeltaRequestBuilder when successful func (m *ItemPlannerPlansItemBucketsDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerPlansItemBucketsDeltaRequestBuilder) { return NewItemPlannerPlansItemBucketsDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_plans_item_buckets_item_tasks_count_request_builder.go b/users/item_planner_plans_item_buckets_item_tasks_count_request_builder.go index 0f40ad0d1e0..28368443e7a 100644 --- a/users/item_planner_plans_item_buckets_item_tasks_count_request_builder.go +++ b/users/item_planner_plans_item_buckets_item_tasks_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemPlannerPlansItemBucketsItemTasksCountRequestBuilder(rawUrl string, r return NewItemPlannerPlansItemBucketsItemTasksCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansItemBucketsItemTasksCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerPlansItemBucketsItemTasksCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemPlannerPlansItemBucketsItemTasksCountRequestBuilder) Get(ctx contex return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemBucketsItemTasksCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerPlansItemBucketsItemTasksCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemPlannerPlansItemBucketsItemTasksCountRequestBuilder) ToGetRequestIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerPlansItemBucketsItemTasksCountRequestBuilder when successful func (m *ItemPlannerPlansItemBucketsItemTasksCountRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerPlansItemBucketsItemTasksCountRequestBuilder) { return NewItemPlannerPlansItemBucketsItemTasksCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_plans_item_buckets_item_tasks_delta_request_builder.go b/users/item_planner_plans_item_buckets_item_tasks_delta_request_builder.go index 9141de37ee5..20713c69495 100644 --- a/users/item_planner_plans_item_buckets_item_tasks_delta_request_builder.go +++ b/users/item_planner_plans_item_buckets_item_tasks_delta_request_builder.go @@ -76,6 +76,7 @@ func (m *ItemPlannerPlansItemBucketsItemTasksDeltaRequestBuilder) Get(ctx contex return res.(ItemPlannerPlansItemBucketsItemTasksDeltaResponseable), nil } // GetAsDeltaGetResponse get newly created, updated, or deleted tasks in either a Planner plan or assigned to the signed-in user without having to perform a full read of the entire resource collection. For details, see Use delta query to track changes in Microsoft Graph data. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemPlannerPlansItemBucketsItemTasksDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -99,6 +100,7 @@ func (m *ItemPlannerPlansItemBucketsItemTasksDeltaRequestBuilder) GetAsDeltaGetR return res.(ItemPlannerPlansItemBucketsItemTasksDeltaGetResponseable), nil } // ToGetRequestInformation get newly created, updated, or deleted tasks in either a Planner plan or assigned to the signed-in user without having to perform a full read of the entire resource collection. For details, see Use delta query to track changes in Microsoft Graph data. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemBucketsItemTasksDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerPlansItemBucketsItemTasksDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,6 +115,7 @@ func (m *ItemPlannerPlansItemBucketsItemTasksDeltaRequestBuilder) ToGetRequestIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerPlansItemBucketsItemTasksDeltaRequestBuilder when successful func (m *ItemPlannerPlansItemBucketsItemTasksDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerPlansItemBucketsItemTasksDeltaRequestBuilder) { return NewItemPlannerPlansItemBucketsItemTasksDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_plans_item_buckets_item_tasks_item_assigned_to_task_board_format_request_builder.go b/users/item_planner_plans_item_buckets_item_tasks_item_assigned_to_task_board_format_request_builder.go index b4495292e6c..e1aefcdce62 100644 --- a/users/item_planner_plans_item_buckets_item_tasks_item_assigned_to_task_board_format_request_builder.go +++ b/users/item_planner_plans_item_buckets_item_tasks_item_assigned_to_task_board_format_request_builder.go @@ -55,6 +55,7 @@ func NewItemPlannerPlansItemBucketsItemTasksItemAssignedToTaskBoardFormatRequest return NewItemPlannerPlansItemBucketsItemTasksItemAssignedToTaskBoardFormatRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property assignedToTaskBoardFormat for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansItemBucketsItemTasksItemAssignedToTaskBoardFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemPlannerPlansItemBucketsItemTasksItemAssignedToTaskBoardFormatRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemPlannerPlansItemBucketsItemTasksItemAssignedToTaskBoardFormatReques return nil } // Get read-only. Nullable. Used to render the task correctly in the task board view when grouped by assignedTo. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerAssignedToTaskBoardTaskFormatable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansItemBucketsItemTasksItemAssignedToTaskBoardFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerPlansItemBucketsItemTasksItemAssignedToTaskBoardFormatRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerAssignedToTaskBoardTaskFormatable, error) { @@ -91,6 +93,7 @@ func (m *ItemPlannerPlansItemBucketsItemTasksItemAssignedToTaskBoardFormatReques return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerAssignedToTaskBoardTaskFormatable), nil } // Patch update the navigation property assignedToTaskBoardFormat in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerAssignedToTaskBoardTaskFormatable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansItemBucketsItemTasksItemAssignedToTaskBoardFormatRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerAssignedToTaskBoardTaskFormatable, requestConfiguration *ItemPlannerPlansItemBucketsItemTasksItemAssignedToTaskBoardFormatRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerAssignedToTaskBoardTaskFormatable, error) { @@ -111,6 +114,7 @@ func (m *ItemPlannerPlansItemBucketsItemTasksItemAssignedToTaskBoardFormatReques return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerAssignedToTaskBoardTaskFormatable), nil } // ToDeleteRequestInformation delete navigation property assignedToTaskBoardFormat for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemBucketsItemTasksItemAssignedToTaskBoardFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerPlansItemBucketsItemTasksItemAssignedToTaskBoardFormatRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemPlannerPlansItemBucketsItemTasksItemAssignedToTaskBoardFormatReques return requestInfo, nil } // ToGetRequestInformation read-only. Nullable. Used to render the task correctly in the task board view when grouped by assignedTo. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemBucketsItemTasksItemAssignedToTaskBoardFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerPlansItemBucketsItemTasksItemAssignedToTaskBoardFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemPlannerPlansItemBucketsItemTasksItemAssignedToTaskBoardFormatReques return requestInfo, nil } // ToPatchRequestInformation update the navigation property assignedToTaskBoardFormat in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemBucketsItemTasksItemAssignedToTaskBoardFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerAssignedToTaskBoardTaskFormatable, requestConfiguration *ItemPlannerPlansItemBucketsItemTasksItemAssignedToTaskBoardFormatRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemPlannerPlansItemBucketsItemTasksItemAssignedToTaskBoardFormatReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerPlansItemBucketsItemTasksItemAssignedToTaskBoardFormatRequestBuilder when successful func (m *ItemPlannerPlansItemBucketsItemTasksItemAssignedToTaskBoardFormatRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerPlansItemBucketsItemTasksItemAssignedToTaskBoardFormatRequestBuilder) { return NewItemPlannerPlansItemBucketsItemTasksItemAssignedToTaskBoardFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_plans_item_buckets_item_tasks_item_bucket_task_board_format_request_builder.go b/users/item_planner_plans_item_buckets_item_tasks_item_bucket_task_board_format_request_builder.go index 371cf85d0fc..52b13c1ee90 100644 --- a/users/item_planner_plans_item_buckets_item_tasks_item_bucket_task_board_format_request_builder.go +++ b/users/item_planner_plans_item_buckets_item_tasks_item_bucket_task_board_format_request_builder.go @@ -55,6 +55,7 @@ func NewItemPlannerPlansItemBucketsItemTasksItemBucketTaskBoardFormatRequestBuil return NewItemPlannerPlansItemBucketsItemTasksItemBucketTaskBoardFormatRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property bucketTaskBoardFormat for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansItemBucketsItemTasksItemBucketTaskBoardFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemPlannerPlansItemBucketsItemTasksItemBucketTaskBoardFormatRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemPlannerPlansItemBucketsItemTasksItemBucketTaskBoardFormatRequestBui return nil } // Get read-only. Nullable. Used to render the task correctly in the task board view when grouped by bucket. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerBucketTaskBoardTaskFormatable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansItemBucketsItemTasksItemBucketTaskBoardFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerPlansItemBucketsItemTasksItemBucketTaskBoardFormatRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerBucketTaskBoardTaskFormatable, error) { @@ -91,6 +93,7 @@ func (m *ItemPlannerPlansItemBucketsItemTasksItemBucketTaskBoardFormatRequestBui return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerBucketTaskBoardTaskFormatable), nil } // Patch update the navigation property bucketTaskBoardFormat in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerBucketTaskBoardTaskFormatable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansItemBucketsItemTasksItemBucketTaskBoardFormatRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerBucketTaskBoardTaskFormatable, requestConfiguration *ItemPlannerPlansItemBucketsItemTasksItemBucketTaskBoardFormatRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerBucketTaskBoardTaskFormatable, error) { @@ -111,6 +114,7 @@ func (m *ItemPlannerPlansItemBucketsItemTasksItemBucketTaskBoardFormatRequestBui return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerBucketTaskBoardTaskFormatable), nil } // ToDeleteRequestInformation delete navigation property bucketTaskBoardFormat for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemBucketsItemTasksItemBucketTaskBoardFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerPlansItemBucketsItemTasksItemBucketTaskBoardFormatRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemPlannerPlansItemBucketsItemTasksItemBucketTaskBoardFormatRequestBui return requestInfo, nil } // ToGetRequestInformation read-only. Nullable. Used to render the task correctly in the task board view when grouped by bucket. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemBucketsItemTasksItemBucketTaskBoardFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerPlansItemBucketsItemTasksItemBucketTaskBoardFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemPlannerPlansItemBucketsItemTasksItemBucketTaskBoardFormatRequestBui return requestInfo, nil } // ToPatchRequestInformation update the navigation property bucketTaskBoardFormat in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemBucketsItemTasksItemBucketTaskBoardFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerBucketTaskBoardTaskFormatable, requestConfiguration *ItemPlannerPlansItemBucketsItemTasksItemBucketTaskBoardFormatRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemPlannerPlansItemBucketsItemTasksItemBucketTaskBoardFormatRequestBui return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerPlansItemBucketsItemTasksItemBucketTaskBoardFormatRequestBuilder when successful func (m *ItemPlannerPlansItemBucketsItemTasksItemBucketTaskBoardFormatRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerPlansItemBucketsItemTasksItemBucketTaskBoardFormatRequestBuilder) { return NewItemPlannerPlansItemBucketsItemTasksItemBucketTaskBoardFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_plans_item_buckets_item_tasks_item_details_request_builder.go b/users/item_planner_plans_item_buckets_item_tasks_item_details_request_builder.go index 8810c23d61f..5aea30a560b 100644 --- a/users/item_planner_plans_item_buckets_item_tasks_item_details_request_builder.go +++ b/users/item_planner_plans_item_buckets_item_tasks_item_details_request_builder.go @@ -55,6 +55,7 @@ func NewItemPlannerPlansItemBucketsItemTasksItemDetailsRequestBuilder(rawUrl str return NewItemPlannerPlansItemBucketsItemTasksItemDetailsRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property details for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansItemBucketsItemTasksItemDetailsRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemPlannerPlansItemBucketsItemTasksItemDetailsRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemPlannerPlansItemBucketsItemTasksItemDetailsRequestBuilder) Delete(c return nil } // Get read-only. Nullable. More details about the task. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerTaskDetailsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansItemBucketsItemTasksItemDetailsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerPlansItemBucketsItemTasksItemDetailsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskDetailsable, error) { @@ -91,6 +93,7 @@ func (m *ItemPlannerPlansItemBucketsItemTasksItemDetailsRequestBuilder) Get(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskDetailsable), nil } // Patch update the navigation property details in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerTaskDetailsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansItemBucketsItemTasksItemDetailsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskDetailsable, requestConfiguration *ItemPlannerPlansItemBucketsItemTasksItemDetailsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskDetailsable, error) { @@ -111,6 +114,7 @@ func (m *ItemPlannerPlansItemBucketsItemTasksItemDetailsRequestBuilder) Patch(ct return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskDetailsable), nil } // ToDeleteRequestInformation delete navigation property details for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemBucketsItemTasksItemDetailsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerPlansItemBucketsItemTasksItemDetailsRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemPlannerPlansItemBucketsItemTasksItemDetailsRequestBuilder) ToDelete return requestInfo, nil } // ToGetRequestInformation read-only. Nullable. More details about the task. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemBucketsItemTasksItemDetailsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerPlansItemBucketsItemTasksItemDetailsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemPlannerPlansItemBucketsItemTasksItemDetailsRequestBuilder) ToGetReq return requestInfo, nil } // ToPatchRequestInformation update the navigation property details in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemBucketsItemTasksItemDetailsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskDetailsable, requestConfiguration *ItemPlannerPlansItemBucketsItemTasksItemDetailsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemPlannerPlansItemBucketsItemTasksItemDetailsRequestBuilder) ToPatchR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerPlansItemBucketsItemTasksItemDetailsRequestBuilder when successful func (m *ItemPlannerPlansItemBucketsItemTasksItemDetailsRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerPlansItemBucketsItemTasksItemDetailsRequestBuilder) { return NewItemPlannerPlansItemBucketsItemTasksItemDetailsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_plans_item_buckets_item_tasks_item_progress_task_board_format_request_builder.go b/users/item_planner_plans_item_buckets_item_tasks_item_progress_task_board_format_request_builder.go index 5c47721438e..15a1cd6b1fd 100644 --- a/users/item_planner_plans_item_buckets_item_tasks_item_progress_task_board_format_request_builder.go +++ b/users/item_planner_plans_item_buckets_item_tasks_item_progress_task_board_format_request_builder.go @@ -55,6 +55,7 @@ func NewItemPlannerPlansItemBucketsItemTasksItemProgressTaskBoardFormatRequestBu return NewItemPlannerPlansItemBucketsItemTasksItemProgressTaskBoardFormatRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property progressTaskBoardFormat for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansItemBucketsItemTasksItemProgressTaskBoardFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemPlannerPlansItemBucketsItemTasksItemProgressTaskBoardFormatRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemPlannerPlansItemBucketsItemTasksItemProgressTaskBoardFormatRequestB return nil } // Get read-only. Nullable. Used to render the task correctly in the task board view when grouped by progress. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerProgressTaskBoardTaskFormatable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansItemBucketsItemTasksItemProgressTaskBoardFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerPlansItemBucketsItemTasksItemProgressTaskBoardFormatRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerProgressTaskBoardTaskFormatable, error) { @@ -91,6 +93,7 @@ func (m *ItemPlannerPlansItemBucketsItemTasksItemProgressTaskBoardFormatRequestB return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerProgressTaskBoardTaskFormatable), nil } // Patch update the navigation property progressTaskBoardFormat in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerProgressTaskBoardTaskFormatable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansItemBucketsItemTasksItemProgressTaskBoardFormatRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerProgressTaskBoardTaskFormatable, requestConfiguration *ItemPlannerPlansItemBucketsItemTasksItemProgressTaskBoardFormatRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerProgressTaskBoardTaskFormatable, error) { @@ -111,6 +114,7 @@ func (m *ItemPlannerPlansItemBucketsItemTasksItemProgressTaskBoardFormatRequestB return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerProgressTaskBoardTaskFormatable), nil } // ToDeleteRequestInformation delete navigation property progressTaskBoardFormat for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemBucketsItemTasksItemProgressTaskBoardFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerPlansItemBucketsItemTasksItemProgressTaskBoardFormatRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemPlannerPlansItemBucketsItemTasksItemProgressTaskBoardFormatRequestB return requestInfo, nil } // ToGetRequestInformation read-only. Nullable. Used to render the task correctly in the task board view when grouped by progress. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemBucketsItemTasksItemProgressTaskBoardFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerPlansItemBucketsItemTasksItemProgressTaskBoardFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemPlannerPlansItemBucketsItemTasksItemProgressTaskBoardFormatRequestB return requestInfo, nil } // ToPatchRequestInformation update the navigation property progressTaskBoardFormat in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemBucketsItemTasksItemProgressTaskBoardFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerProgressTaskBoardTaskFormatable, requestConfiguration *ItemPlannerPlansItemBucketsItemTasksItemProgressTaskBoardFormatRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemPlannerPlansItemBucketsItemTasksItemProgressTaskBoardFormatRequestB return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerPlansItemBucketsItemTasksItemProgressTaskBoardFormatRequestBuilder when successful func (m *ItemPlannerPlansItemBucketsItemTasksItemProgressTaskBoardFormatRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerPlansItemBucketsItemTasksItemProgressTaskBoardFormatRequestBuilder) { return NewItemPlannerPlansItemBucketsItemTasksItemProgressTaskBoardFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_plans_item_buckets_item_tasks_planner_task_item_request_builder.go b/users/item_planner_plans_item_buckets_item_tasks_planner_task_item_request_builder.go index 2ee1b59fe45..4bfa93f4e27 100644 --- a/users/item_planner_plans_item_buckets_item_tasks_planner_task_item_request_builder.go +++ b/users/item_planner_plans_item_buckets_item_tasks_planner_task_item_request_builder.go @@ -65,6 +65,7 @@ func NewItemPlannerPlansItemBucketsItemTasksPlannerTaskItemRequestBuilder(rawUrl return NewItemPlannerPlansItemBucketsItemTasksPlannerTaskItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property tasks for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansItemBucketsItemTasksPlannerTaskItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemPlannerPlansItemBucketsItemTasksPlannerTaskItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -86,6 +87,7 @@ func (m *ItemPlannerPlansItemBucketsItemTasksPlannerTaskItemRequestBuilder) Deta return NewItemPlannerPlansItemBucketsItemTasksItemDetailsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get read-only. Nullable. The collection of tasks in the bucket. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerTaskable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansItemBucketsItemTasksPlannerTaskItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerPlansItemBucketsItemTasksPlannerTaskItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskable, error) { @@ -106,6 +108,7 @@ func (m *ItemPlannerPlansItemBucketsItemTasksPlannerTaskItemRequestBuilder) Get( return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskable), nil } // Patch update the navigation property tasks in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerTaskable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansItemBucketsItemTasksPlannerTaskItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskable, requestConfiguration *ItemPlannerPlansItemBucketsItemTasksPlannerTaskItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskable, error) { @@ -131,6 +134,7 @@ func (m *ItemPlannerPlansItemBucketsItemTasksPlannerTaskItemRequestBuilder) Prog return NewItemPlannerPlansItemBucketsItemTasksItemProgressTaskBoardFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property tasks for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemBucketsItemTasksPlannerTaskItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerPlansItemBucketsItemTasksPlannerTaskItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -142,6 +146,7 @@ func (m *ItemPlannerPlansItemBucketsItemTasksPlannerTaskItemRequestBuilder) ToDe return requestInfo, nil } // ToGetRequestInformation read-only. Nullable. The collection of tasks in the bucket. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemBucketsItemTasksPlannerTaskItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerPlansItemBucketsItemTasksPlannerTaskItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +161,7 @@ func (m *ItemPlannerPlansItemBucketsItemTasksPlannerTaskItemRequestBuilder) ToGe return requestInfo, nil } // ToPatchRequestInformation update the navigation property tasks in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemBucketsItemTasksPlannerTaskItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskable, requestConfiguration *ItemPlannerPlansItemBucketsItemTasksPlannerTaskItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -171,6 +177,7 @@ func (m *ItemPlannerPlansItemBucketsItemTasksPlannerTaskItemRequestBuilder) ToPa return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerPlansItemBucketsItemTasksPlannerTaskItemRequestBuilder when successful func (m *ItemPlannerPlansItemBucketsItemTasksPlannerTaskItemRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerPlansItemBucketsItemTasksPlannerTaskItemRequestBuilder) { return NewItemPlannerPlansItemBucketsItemTasksPlannerTaskItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_plans_item_buckets_item_tasks_request_builder.go b/users/item_planner_plans_item_buckets_item_tasks_request_builder.go index 6d00b660171..1d8f513f848 100644 --- a/users/item_planner_plans_item_buckets_item_tasks_request_builder.go +++ b/users/item_planner_plans_item_buckets_item_tasks_request_builder.go @@ -47,6 +47,7 @@ type ItemPlannerPlansItemBucketsItemTasksRequestBuilderPostRequestConfiguration Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByPlannerTaskId provides operations to manage the tasks property of the microsoft.graph.plannerBucket entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerPlansItemBucketsItemTasksPlannerTaskItemRequestBuilder when successful func (m *ItemPlannerPlansItemBucketsItemTasksRequestBuilder) ByPlannerTaskId(plannerTaskId string)(*ItemPlannerPlansItemBucketsItemTasksPlannerTaskItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemPlannerPlansItemBucketsItemTasksRequestBuilder) Delta()(*ItemPlanne return NewItemPlannerPlansItemBucketsItemTasksDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get read-only. Nullable. The collection of tasks in the bucket. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerTaskCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansItemBucketsItemTasksRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerPlansItemBucketsItemTasksRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemPlannerPlansItemBucketsItemTasksRequestBuilder) Get(ctx context.Con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskCollectionResponseable), nil } // Post create new navigation property to tasks for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerTaskable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansItemBucketsItemTasksRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskable, requestConfiguration *ItemPlannerPlansItemBucketsItemTasksRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskable, error) { @@ -122,6 +125,7 @@ func (m *ItemPlannerPlansItemBucketsItemTasksRequestBuilder) Post(ctx context.Co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskable), nil } // ToGetRequestInformation read-only. Nullable. The collection of tasks in the bucket. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemBucketsItemTasksRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerPlansItemBucketsItemTasksRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemPlannerPlansItemBucketsItemTasksRequestBuilder) ToGetRequestInforma return requestInfo, nil } // ToPostRequestInformation create new navigation property to tasks for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemBucketsItemTasksRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskable, requestConfiguration *ItemPlannerPlansItemBucketsItemTasksRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemPlannerPlansItemBucketsItemTasksRequestBuilder) ToPostRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerPlansItemBucketsItemTasksRequestBuilder when successful func (m *ItemPlannerPlansItemBucketsItemTasksRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerPlansItemBucketsItemTasksRequestBuilder) { return NewItemPlannerPlansItemBucketsItemTasksRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_plans_item_buckets_planner_bucket_item_request_builder.go b/users/item_planner_plans_item_buckets_planner_bucket_item_request_builder.go index 0f16587f100..a24a2a50afd 100644 --- a/users/item_planner_plans_item_buckets_planner_bucket_item_request_builder.go +++ b/users/item_planner_plans_item_buckets_planner_bucket_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemPlannerPlansItemBucketsPlannerBucketItemRequestBuilder(rawUrl string return NewItemPlannerPlansItemBucketsPlannerBucketItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property buckets for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansItemBucketsPlannerBucketItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemPlannerPlansItemBucketsPlannerBucketItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemPlannerPlansItemBucketsPlannerBucketItemRequestBuilder) Delete(ctx return nil } // Get collection of buckets in the plan. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerBucketable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansItemBucketsPlannerBucketItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerPlansItemBucketsPlannerBucketItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerBucketable, error) { @@ -91,6 +93,7 @@ func (m *ItemPlannerPlansItemBucketsPlannerBucketItemRequestBuilder) Get(ctx con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerBucketable), nil } // Patch update the navigation property buckets in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerBucketable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansItemBucketsPlannerBucketItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerBucketable, requestConfiguration *ItemPlannerPlansItemBucketsPlannerBucketItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerBucketable, error) { @@ -116,6 +119,7 @@ func (m *ItemPlannerPlansItemBucketsPlannerBucketItemRequestBuilder) Tasks()(*It return NewItemPlannerPlansItemBucketsItemTasksRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property buckets for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemBucketsPlannerBucketItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerPlansItemBucketsPlannerBucketItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -127,6 +131,7 @@ func (m *ItemPlannerPlansItemBucketsPlannerBucketItemRequestBuilder) ToDeleteReq return requestInfo, nil } // ToGetRequestInformation collection of buckets in the plan. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemBucketsPlannerBucketItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerPlansItemBucketsPlannerBucketItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,6 +146,7 @@ func (m *ItemPlannerPlansItemBucketsPlannerBucketItemRequestBuilder) ToGetReques return requestInfo, nil } // ToPatchRequestInformation update the navigation property buckets in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemBucketsPlannerBucketItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerBucketable, requestConfiguration *ItemPlannerPlansItemBucketsPlannerBucketItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +162,7 @@ func (m *ItemPlannerPlansItemBucketsPlannerBucketItemRequestBuilder) ToPatchRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerPlansItemBucketsPlannerBucketItemRequestBuilder when successful func (m *ItemPlannerPlansItemBucketsPlannerBucketItemRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerPlansItemBucketsPlannerBucketItemRequestBuilder) { return NewItemPlannerPlansItemBucketsPlannerBucketItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_plans_item_buckets_request_builder.go b/users/item_planner_plans_item_buckets_request_builder.go index 6fbbdde3ea3..55a4f32742e 100644 --- a/users/item_planner_plans_item_buckets_request_builder.go +++ b/users/item_planner_plans_item_buckets_request_builder.go @@ -47,6 +47,7 @@ type ItemPlannerPlansItemBucketsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByPlannerBucketId provides operations to manage the buckets property of the microsoft.graph.plannerPlan entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerPlansItemBucketsPlannerBucketItemRequestBuilder when successful func (m *ItemPlannerPlansItemBucketsRequestBuilder) ByPlannerBucketId(plannerBucketId string)(*ItemPlannerPlansItemBucketsPlannerBucketItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemPlannerPlansItemBucketsRequestBuilder) Delta()(*ItemPlannerPlansIte return NewItemPlannerPlansItemBucketsDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get collection of buckets in the plan. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerBucketCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansItemBucketsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerPlansItemBucketsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerBucketCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemPlannerPlansItemBucketsRequestBuilder) Get(ctx context.Context, req return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerBucketCollectionResponseable), nil } // Post create new navigation property to buckets for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerBucketable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansItemBucketsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerBucketable, requestConfiguration *ItemPlannerPlansItemBucketsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerBucketable, error) { @@ -122,6 +125,7 @@ func (m *ItemPlannerPlansItemBucketsRequestBuilder) Post(ctx context.Context, bo return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerBucketable), nil } // ToGetRequestInformation collection of buckets in the plan. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemBucketsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerPlansItemBucketsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemPlannerPlansItemBucketsRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // ToPostRequestInformation create new navigation property to buckets for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemBucketsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerBucketable, requestConfiguration *ItemPlannerPlansItemBucketsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemPlannerPlansItemBucketsRequestBuilder) ToPostRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerPlansItemBucketsRequestBuilder when successful func (m *ItemPlannerPlansItemBucketsRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerPlansItemBucketsRequestBuilder) { return NewItemPlannerPlansItemBucketsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_plans_item_details_request_builder.go b/users/item_planner_plans_item_details_request_builder.go index 389a3954779..05fc0ac2573 100644 --- a/users/item_planner_plans_item_details_request_builder.go +++ b/users/item_planner_plans_item_details_request_builder.go @@ -55,6 +55,7 @@ func NewItemPlannerPlansItemDetailsRequestBuilder(rawUrl string, requestAdapter return NewItemPlannerPlansItemDetailsRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property details for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansItemDetailsRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemPlannerPlansItemDetailsRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemPlannerPlansItemDetailsRequestBuilder) Delete(ctx context.Context, return nil } // Get extra details about the plan. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerPlanDetailsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansItemDetailsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerPlansItemDetailsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerPlanDetailsable, error) { @@ -91,6 +93,7 @@ func (m *ItemPlannerPlansItemDetailsRequestBuilder) Get(ctx context.Context, req return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerPlanDetailsable), nil } // Patch update the navigation property details in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerPlanDetailsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansItemDetailsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerPlanDetailsable, requestConfiguration *ItemPlannerPlansItemDetailsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerPlanDetailsable, error) { @@ -111,6 +114,7 @@ func (m *ItemPlannerPlansItemDetailsRequestBuilder) Patch(ctx context.Context, b return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerPlanDetailsable), nil } // ToDeleteRequestInformation delete navigation property details for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemDetailsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerPlansItemDetailsRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemPlannerPlansItemDetailsRequestBuilder) ToDeleteRequestInformation(c return requestInfo, nil } // ToGetRequestInformation extra details about the plan. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemDetailsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerPlansItemDetailsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemPlannerPlansItemDetailsRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // ToPatchRequestInformation update the navigation property details in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemDetailsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerPlanDetailsable, requestConfiguration *ItemPlannerPlansItemDetailsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemPlannerPlansItemDetailsRequestBuilder) ToPatchRequestInformation(ct return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerPlansItemDetailsRequestBuilder when successful func (m *ItemPlannerPlansItemDetailsRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerPlansItemDetailsRequestBuilder) { return NewItemPlannerPlansItemDetailsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_plans_item_move_to_container_request_builder.go b/users/item_planner_plans_item_move_to_container_request_builder.go index ac14693e9bc..4b446a5010b 100644 --- a/users/item_planner_plans_item_move_to_container_request_builder.go +++ b/users/item_planner_plans_item_move_to_container_request_builder.go @@ -32,6 +32,7 @@ func NewItemPlannerPlansItemMoveToContainerRequestBuilder(rawUrl string, request return NewItemPlannerPlansItemMoveToContainerRequestBuilderInternal(urlParams, requestAdapter) } // Post move a planner plan object from one planner plan container to another. Planner plans can only be moved from a user container to a group container. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerPlanable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemPlannerPlansItemMoveToContainerRequestBuilder) Post(ctx context.Con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerPlanable), nil } // ToPostRequestInformation move a planner plan object from one planner plan container to another. Planner plans can only be moved from a user container to a group container. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemMoveToContainerRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemPlannerPlansItemMoveToContainerPostRequestBodyable, requestConfiguration *ItemPlannerPlansItemMoveToContainerRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemPlannerPlansItemMoveToContainerRequestBuilder) ToPostRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerPlansItemMoveToContainerRequestBuilder when successful func (m *ItemPlannerPlansItemMoveToContainerRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerPlansItemMoveToContainerRequestBuilder) { return NewItemPlannerPlansItemMoveToContainerRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_plans_item_tasks_count_request_builder.go b/users/item_planner_plans_item_tasks_count_request_builder.go index ea891fcee43..b68fac79526 100644 --- a/users/item_planner_plans_item_tasks_count_request_builder.go +++ b/users/item_planner_plans_item_tasks_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemPlannerPlansItemTasksCountRequestBuilder(rawUrl string, requestAdapt return NewItemPlannerPlansItemTasksCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansItemTasksCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerPlansItemTasksCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemPlannerPlansItemTasksCountRequestBuilder) Get(ctx context.Context, return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemTasksCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerPlansItemTasksCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemPlannerPlansItemTasksCountRequestBuilder) ToGetRequestInformation(c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerPlansItemTasksCountRequestBuilder when successful func (m *ItemPlannerPlansItemTasksCountRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerPlansItemTasksCountRequestBuilder) { return NewItemPlannerPlansItemTasksCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_plans_item_tasks_delta_request_builder.go b/users/item_planner_plans_item_tasks_delta_request_builder.go index 822e6d0e940..6138b1451cb 100644 --- a/users/item_planner_plans_item_tasks_delta_request_builder.go +++ b/users/item_planner_plans_item_tasks_delta_request_builder.go @@ -76,6 +76,7 @@ func (m *ItemPlannerPlansItemTasksDeltaRequestBuilder) Get(ctx context.Context, return res.(ItemPlannerPlansItemTasksDeltaResponseable), nil } // GetAsDeltaGetResponse get newly created, updated, or deleted tasks in either a Planner plan or assigned to the signed-in user without having to perform a full read of the entire resource collection. For details, see Use delta query to track changes in Microsoft Graph data. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemPlannerPlansItemTasksDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -99,6 +100,7 @@ func (m *ItemPlannerPlansItemTasksDeltaRequestBuilder) GetAsDeltaGetResponse(ctx return res.(ItemPlannerPlansItemTasksDeltaGetResponseable), nil } // ToGetRequestInformation get newly created, updated, or deleted tasks in either a Planner plan or assigned to the signed-in user without having to perform a full read of the entire resource collection. For details, see Use delta query to track changes in Microsoft Graph data. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemTasksDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerPlansItemTasksDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,6 +115,7 @@ func (m *ItemPlannerPlansItemTasksDeltaRequestBuilder) ToGetRequestInformation(c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerPlansItemTasksDeltaRequestBuilder when successful func (m *ItemPlannerPlansItemTasksDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerPlansItemTasksDeltaRequestBuilder) { return NewItemPlannerPlansItemTasksDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_plans_item_tasks_item_assigned_to_task_board_format_request_builder.go b/users/item_planner_plans_item_tasks_item_assigned_to_task_board_format_request_builder.go index a5ab60fd962..555ca36610b 100644 --- a/users/item_planner_plans_item_tasks_item_assigned_to_task_board_format_request_builder.go +++ b/users/item_planner_plans_item_tasks_item_assigned_to_task_board_format_request_builder.go @@ -55,6 +55,7 @@ func NewItemPlannerPlansItemTasksItemAssignedToTaskBoardFormatRequestBuilder(raw return NewItemPlannerPlansItemTasksItemAssignedToTaskBoardFormatRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property assignedToTaskBoardFormat for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansItemTasksItemAssignedToTaskBoardFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemPlannerPlansItemTasksItemAssignedToTaskBoardFormatRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemPlannerPlansItemTasksItemAssignedToTaskBoardFormatRequestBuilder) D return nil } // Get read-only. Nullable. Used to render the task correctly in the task board view when grouped by assignedTo. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerAssignedToTaskBoardTaskFormatable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansItemTasksItemAssignedToTaskBoardFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerPlansItemTasksItemAssignedToTaskBoardFormatRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerAssignedToTaskBoardTaskFormatable, error) { @@ -91,6 +93,7 @@ func (m *ItemPlannerPlansItemTasksItemAssignedToTaskBoardFormatRequestBuilder) G return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerAssignedToTaskBoardTaskFormatable), nil } // Patch update the navigation property assignedToTaskBoardFormat in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerAssignedToTaskBoardTaskFormatable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansItemTasksItemAssignedToTaskBoardFormatRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerAssignedToTaskBoardTaskFormatable, requestConfiguration *ItemPlannerPlansItemTasksItemAssignedToTaskBoardFormatRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerAssignedToTaskBoardTaskFormatable, error) { @@ -111,6 +114,7 @@ func (m *ItemPlannerPlansItemTasksItemAssignedToTaskBoardFormatRequestBuilder) P return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerAssignedToTaskBoardTaskFormatable), nil } // ToDeleteRequestInformation delete navigation property assignedToTaskBoardFormat for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemTasksItemAssignedToTaskBoardFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerPlansItemTasksItemAssignedToTaskBoardFormatRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemPlannerPlansItemTasksItemAssignedToTaskBoardFormatRequestBuilder) T return requestInfo, nil } // ToGetRequestInformation read-only. Nullable. Used to render the task correctly in the task board view when grouped by assignedTo. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemTasksItemAssignedToTaskBoardFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerPlansItemTasksItemAssignedToTaskBoardFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemPlannerPlansItemTasksItemAssignedToTaskBoardFormatRequestBuilder) T return requestInfo, nil } // ToPatchRequestInformation update the navigation property assignedToTaskBoardFormat in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemTasksItemAssignedToTaskBoardFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerAssignedToTaskBoardTaskFormatable, requestConfiguration *ItemPlannerPlansItemTasksItemAssignedToTaskBoardFormatRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemPlannerPlansItemTasksItemAssignedToTaskBoardFormatRequestBuilder) T return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerPlansItemTasksItemAssignedToTaskBoardFormatRequestBuilder when successful func (m *ItemPlannerPlansItemTasksItemAssignedToTaskBoardFormatRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerPlansItemTasksItemAssignedToTaskBoardFormatRequestBuilder) { return NewItemPlannerPlansItemTasksItemAssignedToTaskBoardFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_plans_item_tasks_item_bucket_task_board_format_request_builder.go b/users/item_planner_plans_item_tasks_item_bucket_task_board_format_request_builder.go index 0914780a325..8e5ee127e36 100644 --- a/users/item_planner_plans_item_tasks_item_bucket_task_board_format_request_builder.go +++ b/users/item_planner_plans_item_tasks_item_bucket_task_board_format_request_builder.go @@ -55,6 +55,7 @@ func NewItemPlannerPlansItemTasksItemBucketTaskBoardFormatRequestBuilder(rawUrl return NewItemPlannerPlansItemTasksItemBucketTaskBoardFormatRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property bucketTaskBoardFormat for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansItemTasksItemBucketTaskBoardFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemPlannerPlansItemTasksItemBucketTaskBoardFormatRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemPlannerPlansItemTasksItemBucketTaskBoardFormatRequestBuilder) Delet return nil } // Get read-only. Nullable. Used to render the task correctly in the task board view when grouped by bucket. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerBucketTaskBoardTaskFormatable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansItemTasksItemBucketTaskBoardFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerPlansItemTasksItemBucketTaskBoardFormatRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerBucketTaskBoardTaskFormatable, error) { @@ -91,6 +93,7 @@ func (m *ItemPlannerPlansItemTasksItemBucketTaskBoardFormatRequestBuilder) Get(c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerBucketTaskBoardTaskFormatable), nil } // Patch update the navigation property bucketTaskBoardFormat in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerBucketTaskBoardTaskFormatable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansItemTasksItemBucketTaskBoardFormatRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerBucketTaskBoardTaskFormatable, requestConfiguration *ItemPlannerPlansItemTasksItemBucketTaskBoardFormatRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerBucketTaskBoardTaskFormatable, error) { @@ -111,6 +114,7 @@ func (m *ItemPlannerPlansItemTasksItemBucketTaskBoardFormatRequestBuilder) Patch return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerBucketTaskBoardTaskFormatable), nil } // ToDeleteRequestInformation delete navigation property bucketTaskBoardFormat for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemTasksItemBucketTaskBoardFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerPlansItemTasksItemBucketTaskBoardFormatRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemPlannerPlansItemTasksItemBucketTaskBoardFormatRequestBuilder) ToDel return requestInfo, nil } // ToGetRequestInformation read-only. Nullable. Used to render the task correctly in the task board view when grouped by bucket. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemTasksItemBucketTaskBoardFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerPlansItemTasksItemBucketTaskBoardFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemPlannerPlansItemTasksItemBucketTaskBoardFormatRequestBuilder) ToGet return requestInfo, nil } // ToPatchRequestInformation update the navigation property bucketTaskBoardFormat in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemTasksItemBucketTaskBoardFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerBucketTaskBoardTaskFormatable, requestConfiguration *ItemPlannerPlansItemTasksItemBucketTaskBoardFormatRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemPlannerPlansItemTasksItemBucketTaskBoardFormatRequestBuilder) ToPat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerPlansItemTasksItemBucketTaskBoardFormatRequestBuilder when successful func (m *ItemPlannerPlansItemTasksItemBucketTaskBoardFormatRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerPlansItemTasksItemBucketTaskBoardFormatRequestBuilder) { return NewItemPlannerPlansItemTasksItemBucketTaskBoardFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_plans_item_tasks_item_details_request_builder.go b/users/item_planner_plans_item_tasks_item_details_request_builder.go index bfcd7fb1690..76d85bd4fdb 100644 --- a/users/item_planner_plans_item_tasks_item_details_request_builder.go +++ b/users/item_planner_plans_item_tasks_item_details_request_builder.go @@ -55,6 +55,7 @@ func NewItemPlannerPlansItemTasksItemDetailsRequestBuilder(rawUrl string, reques return NewItemPlannerPlansItemTasksItemDetailsRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property details for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansItemTasksItemDetailsRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemPlannerPlansItemTasksItemDetailsRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemPlannerPlansItemTasksItemDetailsRequestBuilder) Delete(ctx context. return nil } // Get read-only. Nullable. More details about the task. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerTaskDetailsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansItemTasksItemDetailsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerPlansItemTasksItemDetailsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskDetailsable, error) { @@ -91,6 +93,7 @@ func (m *ItemPlannerPlansItemTasksItemDetailsRequestBuilder) Get(ctx context.Con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskDetailsable), nil } // Patch update the navigation property details in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerTaskDetailsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansItemTasksItemDetailsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskDetailsable, requestConfiguration *ItemPlannerPlansItemTasksItemDetailsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskDetailsable, error) { @@ -111,6 +114,7 @@ func (m *ItemPlannerPlansItemTasksItemDetailsRequestBuilder) Patch(ctx context.C return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskDetailsable), nil } // ToDeleteRequestInformation delete navigation property details for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemTasksItemDetailsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerPlansItemTasksItemDetailsRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemPlannerPlansItemTasksItemDetailsRequestBuilder) ToDeleteRequestInfo return requestInfo, nil } // ToGetRequestInformation read-only. Nullable. More details about the task. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemTasksItemDetailsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerPlansItemTasksItemDetailsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemPlannerPlansItemTasksItemDetailsRequestBuilder) ToGetRequestInforma return requestInfo, nil } // ToPatchRequestInformation update the navigation property details in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemTasksItemDetailsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskDetailsable, requestConfiguration *ItemPlannerPlansItemTasksItemDetailsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemPlannerPlansItemTasksItemDetailsRequestBuilder) ToPatchRequestInfor return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerPlansItemTasksItemDetailsRequestBuilder when successful func (m *ItemPlannerPlansItemTasksItemDetailsRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerPlansItemTasksItemDetailsRequestBuilder) { return NewItemPlannerPlansItemTasksItemDetailsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_plans_item_tasks_item_progress_task_board_format_request_builder.go b/users/item_planner_plans_item_tasks_item_progress_task_board_format_request_builder.go index 848e8ac56cd..a7eec64631f 100644 --- a/users/item_planner_plans_item_tasks_item_progress_task_board_format_request_builder.go +++ b/users/item_planner_plans_item_tasks_item_progress_task_board_format_request_builder.go @@ -55,6 +55,7 @@ func NewItemPlannerPlansItemTasksItemProgressTaskBoardFormatRequestBuilder(rawUr return NewItemPlannerPlansItemTasksItemProgressTaskBoardFormatRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property progressTaskBoardFormat for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansItemTasksItemProgressTaskBoardFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemPlannerPlansItemTasksItemProgressTaskBoardFormatRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemPlannerPlansItemTasksItemProgressTaskBoardFormatRequestBuilder) Del return nil } // Get read-only. Nullable. Used to render the task correctly in the task board view when grouped by progress. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerProgressTaskBoardTaskFormatable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansItemTasksItemProgressTaskBoardFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerPlansItemTasksItemProgressTaskBoardFormatRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerProgressTaskBoardTaskFormatable, error) { @@ -91,6 +93,7 @@ func (m *ItemPlannerPlansItemTasksItemProgressTaskBoardFormatRequestBuilder) Get return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerProgressTaskBoardTaskFormatable), nil } // Patch update the navigation property progressTaskBoardFormat in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerProgressTaskBoardTaskFormatable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansItemTasksItemProgressTaskBoardFormatRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerProgressTaskBoardTaskFormatable, requestConfiguration *ItemPlannerPlansItemTasksItemProgressTaskBoardFormatRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerProgressTaskBoardTaskFormatable, error) { @@ -111,6 +114,7 @@ func (m *ItemPlannerPlansItemTasksItemProgressTaskBoardFormatRequestBuilder) Pat return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerProgressTaskBoardTaskFormatable), nil } // ToDeleteRequestInformation delete navigation property progressTaskBoardFormat for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemTasksItemProgressTaskBoardFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerPlansItemTasksItemProgressTaskBoardFormatRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemPlannerPlansItemTasksItemProgressTaskBoardFormatRequestBuilder) ToD return requestInfo, nil } // ToGetRequestInformation read-only. Nullable. Used to render the task correctly in the task board view when grouped by progress. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemTasksItemProgressTaskBoardFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerPlansItemTasksItemProgressTaskBoardFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemPlannerPlansItemTasksItemProgressTaskBoardFormatRequestBuilder) ToG return requestInfo, nil } // ToPatchRequestInformation update the navigation property progressTaskBoardFormat in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemTasksItemProgressTaskBoardFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerProgressTaskBoardTaskFormatable, requestConfiguration *ItemPlannerPlansItemTasksItemProgressTaskBoardFormatRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemPlannerPlansItemTasksItemProgressTaskBoardFormatRequestBuilder) ToP return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerPlansItemTasksItemProgressTaskBoardFormatRequestBuilder when successful func (m *ItemPlannerPlansItemTasksItemProgressTaskBoardFormatRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerPlansItemTasksItemProgressTaskBoardFormatRequestBuilder) { return NewItemPlannerPlansItemTasksItemProgressTaskBoardFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_plans_item_tasks_planner_task_item_request_builder.go b/users/item_planner_plans_item_tasks_planner_task_item_request_builder.go index e1b17d71320..077e7e776ba 100644 --- a/users/item_planner_plans_item_tasks_planner_task_item_request_builder.go +++ b/users/item_planner_plans_item_tasks_planner_task_item_request_builder.go @@ -65,6 +65,7 @@ func NewItemPlannerPlansItemTasksPlannerTaskItemRequestBuilder(rawUrl string, re return NewItemPlannerPlansItemTasksPlannerTaskItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property tasks for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansItemTasksPlannerTaskItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemPlannerPlansItemTasksPlannerTaskItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -86,6 +87,7 @@ func (m *ItemPlannerPlansItemTasksPlannerTaskItemRequestBuilder) Details()(*Item return NewItemPlannerPlansItemTasksItemDetailsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get collection of tasks in the plan. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerTaskable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansItemTasksPlannerTaskItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerPlansItemTasksPlannerTaskItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskable, error) { @@ -106,6 +108,7 @@ func (m *ItemPlannerPlansItemTasksPlannerTaskItemRequestBuilder) Get(ctx context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskable), nil } // Patch update the navigation property tasks in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerTaskable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansItemTasksPlannerTaskItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskable, requestConfiguration *ItemPlannerPlansItemTasksPlannerTaskItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskable, error) { @@ -131,6 +134,7 @@ func (m *ItemPlannerPlansItemTasksPlannerTaskItemRequestBuilder) ProgressTaskBoa return NewItemPlannerPlansItemTasksItemProgressTaskBoardFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property tasks for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemTasksPlannerTaskItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerPlansItemTasksPlannerTaskItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -142,6 +146,7 @@ func (m *ItemPlannerPlansItemTasksPlannerTaskItemRequestBuilder) ToDeleteRequest return requestInfo, nil } // ToGetRequestInformation collection of tasks in the plan. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemTasksPlannerTaskItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerPlansItemTasksPlannerTaskItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +161,7 @@ func (m *ItemPlannerPlansItemTasksPlannerTaskItemRequestBuilder) ToGetRequestInf return requestInfo, nil } // ToPatchRequestInformation update the navigation property tasks in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemTasksPlannerTaskItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskable, requestConfiguration *ItemPlannerPlansItemTasksPlannerTaskItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -171,6 +177,7 @@ func (m *ItemPlannerPlansItemTasksPlannerTaskItemRequestBuilder) ToPatchRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerPlansItemTasksPlannerTaskItemRequestBuilder when successful func (m *ItemPlannerPlansItemTasksPlannerTaskItemRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerPlansItemTasksPlannerTaskItemRequestBuilder) { return NewItemPlannerPlansItemTasksPlannerTaskItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_plans_item_tasks_request_builder.go b/users/item_planner_plans_item_tasks_request_builder.go index a5db8180d5b..91c19de6883 100644 --- a/users/item_planner_plans_item_tasks_request_builder.go +++ b/users/item_planner_plans_item_tasks_request_builder.go @@ -47,6 +47,7 @@ type ItemPlannerPlansItemTasksRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByPlannerTaskId provides operations to manage the tasks property of the microsoft.graph.plannerPlan entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerPlansItemTasksPlannerTaskItemRequestBuilder when successful func (m *ItemPlannerPlansItemTasksRequestBuilder) ByPlannerTaskId(plannerTaskId string)(*ItemPlannerPlansItemTasksPlannerTaskItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemPlannerPlansItemTasksRequestBuilder) Delta()(*ItemPlannerPlansItemT return NewItemPlannerPlansItemTasksDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get collection of tasks in the plan. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerTaskCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansItemTasksRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerPlansItemTasksRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemPlannerPlansItemTasksRequestBuilder) Get(ctx context.Context, reque return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskCollectionResponseable), nil } // Post create new navigation property to tasks for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerTaskable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansItemTasksRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskable, requestConfiguration *ItemPlannerPlansItemTasksRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskable, error) { @@ -122,6 +125,7 @@ func (m *ItemPlannerPlansItemTasksRequestBuilder) Post(ctx context.Context, body return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskable), nil } // ToGetRequestInformation collection of tasks in the plan. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemTasksRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerPlansItemTasksRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemPlannerPlansItemTasksRequestBuilder) ToGetRequestInformation(ctx co return requestInfo, nil } // ToPostRequestInformation create new navigation property to tasks for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemTasksRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskable, requestConfiguration *ItemPlannerPlansItemTasksRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemPlannerPlansItemTasksRequestBuilder) ToPostRequestInformation(ctx c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerPlansItemTasksRequestBuilder when successful func (m *ItemPlannerPlansItemTasksRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerPlansItemTasksRequestBuilder) { return NewItemPlannerPlansItemTasksRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_plans_item_unarchive_request_builder.go b/users/item_planner_plans_item_unarchive_request_builder.go index a93077af167..797101e3ed3 100644 --- a/users/item_planner_plans_item_unarchive_request_builder.go +++ b/users/item_planner_plans_item_unarchive_request_builder.go @@ -31,6 +31,7 @@ func NewItemPlannerPlansItemUnarchiveRequestBuilder(rawUrl string, requestAdapte return NewItemPlannerPlansItemUnarchiveRequestBuilderInternal(urlParams, requestAdapter) } // Post unarchive a plannerPlan object. Unarchiving a plan, also unarchives the plannerTasks and plannerBuckets in the plan. Only a plan that is archived can be unarchived. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemPlannerPlansItemUnarchiveRequestBuilder) Post(ctx context.Context, return nil } // ToPostRequestInformation unarchive a plannerPlan object. Unarchiving a plan, also unarchives the plannerTasks and plannerBuckets in the plan. Only a plan that is archived can be unarchived. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansItemUnarchiveRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemPlannerPlansItemUnarchivePostRequestBodyable, requestConfiguration *ItemPlannerPlansItemUnarchiveRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemPlannerPlansItemUnarchiveRequestBuilder) ToPostRequestInformation(c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerPlansItemUnarchiveRequestBuilder when successful func (m *ItemPlannerPlansItemUnarchiveRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerPlansItemUnarchiveRequestBuilder) { return NewItemPlannerPlansItemUnarchiveRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_plans_planner_plan_item_request_builder.go b/users/item_planner_plans_planner_plan_item_request_builder.go index 0d47256a054..e53b1641189 100644 --- a/users/item_planner_plans_planner_plan_item_request_builder.go +++ b/users/item_planner_plans_planner_plan_item_request_builder.go @@ -65,6 +65,7 @@ func NewItemPlannerPlansPlannerPlanItemRequestBuilder(rawUrl string, requestAdap return NewItemPlannerPlansPlannerPlanItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property plans for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansPlannerPlanItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemPlannerPlansPlannerPlanItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -86,6 +87,7 @@ func (m *ItemPlannerPlansPlannerPlanItemRequestBuilder) Details()(*ItemPlannerPl return NewItemPlannerPlansItemDetailsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get plans from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerPlanable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansPlannerPlanItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerPlansPlannerPlanItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerPlanable, error) { @@ -111,6 +113,7 @@ func (m *ItemPlannerPlansPlannerPlanItemRequestBuilder) MoveToContainer()(*ItemP return NewItemPlannerPlansItemMoveToContainerRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property plans in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerPlanable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansPlannerPlanItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerPlanable, requestConfiguration *ItemPlannerPlansPlannerPlanItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerPlanable, error) { @@ -136,6 +139,7 @@ func (m *ItemPlannerPlansPlannerPlanItemRequestBuilder) Tasks()(*ItemPlannerPlan return NewItemPlannerPlansItemTasksRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property plans for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansPlannerPlanItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerPlansPlannerPlanItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -147,6 +151,7 @@ func (m *ItemPlannerPlansPlannerPlanItemRequestBuilder) ToDeleteRequestInformati return requestInfo, nil } // ToGetRequestInformation get plans from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansPlannerPlanItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerPlansPlannerPlanItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -161,6 +166,7 @@ func (m *ItemPlannerPlansPlannerPlanItemRequestBuilder) ToGetRequestInformation( return requestInfo, nil } // ToPatchRequestInformation update the navigation property plans in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansPlannerPlanItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerPlanable, requestConfiguration *ItemPlannerPlansPlannerPlanItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -181,6 +187,7 @@ func (m *ItemPlannerPlansPlannerPlanItemRequestBuilder) Unarchive()(*ItemPlanner return NewItemPlannerPlansItemUnarchiveRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerPlansPlannerPlanItemRequestBuilder when successful func (m *ItemPlannerPlansPlannerPlanItemRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerPlansPlannerPlanItemRequestBuilder) { return NewItemPlannerPlansPlannerPlanItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_plans_request_builder.go b/users/item_planner_plans_request_builder.go index 42059a83dc3..1710db959c6 100644 --- a/users/item_planner_plans_request_builder.go +++ b/users/item_planner_plans_request_builder.go @@ -47,6 +47,7 @@ type ItemPlannerPlansRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByPlannerPlanId provides operations to manage the plans property of the microsoft.graph.plannerUser entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerPlansPlannerPlanItemRequestBuilder when successful func (m *ItemPlannerPlansRequestBuilder) ByPlannerPlanId(plannerPlanId string)(*ItemPlannerPlansPlannerPlanItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemPlannerPlansRequestBuilder) Delta()(*ItemPlannerPlansDeltaRequestBu return NewItemPlannerPlansDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get plans from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerPlanCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerPlansRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerPlanCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemPlannerPlansRequestBuilder) Get(ctx context.Context, requestConfigu return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerPlanCollectionResponseable), nil } // Post create new navigation property to plans for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerPlanable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerPlansRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerPlanable, requestConfiguration *ItemPlannerPlansRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerPlanable, error) { @@ -122,6 +125,7 @@ func (m *ItemPlannerPlansRequestBuilder) Post(ctx context.Context, body ie233ee7 return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerPlanable), nil } // ToGetRequestInformation get plans from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerPlansRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemPlannerPlansRequestBuilder) ToGetRequestInformation(ctx context.Con return requestInfo, nil } // ToPostRequestInformation create new navigation property to plans for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerPlansRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerPlanable, requestConfiguration *ItemPlannerPlansRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemPlannerPlansRequestBuilder) ToPostRequestInformation(ctx context.Co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerPlansRequestBuilder when successful func (m *ItemPlannerPlansRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerPlansRequestBuilder) { return NewItemPlannerPlansRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_recent_plans_count_request_builder.go b/users/item_planner_recent_plans_count_request_builder.go index 3a63d3d7d78..f5d3cf8ea56 100644 --- a/users/item_planner_recent_plans_count_request_builder.go +++ b/users/item_planner_recent_plans_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemPlannerRecentPlansCountRequestBuilder(rawUrl string, requestAdapter return NewItemPlannerRecentPlansCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerRecentPlansCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerRecentPlansCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemPlannerRecentPlansCountRequestBuilder) Get(ctx context.Context, req return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerRecentPlansCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerRecentPlansCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemPlannerRecentPlansCountRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerRecentPlansCountRequestBuilder when successful func (m *ItemPlannerRecentPlansCountRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerRecentPlansCountRequestBuilder) { return NewItemPlannerRecentPlansCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_recent_plans_planner_plan_item_request_builder.go b/users/item_planner_recent_plans_planner_plan_item_request_builder.go index 91516f3b1a8..7072abc4f21 100644 --- a/users/item_planner_recent_plans_planner_plan_item_request_builder.go +++ b/users/item_planner_recent_plans_planner_plan_item_request_builder.go @@ -41,6 +41,7 @@ func NewItemPlannerRecentPlansPlannerPlanItemRequestBuilder(rawUrl string, reque return NewItemPlannerRecentPlansPlannerPlanItemRequestBuilderInternal(urlParams, requestAdapter) } // Get read-only. Nullable. Returns the plannerPlans that the user recently viewed in apps that support recent plans. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerPlanable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerRecentPlansPlannerPlanItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerRecentPlansPlannerPlanItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerPlanable, error) { @@ -61,6 +62,7 @@ func (m *ItemPlannerRecentPlansPlannerPlanItemRequestBuilder) Get(ctx context.Co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerPlanable), nil } // ToGetRequestInformation read-only. Nullable. Returns the plannerPlans that the user recently viewed in apps that support recent plans. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerRecentPlansPlannerPlanItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerRecentPlansPlannerPlanItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemPlannerRecentPlansPlannerPlanItemRequestBuilder) ToGetRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerRecentPlansPlannerPlanItemRequestBuilder when successful func (m *ItemPlannerRecentPlansPlannerPlanItemRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerRecentPlansPlannerPlanItemRequestBuilder) { return NewItemPlannerRecentPlansPlannerPlanItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_recent_plans_request_builder.go b/users/item_planner_recent_plans_request_builder.go index 2500fd89dd9..669da596c00 100644 --- a/users/item_planner_recent_plans_request_builder.go +++ b/users/item_planner_recent_plans_request_builder.go @@ -40,6 +40,7 @@ type ItemPlannerRecentPlansRequestBuilderGetRequestConfiguration struct { QueryParameters *ItemPlannerRecentPlansRequestBuilderGetQueryParameters } // ByPlannerPlanId provides operations to manage the recentPlans property of the microsoft.graph.plannerUser entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerRecentPlansPlannerPlanItemRequestBuilder when successful func (m *ItemPlannerRecentPlansRequestBuilder) ByPlannerPlanId(plannerPlanId string)(*ItemPlannerRecentPlansPlannerPlanItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -70,6 +71,7 @@ func (m *ItemPlannerRecentPlansRequestBuilder) Count()(*ItemPlannerRecentPlansCo return NewItemPlannerRecentPlansCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get read-only. Nullable. Returns the plannerPlans that the user recently viewed in apps that support recent plans. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerPlanCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerRecentPlansRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerRecentPlansRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerPlanCollectionResponseable, error) { @@ -90,6 +92,7 @@ func (m *ItemPlannerRecentPlansRequestBuilder) Get(ctx context.Context, requestC return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerPlanCollectionResponseable), nil } // ToGetRequestInformation read-only. Nullable. Returns the plannerPlans that the user recently viewed in apps that support recent plans. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerRecentPlansRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerRecentPlansRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -104,6 +107,7 @@ func (m *ItemPlannerRecentPlansRequestBuilder) ToGetRequestInformation(ctx conte return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerRecentPlansRequestBuilder when successful func (m *ItemPlannerRecentPlansRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerRecentPlansRequestBuilder) { return NewItemPlannerRecentPlansRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_request_builder.go b/users/item_planner_request_builder.go index 3fb6960b347..2dcac8ea4f2 100644 --- a/users/item_planner_request_builder.go +++ b/users/item_planner_request_builder.go @@ -60,6 +60,7 @@ func NewItemPlannerRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee26 return NewItemPlannerRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property planner for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemPlannerRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -81,6 +82,7 @@ func (m *ItemPlannerRequestBuilder) FavoritePlans()(*ItemPlannerFavoritePlansReq return NewItemPlannerFavoritePlansRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get selective Planner services available to the user. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerUserable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerUserable, error) { @@ -106,6 +108,7 @@ func (m *ItemPlannerRequestBuilder) MyDayTasks()(*ItemPlannerMyDayTasksRequestBu return NewItemPlannerMyDayTasksRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property planner in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerUserable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerUserable, requestConfiguration *ItemPlannerRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerUserable, error) { @@ -146,6 +149,7 @@ func (m *ItemPlannerRequestBuilder) Tasks()(*ItemPlannerTasksRequestBuilder) { return NewItemPlannerTasksRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property planner for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -157,6 +161,7 @@ func (m *ItemPlannerRequestBuilder) ToDeleteRequestInformation(ctx context.Conte return requestInfo, nil } // ToGetRequestInformation selective Planner services available to the user. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -171,6 +176,7 @@ func (m *ItemPlannerRequestBuilder) ToGetRequestInformation(ctx context.Context, return requestInfo, nil } // ToPatchRequestInformation update the navigation property planner in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerUserable, requestConfiguration *ItemPlannerRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -186,6 +192,7 @@ func (m *ItemPlannerRequestBuilder) ToPatchRequestInformation(ctx context.Contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerRequestBuilder when successful func (m *ItemPlannerRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerRequestBuilder) { return NewItemPlannerRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_roster_plans_count_request_builder.go b/users/item_planner_roster_plans_count_request_builder.go index 68f8dcf3b76..032fbbf5537 100644 --- a/users/item_planner_roster_plans_count_request_builder.go +++ b/users/item_planner_roster_plans_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemPlannerRosterPlansCountRequestBuilder(rawUrl string, requestAdapter return NewItemPlannerRosterPlansCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerRosterPlansCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerRosterPlansCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemPlannerRosterPlansCountRequestBuilder) Get(ctx context.Context, req return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerRosterPlansCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerRosterPlansCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemPlannerRosterPlansCountRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerRosterPlansCountRequestBuilder when successful func (m *ItemPlannerRosterPlansCountRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerRosterPlansCountRequestBuilder) { return NewItemPlannerRosterPlansCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_roster_plans_planner_plan_item_request_builder.go b/users/item_planner_roster_plans_planner_plan_item_request_builder.go index 471eb45913e..84c3c312a86 100644 --- a/users/item_planner_roster_plans_planner_plan_item_request_builder.go +++ b/users/item_planner_roster_plans_planner_plan_item_request_builder.go @@ -41,6 +41,7 @@ func NewItemPlannerRosterPlansPlannerPlanItemRequestBuilder(rawUrl string, reque return NewItemPlannerRosterPlansPlannerPlanItemRequestBuilderInternal(urlParams, requestAdapter) } // Get read-only. Nullable. Returns the plannerPlans contained by the plannerRosters the user is a member. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerPlanable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerRosterPlansPlannerPlanItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerRosterPlansPlannerPlanItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerPlanable, error) { @@ -61,6 +62,7 @@ func (m *ItemPlannerRosterPlansPlannerPlanItemRequestBuilder) Get(ctx context.Co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerPlanable), nil } // ToGetRequestInformation read-only. Nullable. Returns the plannerPlans contained by the plannerRosters the user is a member. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerRosterPlansPlannerPlanItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerRosterPlansPlannerPlanItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemPlannerRosterPlansPlannerPlanItemRequestBuilder) ToGetRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerRosterPlansPlannerPlanItemRequestBuilder when successful func (m *ItemPlannerRosterPlansPlannerPlanItemRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerRosterPlansPlannerPlanItemRequestBuilder) { return NewItemPlannerRosterPlansPlannerPlanItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_roster_plans_request_builder.go b/users/item_planner_roster_plans_request_builder.go index 734228797ca..de9d153cb89 100644 --- a/users/item_planner_roster_plans_request_builder.go +++ b/users/item_planner_roster_plans_request_builder.go @@ -40,6 +40,7 @@ type ItemPlannerRosterPlansRequestBuilderGetRequestConfiguration struct { QueryParameters *ItemPlannerRosterPlansRequestBuilderGetQueryParameters } // ByPlannerPlanId provides operations to manage the rosterPlans property of the microsoft.graph.plannerUser entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerRosterPlansPlannerPlanItemRequestBuilder when successful func (m *ItemPlannerRosterPlansRequestBuilder) ByPlannerPlanId(plannerPlanId string)(*ItemPlannerRosterPlansPlannerPlanItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -70,6 +71,7 @@ func (m *ItemPlannerRosterPlansRequestBuilder) Count()(*ItemPlannerRosterPlansCo return NewItemPlannerRosterPlansCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get the list of plannerPlans that are contained by the plannerRosters of which the user is a member. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerPlanCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -93,6 +95,7 @@ func (m *ItemPlannerRosterPlansRequestBuilder) Get(ctx context.Context, requestC return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerPlanCollectionResponseable), nil } // ToGetRequestInformation get the list of plannerPlans that are contained by the plannerRosters of which the user is a member. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerRosterPlansRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerRosterPlansRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -107,6 +110,7 @@ func (m *ItemPlannerRosterPlansRequestBuilder) ToGetRequestInformation(ctx conte return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerRosterPlansRequestBuilder when successful func (m *ItemPlannerRosterPlansRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerRosterPlansRequestBuilder) { return NewItemPlannerRosterPlansRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_tasks_count_request_builder.go b/users/item_planner_tasks_count_request_builder.go index 862a9112f98..ba07ed6eaa3 100644 --- a/users/item_planner_tasks_count_request_builder.go +++ b/users/item_planner_tasks_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemPlannerTasksCountRequestBuilder(rawUrl string, requestAdapter i2ae41 return NewItemPlannerTasksCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerTasksCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerTasksCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemPlannerTasksCountRequestBuilder) Get(ctx context.Context, requestCo return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerTasksCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerTasksCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemPlannerTasksCountRequestBuilder) ToGetRequestInformation(ctx contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerTasksCountRequestBuilder when successful func (m *ItemPlannerTasksCountRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerTasksCountRequestBuilder) { return NewItemPlannerTasksCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_tasks_delta_request_builder.go b/users/item_planner_tasks_delta_request_builder.go index 67a09897c67..6686b208336 100644 --- a/users/item_planner_tasks_delta_request_builder.go +++ b/users/item_planner_tasks_delta_request_builder.go @@ -76,6 +76,7 @@ func (m *ItemPlannerTasksDeltaRequestBuilder) Get(ctx context.Context, requestCo return res.(ItemPlannerTasksDeltaResponseable), nil } // GetAsDeltaGetResponse get newly created, updated, or deleted tasks in either a Planner plan or assigned to the signed-in user without having to perform a full read of the entire resource collection. For details, see Use delta query to track changes in Microsoft Graph data. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemPlannerTasksDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -99,6 +100,7 @@ func (m *ItemPlannerTasksDeltaRequestBuilder) GetAsDeltaGetResponse(ctx context. return res.(ItemPlannerTasksDeltaGetResponseable), nil } // ToGetRequestInformation get newly created, updated, or deleted tasks in either a Planner plan or assigned to the signed-in user without having to perform a full read of the entire resource collection. For details, see Use delta query to track changes in Microsoft Graph data. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerTasksDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerTasksDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,6 +115,7 @@ func (m *ItemPlannerTasksDeltaRequestBuilder) ToGetRequestInformation(ctx contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerTasksDeltaRequestBuilder when successful func (m *ItemPlannerTasksDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerTasksDeltaRequestBuilder) { return NewItemPlannerTasksDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_tasks_item_assigned_to_task_board_format_request_builder.go b/users/item_planner_tasks_item_assigned_to_task_board_format_request_builder.go index 5a5c6c69153..14e7c804f99 100644 --- a/users/item_planner_tasks_item_assigned_to_task_board_format_request_builder.go +++ b/users/item_planner_tasks_item_assigned_to_task_board_format_request_builder.go @@ -55,6 +55,7 @@ func NewItemPlannerTasksItemAssignedToTaskBoardFormatRequestBuilder(rawUrl strin return NewItemPlannerTasksItemAssignedToTaskBoardFormatRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property assignedToTaskBoardFormat for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerTasksItemAssignedToTaskBoardFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemPlannerTasksItemAssignedToTaskBoardFormatRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemPlannerTasksItemAssignedToTaskBoardFormatRequestBuilder) Delete(ctx return nil } // Get read-only. Nullable. Used to render the task correctly in the task board view when grouped by assignedTo. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerAssignedToTaskBoardTaskFormatable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerTasksItemAssignedToTaskBoardFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerTasksItemAssignedToTaskBoardFormatRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerAssignedToTaskBoardTaskFormatable, error) { @@ -91,6 +93,7 @@ func (m *ItemPlannerTasksItemAssignedToTaskBoardFormatRequestBuilder) Get(ctx co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerAssignedToTaskBoardTaskFormatable), nil } // Patch update the navigation property assignedToTaskBoardFormat in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerAssignedToTaskBoardTaskFormatable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerTasksItemAssignedToTaskBoardFormatRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerAssignedToTaskBoardTaskFormatable, requestConfiguration *ItemPlannerTasksItemAssignedToTaskBoardFormatRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerAssignedToTaskBoardTaskFormatable, error) { @@ -111,6 +114,7 @@ func (m *ItemPlannerTasksItemAssignedToTaskBoardFormatRequestBuilder) Patch(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerAssignedToTaskBoardTaskFormatable), nil } // ToDeleteRequestInformation delete navigation property assignedToTaskBoardFormat for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerTasksItemAssignedToTaskBoardFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerTasksItemAssignedToTaskBoardFormatRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemPlannerTasksItemAssignedToTaskBoardFormatRequestBuilder) ToDeleteRe return requestInfo, nil } // ToGetRequestInformation read-only. Nullable. Used to render the task correctly in the task board view when grouped by assignedTo. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerTasksItemAssignedToTaskBoardFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerTasksItemAssignedToTaskBoardFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemPlannerTasksItemAssignedToTaskBoardFormatRequestBuilder) ToGetReque return requestInfo, nil } // ToPatchRequestInformation update the navigation property assignedToTaskBoardFormat in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerTasksItemAssignedToTaskBoardFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerAssignedToTaskBoardTaskFormatable, requestConfiguration *ItemPlannerTasksItemAssignedToTaskBoardFormatRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemPlannerTasksItemAssignedToTaskBoardFormatRequestBuilder) ToPatchReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerTasksItemAssignedToTaskBoardFormatRequestBuilder when successful func (m *ItemPlannerTasksItemAssignedToTaskBoardFormatRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerTasksItemAssignedToTaskBoardFormatRequestBuilder) { return NewItemPlannerTasksItemAssignedToTaskBoardFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_tasks_item_bucket_task_board_format_request_builder.go b/users/item_planner_tasks_item_bucket_task_board_format_request_builder.go index f6c76384b29..1d44273a887 100644 --- a/users/item_planner_tasks_item_bucket_task_board_format_request_builder.go +++ b/users/item_planner_tasks_item_bucket_task_board_format_request_builder.go @@ -55,6 +55,7 @@ func NewItemPlannerTasksItemBucketTaskBoardFormatRequestBuilder(rawUrl string, r return NewItemPlannerTasksItemBucketTaskBoardFormatRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property bucketTaskBoardFormat for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerTasksItemBucketTaskBoardFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemPlannerTasksItemBucketTaskBoardFormatRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemPlannerTasksItemBucketTaskBoardFormatRequestBuilder) Delete(ctx con return nil } // Get read-only. Nullable. Used to render the task correctly in the task board view when grouped by bucket. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerBucketTaskBoardTaskFormatable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerTasksItemBucketTaskBoardFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerTasksItemBucketTaskBoardFormatRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerBucketTaskBoardTaskFormatable, error) { @@ -91,6 +93,7 @@ func (m *ItemPlannerTasksItemBucketTaskBoardFormatRequestBuilder) Get(ctx contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerBucketTaskBoardTaskFormatable), nil } // Patch update the navigation property bucketTaskBoardFormat in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerBucketTaskBoardTaskFormatable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerTasksItemBucketTaskBoardFormatRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerBucketTaskBoardTaskFormatable, requestConfiguration *ItemPlannerTasksItemBucketTaskBoardFormatRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerBucketTaskBoardTaskFormatable, error) { @@ -111,6 +114,7 @@ func (m *ItemPlannerTasksItemBucketTaskBoardFormatRequestBuilder) Patch(ctx cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerBucketTaskBoardTaskFormatable), nil } // ToDeleteRequestInformation delete navigation property bucketTaskBoardFormat for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerTasksItemBucketTaskBoardFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerTasksItemBucketTaskBoardFormatRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemPlannerTasksItemBucketTaskBoardFormatRequestBuilder) ToDeleteReques return requestInfo, nil } // ToGetRequestInformation read-only. Nullable. Used to render the task correctly in the task board view when grouped by bucket. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerTasksItemBucketTaskBoardFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerTasksItemBucketTaskBoardFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemPlannerTasksItemBucketTaskBoardFormatRequestBuilder) ToGetRequestIn return requestInfo, nil } // ToPatchRequestInformation update the navigation property bucketTaskBoardFormat in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerTasksItemBucketTaskBoardFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerBucketTaskBoardTaskFormatable, requestConfiguration *ItemPlannerTasksItemBucketTaskBoardFormatRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemPlannerTasksItemBucketTaskBoardFormatRequestBuilder) ToPatchRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerTasksItemBucketTaskBoardFormatRequestBuilder when successful func (m *ItemPlannerTasksItemBucketTaskBoardFormatRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerTasksItemBucketTaskBoardFormatRequestBuilder) { return NewItemPlannerTasksItemBucketTaskBoardFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_tasks_item_details_request_builder.go b/users/item_planner_tasks_item_details_request_builder.go index 0965fc166e8..6bab249a748 100644 --- a/users/item_planner_tasks_item_details_request_builder.go +++ b/users/item_planner_tasks_item_details_request_builder.go @@ -55,6 +55,7 @@ func NewItemPlannerTasksItemDetailsRequestBuilder(rawUrl string, requestAdapter return NewItemPlannerTasksItemDetailsRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property details for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerTasksItemDetailsRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemPlannerTasksItemDetailsRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemPlannerTasksItemDetailsRequestBuilder) Delete(ctx context.Context, return nil } // Get read-only. Nullable. More details about the task. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerTaskDetailsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerTasksItemDetailsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerTasksItemDetailsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskDetailsable, error) { @@ -91,6 +93,7 @@ func (m *ItemPlannerTasksItemDetailsRequestBuilder) Get(ctx context.Context, req return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskDetailsable), nil } // Patch update the navigation property details in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerTaskDetailsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerTasksItemDetailsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskDetailsable, requestConfiguration *ItemPlannerTasksItemDetailsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskDetailsable, error) { @@ -111,6 +114,7 @@ func (m *ItemPlannerTasksItemDetailsRequestBuilder) Patch(ctx context.Context, b return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskDetailsable), nil } // ToDeleteRequestInformation delete navigation property details for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerTasksItemDetailsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerTasksItemDetailsRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemPlannerTasksItemDetailsRequestBuilder) ToDeleteRequestInformation(c return requestInfo, nil } // ToGetRequestInformation read-only. Nullable. More details about the task. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerTasksItemDetailsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerTasksItemDetailsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemPlannerTasksItemDetailsRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // ToPatchRequestInformation update the navigation property details in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerTasksItemDetailsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskDetailsable, requestConfiguration *ItemPlannerTasksItemDetailsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemPlannerTasksItemDetailsRequestBuilder) ToPatchRequestInformation(ct return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerTasksItemDetailsRequestBuilder when successful func (m *ItemPlannerTasksItemDetailsRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerTasksItemDetailsRequestBuilder) { return NewItemPlannerTasksItemDetailsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_tasks_item_progress_task_board_format_request_builder.go b/users/item_planner_tasks_item_progress_task_board_format_request_builder.go index 43b4a9b5540..5fccd5e0f2a 100644 --- a/users/item_planner_tasks_item_progress_task_board_format_request_builder.go +++ b/users/item_planner_tasks_item_progress_task_board_format_request_builder.go @@ -55,6 +55,7 @@ func NewItemPlannerTasksItemProgressTaskBoardFormatRequestBuilder(rawUrl string, return NewItemPlannerTasksItemProgressTaskBoardFormatRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property progressTaskBoardFormat for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerTasksItemProgressTaskBoardFormatRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemPlannerTasksItemProgressTaskBoardFormatRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemPlannerTasksItemProgressTaskBoardFormatRequestBuilder) Delete(ctx c return nil } // Get read-only. Nullable. Used to render the task correctly in the task board view when grouped by progress. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerProgressTaskBoardTaskFormatable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerTasksItemProgressTaskBoardFormatRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerTasksItemProgressTaskBoardFormatRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerProgressTaskBoardTaskFormatable, error) { @@ -91,6 +93,7 @@ func (m *ItemPlannerTasksItemProgressTaskBoardFormatRequestBuilder) Get(ctx cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerProgressTaskBoardTaskFormatable), nil } // Patch update the navigation property progressTaskBoardFormat in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerProgressTaskBoardTaskFormatable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerTasksItemProgressTaskBoardFormatRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerProgressTaskBoardTaskFormatable, requestConfiguration *ItemPlannerTasksItemProgressTaskBoardFormatRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerProgressTaskBoardTaskFormatable, error) { @@ -111,6 +114,7 @@ func (m *ItemPlannerTasksItemProgressTaskBoardFormatRequestBuilder) Patch(ctx co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerProgressTaskBoardTaskFormatable), nil } // ToDeleteRequestInformation delete navigation property progressTaskBoardFormat for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerTasksItemProgressTaskBoardFormatRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerTasksItemProgressTaskBoardFormatRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemPlannerTasksItemProgressTaskBoardFormatRequestBuilder) ToDeleteRequ return requestInfo, nil } // ToGetRequestInformation read-only. Nullable. Used to render the task correctly in the task board view when grouped by progress. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerTasksItemProgressTaskBoardFormatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerTasksItemProgressTaskBoardFormatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemPlannerTasksItemProgressTaskBoardFormatRequestBuilder) ToGetRequest return requestInfo, nil } // ToPatchRequestInformation update the navigation property progressTaskBoardFormat in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerTasksItemProgressTaskBoardFormatRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerProgressTaskBoardTaskFormatable, requestConfiguration *ItemPlannerTasksItemProgressTaskBoardFormatRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemPlannerTasksItemProgressTaskBoardFormatRequestBuilder) ToPatchReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerTasksItemProgressTaskBoardFormatRequestBuilder when successful func (m *ItemPlannerTasksItemProgressTaskBoardFormatRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerTasksItemProgressTaskBoardFormatRequestBuilder) { return NewItemPlannerTasksItemProgressTaskBoardFormatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_tasks_planner_task_item_request_builder.go b/users/item_planner_tasks_planner_task_item_request_builder.go index 11a8938862c..96895124012 100644 --- a/users/item_planner_tasks_planner_task_item_request_builder.go +++ b/users/item_planner_tasks_planner_task_item_request_builder.go @@ -65,6 +65,7 @@ func NewItemPlannerTasksPlannerTaskItemRequestBuilder(rawUrl string, requestAdap return NewItemPlannerTasksPlannerTaskItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property tasks for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerTasksPlannerTaskItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemPlannerTasksPlannerTaskItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -86,6 +87,7 @@ func (m *ItemPlannerTasksPlannerTaskItemRequestBuilder) Details()(*ItemPlannerTa return NewItemPlannerTasksItemDetailsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get read-only. Nullable. Returns the plannerTasks assigned to the user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerTaskable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerTasksPlannerTaskItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerTasksPlannerTaskItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskable, error) { @@ -106,6 +108,7 @@ func (m *ItemPlannerTasksPlannerTaskItemRequestBuilder) Get(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskable), nil } // Patch update the navigation property tasks in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerTaskable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerTasksPlannerTaskItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskable, requestConfiguration *ItemPlannerTasksPlannerTaskItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskable, error) { @@ -131,6 +134,7 @@ func (m *ItemPlannerTasksPlannerTaskItemRequestBuilder) ProgressTaskBoardFormat( return NewItemPlannerTasksItemProgressTaskBoardFormatRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property tasks for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerTasksPlannerTaskItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerTasksPlannerTaskItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -142,6 +146,7 @@ func (m *ItemPlannerTasksPlannerTaskItemRequestBuilder) ToDeleteRequestInformati return requestInfo, nil } // ToGetRequestInformation read-only. Nullable. Returns the plannerTasks assigned to the user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerTasksPlannerTaskItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerTasksPlannerTaskItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +161,7 @@ func (m *ItemPlannerTasksPlannerTaskItemRequestBuilder) ToGetRequestInformation( return requestInfo, nil } // ToPatchRequestInformation update the navigation property tasks in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerTasksPlannerTaskItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskable, requestConfiguration *ItemPlannerTasksPlannerTaskItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -171,6 +177,7 @@ func (m *ItemPlannerTasksPlannerTaskItemRequestBuilder) ToPatchRequestInformatio return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerTasksPlannerTaskItemRequestBuilder when successful func (m *ItemPlannerTasksPlannerTaskItemRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerTasksPlannerTaskItemRequestBuilder) { return NewItemPlannerTasksPlannerTaskItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_planner_tasks_request_builder.go b/users/item_planner_tasks_request_builder.go index 8ae983a9944..0ddce1ccacf 100644 --- a/users/item_planner_tasks_request_builder.go +++ b/users/item_planner_tasks_request_builder.go @@ -47,6 +47,7 @@ type ItemPlannerTasksRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByPlannerTaskId provides operations to manage the tasks property of the microsoft.graph.plannerUser entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerTasksPlannerTaskItemRequestBuilder when successful func (m *ItemPlannerTasksRequestBuilder) ByPlannerTaskId(plannerTaskId string)(*ItemPlannerTasksPlannerTaskItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemPlannerTasksRequestBuilder) Delta()(*ItemPlannerTasksDeltaRequestBu return NewItemPlannerTasksDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get read-only. Nullable. Returns the plannerTasks assigned to the user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerTaskCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerTasksRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPlannerTasksRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemPlannerTasksRequestBuilder) Get(ctx context.Context, requestConfigu return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskCollectionResponseable), nil } // Post create new navigation property to tasks for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PlannerTaskable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPlannerTasksRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskable, requestConfiguration *ItemPlannerTasksRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskable, error) { @@ -122,6 +125,7 @@ func (m *ItemPlannerTasksRequestBuilder) Post(ctx context.Context, body ie233ee7 return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskable), nil } // ToGetRequestInformation read-only. Nullable. Returns the plannerTasks assigned to the user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerTasksRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPlannerTasksRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemPlannerTasksRequestBuilder) ToGetRequestInformation(ctx context.Con return requestInfo, nil } // ToPostRequestInformation create new navigation property to tasks for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPlannerTasksRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PlannerTaskable, requestConfiguration *ItemPlannerTasksRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemPlannerTasksRequestBuilder) ToPostRequestInformation(ctx context.Co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPlannerTasksRequestBuilder when successful func (m *ItemPlannerTasksRequestBuilder) WithUrl(rawUrl string)(*ItemPlannerTasksRequestBuilder) { return NewItemPlannerTasksRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_presence_clear_presence_request_builder.go b/users/item_presence_clear_presence_request_builder.go index aeb19509d04..44039bd829d 100644 --- a/users/item_presence_clear_presence_request_builder.go +++ b/users/item_presence_clear_presence_request_builder.go @@ -31,6 +31,7 @@ func NewItemPresenceClearPresenceRequestBuilder(rawUrl string, requestAdapter i2 return NewItemPresenceClearPresenceRequestBuilderInternal(urlParams, requestAdapter) } // Post clear a presence session of an application for a user. If it is the user's only presence session, a successful clearPresence changes the user's presence to Offline/Offline. Read more about presence sessions and their time-out and expiration. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemPresenceClearPresenceRequestBuilder) Post(ctx context.Context, body return nil } // ToPostRequestInformation clear a presence session of an application for a user. If it is the user's only presence session, a successful clearPresence changes the user's presence to Offline/Offline. Read more about presence sessions and their time-out and expiration. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPresenceClearPresenceRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemPresenceClearPresencePostRequestBodyable, requestConfiguration *ItemPresenceClearPresenceRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemPresenceClearPresenceRequestBuilder) ToPostRequestInformation(ctx c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPresenceClearPresenceRequestBuilder when successful func (m *ItemPresenceClearPresenceRequestBuilder) WithUrl(rawUrl string)(*ItemPresenceClearPresenceRequestBuilder) { return NewItemPresenceClearPresenceRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_presence_clear_user_preferred_presence_request_builder.go b/users/item_presence_clear_user_preferred_presence_request_builder.go index aaeea7115d3..e97ae8db757 100644 --- a/users/item_presence_clear_user_preferred_presence_request_builder.go +++ b/users/item_presence_clear_user_preferred_presence_request_builder.go @@ -31,6 +31,7 @@ func NewItemPresenceClearUserPreferredPresenceRequestBuilder(rawUrl string, requ return NewItemPresenceClearUserPreferredPresenceRequestBuilderInternal(urlParams, requestAdapter) } // Post clear the preferred availability and activity status for a user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemPresenceClearUserPreferredPresenceRequestBuilder) Post(ctx context. return nil } // ToPostRequestInformation clear the preferred availability and activity status for a user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPresenceClearUserPreferredPresenceRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemPresenceClearUserPreferredPresenceRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemPresenceClearUserPreferredPresenceRequestBuilder) ToPostRequestInfo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPresenceClearUserPreferredPresenceRequestBuilder when successful func (m *ItemPresenceClearUserPreferredPresenceRequestBuilder) WithUrl(rawUrl string)(*ItemPresenceClearUserPreferredPresenceRequestBuilder) { return NewItemPresenceClearUserPreferredPresenceRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_presence_request_builder.go b/users/item_presence_request_builder.go index a3d4eb17884..e9a17e2e527 100644 --- a/users/item_presence_request_builder.go +++ b/users/item_presence_request_builder.go @@ -18,7 +18,7 @@ type ItemPresenceRequestBuilderDeleteRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemPresenceRequestBuilderGetQueryParameters get a user's presence information. +// ItemPresenceRequestBuilderGetQueryParameters set a presence status message for a user. An optional expiration date and time can be supplied. type ItemPresenceRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -65,6 +65,7 @@ func NewItemPresenceRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee2 return NewItemPresenceRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property presence for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPresenceRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemPresenceRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -80,12 +81,13 @@ func (m *ItemPresenceRequestBuilder) Delete(ctx context.Context, requestConfigur } return nil } -// Get get a user's presence information. +// Get set a presence status message for a user. An optional expiration date and time can be supplied. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Presenceable 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/presence-get?view=graph-rest-beta +// [Find more info here]: https://learn.microsoft.com/graph/api/presence-setstatusmessage?view=graph-rest-beta func (m *ItemPresenceRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemPresenceRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Presenceable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -104,6 +106,7 @@ func (m *ItemPresenceRequestBuilder) Get(ctx context.Context, requestConfigurati return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Presenceable), nil } // Patch update the navigation property presence in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Presenceable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemPresenceRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Presenceable, requestConfiguration *ItemPresenceRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Presenceable, error) { @@ -139,6 +142,7 @@ func (m *ItemPresenceRequestBuilder) SetUserPreferredPresence()(*ItemPresenceSet return NewItemPresenceSetUserPreferredPresenceRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property presence for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPresenceRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPresenceRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -149,7 +153,8 @@ func (m *ItemPresenceRequestBuilder) ToDeleteRequestInformation(ctx context.Cont requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get a user's presence information. +// ToGetRequestInformation set a presence status message for a user. An optional expiration date and time can be supplied. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPresenceRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPresenceRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -164,6 +169,7 @@ func (m *ItemPresenceRequestBuilder) ToGetRequestInformation(ctx context.Context return requestInfo, nil } // ToPatchRequestInformation update the navigation property presence in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPresenceRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Presenceable, requestConfiguration *ItemPresenceRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -179,6 +185,7 @@ func (m *ItemPresenceRequestBuilder) ToPatchRequestInformation(ctx context.Conte return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPresenceRequestBuilder when successful func (m *ItemPresenceRequestBuilder) WithUrl(rawUrl string)(*ItemPresenceRequestBuilder) { return NewItemPresenceRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_presence_set_presence_request_builder.go b/users/item_presence_set_presence_request_builder.go index 49d645b5d84..cd1c9003b40 100644 --- a/users/item_presence_set_presence_request_builder.go +++ b/users/item_presence_set_presence_request_builder.go @@ -31,6 +31,7 @@ func NewItemPresenceSetPresenceRequestBuilder(rawUrl string, requestAdapter i2ae return NewItemPresenceSetPresenceRequestBuilderInternal(urlParams, requestAdapter) } // Post set the availability and activity status in a presence session of an application for a user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemPresenceSetPresenceRequestBuilder) Post(ctx context.Context, body I return nil } // ToPostRequestInformation set the availability and activity status in a presence session of an application for a user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPresenceSetPresenceRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemPresenceSetPresencePostRequestBodyable, requestConfiguration *ItemPresenceSetPresenceRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemPresenceSetPresenceRequestBuilder) ToPostRequestInformation(ctx con return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPresenceSetPresenceRequestBuilder when successful func (m *ItemPresenceSetPresenceRequestBuilder) WithUrl(rawUrl string)(*ItemPresenceSetPresenceRequestBuilder) { return NewItemPresenceSetPresenceRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_presence_set_status_message_request_builder.go b/users/item_presence_set_status_message_request_builder.go index fa982fe0ae0..08468778f87 100644 --- a/users/item_presence_set_status_message_request_builder.go +++ b/users/item_presence_set_status_message_request_builder.go @@ -31,6 +31,7 @@ func NewItemPresenceSetStatusMessageRequestBuilder(rawUrl string, requestAdapter return NewItemPresenceSetStatusMessageRequestBuilderInternal(urlParams, requestAdapter) } // Post set a presence status message for a user. An optional expiration date and time can be supplied. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemPresenceSetStatusMessageRequestBuilder) Post(ctx context.Context, b return nil } // ToPostRequestInformation set a presence status message for a user. An optional expiration date and time can be supplied. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPresenceSetStatusMessageRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemPresenceSetStatusMessagePostRequestBodyable, requestConfiguration *ItemPresenceSetStatusMessageRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemPresenceSetStatusMessageRequestBuilder) ToPostRequestInformation(ct return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPresenceSetStatusMessageRequestBuilder when successful func (m *ItemPresenceSetStatusMessageRequestBuilder) WithUrl(rawUrl string)(*ItemPresenceSetStatusMessageRequestBuilder) { return NewItemPresenceSetStatusMessageRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_presence_set_user_preferred_presence_request_builder.go b/users/item_presence_set_user_preferred_presence_request_builder.go index bc3356c1cbf..bab4ca957d2 100644 --- a/users/item_presence_set_user_preferred_presence_request_builder.go +++ b/users/item_presence_set_user_preferred_presence_request_builder.go @@ -31,6 +31,7 @@ func NewItemPresenceSetUserPreferredPresenceRequestBuilder(rawUrl string, reques return NewItemPresenceSetUserPreferredPresenceRequestBuilderInternal(urlParams, requestAdapter) } // Post set the preferred availability and activity status for a user. If the preferred presence of a user is set, the user's presence is the preferred presence. Preferred presence takes effect only when there is at least one presence session of the user. Otherwise, the user's presence stays as Offline. A presence session can be created as a result of a successful setPresence operation, or if the user is signed in on a Teams client. Read more about presence sessions and their time-out and expiration. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemPresenceSetUserPreferredPresenceRequestBuilder) Post(ctx context.Co return nil } // ToPostRequestInformation set the preferred availability and activity status for a user. If the preferred presence of a user is set, the user's presence is the preferred presence. Preferred presence takes effect only when there is at least one presence session of the user. Otherwise, the user's presence stays as Offline. A presence session can be created as a result of a successful setPresence operation, or if the user is signed in on a Teams client. Read more about presence sessions and their time-out and expiration. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemPresenceSetUserPreferredPresenceRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemPresenceSetUserPreferredPresencePostRequestBodyable, requestConfiguration *ItemPresenceSetUserPreferredPresenceRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemPresenceSetUserPreferredPresenceRequestBuilder) ToPostRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemPresenceSetUserPreferredPresenceRequestBuilder when successful func (m *ItemPresenceSetUserPreferredPresenceRequestBuilder) WithUrl(rawUrl string)(*ItemPresenceSetUserPreferredPresenceRequestBuilder) { return NewItemPresenceSetUserPreferredPresenceRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_account_count_request_builder.go b/users/item_profile_account_count_request_builder.go index a46035dde71..4dfb1eb454a 100644 --- a/users/item_profile_account_count_request_builder.go +++ b/users/item_profile_account_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemProfileAccountCountRequestBuilder(rawUrl string, requestAdapter i2ae return NewItemProfileAccountCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileAccountCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfileAccountCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemProfileAccountCountRequestBuilder) Get(ctx context.Context, request return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileAccountCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfileAccountCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemProfileAccountCountRequestBuilder) ToGetRequestInformation(ctx cont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileAccountCountRequestBuilder when successful func (m *ItemProfileAccountCountRequestBuilder) WithUrl(rawUrl string)(*ItemProfileAccountCountRequestBuilder) { return NewItemProfileAccountCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_account_request_builder.go b/users/item_profile_account_request_builder.go index daa2ba3c5d6..7c40967798b 100644 --- a/users/item_profile_account_request_builder.go +++ b/users/item_profile_account_request_builder.go @@ -47,6 +47,7 @@ type ItemProfileAccountRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByUserAccountInformationId provides operations to manage the account property of the microsoft.graph.profile entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileAccountUserAccountInformationItemRequestBuilder when successful func (m *ItemProfileAccountRequestBuilder) ByUserAccountInformationId(userAccountInformationId string)(*ItemProfileAccountUserAccountInformationItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemProfileAccountRequestBuilder) Count()(*ItemProfileAccountCountReque return NewItemProfileAccountCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get account from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserAccountInformationCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileAccountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfileAccountRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserAccountInformationCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemProfileAccountRequestBuilder) Get(ctx context.Context, requestConfi return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserAccountInformationCollectionResponseable), nil } // Post create new navigation property to account for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserAccountInformationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileAccountRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserAccountInformationable, requestConfiguration *ItemProfileAccountRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserAccountInformationable, error) { @@ -117,6 +120,7 @@ func (m *ItemProfileAccountRequestBuilder) Post(ctx context.Context, body ie233e return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserAccountInformationable), nil } // ToGetRequestInformation get account from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileAccountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfileAccountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemProfileAccountRequestBuilder) ToGetRequestInformation(ctx context.C return requestInfo, nil } // ToPostRequestInformation create new navigation property to account for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileAccountRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserAccountInformationable, requestConfiguration *ItemProfileAccountRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemProfileAccountRequestBuilder) ToPostRequestInformation(ctx context. return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileAccountRequestBuilder when successful func (m *ItemProfileAccountRequestBuilder) WithUrl(rawUrl string)(*ItemProfileAccountRequestBuilder) { return NewItemProfileAccountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_account_user_account_information_item_request_builder.go b/users/item_profile_account_user_account_information_item_request_builder.go index 955101b2792..5774292248a 100644 --- a/users/item_profile_account_user_account_information_item_request_builder.go +++ b/users/item_profile_account_user_account_information_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemProfileAccountUserAccountInformationItemRequestBuilder(rawUrl string return NewItemProfileAccountUserAccountInformationItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property account for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileAccountUserAccountInformationItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemProfileAccountUserAccountInformationItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemProfileAccountUserAccountInformationItemRequestBuilder) Delete(ctx return nil } // Get get account from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserAccountInformationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileAccountUserAccountInformationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfileAccountUserAccountInformationItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserAccountInformationable, error) { @@ -91,6 +93,7 @@ func (m *ItemProfileAccountUserAccountInformationItemRequestBuilder) Get(ctx con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserAccountInformationable), nil } // Patch update the navigation property account in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserAccountInformationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileAccountUserAccountInformationItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserAccountInformationable, requestConfiguration *ItemProfileAccountUserAccountInformationItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserAccountInformationable, error) { @@ -111,6 +114,7 @@ func (m *ItemProfileAccountUserAccountInformationItemRequestBuilder) Patch(ctx c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserAccountInformationable), nil } // ToDeleteRequestInformation delete navigation property account for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileAccountUserAccountInformationItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemProfileAccountUserAccountInformationItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemProfileAccountUserAccountInformationItemRequestBuilder) ToDeleteReq return requestInfo, nil } // ToGetRequestInformation get account from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileAccountUserAccountInformationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfileAccountUserAccountInformationItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemProfileAccountUserAccountInformationItemRequestBuilder) ToGetReques return requestInfo, nil } // ToPatchRequestInformation update the navigation property account in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileAccountUserAccountInformationItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserAccountInformationable, requestConfiguration *ItemProfileAccountUserAccountInformationItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemProfileAccountUserAccountInformationItemRequestBuilder) ToPatchRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileAccountUserAccountInformationItemRequestBuilder when successful func (m *ItemProfileAccountUserAccountInformationItemRequestBuilder) WithUrl(rawUrl string)(*ItemProfileAccountUserAccountInformationItemRequestBuilder) { return NewItemProfileAccountUserAccountInformationItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_addresses_count_request_builder.go b/users/item_profile_addresses_count_request_builder.go index 09911a6e913..6331ffd2a28 100644 --- a/users/item_profile_addresses_count_request_builder.go +++ b/users/item_profile_addresses_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemProfileAddressesCountRequestBuilder(rawUrl string, requestAdapter i2 return NewItemProfileAddressesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileAddressesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfileAddressesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemProfileAddressesCountRequestBuilder) Get(ctx context.Context, reque return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileAddressesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfileAddressesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemProfileAddressesCountRequestBuilder) ToGetRequestInformation(ctx co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileAddressesCountRequestBuilder when successful func (m *ItemProfileAddressesCountRequestBuilder) WithUrl(rawUrl string)(*ItemProfileAddressesCountRequestBuilder) { return NewItemProfileAddressesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_addresses_item_address_item_request_builder.go b/users/item_profile_addresses_item_address_item_request_builder.go index 30ba162a265..58e4abaaf06 100644 --- a/users/item_profile_addresses_item_address_item_request_builder.go +++ b/users/item_profile_addresses_item_address_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemProfileAddressesItemAddressItemRequestBuilder(rawUrl string, request return NewItemProfileAddressesItemAddressItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete deletes an itemAddress object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -74,6 +75,7 @@ func (m *ItemProfileAddressesItemAddressItemRequestBuilder) Delete(ctx context.C return nil } // Get represents details of addresses associated with the user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemAddressable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileAddressesItemAddressItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfileAddressesItemAddressItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemAddressable, error) { @@ -94,6 +96,7 @@ func (m *ItemProfileAddressesItemAddressItemRequestBuilder) Get(ctx context.Cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemAddressable), nil } // Patch update the properties of an itemAddress object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemAddressable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -117,6 +120,7 @@ func (m *ItemProfileAddressesItemAddressItemRequestBuilder) Patch(ctx context.Co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemAddressable), nil } // ToDeleteRequestInformation deletes an itemAddress object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileAddressesItemAddressItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemProfileAddressesItemAddressItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -128,6 +132,7 @@ func (m *ItemProfileAddressesItemAddressItemRequestBuilder) ToDeleteRequestInfor return requestInfo, nil } // ToGetRequestInformation represents details of addresses associated with the user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileAddressesItemAddressItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfileAddressesItemAddressItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -142,6 +147,7 @@ func (m *ItemProfileAddressesItemAddressItemRequestBuilder) ToGetRequestInformat return requestInfo, nil } // ToPatchRequestInformation update the properties of an itemAddress object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileAddressesItemAddressItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemAddressable, requestConfiguration *ItemProfileAddressesItemAddressItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -157,6 +163,7 @@ func (m *ItemProfileAddressesItemAddressItemRequestBuilder) ToPatchRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileAddressesItemAddressItemRequestBuilder when successful func (m *ItemProfileAddressesItemAddressItemRequestBuilder) WithUrl(rawUrl string)(*ItemProfileAddressesItemAddressItemRequestBuilder) { return NewItemProfileAddressesItemAddressItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_addresses_request_builder.go b/users/item_profile_addresses_request_builder.go index 6765c83d59a..70e5b223e84 100644 --- a/users/item_profile_addresses_request_builder.go +++ b/users/item_profile_addresses_request_builder.go @@ -47,6 +47,7 @@ type ItemProfileAddressesRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByItemAddressId provides operations to manage the addresses property of the microsoft.graph.profile entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileAddressesItemAddressItemRequestBuilder when successful func (m *ItemProfileAddressesRequestBuilder) ByItemAddressId(itemAddressId string)(*ItemProfileAddressesItemAddressItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemProfileAddressesRequestBuilder) Count()(*ItemProfileAddressesCountR return NewItemProfileAddressesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get represents details of addresses associated with the user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemAddressCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileAddressesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfileAddressesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemAddressCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemProfileAddressesRequestBuilder) Get(ctx context.Context, requestCon return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemAddressCollectionResponseable), nil } // Post create new navigation property to addresses for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemAddressable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileAddressesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemAddressable, requestConfiguration *ItemProfileAddressesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemAddressable, error) { @@ -117,6 +120,7 @@ func (m *ItemProfileAddressesRequestBuilder) Post(ctx context.Context, body ie23 return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemAddressable), nil } // ToGetRequestInformation represents details of addresses associated with the user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileAddressesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfileAddressesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemProfileAddressesRequestBuilder) ToGetRequestInformation(ctx context return requestInfo, nil } // ToPostRequestInformation create new navigation property to addresses for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileAddressesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemAddressable, requestConfiguration *ItemProfileAddressesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemProfileAddressesRequestBuilder) ToPostRequestInformation(ctx contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileAddressesRequestBuilder when successful func (m *ItemProfileAddressesRequestBuilder) WithUrl(rawUrl string)(*ItemProfileAddressesRequestBuilder) { return NewItemProfileAddressesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_anniversaries_count_request_builder.go b/users/item_profile_anniversaries_count_request_builder.go index b648c5a849e..968501a5ddc 100644 --- a/users/item_profile_anniversaries_count_request_builder.go +++ b/users/item_profile_anniversaries_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemProfileAnniversariesCountRequestBuilder(rawUrl string, requestAdapte return NewItemProfileAnniversariesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileAnniversariesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfileAnniversariesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemProfileAnniversariesCountRequestBuilder) Get(ctx context.Context, r return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileAnniversariesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfileAnniversariesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemProfileAnniversariesCountRequestBuilder) ToGetRequestInformation(ct return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileAnniversariesCountRequestBuilder when successful func (m *ItemProfileAnniversariesCountRequestBuilder) WithUrl(rawUrl string)(*ItemProfileAnniversariesCountRequestBuilder) { return NewItemProfileAnniversariesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_anniversaries_person_annual_event_item_request_builder.go b/users/item_profile_anniversaries_person_annual_event_item_request_builder.go index d1dc5e5952f..7ae6b1b593c 100644 --- a/users/item_profile_anniversaries_person_annual_event_item_request_builder.go +++ b/users/item_profile_anniversaries_person_annual_event_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemProfileAnniversariesPersonAnnualEventItemRequestBuilder(rawUrl strin return NewItemProfileAnniversariesPersonAnnualEventItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property anniversaries for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileAnniversariesPersonAnnualEventItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemProfileAnniversariesPersonAnnualEventItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemProfileAnniversariesPersonAnnualEventItemRequestBuilder) Delete(ctx return nil } // Get represents the details of meaningful dates associated with a person. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PersonAnnualEventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileAnniversariesPersonAnnualEventItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfileAnniversariesPersonAnnualEventItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonAnnualEventable, error) { @@ -91,6 +93,7 @@ func (m *ItemProfileAnniversariesPersonAnnualEventItemRequestBuilder) Get(ctx co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonAnnualEventable), nil } // Patch update the navigation property anniversaries in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PersonAnnualEventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileAnniversariesPersonAnnualEventItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonAnnualEventable, requestConfiguration *ItemProfileAnniversariesPersonAnnualEventItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonAnnualEventable, error) { @@ -111,6 +114,7 @@ func (m *ItemProfileAnniversariesPersonAnnualEventItemRequestBuilder) Patch(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonAnnualEventable), nil } // ToDeleteRequestInformation delete navigation property anniversaries for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileAnniversariesPersonAnnualEventItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemProfileAnniversariesPersonAnnualEventItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemProfileAnniversariesPersonAnnualEventItemRequestBuilder) ToDeleteRe return requestInfo, nil } // ToGetRequestInformation represents the details of meaningful dates associated with a person. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileAnniversariesPersonAnnualEventItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfileAnniversariesPersonAnnualEventItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemProfileAnniversariesPersonAnnualEventItemRequestBuilder) ToGetReque return requestInfo, nil } // ToPatchRequestInformation update the navigation property anniversaries in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileAnniversariesPersonAnnualEventItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonAnnualEventable, requestConfiguration *ItemProfileAnniversariesPersonAnnualEventItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemProfileAnniversariesPersonAnnualEventItemRequestBuilder) ToPatchReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileAnniversariesPersonAnnualEventItemRequestBuilder when successful func (m *ItemProfileAnniversariesPersonAnnualEventItemRequestBuilder) WithUrl(rawUrl string)(*ItemProfileAnniversariesPersonAnnualEventItemRequestBuilder) { return NewItemProfileAnniversariesPersonAnnualEventItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_anniversaries_request_builder.go b/users/item_profile_anniversaries_request_builder.go index 8dff1b8c95f..322eff1ed18 100644 --- a/users/item_profile_anniversaries_request_builder.go +++ b/users/item_profile_anniversaries_request_builder.go @@ -47,6 +47,7 @@ type ItemProfileAnniversariesRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByPersonAnnualEventId provides operations to manage the anniversaries property of the microsoft.graph.profile entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileAnniversariesPersonAnnualEventItemRequestBuilder when successful func (m *ItemProfileAnniversariesRequestBuilder) ByPersonAnnualEventId(personAnnualEventId string)(*ItemProfileAnniversariesPersonAnnualEventItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemProfileAnniversariesRequestBuilder) Count()(*ItemProfileAnniversari return NewItemProfileAnniversariesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get represents the details of meaningful dates associated with a person. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PersonAnnualEventCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileAnniversariesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfileAnniversariesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonAnnualEventCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemProfileAnniversariesRequestBuilder) Get(ctx context.Context, reques return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonAnnualEventCollectionResponseable), nil } // Post create new navigation property to anniversaries for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PersonAnnualEventable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileAnniversariesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonAnnualEventable, requestConfiguration *ItemProfileAnniversariesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonAnnualEventable, error) { @@ -117,6 +120,7 @@ func (m *ItemProfileAnniversariesRequestBuilder) Post(ctx context.Context, body return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonAnnualEventable), nil } // ToGetRequestInformation represents the details of meaningful dates associated with a person. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileAnniversariesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfileAnniversariesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemProfileAnniversariesRequestBuilder) ToGetRequestInformation(ctx con return requestInfo, nil } // ToPostRequestInformation create new navigation property to anniversaries for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileAnniversariesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonAnnualEventable, requestConfiguration *ItemProfileAnniversariesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemProfileAnniversariesRequestBuilder) ToPostRequestInformation(ctx co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileAnniversariesRequestBuilder when successful func (m *ItemProfileAnniversariesRequestBuilder) WithUrl(rawUrl string)(*ItemProfileAnniversariesRequestBuilder) { return NewItemProfileAnniversariesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_awards_count_request_builder.go b/users/item_profile_awards_count_request_builder.go index d3a8b2f3eb9..825db161748 100644 --- a/users/item_profile_awards_count_request_builder.go +++ b/users/item_profile_awards_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemProfileAwardsCountRequestBuilder(rawUrl string, requestAdapter i2ae4 return NewItemProfileAwardsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileAwardsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfileAwardsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemProfileAwardsCountRequestBuilder) Get(ctx context.Context, requestC return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileAwardsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfileAwardsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemProfileAwardsCountRequestBuilder) ToGetRequestInformation(ctx conte return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileAwardsCountRequestBuilder when successful func (m *ItemProfileAwardsCountRequestBuilder) WithUrl(rawUrl string)(*ItemProfileAwardsCountRequestBuilder) { return NewItemProfileAwardsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_awards_person_award_item_request_builder.go b/users/item_profile_awards_person_award_item_request_builder.go index 1c77f48dd8d..617963ad4a0 100644 --- a/users/item_profile_awards_person_award_item_request_builder.go +++ b/users/item_profile_awards_person_award_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemProfileAwardsPersonAwardItemRequestBuilder(rawUrl string, requestAda return NewItemProfileAwardsPersonAwardItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete deletes a personAward object from a user's profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -74,6 +75,7 @@ func (m *ItemProfileAwardsPersonAwardItemRequestBuilder) Delete(ctx context.Cont return nil } // Get represents the details of awards or honors associated with a person. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PersonAwardable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileAwardsPersonAwardItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfileAwardsPersonAwardItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonAwardable, error) { @@ -94,6 +96,7 @@ func (m *ItemProfileAwardsPersonAwardItemRequestBuilder) Get(ctx context.Context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonAwardable), nil } // Patch update the properties of a personAward object from a user's profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PersonAwardable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -117,6 +120,7 @@ func (m *ItemProfileAwardsPersonAwardItemRequestBuilder) Patch(ctx context.Conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonAwardable), nil } // ToDeleteRequestInformation deletes a personAward object from a user's profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileAwardsPersonAwardItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemProfileAwardsPersonAwardItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -128,6 +132,7 @@ func (m *ItemProfileAwardsPersonAwardItemRequestBuilder) ToDeleteRequestInformat return requestInfo, nil } // ToGetRequestInformation represents the details of awards or honors associated with a person. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileAwardsPersonAwardItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfileAwardsPersonAwardItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -142,6 +147,7 @@ func (m *ItemProfileAwardsPersonAwardItemRequestBuilder) ToGetRequestInformation return requestInfo, nil } // ToPatchRequestInformation update the properties of a personAward object from a user's profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileAwardsPersonAwardItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonAwardable, requestConfiguration *ItemProfileAwardsPersonAwardItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -157,6 +163,7 @@ func (m *ItemProfileAwardsPersonAwardItemRequestBuilder) ToPatchRequestInformati return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileAwardsPersonAwardItemRequestBuilder when successful func (m *ItemProfileAwardsPersonAwardItemRequestBuilder) WithUrl(rawUrl string)(*ItemProfileAwardsPersonAwardItemRequestBuilder) { return NewItemProfileAwardsPersonAwardItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_awards_request_builder.go b/users/item_profile_awards_request_builder.go index 48b66d06334..6eb5878e496 100644 --- a/users/item_profile_awards_request_builder.go +++ b/users/item_profile_awards_request_builder.go @@ -47,6 +47,7 @@ type ItemProfileAwardsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByPersonAwardId provides operations to manage the awards property of the microsoft.graph.profile entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileAwardsPersonAwardItemRequestBuilder when successful func (m *ItemProfileAwardsRequestBuilder) ByPersonAwardId(personAwardId string)(*ItemProfileAwardsPersonAwardItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemProfileAwardsRequestBuilder) Count()(*ItemProfileAwardsCountRequest return NewItemProfileAwardsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get represents the details of awards or honors associated with a person. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PersonAwardCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileAwardsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfileAwardsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonAwardCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemProfileAwardsRequestBuilder) Get(ctx context.Context, requestConfig return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonAwardCollectionResponseable), nil } // Post create new navigation property to awards for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PersonAwardable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileAwardsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonAwardable, requestConfiguration *ItemProfileAwardsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonAwardable, error) { @@ -117,6 +120,7 @@ func (m *ItemProfileAwardsRequestBuilder) Post(ctx context.Context, body ie233ee return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonAwardable), nil } // ToGetRequestInformation represents the details of awards or honors associated with a person. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileAwardsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfileAwardsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemProfileAwardsRequestBuilder) ToGetRequestInformation(ctx context.Co return requestInfo, nil } // ToPostRequestInformation create new navigation property to awards for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileAwardsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonAwardable, requestConfiguration *ItemProfileAwardsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemProfileAwardsRequestBuilder) ToPostRequestInformation(ctx context.C return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileAwardsRequestBuilder when successful func (m *ItemProfileAwardsRequestBuilder) WithUrl(rawUrl string)(*ItemProfileAwardsRequestBuilder) { return NewItemProfileAwardsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_certifications_count_request_builder.go b/users/item_profile_certifications_count_request_builder.go index 85aaacff80f..d38d41ecc53 100644 --- a/users/item_profile_certifications_count_request_builder.go +++ b/users/item_profile_certifications_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemProfileCertificationsCountRequestBuilder(rawUrl string, requestAdapt return NewItemProfileCertificationsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileCertificationsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfileCertificationsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemProfileCertificationsCountRequestBuilder) Get(ctx context.Context, return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileCertificationsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfileCertificationsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemProfileCertificationsCountRequestBuilder) ToGetRequestInformation(c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileCertificationsCountRequestBuilder when successful func (m *ItemProfileCertificationsCountRequestBuilder) WithUrl(rawUrl string)(*ItemProfileCertificationsCountRequestBuilder) { return NewItemProfileCertificationsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_certifications_person_certification_item_request_builder.go b/users/item_profile_certifications_person_certification_item_request_builder.go index b606a4812de..cbd36cff8e3 100644 --- a/users/item_profile_certifications_person_certification_item_request_builder.go +++ b/users/item_profile_certifications_person_certification_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemProfileCertificationsPersonCertificationItemRequestBuilder(rawUrl st return NewItemProfileCertificationsPersonCertificationItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete deletes a personCertification object from a user's profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -74,6 +75,7 @@ func (m *ItemProfileCertificationsPersonCertificationItemRequestBuilder) Delete( return nil } // Get represents the details of certifications associated with a person. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PersonCertificationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileCertificationsPersonCertificationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfileCertificationsPersonCertificationItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonCertificationable, error) { @@ -94,6 +96,7 @@ func (m *ItemProfileCertificationsPersonCertificationItemRequestBuilder) Get(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonCertificationable), nil } // Patch update the properties of a personCertification object from a user's profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PersonCertificationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -117,6 +120,7 @@ func (m *ItemProfileCertificationsPersonCertificationItemRequestBuilder) Patch(c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonCertificationable), nil } // ToDeleteRequestInformation deletes a personCertification object from a user's profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileCertificationsPersonCertificationItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemProfileCertificationsPersonCertificationItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -128,6 +132,7 @@ func (m *ItemProfileCertificationsPersonCertificationItemRequestBuilder) ToDelet return requestInfo, nil } // ToGetRequestInformation represents the details of certifications associated with a person. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileCertificationsPersonCertificationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfileCertificationsPersonCertificationItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -142,6 +147,7 @@ func (m *ItemProfileCertificationsPersonCertificationItemRequestBuilder) ToGetRe return requestInfo, nil } // ToPatchRequestInformation update the properties of a personCertification object from a user's profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileCertificationsPersonCertificationItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonCertificationable, requestConfiguration *ItemProfileCertificationsPersonCertificationItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -157,6 +163,7 @@ func (m *ItemProfileCertificationsPersonCertificationItemRequestBuilder) ToPatch return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileCertificationsPersonCertificationItemRequestBuilder when successful func (m *ItemProfileCertificationsPersonCertificationItemRequestBuilder) WithUrl(rawUrl string)(*ItemProfileCertificationsPersonCertificationItemRequestBuilder) { return NewItemProfileCertificationsPersonCertificationItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_certifications_request_builder.go b/users/item_profile_certifications_request_builder.go index 793da8cc458..3da366991a0 100644 --- a/users/item_profile_certifications_request_builder.go +++ b/users/item_profile_certifications_request_builder.go @@ -47,6 +47,7 @@ type ItemProfileCertificationsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByPersonCertificationId provides operations to manage the certifications property of the microsoft.graph.profile entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileCertificationsPersonCertificationItemRequestBuilder when successful func (m *ItemProfileCertificationsRequestBuilder) ByPersonCertificationId(personCertificationId string)(*ItemProfileCertificationsPersonCertificationItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemProfileCertificationsRequestBuilder) Count()(*ItemProfileCertificat return NewItemProfileCertificationsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get represents the details of certifications associated with a person. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PersonCertificationCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileCertificationsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfileCertificationsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonCertificationCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemProfileCertificationsRequestBuilder) Get(ctx context.Context, reque return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonCertificationCollectionResponseable), nil } // Post create new navigation property to certifications for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PersonCertificationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileCertificationsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonCertificationable, requestConfiguration *ItemProfileCertificationsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonCertificationable, error) { @@ -117,6 +120,7 @@ func (m *ItemProfileCertificationsRequestBuilder) Post(ctx context.Context, body return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonCertificationable), nil } // ToGetRequestInformation represents the details of certifications associated with a person. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileCertificationsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfileCertificationsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemProfileCertificationsRequestBuilder) ToGetRequestInformation(ctx co return requestInfo, nil } // ToPostRequestInformation create new navigation property to certifications for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileCertificationsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonCertificationable, requestConfiguration *ItemProfileCertificationsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemProfileCertificationsRequestBuilder) ToPostRequestInformation(ctx c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileCertificationsRequestBuilder when successful func (m *ItemProfileCertificationsRequestBuilder) WithUrl(rawUrl string)(*ItemProfileCertificationsRequestBuilder) { return NewItemProfileCertificationsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_educational_activities_count_request_builder.go b/users/item_profile_educational_activities_count_request_builder.go index 74f576fab6b..71e75bca6c0 100644 --- a/users/item_profile_educational_activities_count_request_builder.go +++ b/users/item_profile_educational_activities_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemProfileEducationalActivitiesCountRequestBuilder(rawUrl string, reque return NewItemProfileEducationalActivitiesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileEducationalActivitiesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfileEducationalActivitiesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemProfileEducationalActivitiesCountRequestBuilder) Get(ctx context.Co return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileEducationalActivitiesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfileEducationalActivitiesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemProfileEducationalActivitiesCountRequestBuilder) ToGetRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileEducationalActivitiesCountRequestBuilder when successful func (m *ItemProfileEducationalActivitiesCountRequestBuilder) WithUrl(rawUrl string)(*ItemProfileEducationalActivitiesCountRequestBuilder) { return NewItemProfileEducationalActivitiesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_educational_activities_educational_activity_item_request_builder.go b/users/item_profile_educational_activities_educational_activity_item_request_builder.go index 925589ed9df..7cc42332985 100644 --- a/users/item_profile_educational_activities_educational_activity_item_request_builder.go +++ b/users/item_profile_educational_activities_educational_activity_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemProfileEducationalActivitiesEducationalActivityItemRequestBuilder(ra return NewItemProfileEducationalActivitiesEducationalActivityItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property educationalActivities for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileEducationalActivitiesEducationalActivityItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemProfileEducationalActivitiesEducationalActivityItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemProfileEducationalActivitiesEducationalActivityItemRequestBuilder) return nil } // Get represents data that a user has supplied related to undergraduate, graduate, postgraduate or other educational activities. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EducationalActivityable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileEducationalActivitiesEducationalActivityItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfileEducationalActivitiesEducationalActivityItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationalActivityable, error) { @@ -91,6 +93,7 @@ func (m *ItemProfileEducationalActivitiesEducationalActivityItemRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationalActivityable), nil } // Patch update the navigation property educationalActivities in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EducationalActivityable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileEducationalActivitiesEducationalActivityItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationalActivityable, requestConfiguration *ItemProfileEducationalActivitiesEducationalActivityItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationalActivityable, error) { @@ -111,6 +114,7 @@ func (m *ItemProfileEducationalActivitiesEducationalActivityItemRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationalActivityable), nil } // ToDeleteRequestInformation delete navigation property educationalActivities for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileEducationalActivitiesEducationalActivityItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemProfileEducationalActivitiesEducationalActivityItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemProfileEducationalActivitiesEducationalActivityItemRequestBuilder) return requestInfo, nil } // ToGetRequestInformation represents data that a user has supplied related to undergraduate, graduate, postgraduate or other educational activities. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileEducationalActivitiesEducationalActivityItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfileEducationalActivitiesEducationalActivityItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemProfileEducationalActivitiesEducationalActivityItemRequestBuilder) return requestInfo, nil } // ToPatchRequestInformation update the navigation property educationalActivities in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileEducationalActivitiesEducationalActivityItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationalActivityable, requestConfiguration *ItemProfileEducationalActivitiesEducationalActivityItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemProfileEducationalActivitiesEducationalActivityItemRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileEducationalActivitiesEducationalActivityItemRequestBuilder when successful func (m *ItemProfileEducationalActivitiesEducationalActivityItemRequestBuilder) WithUrl(rawUrl string)(*ItemProfileEducationalActivitiesEducationalActivityItemRequestBuilder) { return NewItemProfileEducationalActivitiesEducationalActivityItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_educational_activities_request_builder.go b/users/item_profile_educational_activities_request_builder.go index ba649dbfaeb..1d131c169a1 100644 --- a/users/item_profile_educational_activities_request_builder.go +++ b/users/item_profile_educational_activities_request_builder.go @@ -47,6 +47,7 @@ type ItemProfileEducationalActivitiesRequestBuilderPostRequestConfiguration stru Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByEducationalActivityId provides operations to manage the educationalActivities property of the microsoft.graph.profile entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileEducationalActivitiesEducationalActivityItemRequestBuilder when successful func (m *ItemProfileEducationalActivitiesRequestBuilder) ByEducationalActivityId(educationalActivityId string)(*ItemProfileEducationalActivitiesEducationalActivityItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemProfileEducationalActivitiesRequestBuilder) Count()(*ItemProfileEdu return NewItemProfileEducationalActivitiesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get represents data that a user has supplied related to undergraduate, graduate, postgraduate or other educational activities. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EducationalActivityCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileEducationalActivitiesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfileEducationalActivitiesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationalActivityCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemProfileEducationalActivitiesRequestBuilder) Get(ctx context.Context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationalActivityCollectionResponseable), nil } // Post create new navigation property to educationalActivities for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EducationalActivityable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileEducationalActivitiesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationalActivityable, requestConfiguration *ItemProfileEducationalActivitiesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationalActivityable, error) { @@ -117,6 +120,7 @@ func (m *ItemProfileEducationalActivitiesRequestBuilder) Post(ctx context.Contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationalActivityable), nil } // ToGetRequestInformation represents data that a user has supplied related to undergraduate, graduate, postgraduate or other educational activities. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileEducationalActivitiesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfileEducationalActivitiesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemProfileEducationalActivitiesRequestBuilder) ToGetRequestInformation return requestInfo, nil } // ToPostRequestInformation create new navigation property to educationalActivities for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileEducationalActivitiesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EducationalActivityable, requestConfiguration *ItemProfileEducationalActivitiesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemProfileEducationalActivitiesRequestBuilder) ToPostRequestInformatio return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileEducationalActivitiesRequestBuilder when successful func (m *ItemProfileEducationalActivitiesRequestBuilder) WithUrl(rawUrl string)(*ItemProfileEducationalActivitiesRequestBuilder) { return NewItemProfileEducationalActivitiesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_emails_count_request_builder.go b/users/item_profile_emails_count_request_builder.go index 9b3b6632369..07cc1cde0d1 100644 --- a/users/item_profile_emails_count_request_builder.go +++ b/users/item_profile_emails_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemProfileEmailsCountRequestBuilder(rawUrl string, requestAdapter i2ae4 return NewItemProfileEmailsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileEmailsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfileEmailsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemProfileEmailsCountRequestBuilder) Get(ctx context.Context, requestC return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileEmailsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfileEmailsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemProfileEmailsCountRequestBuilder) ToGetRequestInformation(ctx conte return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileEmailsCountRequestBuilder when successful func (m *ItemProfileEmailsCountRequestBuilder) WithUrl(rawUrl string)(*ItemProfileEmailsCountRequestBuilder) { return NewItemProfileEmailsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_emails_item_email_item_request_builder.go b/users/item_profile_emails_item_email_item_request_builder.go index 5b41a46175c..585a6dcd18c 100644 --- a/users/item_profile_emails_item_email_item_request_builder.go +++ b/users/item_profile_emails_item_email_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemProfileEmailsItemEmailItemRequestBuilder(rawUrl string, requestAdapt return NewItemProfileEmailsItemEmailItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property emails for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileEmailsItemEmailItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemProfileEmailsItemEmailItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemProfileEmailsItemEmailItemRequestBuilder) Delete(ctx context.Contex return nil } // Get retrieve the properties and relationships of an itemEmail object in a user's profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemEmailable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -94,6 +96,7 @@ func (m *ItemProfileEmailsItemEmailItemRequestBuilder) Get(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemEmailable), nil } // Patch update the properties of an itemEmail object in a user's profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemEmailable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -117,6 +120,7 @@ func (m *ItemProfileEmailsItemEmailItemRequestBuilder) Patch(ctx context.Context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemEmailable), nil } // ToDeleteRequestInformation delete navigation property emails for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileEmailsItemEmailItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemProfileEmailsItemEmailItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -128,6 +132,7 @@ func (m *ItemProfileEmailsItemEmailItemRequestBuilder) ToDeleteRequestInformatio return requestInfo, nil } // ToGetRequestInformation retrieve the properties and relationships of an itemEmail object in a user's profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileEmailsItemEmailItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfileEmailsItemEmailItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -142,6 +147,7 @@ func (m *ItemProfileEmailsItemEmailItemRequestBuilder) ToGetRequestInformation(c return requestInfo, nil } // ToPatchRequestInformation update the properties of an itemEmail object in a user's profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileEmailsItemEmailItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemEmailable, requestConfiguration *ItemProfileEmailsItemEmailItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -157,6 +163,7 @@ func (m *ItemProfileEmailsItemEmailItemRequestBuilder) ToPatchRequestInformation return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileEmailsItemEmailItemRequestBuilder when successful func (m *ItemProfileEmailsItemEmailItemRequestBuilder) WithUrl(rawUrl string)(*ItemProfileEmailsItemEmailItemRequestBuilder) { return NewItemProfileEmailsItemEmailItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_emails_request_builder.go b/users/item_profile_emails_request_builder.go index 6b2357e4b9a..d0201486f16 100644 --- a/users/item_profile_emails_request_builder.go +++ b/users/item_profile_emails_request_builder.go @@ -47,6 +47,7 @@ type ItemProfileEmailsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByItemEmailId provides operations to manage the emails property of the microsoft.graph.profile entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileEmailsItemEmailItemRequestBuilder when successful func (m *ItemProfileEmailsRequestBuilder) ByItemEmailId(itemEmailId string)(*ItemProfileEmailsItemEmailItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemProfileEmailsRequestBuilder) Count()(*ItemProfileEmailsCountRequest return NewItemProfileEmailsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get retrieve the properties and relationships of an itemEmail object in a user's profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemEmailCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileEmailsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfileEmailsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemEmailCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemProfileEmailsRequestBuilder) Get(ctx context.Context, requestConfig return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemEmailCollectionResponseable), nil } // Post create new navigation property to emails for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemEmailable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileEmailsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemEmailable, requestConfiguration *ItemProfileEmailsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemEmailable, error) { @@ -117,6 +120,7 @@ func (m *ItemProfileEmailsRequestBuilder) Post(ctx context.Context, body ie233ee return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemEmailable), nil } // ToGetRequestInformation retrieve the properties and relationships of an itemEmail object in a user's profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileEmailsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfileEmailsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemProfileEmailsRequestBuilder) ToGetRequestInformation(ctx context.Co return requestInfo, nil } // ToPostRequestInformation create new navigation property to emails for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileEmailsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemEmailable, requestConfiguration *ItemProfileEmailsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemProfileEmailsRequestBuilder) ToPostRequestInformation(ctx context.C return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileEmailsRequestBuilder when successful func (m *ItemProfileEmailsRequestBuilder) WithUrl(rawUrl string)(*ItemProfileEmailsRequestBuilder) { return NewItemProfileEmailsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_interests_count_request_builder.go b/users/item_profile_interests_count_request_builder.go index d4015687e0e..507ee328e0b 100644 --- a/users/item_profile_interests_count_request_builder.go +++ b/users/item_profile_interests_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemProfileInterestsCountRequestBuilder(rawUrl string, requestAdapter i2 return NewItemProfileInterestsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileInterestsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfileInterestsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemProfileInterestsCountRequestBuilder) Get(ctx context.Context, reque return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileInterestsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfileInterestsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemProfileInterestsCountRequestBuilder) ToGetRequestInformation(ctx co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileInterestsCountRequestBuilder when successful func (m *ItemProfileInterestsCountRequestBuilder) WithUrl(rawUrl string)(*ItemProfileInterestsCountRequestBuilder) { return NewItemProfileInterestsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_interests_person_interest_item_request_builder.go b/users/item_profile_interests_person_interest_item_request_builder.go index 2e918f3a5d5..f1f103557c4 100644 --- a/users/item_profile_interests_person_interest_item_request_builder.go +++ b/users/item_profile_interests_person_interest_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemProfileInterestsPersonInterestItemRequestBuilder(rawUrl string, requ return NewItemProfileInterestsPersonInterestItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property interests for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileInterestsPersonInterestItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemProfileInterestsPersonInterestItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemProfileInterestsPersonInterestItemRequestBuilder) Delete(ctx contex return nil } // Get provides detailed information about interests the user has associated with themselves in various services. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PersonInterestable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileInterestsPersonInterestItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfileInterestsPersonInterestItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonInterestable, error) { @@ -91,6 +93,7 @@ func (m *ItemProfileInterestsPersonInterestItemRequestBuilder) Get(ctx context.C return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonInterestable), nil } // Patch update the navigation property interests in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PersonInterestable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileInterestsPersonInterestItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonInterestable, requestConfiguration *ItemProfileInterestsPersonInterestItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonInterestable, error) { @@ -111,6 +114,7 @@ func (m *ItemProfileInterestsPersonInterestItemRequestBuilder) Patch(ctx context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonInterestable), nil } // ToDeleteRequestInformation delete navigation property interests for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileInterestsPersonInterestItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemProfileInterestsPersonInterestItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemProfileInterestsPersonInterestItemRequestBuilder) ToDeleteRequestIn return requestInfo, nil } // ToGetRequestInformation provides detailed information about interests the user has associated with themselves in various services. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileInterestsPersonInterestItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfileInterestsPersonInterestItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemProfileInterestsPersonInterestItemRequestBuilder) ToGetRequestInfor return requestInfo, nil } // ToPatchRequestInformation update the navigation property interests in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileInterestsPersonInterestItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonInterestable, requestConfiguration *ItemProfileInterestsPersonInterestItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemProfileInterestsPersonInterestItemRequestBuilder) ToPatchRequestInf return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileInterestsPersonInterestItemRequestBuilder when successful func (m *ItemProfileInterestsPersonInterestItemRequestBuilder) WithUrl(rawUrl string)(*ItemProfileInterestsPersonInterestItemRequestBuilder) { return NewItemProfileInterestsPersonInterestItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_interests_request_builder.go b/users/item_profile_interests_request_builder.go index 9991c4c7790..c34f6e800ad 100644 --- a/users/item_profile_interests_request_builder.go +++ b/users/item_profile_interests_request_builder.go @@ -47,6 +47,7 @@ type ItemProfileInterestsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByPersonInterestId provides operations to manage the interests property of the microsoft.graph.profile entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileInterestsPersonInterestItemRequestBuilder when successful func (m *ItemProfileInterestsRequestBuilder) ByPersonInterestId(personInterestId string)(*ItemProfileInterestsPersonInterestItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemProfileInterestsRequestBuilder) Count()(*ItemProfileInterestsCountR return NewItemProfileInterestsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get provides detailed information about interests the user has associated with themselves in various services. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PersonInterestCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileInterestsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfileInterestsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonInterestCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemProfileInterestsRequestBuilder) Get(ctx context.Context, requestCon return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonInterestCollectionResponseable), nil } // Post create new navigation property to interests for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PersonInterestable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileInterestsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonInterestable, requestConfiguration *ItemProfileInterestsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonInterestable, error) { @@ -117,6 +120,7 @@ func (m *ItemProfileInterestsRequestBuilder) Post(ctx context.Context, body ie23 return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonInterestable), nil } // ToGetRequestInformation provides detailed information about interests the user has associated with themselves in various services. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileInterestsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfileInterestsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemProfileInterestsRequestBuilder) ToGetRequestInformation(ctx context return requestInfo, nil } // ToPostRequestInformation create new navigation property to interests for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileInterestsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonInterestable, requestConfiguration *ItemProfileInterestsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemProfileInterestsRequestBuilder) ToPostRequestInformation(ctx contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileInterestsRequestBuilder when successful func (m *ItemProfileInterestsRequestBuilder) WithUrl(rawUrl string)(*ItemProfileInterestsRequestBuilder) { return NewItemProfileInterestsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_languages_count_request_builder.go b/users/item_profile_languages_count_request_builder.go index 185d3ff79ca..e3ce8fb5a80 100644 --- a/users/item_profile_languages_count_request_builder.go +++ b/users/item_profile_languages_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemProfileLanguagesCountRequestBuilder(rawUrl string, requestAdapter i2 return NewItemProfileLanguagesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileLanguagesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfileLanguagesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemProfileLanguagesCountRequestBuilder) Get(ctx context.Context, reque return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileLanguagesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfileLanguagesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemProfileLanguagesCountRequestBuilder) ToGetRequestInformation(ctx co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileLanguagesCountRequestBuilder when successful func (m *ItemProfileLanguagesCountRequestBuilder) WithUrl(rawUrl string)(*ItemProfileLanguagesCountRequestBuilder) { return NewItemProfileLanguagesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_languages_language_proficiency_item_request_builder.go b/users/item_profile_languages_language_proficiency_item_request_builder.go index 6a9094be5bd..fcded4e779f 100644 --- a/users/item_profile_languages_language_proficiency_item_request_builder.go +++ b/users/item_profile_languages_language_proficiency_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemProfileLanguagesLanguageProficiencyItemRequestBuilder(rawUrl string, return NewItemProfileLanguagesLanguageProficiencyItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property languages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileLanguagesLanguageProficiencyItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemProfileLanguagesLanguageProficiencyItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemProfileLanguagesLanguageProficiencyItemRequestBuilder) Delete(ctx c return nil } // Get represents detailed information about languages that a user has added to their profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a LanguageProficiencyable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileLanguagesLanguageProficiencyItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfileLanguagesLanguageProficiencyItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LanguageProficiencyable, error) { @@ -91,6 +93,7 @@ func (m *ItemProfileLanguagesLanguageProficiencyItemRequestBuilder) Get(ctx cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LanguageProficiencyable), nil } // Patch update the navigation property languages in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a LanguageProficiencyable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileLanguagesLanguageProficiencyItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LanguageProficiencyable, requestConfiguration *ItemProfileLanguagesLanguageProficiencyItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LanguageProficiencyable, error) { @@ -111,6 +114,7 @@ func (m *ItemProfileLanguagesLanguageProficiencyItemRequestBuilder) Patch(ctx co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LanguageProficiencyable), nil } // ToDeleteRequestInformation delete navigation property languages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileLanguagesLanguageProficiencyItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemProfileLanguagesLanguageProficiencyItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemProfileLanguagesLanguageProficiencyItemRequestBuilder) ToDeleteRequ return requestInfo, nil } // ToGetRequestInformation represents detailed information about languages that a user has added to their profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileLanguagesLanguageProficiencyItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfileLanguagesLanguageProficiencyItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemProfileLanguagesLanguageProficiencyItemRequestBuilder) ToGetRequest return requestInfo, nil } // ToPatchRequestInformation update the navigation property languages in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileLanguagesLanguageProficiencyItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LanguageProficiencyable, requestConfiguration *ItemProfileLanguagesLanguageProficiencyItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemProfileLanguagesLanguageProficiencyItemRequestBuilder) ToPatchReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileLanguagesLanguageProficiencyItemRequestBuilder when successful func (m *ItemProfileLanguagesLanguageProficiencyItemRequestBuilder) WithUrl(rawUrl string)(*ItemProfileLanguagesLanguageProficiencyItemRequestBuilder) { return NewItemProfileLanguagesLanguageProficiencyItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_languages_request_builder.go b/users/item_profile_languages_request_builder.go index 5e2606b841c..0a668c97340 100644 --- a/users/item_profile_languages_request_builder.go +++ b/users/item_profile_languages_request_builder.go @@ -47,6 +47,7 @@ type ItemProfileLanguagesRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByLanguageProficiencyId provides operations to manage the languages property of the microsoft.graph.profile entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileLanguagesLanguageProficiencyItemRequestBuilder when successful func (m *ItemProfileLanguagesRequestBuilder) ByLanguageProficiencyId(languageProficiencyId string)(*ItemProfileLanguagesLanguageProficiencyItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemProfileLanguagesRequestBuilder) Count()(*ItemProfileLanguagesCountR return NewItemProfileLanguagesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get represents detailed information about languages that a user has added to their profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a LanguageProficiencyCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileLanguagesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfileLanguagesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LanguageProficiencyCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemProfileLanguagesRequestBuilder) Get(ctx context.Context, requestCon return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LanguageProficiencyCollectionResponseable), nil } // Post create new navigation property to languages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a LanguageProficiencyable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileLanguagesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LanguageProficiencyable, requestConfiguration *ItemProfileLanguagesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LanguageProficiencyable, error) { @@ -117,6 +120,7 @@ func (m *ItemProfileLanguagesRequestBuilder) Post(ctx context.Context, body ie23 return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LanguageProficiencyable), nil } // ToGetRequestInformation represents detailed information about languages that a user has added to their profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileLanguagesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfileLanguagesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemProfileLanguagesRequestBuilder) ToGetRequestInformation(ctx context return requestInfo, nil } // ToPostRequestInformation create new navigation property to languages for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileLanguagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LanguageProficiencyable, requestConfiguration *ItemProfileLanguagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemProfileLanguagesRequestBuilder) ToPostRequestInformation(ctx contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileLanguagesRequestBuilder when successful func (m *ItemProfileLanguagesRequestBuilder) WithUrl(rawUrl string)(*ItemProfileLanguagesRequestBuilder) { return NewItemProfileLanguagesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_names_count_request_builder.go b/users/item_profile_names_count_request_builder.go index 0feb7fc71db..cf7b5cd37aa 100644 --- a/users/item_profile_names_count_request_builder.go +++ b/users/item_profile_names_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemProfileNamesCountRequestBuilder(rawUrl string, requestAdapter i2ae41 return NewItemProfileNamesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileNamesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfileNamesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemProfileNamesCountRequestBuilder) Get(ctx context.Context, requestCo return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileNamesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfileNamesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemProfileNamesCountRequestBuilder) ToGetRequestInformation(ctx contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileNamesCountRequestBuilder when successful func (m *ItemProfileNamesCountRequestBuilder) WithUrl(rawUrl string)(*ItemProfileNamesCountRequestBuilder) { return NewItemProfileNamesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_names_person_name_item_request_builder.go b/users/item_profile_names_person_name_item_request_builder.go index 0a05e8a99fe..72ca8a1849a 100644 --- a/users/item_profile_names_person_name_item_request_builder.go +++ b/users/item_profile_names_person_name_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemProfileNamesPersonNameItemRequestBuilder(rawUrl string, requestAdapt return NewItemProfileNamesPersonNameItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property names for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileNamesPersonNameItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemProfileNamesPersonNameItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemProfileNamesPersonNameItemRequestBuilder) Delete(ctx context.Contex return nil } // Get represents the names a user has added to their profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PersonNameable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileNamesPersonNameItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfileNamesPersonNameItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonNameable, error) { @@ -91,6 +93,7 @@ func (m *ItemProfileNamesPersonNameItemRequestBuilder) Get(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonNameable), nil } // Patch update the navigation property names in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PersonNameable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileNamesPersonNameItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonNameable, requestConfiguration *ItemProfileNamesPersonNameItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonNameable, error) { @@ -111,6 +114,7 @@ func (m *ItemProfileNamesPersonNameItemRequestBuilder) Patch(ctx context.Context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonNameable), nil } // ToDeleteRequestInformation delete navigation property names for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileNamesPersonNameItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemProfileNamesPersonNameItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemProfileNamesPersonNameItemRequestBuilder) ToDeleteRequestInformatio return requestInfo, nil } // ToGetRequestInformation represents the names a user has added to their profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileNamesPersonNameItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfileNamesPersonNameItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemProfileNamesPersonNameItemRequestBuilder) ToGetRequestInformation(c return requestInfo, nil } // ToPatchRequestInformation update the navigation property names in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileNamesPersonNameItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonNameable, requestConfiguration *ItemProfileNamesPersonNameItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemProfileNamesPersonNameItemRequestBuilder) ToPatchRequestInformation return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileNamesPersonNameItemRequestBuilder when successful func (m *ItemProfileNamesPersonNameItemRequestBuilder) WithUrl(rawUrl string)(*ItemProfileNamesPersonNameItemRequestBuilder) { return NewItemProfileNamesPersonNameItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_names_request_builder.go b/users/item_profile_names_request_builder.go index 6d84f7de2a7..3de794ed5d2 100644 --- a/users/item_profile_names_request_builder.go +++ b/users/item_profile_names_request_builder.go @@ -47,6 +47,7 @@ type ItemProfileNamesRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByPersonNameId provides operations to manage the names property of the microsoft.graph.profile entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileNamesPersonNameItemRequestBuilder when successful func (m *ItemProfileNamesRequestBuilder) ByPersonNameId(personNameId string)(*ItemProfileNamesPersonNameItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemProfileNamesRequestBuilder) Count()(*ItemProfileNamesCountRequestBu return NewItemProfileNamesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get represents the names a user has added to their profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PersonNameCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileNamesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfileNamesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonNameCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemProfileNamesRequestBuilder) Get(ctx context.Context, requestConfigu return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonNameCollectionResponseable), nil } // Post create new navigation property to names for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PersonNameable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileNamesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonNameable, requestConfiguration *ItemProfileNamesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonNameable, error) { @@ -117,6 +120,7 @@ func (m *ItemProfileNamesRequestBuilder) Post(ctx context.Context, body ie233ee7 return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonNameable), nil } // ToGetRequestInformation represents the names a user has added to their profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileNamesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfileNamesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemProfileNamesRequestBuilder) ToGetRequestInformation(ctx context.Con return requestInfo, nil } // ToPostRequestInformation create new navigation property to names for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileNamesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonNameable, requestConfiguration *ItemProfileNamesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemProfileNamesRequestBuilder) ToPostRequestInformation(ctx context.Co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileNamesRequestBuilder when successful func (m *ItemProfileNamesRequestBuilder) WithUrl(rawUrl string)(*ItemProfileNamesRequestBuilder) { return NewItemProfileNamesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_notes_count_request_builder.go b/users/item_profile_notes_count_request_builder.go index 106fb727ffd..ed32e78f81b 100644 --- a/users/item_profile_notes_count_request_builder.go +++ b/users/item_profile_notes_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemProfileNotesCountRequestBuilder(rawUrl string, requestAdapter i2ae41 return NewItemProfileNotesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileNotesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfileNotesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemProfileNotesCountRequestBuilder) Get(ctx context.Context, requestCo return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileNotesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfileNotesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemProfileNotesCountRequestBuilder) ToGetRequestInformation(ctx contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileNotesCountRequestBuilder when successful func (m *ItemProfileNotesCountRequestBuilder) WithUrl(rawUrl string)(*ItemProfileNotesCountRequestBuilder) { return NewItemProfileNotesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_notes_person_annotation_item_request_builder.go b/users/item_profile_notes_person_annotation_item_request_builder.go index 2ee3967344d..e1756f1c187 100644 --- a/users/item_profile_notes_person_annotation_item_request_builder.go +++ b/users/item_profile_notes_person_annotation_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemProfileNotesPersonAnnotationItemRequestBuilder(rawUrl string, reques return NewItemProfileNotesPersonAnnotationItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete deletes a personAnnotation object from a user's profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -74,6 +75,7 @@ func (m *ItemProfileNotesPersonAnnotationItemRequestBuilder) Delete(ctx context. return nil } // Get represents notes that a user has added to their profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PersonAnnotationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileNotesPersonAnnotationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfileNotesPersonAnnotationItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonAnnotationable, error) { @@ -94,6 +96,7 @@ func (m *ItemProfileNotesPersonAnnotationItemRequestBuilder) Get(ctx context.Con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonAnnotationable), nil } // Patch update the properties of a personAnnotation object in a user's profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PersonAnnotationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -117,6 +120,7 @@ func (m *ItemProfileNotesPersonAnnotationItemRequestBuilder) Patch(ctx context.C return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonAnnotationable), nil } // ToDeleteRequestInformation deletes a personAnnotation object from a user's profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileNotesPersonAnnotationItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemProfileNotesPersonAnnotationItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -128,6 +132,7 @@ func (m *ItemProfileNotesPersonAnnotationItemRequestBuilder) ToDeleteRequestInfo return requestInfo, nil } // ToGetRequestInformation represents notes that a user has added to their profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileNotesPersonAnnotationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfileNotesPersonAnnotationItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -142,6 +147,7 @@ func (m *ItemProfileNotesPersonAnnotationItemRequestBuilder) ToGetRequestInforma return requestInfo, nil } // ToPatchRequestInformation update the properties of a personAnnotation object in a user's profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileNotesPersonAnnotationItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonAnnotationable, requestConfiguration *ItemProfileNotesPersonAnnotationItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -157,6 +163,7 @@ func (m *ItemProfileNotesPersonAnnotationItemRequestBuilder) ToPatchRequestInfor return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileNotesPersonAnnotationItemRequestBuilder when successful func (m *ItemProfileNotesPersonAnnotationItemRequestBuilder) WithUrl(rawUrl string)(*ItemProfileNotesPersonAnnotationItemRequestBuilder) { return NewItemProfileNotesPersonAnnotationItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_notes_request_builder.go b/users/item_profile_notes_request_builder.go index 6665e0925e6..f7742de1a9a 100644 --- a/users/item_profile_notes_request_builder.go +++ b/users/item_profile_notes_request_builder.go @@ -47,6 +47,7 @@ type ItemProfileNotesRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByPersonAnnotationId provides operations to manage the notes property of the microsoft.graph.profile entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileNotesPersonAnnotationItemRequestBuilder when successful func (m *ItemProfileNotesRequestBuilder) ByPersonAnnotationId(personAnnotationId string)(*ItemProfileNotesPersonAnnotationItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemProfileNotesRequestBuilder) Count()(*ItemProfileNotesCountRequestBu return NewItemProfileNotesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get represents notes that a user has added to their profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PersonAnnotationCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileNotesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfileNotesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonAnnotationCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemProfileNotesRequestBuilder) Get(ctx context.Context, requestConfigu return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonAnnotationCollectionResponseable), nil } // Post create new navigation property to notes for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PersonAnnotationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileNotesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonAnnotationable, requestConfiguration *ItemProfileNotesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonAnnotationable, error) { @@ -117,6 +120,7 @@ func (m *ItemProfileNotesRequestBuilder) Post(ctx context.Context, body ie233ee7 return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonAnnotationable), nil } // ToGetRequestInformation represents notes that a user has added to their profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileNotesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfileNotesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemProfileNotesRequestBuilder) ToGetRequestInformation(ctx context.Con return requestInfo, nil } // ToPostRequestInformation create new navigation property to notes for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileNotesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonAnnotationable, requestConfiguration *ItemProfileNotesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemProfileNotesRequestBuilder) ToPostRequestInformation(ctx context.Co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileNotesRequestBuilder when successful func (m *ItemProfileNotesRequestBuilder) WithUrl(rawUrl string)(*ItemProfileNotesRequestBuilder) { return NewItemProfileNotesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_patents_count_request_builder.go b/users/item_profile_patents_count_request_builder.go index 35772973fd2..fd056411446 100644 --- a/users/item_profile_patents_count_request_builder.go +++ b/users/item_profile_patents_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemProfilePatentsCountRequestBuilder(rawUrl string, requestAdapter i2ae return NewItemProfilePatentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfilePatentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfilePatentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemProfilePatentsCountRequestBuilder) Get(ctx context.Context, request return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfilePatentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfilePatentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemProfilePatentsCountRequestBuilder) ToGetRequestInformation(ctx cont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfilePatentsCountRequestBuilder when successful func (m *ItemProfilePatentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemProfilePatentsCountRequestBuilder) { return NewItemProfilePatentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_patents_item_patent_item_request_builder.go b/users/item_profile_patents_item_patent_item_request_builder.go index 2ddab1dae66..b42f1e05f31 100644 --- a/users/item_profile_patents_item_patent_item_request_builder.go +++ b/users/item_profile_patents_item_patent_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemProfilePatentsItemPatentItemRequestBuilder(rawUrl string, requestAda return NewItemProfilePatentsItemPatentItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete deletes an itemPatent object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -74,6 +75,7 @@ func (m *ItemProfilePatentsItemPatentItemRequestBuilder) Delete(ctx context.Cont return nil } // Get represents patents that a user has added to their profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemPatentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfilePatentsItemPatentItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfilePatentsItemPatentItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemPatentable, error) { @@ -94,6 +96,7 @@ func (m *ItemProfilePatentsItemPatentItemRequestBuilder) Get(ctx context.Context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemPatentable), nil } // Patch update the properties of an itemPatent object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemPatentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -117,6 +120,7 @@ func (m *ItemProfilePatentsItemPatentItemRequestBuilder) Patch(ctx context.Conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemPatentable), nil } // ToDeleteRequestInformation deletes an itemPatent object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfilePatentsItemPatentItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemProfilePatentsItemPatentItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -128,6 +132,7 @@ func (m *ItemProfilePatentsItemPatentItemRequestBuilder) ToDeleteRequestInformat return requestInfo, nil } // ToGetRequestInformation represents patents that a user has added to their profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfilePatentsItemPatentItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfilePatentsItemPatentItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -142,6 +147,7 @@ func (m *ItemProfilePatentsItemPatentItemRequestBuilder) ToGetRequestInformation return requestInfo, nil } // ToPatchRequestInformation update the properties of an itemPatent object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfilePatentsItemPatentItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemPatentable, requestConfiguration *ItemProfilePatentsItemPatentItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -157,6 +163,7 @@ func (m *ItemProfilePatentsItemPatentItemRequestBuilder) ToPatchRequestInformati return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfilePatentsItemPatentItemRequestBuilder when successful func (m *ItemProfilePatentsItemPatentItemRequestBuilder) WithUrl(rawUrl string)(*ItemProfilePatentsItemPatentItemRequestBuilder) { return NewItemProfilePatentsItemPatentItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_patents_request_builder.go b/users/item_profile_patents_request_builder.go index a2576efcc5c..25fae595789 100644 --- a/users/item_profile_patents_request_builder.go +++ b/users/item_profile_patents_request_builder.go @@ -47,6 +47,7 @@ type ItemProfilePatentsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByItemPatentId provides operations to manage the patents property of the microsoft.graph.profile entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfilePatentsItemPatentItemRequestBuilder when successful func (m *ItemProfilePatentsRequestBuilder) ByItemPatentId(itemPatentId string)(*ItemProfilePatentsItemPatentItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemProfilePatentsRequestBuilder) Count()(*ItemProfilePatentsCountReque return NewItemProfilePatentsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get represents patents that a user has added to their profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemPatentCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfilePatentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfilePatentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemPatentCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemProfilePatentsRequestBuilder) Get(ctx context.Context, requestConfi return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemPatentCollectionResponseable), nil } // Post create new navigation property to patents for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemPatentable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfilePatentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemPatentable, requestConfiguration *ItemProfilePatentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemPatentable, error) { @@ -117,6 +120,7 @@ func (m *ItemProfilePatentsRequestBuilder) Post(ctx context.Context, body ie233e return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemPatentable), nil } // ToGetRequestInformation represents patents that a user has added to their profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfilePatentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfilePatentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemProfilePatentsRequestBuilder) ToGetRequestInformation(ctx context.C return requestInfo, nil } // ToPostRequestInformation create new navigation property to patents for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfilePatentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemPatentable, requestConfiguration *ItemProfilePatentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemProfilePatentsRequestBuilder) ToPostRequestInformation(ctx context. return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfilePatentsRequestBuilder when successful func (m *ItemProfilePatentsRequestBuilder) WithUrl(rawUrl string)(*ItemProfilePatentsRequestBuilder) { return NewItemProfilePatentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_phones_count_request_builder.go b/users/item_profile_phones_count_request_builder.go index fcff62e9f0c..e66f57951bf 100644 --- a/users/item_profile_phones_count_request_builder.go +++ b/users/item_profile_phones_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemProfilePhonesCountRequestBuilder(rawUrl string, requestAdapter i2ae4 return NewItemProfilePhonesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfilePhonesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfilePhonesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemProfilePhonesCountRequestBuilder) Get(ctx context.Context, requestC return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfilePhonesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfilePhonesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemProfilePhonesCountRequestBuilder) ToGetRequestInformation(ctx conte return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfilePhonesCountRequestBuilder when successful func (m *ItemProfilePhonesCountRequestBuilder) WithUrl(rawUrl string)(*ItemProfilePhonesCountRequestBuilder) { return NewItemProfilePhonesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_phones_item_phone_item_request_builder.go b/users/item_profile_phones_item_phone_item_request_builder.go index 3a266daa3a2..a97e23247b8 100644 --- a/users/item_profile_phones_item_phone_item_request_builder.go +++ b/users/item_profile_phones_item_phone_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemProfilePhonesItemPhoneItemRequestBuilder(rawUrl string, requestAdapt return NewItemProfilePhonesItemPhoneItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete an itemPhone object from the user's profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -74,6 +75,7 @@ func (m *ItemProfilePhonesItemPhoneItemRequestBuilder) Delete(ctx context.Contex return nil } // Get represents detailed information about phone numbers associated with a user in various services. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemPhoneable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfilePhonesItemPhoneItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfilePhonesItemPhoneItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemPhoneable, error) { @@ -94,6 +96,7 @@ func (m *ItemProfilePhonesItemPhoneItemRequestBuilder) Get(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemPhoneable), nil } // Patch update the properties of an itemPhone object in a user's profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemPhoneable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -117,6 +120,7 @@ func (m *ItemProfilePhonesItemPhoneItemRequestBuilder) Patch(ctx context.Context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemPhoneable), nil } // ToDeleteRequestInformation delete an itemPhone object from the user's profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfilePhonesItemPhoneItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemProfilePhonesItemPhoneItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -128,6 +132,7 @@ func (m *ItemProfilePhonesItemPhoneItemRequestBuilder) ToDeleteRequestInformatio return requestInfo, nil } // ToGetRequestInformation represents detailed information about phone numbers associated with a user in various services. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfilePhonesItemPhoneItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfilePhonesItemPhoneItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -142,6 +147,7 @@ func (m *ItemProfilePhonesItemPhoneItemRequestBuilder) ToGetRequestInformation(c return requestInfo, nil } // ToPatchRequestInformation update the properties of an itemPhone object in a user's profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfilePhonesItemPhoneItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemPhoneable, requestConfiguration *ItemProfilePhonesItemPhoneItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -157,6 +163,7 @@ func (m *ItemProfilePhonesItemPhoneItemRequestBuilder) ToPatchRequestInformation return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfilePhonesItemPhoneItemRequestBuilder when successful func (m *ItemProfilePhonesItemPhoneItemRequestBuilder) WithUrl(rawUrl string)(*ItemProfilePhonesItemPhoneItemRequestBuilder) { return NewItemProfilePhonesItemPhoneItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_phones_request_builder.go b/users/item_profile_phones_request_builder.go index 05aaf0bdf5a..b8120012a01 100644 --- a/users/item_profile_phones_request_builder.go +++ b/users/item_profile_phones_request_builder.go @@ -47,6 +47,7 @@ type ItemProfilePhonesRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByItemPhoneId provides operations to manage the phones property of the microsoft.graph.profile entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfilePhonesItemPhoneItemRequestBuilder when successful func (m *ItemProfilePhonesRequestBuilder) ByItemPhoneId(itemPhoneId string)(*ItemProfilePhonesItemPhoneItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemProfilePhonesRequestBuilder) Count()(*ItemProfilePhonesCountRequest return NewItemProfilePhonesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get represents detailed information about phone numbers associated with a user in various services. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemPhoneCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfilePhonesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfilePhonesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemPhoneCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemProfilePhonesRequestBuilder) Get(ctx context.Context, requestConfig return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemPhoneCollectionResponseable), nil } // Post create new navigation property to phones for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemPhoneable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfilePhonesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemPhoneable, requestConfiguration *ItemProfilePhonesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemPhoneable, error) { @@ -117,6 +120,7 @@ func (m *ItemProfilePhonesRequestBuilder) Post(ctx context.Context, body ie233ee return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemPhoneable), nil } // ToGetRequestInformation represents detailed information about phone numbers associated with a user in various services. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfilePhonesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfilePhonesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemProfilePhonesRequestBuilder) ToGetRequestInformation(ctx context.Co return requestInfo, nil } // ToPostRequestInformation create new navigation property to phones for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfilePhonesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemPhoneable, requestConfiguration *ItemProfilePhonesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemProfilePhonesRequestBuilder) ToPostRequestInformation(ctx context.C return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfilePhonesRequestBuilder when successful func (m *ItemProfilePhonesRequestBuilder) WithUrl(rawUrl string)(*ItemProfilePhonesRequestBuilder) { return NewItemProfilePhonesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_positions_count_request_builder.go b/users/item_profile_positions_count_request_builder.go index 0ee3e3547c5..6b402e3e776 100644 --- a/users/item_profile_positions_count_request_builder.go +++ b/users/item_profile_positions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemProfilePositionsCountRequestBuilder(rawUrl string, requestAdapter i2 return NewItemProfilePositionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfilePositionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfilePositionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemProfilePositionsCountRequestBuilder) Get(ctx context.Context, reque return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfilePositionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfilePositionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemProfilePositionsCountRequestBuilder) ToGetRequestInformation(ctx co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfilePositionsCountRequestBuilder when successful func (m *ItemProfilePositionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemProfilePositionsCountRequestBuilder) { return NewItemProfilePositionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_positions_request_builder.go b/users/item_profile_positions_request_builder.go index 634ba1d045b..a3f578f269c 100644 --- a/users/item_profile_positions_request_builder.go +++ b/users/item_profile_positions_request_builder.go @@ -47,6 +47,7 @@ type ItemProfilePositionsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByWorkPositionId provides operations to manage the positions property of the microsoft.graph.profile entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfilePositionsWorkPositionItemRequestBuilder when successful func (m *ItemProfilePositionsRequestBuilder) ByWorkPositionId(workPositionId string)(*ItemProfilePositionsWorkPositionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemProfilePositionsRequestBuilder) Count()(*ItemProfilePositionsCountR return NewItemProfilePositionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get represents detailed information about work positions associated with a user's profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a WorkPositionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfilePositionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfilePositionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkPositionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemProfilePositionsRequestBuilder) Get(ctx context.Context, requestCon return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkPositionCollectionResponseable), nil } // Post create new navigation property to positions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a WorkPositionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfilePositionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkPositionable, requestConfiguration *ItemProfilePositionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkPositionable, error) { @@ -117,6 +120,7 @@ func (m *ItemProfilePositionsRequestBuilder) Post(ctx context.Context, body ie23 return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkPositionable), nil } // ToGetRequestInformation represents detailed information about work positions associated with a user's profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfilePositionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfilePositionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemProfilePositionsRequestBuilder) ToGetRequestInformation(ctx context return requestInfo, nil } // ToPostRequestInformation create new navigation property to positions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfilePositionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkPositionable, requestConfiguration *ItemProfilePositionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemProfilePositionsRequestBuilder) ToPostRequestInformation(ctx contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfilePositionsRequestBuilder when successful func (m *ItemProfilePositionsRequestBuilder) WithUrl(rawUrl string)(*ItemProfilePositionsRequestBuilder) { return NewItemProfilePositionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_positions_work_position_item_request_builder.go b/users/item_profile_positions_work_position_item_request_builder.go index 6a1e3b74ae9..55358cc5b44 100644 --- a/users/item_profile_positions_work_position_item_request_builder.go +++ b/users/item_profile_positions_work_position_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemProfilePositionsWorkPositionItemRequestBuilder(rawUrl string, reques return NewItemProfilePositionsWorkPositionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property positions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfilePositionsWorkPositionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemProfilePositionsWorkPositionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemProfilePositionsWorkPositionItemRequestBuilder) Delete(ctx context. return nil } // Get represents detailed information about work positions associated with a user's profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a WorkPositionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfilePositionsWorkPositionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfilePositionsWorkPositionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkPositionable, error) { @@ -91,6 +93,7 @@ func (m *ItemProfilePositionsWorkPositionItemRequestBuilder) Get(ctx context.Con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkPositionable), nil } // Patch update the navigation property positions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a WorkPositionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfilePositionsWorkPositionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkPositionable, requestConfiguration *ItemProfilePositionsWorkPositionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkPositionable, error) { @@ -111,6 +114,7 @@ func (m *ItemProfilePositionsWorkPositionItemRequestBuilder) Patch(ctx context.C return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkPositionable), nil } // ToDeleteRequestInformation delete navigation property positions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfilePositionsWorkPositionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemProfilePositionsWorkPositionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemProfilePositionsWorkPositionItemRequestBuilder) ToDeleteRequestInfo return requestInfo, nil } // ToGetRequestInformation represents detailed information about work positions associated with a user's profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfilePositionsWorkPositionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfilePositionsWorkPositionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemProfilePositionsWorkPositionItemRequestBuilder) ToGetRequestInforma return requestInfo, nil } // ToPatchRequestInformation update the navigation property positions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfilePositionsWorkPositionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkPositionable, requestConfiguration *ItemProfilePositionsWorkPositionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemProfilePositionsWorkPositionItemRequestBuilder) ToPatchRequestInfor return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfilePositionsWorkPositionItemRequestBuilder when successful func (m *ItemProfilePositionsWorkPositionItemRequestBuilder) WithUrl(rawUrl string)(*ItemProfilePositionsWorkPositionItemRequestBuilder) { return NewItemProfilePositionsWorkPositionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_projects_count_request_builder.go b/users/item_profile_projects_count_request_builder.go index e5006df74a0..b21a1fc8f2f 100644 --- a/users/item_profile_projects_count_request_builder.go +++ b/users/item_profile_projects_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemProfileProjectsCountRequestBuilder(rawUrl string, requestAdapter i2a return NewItemProfileProjectsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileProjectsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfileProjectsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemProfileProjectsCountRequestBuilder) Get(ctx context.Context, reques return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileProjectsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfileProjectsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemProfileProjectsCountRequestBuilder) ToGetRequestInformation(ctx con return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileProjectsCountRequestBuilder when successful func (m *ItemProfileProjectsCountRequestBuilder) WithUrl(rawUrl string)(*ItemProfileProjectsCountRequestBuilder) { return NewItemProfileProjectsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_projects_project_participation_item_request_builder.go b/users/item_profile_projects_project_participation_item_request_builder.go index 92175251e3a..ee2354b589e 100644 --- a/users/item_profile_projects_project_participation_item_request_builder.go +++ b/users/item_profile_projects_project_participation_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemProfileProjectsProjectParticipationItemRequestBuilder(rawUrl string, return NewItemProfileProjectsProjectParticipationItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property projects for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileProjectsProjectParticipationItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemProfileProjectsProjectParticipationItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemProfileProjectsProjectParticipationItemRequestBuilder) Delete(ctx c return nil } // Get represents detailed information about projects associated with a user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ProjectParticipationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileProjectsProjectParticipationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfileProjectsProjectParticipationItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProjectParticipationable, error) { @@ -91,6 +93,7 @@ func (m *ItemProfileProjectsProjectParticipationItemRequestBuilder) Get(ctx cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProjectParticipationable), nil } // Patch update the navigation property projects in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ProjectParticipationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileProjectsProjectParticipationItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProjectParticipationable, requestConfiguration *ItemProfileProjectsProjectParticipationItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProjectParticipationable, error) { @@ -111,6 +114,7 @@ func (m *ItemProfileProjectsProjectParticipationItemRequestBuilder) Patch(ctx co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProjectParticipationable), nil } // ToDeleteRequestInformation delete navigation property projects for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileProjectsProjectParticipationItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemProfileProjectsProjectParticipationItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemProfileProjectsProjectParticipationItemRequestBuilder) ToDeleteRequ return requestInfo, nil } // ToGetRequestInformation represents detailed information about projects associated with a user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileProjectsProjectParticipationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfileProjectsProjectParticipationItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemProfileProjectsProjectParticipationItemRequestBuilder) ToGetRequest return requestInfo, nil } // ToPatchRequestInformation update the navigation property projects in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileProjectsProjectParticipationItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProjectParticipationable, requestConfiguration *ItemProfileProjectsProjectParticipationItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemProfileProjectsProjectParticipationItemRequestBuilder) ToPatchReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileProjectsProjectParticipationItemRequestBuilder when successful func (m *ItemProfileProjectsProjectParticipationItemRequestBuilder) WithUrl(rawUrl string)(*ItemProfileProjectsProjectParticipationItemRequestBuilder) { return NewItemProfileProjectsProjectParticipationItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_projects_request_builder.go b/users/item_profile_projects_request_builder.go index a2fb89a85d3..d990188b261 100644 --- a/users/item_profile_projects_request_builder.go +++ b/users/item_profile_projects_request_builder.go @@ -47,6 +47,7 @@ type ItemProfileProjectsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByProjectParticipationId provides operations to manage the projects property of the microsoft.graph.profile entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileProjectsProjectParticipationItemRequestBuilder when successful func (m *ItemProfileProjectsRequestBuilder) ByProjectParticipationId(projectParticipationId string)(*ItemProfileProjectsProjectParticipationItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemProfileProjectsRequestBuilder) Count()(*ItemProfileProjectsCountReq return NewItemProfileProjectsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get represents detailed information about projects associated with a user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ProjectParticipationCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileProjectsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfileProjectsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProjectParticipationCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemProfileProjectsRequestBuilder) Get(ctx context.Context, requestConf return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProjectParticipationCollectionResponseable), nil } // Post create new navigation property to projects for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ProjectParticipationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileProjectsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProjectParticipationable, requestConfiguration *ItemProfileProjectsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProjectParticipationable, error) { @@ -117,6 +120,7 @@ func (m *ItemProfileProjectsRequestBuilder) Post(ctx context.Context, body ie233 return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProjectParticipationable), nil } // ToGetRequestInformation represents detailed information about projects associated with a user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileProjectsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfileProjectsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemProfileProjectsRequestBuilder) ToGetRequestInformation(ctx context. return requestInfo, nil } // ToPostRequestInformation create new navigation property to projects for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileProjectsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ProjectParticipationable, requestConfiguration *ItemProfileProjectsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemProfileProjectsRequestBuilder) ToPostRequestInformation(ctx context return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileProjectsRequestBuilder when successful func (m *ItemProfileProjectsRequestBuilder) WithUrl(rawUrl string)(*ItemProfileProjectsRequestBuilder) { return NewItemProfileProjectsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_publications_count_request_builder.go b/users/item_profile_publications_count_request_builder.go index 32e49140587..9fb41a09459 100644 --- a/users/item_profile_publications_count_request_builder.go +++ b/users/item_profile_publications_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemProfilePublicationsCountRequestBuilder(rawUrl string, requestAdapter return NewItemProfilePublicationsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfilePublicationsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfilePublicationsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemProfilePublicationsCountRequestBuilder) Get(ctx context.Context, re return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfilePublicationsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfilePublicationsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemProfilePublicationsCountRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfilePublicationsCountRequestBuilder when successful func (m *ItemProfilePublicationsCountRequestBuilder) WithUrl(rawUrl string)(*ItemProfilePublicationsCountRequestBuilder) { return NewItemProfilePublicationsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_publications_item_publication_item_request_builder.go b/users/item_profile_publications_item_publication_item_request_builder.go index 844f6a26b24..56284e14c43 100644 --- a/users/item_profile_publications_item_publication_item_request_builder.go +++ b/users/item_profile_publications_item_publication_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemProfilePublicationsItemPublicationItemRequestBuilder(rawUrl string, return NewItemProfilePublicationsItemPublicationItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property publications for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfilePublicationsItemPublicationItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemProfilePublicationsItemPublicationItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemProfilePublicationsItemPublicationItemRequestBuilder) Delete(ctx co return nil } // Get represents details of any publications a user has added to their profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemPublicationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfilePublicationsItemPublicationItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfilePublicationsItemPublicationItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemPublicationable, error) { @@ -91,6 +93,7 @@ func (m *ItemProfilePublicationsItemPublicationItemRequestBuilder) Get(ctx conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemPublicationable), nil } // Patch update the properties of an itemPublication object in a user's profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemPublicationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -114,6 +117,7 @@ func (m *ItemProfilePublicationsItemPublicationItemRequestBuilder) Patch(ctx con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemPublicationable), nil } // ToDeleteRequestInformation delete navigation property publications for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfilePublicationsItemPublicationItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemProfilePublicationsItemPublicationItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -125,6 +129,7 @@ func (m *ItemProfilePublicationsItemPublicationItemRequestBuilder) ToDeleteReque return requestInfo, nil } // ToGetRequestInformation represents details of any publications a user has added to their profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfilePublicationsItemPublicationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfilePublicationsItemPublicationItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -139,6 +144,7 @@ func (m *ItemProfilePublicationsItemPublicationItemRequestBuilder) ToGetRequestI return requestInfo, nil } // ToPatchRequestInformation update the properties of an itemPublication object in a user's profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfilePublicationsItemPublicationItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemPublicationable, requestConfiguration *ItemProfilePublicationsItemPublicationItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -154,6 +160,7 @@ func (m *ItemProfilePublicationsItemPublicationItemRequestBuilder) ToPatchReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfilePublicationsItemPublicationItemRequestBuilder when successful func (m *ItemProfilePublicationsItemPublicationItemRequestBuilder) WithUrl(rawUrl string)(*ItemProfilePublicationsItemPublicationItemRequestBuilder) { return NewItemProfilePublicationsItemPublicationItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_publications_request_builder.go b/users/item_profile_publications_request_builder.go index ed41d32bf58..2e1fd36a78a 100644 --- a/users/item_profile_publications_request_builder.go +++ b/users/item_profile_publications_request_builder.go @@ -47,6 +47,7 @@ type ItemProfilePublicationsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByItemPublicationId provides operations to manage the publications property of the microsoft.graph.profile entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfilePublicationsItemPublicationItemRequestBuilder when successful func (m *ItemProfilePublicationsRequestBuilder) ByItemPublicationId(itemPublicationId string)(*ItemProfilePublicationsItemPublicationItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemProfilePublicationsRequestBuilder) Count()(*ItemProfilePublications return NewItemProfilePublicationsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get represents details of any publications a user has added to their profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemPublicationCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfilePublicationsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfilePublicationsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemPublicationCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemProfilePublicationsRequestBuilder) Get(ctx context.Context, request return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemPublicationCollectionResponseable), nil } // Post create new navigation property to publications for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemPublicationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfilePublicationsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemPublicationable, requestConfiguration *ItemProfilePublicationsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemPublicationable, error) { @@ -117,6 +120,7 @@ func (m *ItemProfilePublicationsRequestBuilder) Post(ctx context.Context, body i return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemPublicationable), nil } // ToGetRequestInformation represents details of any publications a user has added to their profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfilePublicationsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfilePublicationsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemProfilePublicationsRequestBuilder) ToGetRequestInformation(ctx cont return requestInfo, nil } // ToPostRequestInformation create new navigation property to publications for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfilePublicationsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ItemPublicationable, requestConfiguration *ItemProfilePublicationsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemProfilePublicationsRequestBuilder) ToPostRequestInformation(ctx con return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfilePublicationsRequestBuilder when successful func (m *ItemProfilePublicationsRequestBuilder) WithUrl(rawUrl string)(*ItemProfilePublicationsRequestBuilder) { return NewItemProfilePublicationsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_request_builder.go b/users/item_profile_request_builder.go index 3da280cc04a..8dcabc959cb 100644 --- a/users/item_profile_request_builder.go +++ b/users/item_profile_request_builder.go @@ -80,6 +80,7 @@ func NewItemProfileRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee26 return NewItemProfileRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property profile for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemProfileRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -106,6 +107,7 @@ func (m *ItemProfileRequestBuilder) Emails()(*ItemProfileEmailsRequestBuilder) { return NewItemProfileEmailsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get represents properties that are descriptive of a user in a tenant. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Profileable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfileRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Profileable, error) { @@ -146,6 +148,7 @@ func (m *ItemProfileRequestBuilder) Notes()(*ItemProfileNotesRequestBuilder) { return NewItemProfileNotesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property profile in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Profileable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Profileable, requestConfiguration *ItemProfileRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Profileable, error) { @@ -196,6 +199,7 @@ func (m *ItemProfileRequestBuilder) Skills()(*ItemProfileSkillsRequestBuilder) { return NewItemProfileSkillsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property profile for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemProfileRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -207,6 +211,7 @@ func (m *ItemProfileRequestBuilder) ToDeleteRequestInformation(ctx context.Conte return requestInfo, nil } // ToGetRequestInformation represents properties that are descriptive of a user in a tenant. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfileRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -221,6 +226,7 @@ func (m *ItemProfileRequestBuilder) ToGetRequestInformation(ctx context.Context, return requestInfo, nil } // ToPatchRequestInformation update the navigation property profile in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Profileable, requestConfiguration *ItemProfileRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -246,6 +252,7 @@ func (m *ItemProfileRequestBuilder) Websites()(*ItemProfileWebsitesRequestBuilde return NewItemProfileWebsitesRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileRequestBuilder when successful func (m *ItemProfileRequestBuilder) WithUrl(rawUrl string)(*ItemProfileRequestBuilder) { return NewItemProfileRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_skills_count_request_builder.go b/users/item_profile_skills_count_request_builder.go index 9122f800d0c..5b7e0597b3f 100644 --- a/users/item_profile_skills_count_request_builder.go +++ b/users/item_profile_skills_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemProfileSkillsCountRequestBuilder(rawUrl string, requestAdapter i2ae4 return NewItemProfileSkillsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileSkillsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfileSkillsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemProfileSkillsCountRequestBuilder) Get(ctx context.Context, requestC return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileSkillsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfileSkillsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemProfileSkillsCountRequestBuilder) ToGetRequestInformation(ctx conte return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileSkillsCountRequestBuilder when successful func (m *ItemProfileSkillsCountRequestBuilder) WithUrl(rawUrl string)(*ItemProfileSkillsCountRequestBuilder) { return NewItemProfileSkillsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_skills_request_builder.go b/users/item_profile_skills_request_builder.go index a9b6d9757cc..ff1466e317f 100644 --- a/users/item_profile_skills_request_builder.go +++ b/users/item_profile_skills_request_builder.go @@ -47,6 +47,7 @@ type ItemProfileSkillsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // BySkillProficiencyId provides operations to manage the skills property of the microsoft.graph.profile entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileSkillsSkillProficiencyItemRequestBuilder when successful func (m *ItemProfileSkillsRequestBuilder) BySkillProficiencyId(skillProficiencyId string)(*ItemProfileSkillsSkillProficiencyItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemProfileSkillsRequestBuilder) Count()(*ItemProfileSkillsCountRequest return NewItemProfileSkillsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get represents detailed information about skills associated with a user in various services. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SkillProficiencyCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileSkillsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfileSkillsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SkillProficiencyCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemProfileSkillsRequestBuilder) Get(ctx context.Context, requestConfig return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SkillProficiencyCollectionResponseable), nil } // Post create new navigation property to skills for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SkillProficiencyable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileSkillsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SkillProficiencyable, requestConfiguration *ItemProfileSkillsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SkillProficiencyable, error) { @@ -117,6 +120,7 @@ func (m *ItemProfileSkillsRequestBuilder) Post(ctx context.Context, body ie233ee return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SkillProficiencyable), nil } // ToGetRequestInformation represents detailed information about skills associated with a user in various services. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileSkillsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfileSkillsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemProfileSkillsRequestBuilder) ToGetRequestInformation(ctx context.Co return requestInfo, nil } // ToPostRequestInformation create new navigation property to skills for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileSkillsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SkillProficiencyable, requestConfiguration *ItemProfileSkillsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemProfileSkillsRequestBuilder) ToPostRequestInformation(ctx context.C return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileSkillsRequestBuilder when successful func (m *ItemProfileSkillsRequestBuilder) WithUrl(rawUrl string)(*ItemProfileSkillsRequestBuilder) { return NewItemProfileSkillsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_skills_skill_proficiency_item_request_builder.go b/users/item_profile_skills_skill_proficiency_item_request_builder.go index ea512dbd068..f79df601410 100644 --- a/users/item_profile_skills_skill_proficiency_item_request_builder.go +++ b/users/item_profile_skills_skill_proficiency_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemProfileSkillsSkillProficiencyItemRequestBuilder(rawUrl string, reque return NewItemProfileSkillsSkillProficiencyItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property skills for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileSkillsSkillProficiencyItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemProfileSkillsSkillProficiencyItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemProfileSkillsSkillProficiencyItemRequestBuilder) Delete(ctx context return nil } // Get represents detailed information about skills associated with a user in various services. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SkillProficiencyable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileSkillsSkillProficiencyItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfileSkillsSkillProficiencyItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SkillProficiencyable, error) { @@ -91,6 +93,7 @@ func (m *ItemProfileSkillsSkillProficiencyItemRequestBuilder) Get(ctx context.Co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SkillProficiencyable), nil } // Patch update the navigation property skills in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SkillProficiencyable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileSkillsSkillProficiencyItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SkillProficiencyable, requestConfiguration *ItemProfileSkillsSkillProficiencyItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SkillProficiencyable, error) { @@ -111,6 +114,7 @@ func (m *ItemProfileSkillsSkillProficiencyItemRequestBuilder) Patch(ctx context. return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SkillProficiencyable), nil } // ToDeleteRequestInformation delete navigation property skills for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileSkillsSkillProficiencyItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemProfileSkillsSkillProficiencyItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemProfileSkillsSkillProficiencyItemRequestBuilder) ToDeleteRequestInf return requestInfo, nil } // ToGetRequestInformation represents detailed information about skills associated with a user in various services. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileSkillsSkillProficiencyItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfileSkillsSkillProficiencyItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemProfileSkillsSkillProficiencyItemRequestBuilder) ToGetRequestInform return requestInfo, nil } // ToPatchRequestInformation update the navigation property skills in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileSkillsSkillProficiencyItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.SkillProficiencyable, requestConfiguration *ItemProfileSkillsSkillProficiencyItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemProfileSkillsSkillProficiencyItemRequestBuilder) ToPatchRequestInfo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileSkillsSkillProficiencyItemRequestBuilder when successful func (m *ItemProfileSkillsSkillProficiencyItemRequestBuilder) WithUrl(rawUrl string)(*ItemProfileSkillsSkillProficiencyItemRequestBuilder) { return NewItemProfileSkillsSkillProficiencyItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_web_accounts_count_request_builder.go b/users/item_profile_web_accounts_count_request_builder.go index 875a7761d90..4b2b45497aa 100644 --- a/users/item_profile_web_accounts_count_request_builder.go +++ b/users/item_profile_web_accounts_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemProfileWebAccountsCountRequestBuilder(rawUrl string, requestAdapter return NewItemProfileWebAccountsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileWebAccountsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfileWebAccountsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemProfileWebAccountsCountRequestBuilder) Get(ctx context.Context, req return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileWebAccountsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfileWebAccountsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemProfileWebAccountsCountRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileWebAccountsCountRequestBuilder when successful func (m *ItemProfileWebAccountsCountRequestBuilder) WithUrl(rawUrl string)(*ItemProfileWebAccountsCountRequestBuilder) { return NewItemProfileWebAccountsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_web_accounts_request_builder.go b/users/item_profile_web_accounts_request_builder.go index 6348e02be13..50d3a52da1e 100644 --- a/users/item_profile_web_accounts_request_builder.go +++ b/users/item_profile_web_accounts_request_builder.go @@ -47,6 +47,7 @@ type ItemProfileWebAccountsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByWebAccountId provides operations to manage the webAccounts property of the microsoft.graph.profile entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileWebAccountsWebAccountItemRequestBuilder when successful func (m *ItemProfileWebAccountsRequestBuilder) ByWebAccountId(webAccountId string)(*ItemProfileWebAccountsWebAccountItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemProfileWebAccountsRequestBuilder) Count()(*ItemProfileWebAccountsCo return NewItemProfileWebAccountsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get represents web accounts the user has indicated they use or has added to their user profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a WebAccountCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileWebAccountsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfileWebAccountsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WebAccountCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemProfileWebAccountsRequestBuilder) Get(ctx context.Context, requestC return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WebAccountCollectionResponseable), nil } // Post create new navigation property to webAccounts for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a WebAccountable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileWebAccountsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WebAccountable, requestConfiguration *ItemProfileWebAccountsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WebAccountable, error) { @@ -117,6 +120,7 @@ func (m *ItemProfileWebAccountsRequestBuilder) Post(ctx context.Context, body ie return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WebAccountable), nil } // ToGetRequestInformation represents web accounts the user has indicated they use or has added to their user profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileWebAccountsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfileWebAccountsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemProfileWebAccountsRequestBuilder) ToGetRequestInformation(ctx conte return requestInfo, nil } // ToPostRequestInformation create new navigation property to webAccounts for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileWebAccountsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WebAccountable, requestConfiguration *ItemProfileWebAccountsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemProfileWebAccountsRequestBuilder) ToPostRequestInformation(ctx cont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileWebAccountsRequestBuilder when successful func (m *ItemProfileWebAccountsRequestBuilder) WithUrl(rawUrl string)(*ItemProfileWebAccountsRequestBuilder) { return NewItemProfileWebAccountsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_web_accounts_web_account_item_request_builder.go b/users/item_profile_web_accounts_web_account_item_request_builder.go index 0c77e50e51a..a1cda8f9d2b 100644 --- a/users/item_profile_web_accounts_web_account_item_request_builder.go +++ b/users/item_profile_web_accounts_web_account_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemProfileWebAccountsWebAccountItemRequestBuilder(rawUrl string, reques return NewItemProfileWebAccountsWebAccountItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property webAccounts for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileWebAccountsWebAccountItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemProfileWebAccountsWebAccountItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemProfileWebAccountsWebAccountItemRequestBuilder) Delete(ctx context. return nil } // Get represents web accounts the user has indicated they use or has added to their user profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a WebAccountable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileWebAccountsWebAccountItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfileWebAccountsWebAccountItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WebAccountable, error) { @@ -91,6 +93,7 @@ func (m *ItemProfileWebAccountsWebAccountItemRequestBuilder) Get(ctx context.Con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WebAccountable), nil } // Patch update the navigation property webAccounts in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a WebAccountable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileWebAccountsWebAccountItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WebAccountable, requestConfiguration *ItemProfileWebAccountsWebAccountItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WebAccountable, error) { @@ -111,6 +114,7 @@ func (m *ItemProfileWebAccountsWebAccountItemRequestBuilder) Patch(ctx context.C return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WebAccountable), nil } // ToDeleteRequestInformation delete navigation property webAccounts for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileWebAccountsWebAccountItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemProfileWebAccountsWebAccountItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemProfileWebAccountsWebAccountItemRequestBuilder) ToDeleteRequestInfo return requestInfo, nil } // ToGetRequestInformation represents web accounts the user has indicated they use or has added to their user profile. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileWebAccountsWebAccountItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfileWebAccountsWebAccountItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemProfileWebAccountsWebAccountItemRequestBuilder) ToGetRequestInforma return requestInfo, nil } // ToPatchRequestInformation update the navigation property webAccounts in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileWebAccountsWebAccountItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WebAccountable, requestConfiguration *ItemProfileWebAccountsWebAccountItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemProfileWebAccountsWebAccountItemRequestBuilder) ToPatchRequestInfor return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileWebAccountsWebAccountItemRequestBuilder when successful func (m *ItemProfileWebAccountsWebAccountItemRequestBuilder) WithUrl(rawUrl string)(*ItemProfileWebAccountsWebAccountItemRequestBuilder) { return NewItemProfileWebAccountsWebAccountItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_websites_count_request_builder.go b/users/item_profile_websites_count_request_builder.go index e54601bb9bd..2fb417e3c78 100644 --- a/users/item_profile_websites_count_request_builder.go +++ b/users/item_profile_websites_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemProfileWebsitesCountRequestBuilder(rawUrl string, requestAdapter i2a return NewItemProfileWebsitesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileWebsitesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfileWebsitesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemProfileWebsitesCountRequestBuilder) Get(ctx context.Context, reques return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileWebsitesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfileWebsitesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemProfileWebsitesCountRequestBuilder) ToGetRequestInformation(ctx con return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileWebsitesCountRequestBuilder when successful func (m *ItemProfileWebsitesCountRequestBuilder) WithUrl(rawUrl string)(*ItemProfileWebsitesCountRequestBuilder) { return NewItemProfileWebsitesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_websites_person_website_item_request_builder.go b/users/item_profile_websites_person_website_item_request_builder.go index 04ad9b76b2a..aa4b018aff5 100644 --- a/users/item_profile_websites_person_website_item_request_builder.go +++ b/users/item_profile_websites_person_website_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemProfileWebsitesPersonWebsiteItemRequestBuilder(rawUrl string, reques return NewItemProfileWebsitesPersonWebsiteItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property websites for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileWebsitesPersonWebsiteItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemProfileWebsitesPersonWebsiteItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemProfileWebsitesPersonWebsiteItemRequestBuilder) Delete(ctx context. return nil } // Get represents detailed information about websites associated with a user in various services. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PersonWebsiteable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileWebsitesPersonWebsiteItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfileWebsitesPersonWebsiteItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonWebsiteable, error) { @@ -91,6 +93,7 @@ func (m *ItemProfileWebsitesPersonWebsiteItemRequestBuilder) Get(ctx context.Con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonWebsiteable), nil } // Patch update the navigation property websites in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PersonWebsiteable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileWebsitesPersonWebsiteItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonWebsiteable, requestConfiguration *ItemProfileWebsitesPersonWebsiteItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonWebsiteable, error) { @@ -111,6 +114,7 @@ func (m *ItemProfileWebsitesPersonWebsiteItemRequestBuilder) Patch(ctx context.C return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonWebsiteable), nil } // ToDeleteRequestInformation delete navigation property websites for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileWebsitesPersonWebsiteItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemProfileWebsitesPersonWebsiteItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemProfileWebsitesPersonWebsiteItemRequestBuilder) ToDeleteRequestInfo return requestInfo, nil } // ToGetRequestInformation represents detailed information about websites associated with a user in various services. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileWebsitesPersonWebsiteItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfileWebsitesPersonWebsiteItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemProfileWebsitesPersonWebsiteItemRequestBuilder) ToGetRequestInforma return requestInfo, nil } // ToPatchRequestInformation update the navigation property websites in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileWebsitesPersonWebsiteItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonWebsiteable, requestConfiguration *ItemProfileWebsitesPersonWebsiteItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemProfileWebsitesPersonWebsiteItemRequestBuilder) ToPatchRequestInfor return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileWebsitesPersonWebsiteItemRequestBuilder when successful func (m *ItemProfileWebsitesPersonWebsiteItemRequestBuilder) WithUrl(rawUrl string)(*ItemProfileWebsitesPersonWebsiteItemRequestBuilder) { return NewItemProfileWebsitesPersonWebsiteItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_profile_websites_request_builder.go b/users/item_profile_websites_request_builder.go index 335980b2422..2fb70eea7a2 100644 --- a/users/item_profile_websites_request_builder.go +++ b/users/item_profile_websites_request_builder.go @@ -47,6 +47,7 @@ type ItemProfileWebsitesRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByPersonWebsiteId provides operations to manage the websites property of the microsoft.graph.profile entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileWebsitesPersonWebsiteItemRequestBuilder when successful func (m *ItemProfileWebsitesRequestBuilder) ByPersonWebsiteId(personWebsiteId string)(*ItemProfileWebsitesPersonWebsiteItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemProfileWebsitesRequestBuilder) Count()(*ItemProfileWebsitesCountReq return NewItemProfileWebsitesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get represents detailed information about websites associated with a user in various services. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PersonWebsiteCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileWebsitesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemProfileWebsitesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonWebsiteCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemProfileWebsitesRequestBuilder) Get(ctx context.Context, requestConf return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonWebsiteCollectionResponseable), nil } // Post create new navigation property to websites for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PersonWebsiteable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemProfileWebsitesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonWebsiteable, requestConfiguration *ItemProfileWebsitesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonWebsiteable, error) { @@ -117,6 +120,7 @@ func (m *ItemProfileWebsitesRequestBuilder) Post(ctx context.Context, body ie233 return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonWebsiteable), nil } // ToGetRequestInformation represents detailed information about websites associated with a user in various services. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileWebsitesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemProfileWebsitesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemProfileWebsitesRequestBuilder) ToGetRequestInformation(ctx context. return requestInfo, nil } // ToPostRequestInformation create new navigation property to websites for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemProfileWebsitesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PersonWebsiteable, requestConfiguration *ItemProfileWebsitesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemProfileWebsitesRequestBuilder) ToPostRequestInformation(ctx context return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemProfileWebsitesRequestBuilder when successful func (m *ItemProfileWebsitesRequestBuilder) WithUrl(rawUrl string)(*ItemProfileWebsitesRequestBuilder) { return NewItemProfileWebsitesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_registered_devices_count_request_builder.go b/users/item_registered_devices_count_request_builder.go index b04de806a47..d20ae79eee8 100644 --- a/users/item_registered_devices_count_request_builder.go +++ b/users/item_registered_devices_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemRegisteredDevicesCountRequestBuilder(rawUrl string, requestAdapter i return NewItemRegisteredDevicesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemRegisteredDevicesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemRegisteredDevicesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemRegisteredDevicesCountRequestBuilder) Get(ctx context.Context, requ return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemRegisteredDevicesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemRegisteredDevicesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemRegisteredDevicesCountRequestBuilder) ToGetRequestInformation(ctx c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemRegisteredDevicesCountRequestBuilder when successful func (m *ItemRegisteredDevicesCountRequestBuilder) WithUrl(rawUrl string)(*ItemRegisteredDevicesCountRequestBuilder) { return NewItemRegisteredDevicesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_registered_devices_directory_object_item_request_builder.go b/users/item_registered_devices_directory_object_item_request_builder.go index d958f521304..d9865592063 100644 --- a/users/item_registered_devices_directory_object_item_request_builder.go +++ b/users/item_registered_devices_directory_object_item_request_builder.go @@ -41,6 +41,7 @@ func NewItemRegisteredDevicesDirectoryObjectItemRequestBuilder(rawUrl string, re return NewItemRegisteredDevicesDirectoryObjectItemRequestBuilderInternal(urlParams, requestAdapter) } // Get devices that are registered for the user. Read-only. Nullable. Supports $expand and returns up to 100 objects. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DirectoryObjectable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemRegisteredDevicesDirectoryObjectItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemRegisteredDevicesDirectoryObjectItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryObjectable, error) { @@ -71,6 +72,7 @@ func (m *ItemRegisteredDevicesDirectoryObjectItemRequestBuilder) GraphEndpoint() return NewItemRegisteredDevicesItemGraphEndpointRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation devices that are registered for the user. Read-only. Nullable. Supports $expand and returns up to 100 objects. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemRegisteredDevicesDirectoryObjectItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemRegisteredDevicesDirectoryObjectItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -85,6 +87,7 @@ func (m *ItemRegisteredDevicesDirectoryObjectItemRequestBuilder) ToGetRequestInf return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemRegisteredDevicesDirectoryObjectItemRequestBuilder when successful func (m *ItemRegisteredDevicesDirectoryObjectItemRequestBuilder) WithUrl(rawUrl string)(*ItemRegisteredDevicesDirectoryObjectItemRequestBuilder) { return NewItemRegisteredDevicesDirectoryObjectItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_registered_devices_graph_device_count_request_builder.go b/users/item_registered_devices_graph_device_count_request_builder.go index 90649a883fd..a6b5d2654a9 100644 --- a/users/item_registered_devices_graph_device_count_request_builder.go +++ b/users/item_registered_devices_graph_device_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemRegisteredDevicesGraphDeviceCountRequestBuilder(rawUrl string, reque return NewItemRegisteredDevicesGraphDeviceCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemRegisteredDevicesGraphDeviceCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemRegisteredDevicesGraphDeviceCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemRegisteredDevicesGraphDeviceCountRequestBuilder) Get(ctx context.Co return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemRegisteredDevicesGraphDeviceCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemRegisteredDevicesGraphDeviceCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemRegisteredDevicesGraphDeviceCountRequestBuilder) ToGetRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemRegisteredDevicesGraphDeviceCountRequestBuilder when successful func (m *ItemRegisteredDevicesGraphDeviceCountRequestBuilder) WithUrl(rawUrl string)(*ItemRegisteredDevicesGraphDeviceCountRequestBuilder) { return NewItemRegisteredDevicesGraphDeviceCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_registered_devices_graph_device_request_builder.go b/users/item_registered_devices_graph_device_request_builder.go index d8d44d38dbd..121b3e4a8dd 100644 --- a/users/item_registered_devices_graph_device_request_builder.go +++ b/users/item_registered_devices_graph_device_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemRegisteredDevicesGraphDeviceRequestBuilder) Count()(*ItemRegistered return NewItemRegisteredDevicesGraphDeviceCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get the items of type microsoft.graph.device in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DeviceCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemRegisteredDevicesGraphDeviceRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemRegisteredDevicesGraphDeviceRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemRegisteredDevicesGraphDeviceRequestBuilder) Get(ctx context.Context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DeviceCollectionResponseable), nil } // ToGetRequestInformation get the items of type microsoft.graph.device in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemRegisteredDevicesGraphDeviceRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemRegisteredDevicesGraphDeviceRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemRegisteredDevicesGraphDeviceRequestBuilder) ToGetRequestInformation return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemRegisteredDevicesGraphDeviceRequestBuilder when successful func (m *ItemRegisteredDevicesGraphDeviceRequestBuilder) WithUrl(rawUrl string)(*ItemRegisteredDevicesGraphDeviceRequestBuilder) { return NewItemRegisteredDevicesGraphDeviceRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_registered_devices_graph_endpoint_count_request_builder.go b/users/item_registered_devices_graph_endpoint_count_request_builder.go index e393b3b2198..92d671f3068 100644 --- a/users/item_registered_devices_graph_endpoint_count_request_builder.go +++ b/users/item_registered_devices_graph_endpoint_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemRegisteredDevicesGraphEndpointCountRequestBuilder(rawUrl string, req return NewItemRegisteredDevicesGraphEndpointCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemRegisteredDevicesGraphEndpointCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemRegisteredDevicesGraphEndpointCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemRegisteredDevicesGraphEndpointCountRequestBuilder) Get(ctx context. return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemRegisteredDevicesGraphEndpointCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemRegisteredDevicesGraphEndpointCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemRegisteredDevicesGraphEndpointCountRequestBuilder) ToGetRequestInfo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemRegisteredDevicesGraphEndpointCountRequestBuilder when successful func (m *ItemRegisteredDevicesGraphEndpointCountRequestBuilder) WithUrl(rawUrl string)(*ItemRegisteredDevicesGraphEndpointCountRequestBuilder) { return NewItemRegisteredDevicesGraphEndpointCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_registered_devices_graph_endpoint_request_builder.go b/users/item_registered_devices_graph_endpoint_request_builder.go index 98c101c82b6..34a9fd4ea32 100644 --- a/users/item_registered_devices_graph_endpoint_request_builder.go +++ b/users/item_registered_devices_graph_endpoint_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemRegisteredDevicesGraphEndpointRequestBuilder) Count()(*ItemRegister return NewItemRegisteredDevicesGraphEndpointCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get the items of type microsoft.graph.endpoint in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a EndpointCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemRegisteredDevicesGraphEndpointRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemRegisteredDevicesGraphEndpointRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EndpointCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemRegisteredDevicesGraphEndpointRequestBuilder) Get(ctx context.Conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.EndpointCollectionResponseable), nil } // ToGetRequestInformation get the items of type microsoft.graph.endpoint in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemRegisteredDevicesGraphEndpointRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemRegisteredDevicesGraphEndpointRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemRegisteredDevicesGraphEndpointRequestBuilder) ToGetRequestInformati return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemRegisteredDevicesGraphEndpointRequestBuilder when successful func (m *ItemRegisteredDevicesGraphEndpointRequestBuilder) WithUrl(rawUrl string)(*ItemRegisteredDevicesGraphEndpointRequestBuilder) { return NewItemRegisteredDevicesGraphEndpointRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_registered_devices_item_graph_device_request_builder.go b/users/item_registered_devices_item_graph_device_request_builder.go index 026a5b0e17f..0fede1d9a70 100644 --- a/users/item_registered_devices_item_graph_device_request_builder.go +++ b/users/item_registered_devices_item_graph_device_request_builder.go @@ -41,6 +41,7 @@ func NewItemRegisteredDevicesItemGraphDeviceRequestBuilder(rawUrl string, reques return NewItemRegisteredDevicesItemGraphDeviceRequestBuilderInternal(urlParams, requestAdapter) } // Get get the item of type microsoft.graph.directoryObject as microsoft.graph.device +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Deviceable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemRegisteredDevicesItemGraphDeviceRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemRegisteredDevicesItemGraphDeviceRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Deviceable, error) { @@ -61,6 +62,7 @@ func (m *ItemRegisteredDevicesItemGraphDeviceRequestBuilder) Get(ctx context.Con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Deviceable), nil } // ToGetRequestInformation get the item of type microsoft.graph.directoryObject as microsoft.graph.device +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemRegisteredDevicesItemGraphDeviceRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemRegisteredDevicesItemGraphDeviceRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemRegisteredDevicesItemGraphDeviceRequestBuilder) ToGetRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemRegisteredDevicesItemGraphDeviceRequestBuilder when successful func (m *ItemRegisteredDevicesItemGraphDeviceRequestBuilder) WithUrl(rawUrl string)(*ItemRegisteredDevicesItemGraphDeviceRequestBuilder) { return NewItemRegisteredDevicesItemGraphDeviceRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_registered_devices_item_graph_endpoint_request_builder.go b/users/item_registered_devices_item_graph_endpoint_request_builder.go index 7e759544f44..bb71ed08cdf 100644 --- a/users/item_registered_devices_item_graph_endpoint_request_builder.go +++ b/users/item_registered_devices_item_graph_endpoint_request_builder.go @@ -41,6 +41,7 @@ func NewItemRegisteredDevicesItemGraphEndpointRequestBuilder(rawUrl string, requ return NewItemRegisteredDevicesItemGraphEndpointRequestBuilderInternal(urlParams, requestAdapter) } // Get get the item of type microsoft.graph.directoryObject as microsoft.graph.endpoint +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Endpointable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemRegisteredDevicesItemGraphEndpointRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemRegisteredDevicesItemGraphEndpointRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Endpointable, error) { @@ -61,6 +62,7 @@ func (m *ItemRegisteredDevicesItemGraphEndpointRequestBuilder) Get(ctx context.C return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Endpointable), nil } // ToGetRequestInformation get the item of type microsoft.graph.directoryObject as microsoft.graph.endpoint +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemRegisteredDevicesItemGraphEndpointRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemRegisteredDevicesItemGraphEndpointRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemRegisteredDevicesItemGraphEndpointRequestBuilder) ToGetRequestInfor return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemRegisteredDevicesItemGraphEndpointRequestBuilder when successful func (m *ItemRegisteredDevicesItemGraphEndpointRequestBuilder) WithUrl(rawUrl string)(*ItemRegisteredDevicesItemGraphEndpointRequestBuilder) { return NewItemRegisteredDevicesItemGraphEndpointRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_registered_devices_request_builder.go b/users/item_registered_devices_request_builder.go index 7db56bb6ea3..8bf1524247e 100644 --- a/users/item_registered_devices_request_builder.go +++ b/users/item_registered_devices_request_builder.go @@ -40,6 +40,7 @@ type ItemRegisteredDevicesRequestBuilderGetRequestConfiguration struct { QueryParameters *ItemRegisteredDevicesRequestBuilderGetQueryParameters } // ByDirectoryObjectId provides operations to manage the registeredDevices property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemRegisteredDevicesDirectoryObjectItemRequestBuilder when successful func (m *ItemRegisteredDevicesRequestBuilder) ByDirectoryObjectId(directoryObjectId string)(*ItemRegisteredDevicesDirectoryObjectItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -70,6 +71,7 @@ func (m *ItemRegisteredDevicesRequestBuilder) Count()(*ItemRegisteredDevicesCoun return NewItemRegisteredDevicesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get devices that are registered for the user. Read-only. Nullable. Supports $expand and returns up to 100 objects. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DirectoryObjectCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemRegisteredDevicesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemRegisteredDevicesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryObjectCollectionResponseable, error) { @@ -100,6 +102,7 @@ func (m *ItemRegisteredDevicesRequestBuilder) GraphEndpoint()(*ItemRegisteredDev return NewItemRegisteredDevicesGraphEndpointRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation devices that are registered for the user. Read-only. Nullable. Supports $expand and returns up to 100 objects. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemRegisteredDevicesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemRegisteredDevicesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -114,6 +117,7 @@ func (m *ItemRegisteredDevicesRequestBuilder) ToGetRequestInformation(ctx contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemRegisteredDevicesRequestBuilder when successful func (m *ItemRegisteredDevicesRequestBuilder) WithUrl(rawUrl string)(*ItemRegisteredDevicesRequestBuilder) { return NewItemRegisteredDevicesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_reminder_view_with_start_date_time_with_end_date_time_request_builder.go b/users/item_reminder_view_with_start_date_time_with_end_date_time_request_builder.go index 08c3db140b1..12e5daf2c03 100644 --- a/users/item_reminder_view_with_start_date_time_with_end_date_time_request_builder.go +++ b/users/item_reminder_view_with_start_date_time_with_end_date_time_request_builder.go @@ -76,6 +76,7 @@ func (m *ItemReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder) Get(ctx return res.(ItemReminderViewWithStartDateTimeWithEndDateTimeResponseable), nil } // GetAsReminderViewWithStartDateTimeWithEndDateTimeGetResponse return a list of event reminders in a user calendar within the specified start and end times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemReminderViewWithStartDateTimeWithEndDateTimeGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -99,6 +100,7 @@ func (m *ItemReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder) GetAsRe return res.(ItemReminderViewWithStartDateTimeWithEndDateTimeGetResponseable), nil } // ToGetRequestInformation return a list of event reminders in a user calendar within the specified start and end times. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemReminderViewWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,6 +115,7 @@ func (m *ItemReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder) ToGetRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder when successful func (m *ItemReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder) WithUrl(rawUrl string)(*ItemReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder) { return NewItemReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_remove_all_devices_from_management_request_builder.go b/users/item_remove_all_devices_from_management_request_builder.go index 26f44303b78..5e18c7c4eae 100644 --- a/users/item_remove_all_devices_from_management_request_builder.go +++ b/users/item_remove_all_devices_from_management_request_builder.go @@ -31,6 +31,7 @@ func NewItemRemoveAllDevicesFromManagementRequestBuilder(rawUrl string, requestA return NewItemRemoveAllDevicesFromManagementRequestBuilderInternal(urlParams, requestAdapter) } // Post retire all devices from management for this user +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemRemoveAllDevicesFromManagementRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemRemoveAllDevicesFromManagementRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemRemoveAllDevicesFromManagementRequestBuilder) Post(ctx context.Cont return nil } // ToPostRequestInformation retire all devices from management for this user +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemRemoveAllDevicesFromManagementRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemRemoveAllDevicesFromManagementRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -58,6 +60,7 @@ func (m *ItemRemoveAllDevicesFromManagementRequestBuilder) ToPostRequestInformat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemRemoveAllDevicesFromManagementRequestBuilder when successful func (m *ItemRemoveAllDevicesFromManagementRequestBuilder) WithUrl(rawUrl string)(*ItemRemoveAllDevicesFromManagementRequestBuilder) { return NewItemRemoveAllDevicesFromManagementRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_reprocess_license_assignment_request_builder.go b/users/item_reprocess_license_assignment_request_builder.go index 8bf720eb6fb..bd117e47626 100644 --- a/users/item_reprocess_license_assignment_request_builder.go +++ b/users/item_reprocess_license_assignment_request_builder.go @@ -32,6 +32,7 @@ func NewItemReprocessLicenseAssignmentRequestBuilder(rawUrl string, requestAdapt return NewItemReprocessLicenseAssignmentRequestBuilderInternal(urlParams, requestAdapter) } // Post reprocess all group-based license assignments for the user. To learn more about group-based licensing, see What is group-based licensing in Microsoft Entra ID. Also see Identify and resolve license assignment problems for a group in Microsoft Entra ID for more details. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemReprocessLicenseAssignmentRequestBuilder) Post(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable), nil } // ToPostRequestInformation reprocess all group-based license assignments for the user. To learn more about group-based licensing, see What is group-based licensing in Microsoft Entra ID. Also see Identify and resolve license assignment problems for a group in Microsoft Entra ID for more details. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemReprocessLicenseAssignmentRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemReprocessLicenseAssignmentRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -66,6 +68,7 @@ func (m *ItemReprocessLicenseAssignmentRequestBuilder) ToPostRequestInformation( return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemReprocessLicenseAssignmentRequestBuilder when successful func (m *ItemReprocessLicenseAssignmentRequestBuilder) WithUrl(rawUrl string)(*ItemReprocessLicenseAssignmentRequestBuilder) { return NewItemReprocessLicenseAssignmentRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_restore_request_builder.go b/users/item_restore_request_builder.go index 2f4266562f4..303b4317459 100644 --- a/users/item_restore_request_builder.go +++ b/users/item_restore_request_builder.go @@ -32,6 +32,7 @@ func NewItemRestoreRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee26 return NewItemRestoreRequestBuilderInternal(urlParams, requestAdapter) } // Post restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DirectoryObjectable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemRestoreRequestBuilder) Post(ctx context.Context, body ItemRestorePo return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryObjectable), nil } // ToPostRequestInformation restore a recently deleted application, externalUserProfile, group, pendingExternalUserProfile, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. This isn't applicable to security groups, which are deleted permanently. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemRestoreRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemRestorePostRequestBodyable, requestConfiguration *ItemRestoreRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemRestoreRequestBuilder) ToPostRequestInformation(ctx context.Context return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemRestoreRequestBuilder when successful func (m *ItemRestoreRequestBuilder) WithUrl(rawUrl string)(*ItemRestoreRequestBuilder) { return NewItemRestoreRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_retry_service_provisioning_request_builder.go b/users/item_retry_service_provisioning_request_builder.go index 6b296bbede8..8c447d66280 100644 --- a/users/item_retry_service_provisioning_request_builder.go +++ b/users/item_retry_service_provisioning_request_builder.go @@ -31,6 +31,7 @@ func NewItemRetryServiceProvisioningRequestBuilder(rawUrl string, requestAdapter return NewItemRetryServiceProvisioningRequestBuilderInternal(urlParams, requestAdapter) } // Post retry the user service provisioning. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemRetryServiceProvisioningRequestBuilder) Post(ctx context.Context, r return nil } // ToPostRequestInformation retry the user service provisioning. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemRetryServiceProvisioningRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemRetryServiceProvisioningRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -61,6 +63,7 @@ func (m *ItemRetryServiceProvisioningRequestBuilder) ToPostRequestInformation(ct return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemRetryServiceProvisioningRequestBuilder when successful func (m *ItemRetryServiceProvisioningRequestBuilder) WithUrl(rawUrl string)(*ItemRetryServiceProvisioningRequestBuilder) { return NewItemRetryServiceProvisioningRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_revoke_sign_in_sessions_request_builder.go b/users/item_revoke_sign_in_sessions_request_builder.go index 1cc46a67767..1ece027c75a 100644 --- a/users/item_revoke_sign_in_sessions_request_builder.go +++ b/users/item_revoke_sign_in_sessions_request_builder.go @@ -55,6 +55,7 @@ func (m *ItemRevokeSignInSessionsRequestBuilder) Post(ctx context.Context, reque return res.(ItemRevokeSignInSessionsResponseable), nil } // PostAsRevokeSignInSessionsPostResponse invalidates all the refresh tokens issued to applications for a user (as well as session cookies in a user's browser), by resetting the signInSessionsValidFromDateTime user property to the current date-time. Typically, this operation is performed (by the user or an administrator) if the user has a lost or stolen device. This operation prevents access to the organization's data through applications on the device by requiring the user to sign in again to all applications that they have previously consented to, independent of device. If the application attempts to redeem a delegated access token for this user by using an invalidated refresh token, the application will get an error. If this happens, the application will need to acquire a new refresh token by making a request to the authorize endpoint, which will force the user to sign in. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemRevokeSignInSessionsPostResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -78,6 +79,7 @@ func (m *ItemRevokeSignInSessionsRequestBuilder) PostAsRevokeSignInSessionsPostR return res.(ItemRevokeSignInSessionsPostResponseable), nil } // ToPostRequestInformation invalidates all the refresh tokens issued to applications for a user (as well as session cookies in a user's browser), by resetting the signInSessionsValidFromDateTime user property to the current date-time. Typically, this operation is performed (by the user or an administrator) if the user has a lost or stolen device. This operation prevents access to the organization's data through applications on the device by requiring the user to sign in again to all applications that they have previously consented to, independent of device. If the application attempts to redeem a delegated access token for this user by using an invalidated refresh token, the application will get an error. If this happens, the application will need to acquire a new refresh token by making a request to the authorize endpoint, which will force the user to sign in. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemRevokeSignInSessionsRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemRevokeSignInSessionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -89,6 +91,7 @@ func (m *ItemRevokeSignInSessionsRequestBuilder) ToPostRequestInformation(ctx co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemRevokeSignInSessionsRequestBuilder when successful func (m *ItemRevokeSignInSessionsRequestBuilder) WithUrl(rawUrl string)(*ItemRevokeSignInSessionsRequestBuilder) { return NewItemRevokeSignInSessionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_scoped_role_member_of_count_request_builder.go b/users/item_scoped_role_member_of_count_request_builder.go index 2e6ce1ea437..c0f161dff7b 100644 --- a/users/item_scoped_role_member_of_count_request_builder.go +++ b/users/item_scoped_role_member_of_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemScopedRoleMemberOfCountRequestBuilder(rawUrl string, requestAdapter return NewItemScopedRoleMemberOfCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemScopedRoleMemberOfCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemScopedRoleMemberOfCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemScopedRoleMemberOfCountRequestBuilder) Get(ctx context.Context, req return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemScopedRoleMemberOfCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemScopedRoleMemberOfCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemScopedRoleMemberOfCountRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemScopedRoleMemberOfCountRequestBuilder when successful func (m *ItemScopedRoleMemberOfCountRequestBuilder) WithUrl(rawUrl string)(*ItemScopedRoleMemberOfCountRequestBuilder) { return NewItemScopedRoleMemberOfCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_scoped_role_member_of_request_builder.go b/users/item_scoped_role_member_of_request_builder.go index f6d79ba6274..f4604eb0e70 100644 --- a/users/item_scoped_role_member_of_request_builder.go +++ b/users/item_scoped_role_member_of_request_builder.go @@ -47,6 +47,7 @@ type ItemScopedRoleMemberOfRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByScopedRoleMembershipId provides operations to manage the scopedRoleMemberOf property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemScopedRoleMemberOfScopedRoleMembershipItemRequestBuilder when successful func (m *ItemScopedRoleMemberOfRequestBuilder) ByScopedRoleMembershipId(scopedRoleMembershipId string)(*ItemScopedRoleMemberOfScopedRoleMembershipItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemScopedRoleMemberOfRequestBuilder) Count()(*ItemScopedRoleMemberOfCo return NewItemScopedRoleMemberOfCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the scoped-role administrative unit memberships for this user. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ScopedRoleMembershipCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemScopedRoleMemberOfRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemScopedRoleMemberOfRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ScopedRoleMembershipCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemScopedRoleMemberOfRequestBuilder) Get(ctx context.Context, requestC return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ScopedRoleMembershipCollectionResponseable), nil } // Post create new navigation property to scopedRoleMemberOf for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ScopedRoleMembershipable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemScopedRoleMemberOfRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ScopedRoleMembershipable, requestConfiguration *ItemScopedRoleMemberOfRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ScopedRoleMembershipable, error) { @@ -117,6 +120,7 @@ func (m *ItemScopedRoleMemberOfRequestBuilder) Post(ctx context.Context, body ie return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ScopedRoleMembershipable), nil } // ToGetRequestInformation the scoped-role administrative unit memberships for this user. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemScopedRoleMemberOfRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemScopedRoleMemberOfRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemScopedRoleMemberOfRequestBuilder) ToGetRequestInformation(ctx conte return requestInfo, nil } // ToPostRequestInformation create new navigation property to scopedRoleMemberOf for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemScopedRoleMemberOfRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ScopedRoleMembershipable, requestConfiguration *ItemScopedRoleMemberOfRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemScopedRoleMemberOfRequestBuilder) ToPostRequestInformation(ctx cont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemScopedRoleMemberOfRequestBuilder when successful func (m *ItemScopedRoleMemberOfRequestBuilder) WithUrl(rawUrl string)(*ItemScopedRoleMemberOfRequestBuilder) { return NewItemScopedRoleMemberOfRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_scoped_role_member_of_scoped_role_membership_item_request_builder.go b/users/item_scoped_role_member_of_scoped_role_membership_item_request_builder.go index b29a40d0740..101d2b5f34b 100644 --- a/users/item_scoped_role_member_of_scoped_role_membership_item_request_builder.go +++ b/users/item_scoped_role_member_of_scoped_role_membership_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemScopedRoleMemberOfScopedRoleMembershipItemRequestBuilder(rawUrl stri return NewItemScopedRoleMemberOfScopedRoleMembershipItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property scopedRoleMemberOf for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemScopedRoleMemberOfScopedRoleMembershipItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemScopedRoleMemberOfScopedRoleMembershipItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemScopedRoleMemberOfScopedRoleMembershipItemRequestBuilder) Delete(ct return nil } // Get the scoped-role administrative unit memberships for this user. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ScopedRoleMembershipable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemScopedRoleMemberOfScopedRoleMembershipItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemScopedRoleMemberOfScopedRoleMembershipItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ScopedRoleMembershipable, error) { @@ -91,6 +93,7 @@ func (m *ItemScopedRoleMemberOfScopedRoleMembershipItemRequestBuilder) Get(ctx c return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ScopedRoleMembershipable), nil } // Patch update the navigation property scopedRoleMemberOf in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ScopedRoleMembershipable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemScopedRoleMemberOfScopedRoleMembershipItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ScopedRoleMembershipable, requestConfiguration *ItemScopedRoleMemberOfScopedRoleMembershipItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ScopedRoleMembershipable, error) { @@ -111,6 +114,7 @@ func (m *ItemScopedRoleMemberOfScopedRoleMembershipItemRequestBuilder) Patch(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ScopedRoleMembershipable), nil } // ToDeleteRequestInformation delete navigation property scopedRoleMemberOf for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemScopedRoleMemberOfScopedRoleMembershipItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemScopedRoleMemberOfScopedRoleMembershipItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemScopedRoleMemberOfScopedRoleMembershipItemRequestBuilder) ToDeleteR return requestInfo, nil } // ToGetRequestInformation the scoped-role administrative unit memberships for this user. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemScopedRoleMemberOfScopedRoleMembershipItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemScopedRoleMemberOfScopedRoleMembershipItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemScopedRoleMemberOfScopedRoleMembershipItemRequestBuilder) ToGetRequ return requestInfo, nil } // ToPatchRequestInformation update the navigation property scopedRoleMemberOf in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemScopedRoleMemberOfScopedRoleMembershipItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ScopedRoleMembershipable, requestConfiguration *ItemScopedRoleMemberOfScopedRoleMembershipItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemScopedRoleMemberOfScopedRoleMembershipItemRequestBuilder) ToPatchRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemScopedRoleMemberOfScopedRoleMembershipItemRequestBuilder when successful func (m *ItemScopedRoleMemberOfScopedRoleMembershipItemRequestBuilder) WithUrl(rawUrl string)(*ItemScopedRoleMemberOfScopedRoleMembershipItemRequestBuilder) { return NewItemScopedRoleMemberOfScopedRoleMembershipItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_security_information_protection_label_policy_settings_request_builder.go b/users/item_security_information_protection_label_policy_settings_request_builder.go index 45c66c37f58..ca9fe4d9d43 100644 --- a/users/item_security_information_protection_label_policy_settings_request_builder.go +++ b/users/item_security_information_protection_label_policy_settings_request_builder.go @@ -55,6 +55,7 @@ func NewItemSecurityInformationProtectionLabelPolicySettingsRequestBuilder(rawUr return NewItemSecurityInformationProtectionLabelPolicySettingsRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property labelPolicySettings for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSecurityInformationProtectionLabelPolicySettingsRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemSecurityInformationProtectionLabelPolicySettingsRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemSecurityInformationProtectionLabelPolicySettingsRequestBuilder) Del return nil } // Get read the properties and relationships of an informationProtectionPolicySetting object. The settings exposed by this API should be used in applications to populate the moreInfoUrl property for Microsoft Purview Information Protection help, and indicate whether labeling is mandatory for the user and whether justification must be provided on downgrade. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a InformationProtectionPolicySettingable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -94,6 +96,7 @@ func (m *ItemSecurityInformationProtectionLabelPolicySettingsRequestBuilder) Get return res.(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.InformationProtectionPolicySettingable), nil } // Patch update the navigation property labelPolicySettings in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a InformationProtectionPolicySettingable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSecurityInformationProtectionLabelPolicySettingsRequestBuilder) Patch(ctx context.Context, body i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.InformationProtectionPolicySettingable, requestConfiguration *ItemSecurityInformationProtectionLabelPolicySettingsRequestBuilderPatchRequestConfiguration)(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.InformationProtectionPolicySettingable, error) { @@ -114,6 +117,7 @@ func (m *ItemSecurityInformationProtectionLabelPolicySettingsRequestBuilder) Pat return res.(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.InformationProtectionPolicySettingable), nil } // ToDeleteRequestInformation delete navigation property labelPolicySettings for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSecurityInformationProtectionLabelPolicySettingsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemSecurityInformationProtectionLabelPolicySettingsRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -125,6 +129,7 @@ func (m *ItemSecurityInformationProtectionLabelPolicySettingsRequestBuilder) ToD return requestInfo, nil } // ToGetRequestInformation read the properties and relationships of an informationProtectionPolicySetting object. The settings exposed by this API should be used in applications to populate the moreInfoUrl property for Microsoft Purview Information Protection help, and indicate whether labeling is mandatory for the user and whether justification must be provided on downgrade. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSecurityInformationProtectionLabelPolicySettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSecurityInformationProtectionLabelPolicySettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -139,6 +144,7 @@ func (m *ItemSecurityInformationProtectionLabelPolicySettingsRequestBuilder) ToG return requestInfo, nil } // ToPatchRequestInformation update the navigation property labelPolicySettings in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSecurityInformationProtectionLabelPolicySettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.InformationProtectionPolicySettingable, requestConfiguration *ItemSecurityInformationProtectionLabelPolicySettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -154,6 +160,7 @@ func (m *ItemSecurityInformationProtectionLabelPolicySettingsRequestBuilder) ToP return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSecurityInformationProtectionLabelPolicySettingsRequestBuilder when successful func (m *ItemSecurityInformationProtectionLabelPolicySettingsRequestBuilder) WithUrl(rawUrl string)(*ItemSecurityInformationProtectionLabelPolicySettingsRequestBuilder) { return NewItemSecurityInformationProtectionLabelPolicySettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_security_information_protection_request_builder.go b/users/item_security_information_protection_request_builder.go index dfb69a5800a..a99a2793446 100644 --- a/users/item_security_information_protection_request_builder.go +++ b/users/item_security_information_protection_request_builder.go @@ -55,6 +55,7 @@ func NewItemSecurityInformationProtectionRequestBuilder(rawUrl string, requestAd return NewItemSecurityInformationProtectionRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property informationProtection for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSecurityInformationProtectionRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemSecurityInformationProtectionRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemSecurityInformationProtectionRequestBuilder) Delete(ctx context.Con return nil } // Get get informationProtection from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a InformationProtectionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSecurityInformationProtectionRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSecurityInformationProtectionRequestBuilderGetRequestConfiguration)(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.InformationProtectionable, error) { @@ -96,6 +98,7 @@ func (m *ItemSecurityInformationProtectionRequestBuilder) LabelPolicySettings()( return NewItemSecurityInformationProtectionLabelPolicySettingsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property informationProtection in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a InformationProtectionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSecurityInformationProtectionRequestBuilder) Patch(ctx context.Context, body i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.InformationProtectionable, requestConfiguration *ItemSecurityInformationProtectionRequestBuilderPatchRequestConfiguration)(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.InformationProtectionable, error) { @@ -121,6 +124,7 @@ func (m *ItemSecurityInformationProtectionRequestBuilder) SensitivityLabels()(*I return NewItemSecurityInformationProtectionSensitivityLabelsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property informationProtection for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSecurityInformationProtectionRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemSecurityInformationProtectionRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -132,6 +136,7 @@ func (m *ItemSecurityInformationProtectionRequestBuilder) ToDeleteRequestInforma return requestInfo, nil } // ToGetRequestInformation get informationProtection from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSecurityInformationProtectionRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSecurityInformationProtectionRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemSecurityInformationProtectionRequestBuilder) ToGetRequestInformatio return requestInfo, nil } // ToPatchRequestInformation update the navigation property informationProtection in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSecurityInformationProtectionRequestBuilder) ToPatchRequestInformation(ctx context.Context, body i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.InformationProtectionable, requestConfiguration *ItemSecurityInformationProtectionRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -161,6 +167,7 @@ func (m *ItemSecurityInformationProtectionRequestBuilder) ToPatchRequestInformat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSecurityInformationProtectionRequestBuilder when successful func (m *ItemSecurityInformationProtectionRequestBuilder) WithUrl(rawUrl string)(*ItemSecurityInformationProtectionRequestBuilder) { return NewItemSecurityInformationProtectionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_security_information_protection_sensitivity_labels_count_request_builder.go b/users/item_security_information_protection_sensitivity_labels_count_request_builder.go index 0c9460b349f..68d43bacb82 100644 --- a/users/item_security_information_protection_sensitivity_labels_count_request_builder.go +++ b/users/item_security_information_protection_sensitivity_labels_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemSecurityInformationProtectionSensitivityLabelsCountRequestBuilder(ra return NewItemSecurityInformationProtectionSensitivityLabelsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSecurityInformationProtectionSensitivityLabelsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSecurityInformationProtectionSensitivityLabelsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemSecurityInformationProtectionSensitivityLabelsCountRequestBuilder) return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSecurityInformationProtectionSensitivityLabelsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSecurityInformationProtectionSensitivityLabelsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemSecurityInformationProtectionSensitivityLabelsCountRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSecurityInformationProtectionSensitivityLabelsCountRequestBuilder when successful func (m *ItemSecurityInformationProtectionSensitivityLabelsCountRequestBuilder) WithUrl(rawUrl string)(*ItemSecurityInformationProtectionSensitivityLabelsCountRequestBuilder) { return NewItemSecurityInformationProtectionSensitivityLabelsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_security_information_protection_sensitivity_labels_item_parent_request_builder.go b/users/item_security_information_protection_sensitivity_labels_item_parent_request_builder.go index f84a8b4b898..c9dd6a51256 100644 --- a/users/item_security_information_protection_sensitivity_labels_item_parent_request_builder.go +++ b/users/item_security_information_protection_sensitivity_labels_item_parent_request_builder.go @@ -55,6 +55,7 @@ func NewItemSecurityInformationProtectionSensitivityLabelsItemParentRequestBuild return NewItemSecurityInformationProtectionSensitivityLabelsItemParentRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property parent for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSecurityInformationProtectionSensitivityLabelsItemParentRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemSecurityInformationProtectionSensitivityLabelsItemParentRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemSecurityInformationProtectionSensitivityLabelsItemParentRequestBuil return nil } // Get the parent label associated with a child label. Null if the label has no parent. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SensitivityLabelable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSecurityInformationProtectionSensitivityLabelsItemParentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSecurityInformationProtectionSensitivityLabelsItemParentRequestBuilderGetRequestConfiguration)(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.SensitivityLabelable, error) { @@ -91,6 +93,7 @@ func (m *ItemSecurityInformationProtectionSensitivityLabelsItemParentRequestBuil return res.(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.SensitivityLabelable), nil } // Patch update the navigation property parent in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SensitivityLabelable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSecurityInformationProtectionSensitivityLabelsItemParentRequestBuilder) Patch(ctx context.Context, body i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.SensitivityLabelable, requestConfiguration *ItemSecurityInformationProtectionSensitivityLabelsItemParentRequestBuilderPatchRequestConfiguration)(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.SensitivityLabelable, error) { @@ -111,6 +114,7 @@ func (m *ItemSecurityInformationProtectionSensitivityLabelsItemParentRequestBuil return res.(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.SensitivityLabelable), nil } // ToDeleteRequestInformation delete navigation property parent for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSecurityInformationProtectionSensitivityLabelsItemParentRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemSecurityInformationProtectionSensitivityLabelsItemParentRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemSecurityInformationProtectionSensitivityLabelsItemParentRequestBuil return requestInfo, nil } // ToGetRequestInformation the parent label associated with a child label. Null if the label has no parent. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSecurityInformationProtectionSensitivityLabelsItemParentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSecurityInformationProtectionSensitivityLabelsItemParentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemSecurityInformationProtectionSensitivityLabelsItemParentRequestBuil return requestInfo, nil } // ToPatchRequestInformation update the navigation property parent in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSecurityInformationProtectionSensitivityLabelsItemParentRequestBuilder) ToPatchRequestInformation(ctx context.Context, body i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.SensitivityLabelable, requestConfiguration *ItemSecurityInformationProtectionSensitivityLabelsItemParentRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemSecurityInformationProtectionSensitivityLabelsItemParentRequestBuil return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSecurityInformationProtectionSensitivityLabelsItemParentRequestBuilder when successful func (m *ItemSecurityInformationProtectionSensitivityLabelsItemParentRequestBuilder) WithUrl(rawUrl string)(*ItemSecurityInformationProtectionSensitivityLabelsItemParentRequestBuilder) { return NewItemSecurityInformationProtectionSensitivityLabelsItemParentRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_security_information_protection_sensitivity_labels_request_builder.go b/users/item_security_information_protection_sensitivity_labels_request_builder.go index b8897d9844b..f1b8f2d2727 100644 --- a/users/item_security_information_protection_sensitivity_labels_request_builder.go +++ b/users/item_security_information_protection_sensitivity_labels_request_builder.go @@ -47,6 +47,7 @@ type ItemSecurityInformationProtectionSensitivityLabelsRequestBuilderPostRequest Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // BySensitivityLabelId provides operations to manage the sensitivityLabels property of the microsoft.graph.security.informationProtection entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSecurityInformationProtectionSensitivityLabelsSensitivityLabelItemRequestBuilder when successful func (m *ItemSecurityInformationProtectionSensitivityLabelsRequestBuilder) BySensitivityLabelId(sensitivityLabelId string)(*ItemSecurityInformationProtectionSensitivityLabelsSensitivityLabelItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemSecurityInformationProtectionSensitivityLabelsRequestBuilder) Count return NewItemSecurityInformationProtectionSensitivityLabelsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get a list of sensitivityLabel objects associated with a user or organization. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SensitivityLabelCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -120,6 +122,7 @@ func (m *ItemSecurityInformationProtectionSensitivityLabelsRequestBuilder) Micro return NewItemSecurityInformationProtectionSensitivityLabelsMicrosoftGraphSecurityExtractContentLabelRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Post create new navigation property to sensitivityLabels for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SensitivityLabelable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSecurityInformationProtectionSensitivityLabelsRequestBuilder) Post(ctx context.Context, body i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.SensitivityLabelable, requestConfiguration *ItemSecurityInformationProtectionSensitivityLabelsRequestBuilderPostRequestConfiguration)(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.SensitivityLabelable, error) { @@ -140,6 +143,7 @@ func (m *ItemSecurityInformationProtectionSensitivityLabelsRequestBuilder) Post( return res.(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.SensitivityLabelable), nil } // ToGetRequestInformation get a list of sensitivityLabel objects associated with a user or organization. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSecurityInformationProtectionSensitivityLabelsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSecurityInformationProtectionSensitivityLabelsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -154,6 +158,7 @@ func (m *ItemSecurityInformationProtectionSensitivityLabelsRequestBuilder) ToGet return requestInfo, nil } // ToPostRequestInformation create new navigation property to sensitivityLabels for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSecurityInformationProtectionSensitivityLabelsRequestBuilder) ToPostRequestInformation(ctx context.Context, body i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.SensitivityLabelable, requestConfiguration *ItemSecurityInformationProtectionSensitivityLabelsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -169,6 +174,7 @@ func (m *ItemSecurityInformationProtectionSensitivityLabelsRequestBuilder) ToPos return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSecurityInformationProtectionSensitivityLabelsRequestBuilder when successful func (m *ItemSecurityInformationProtectionSensitivityLabelsRequestBuilder) WithUrl(rawUrl string)(*ItemSecurityInformationProtectionSensitivityLabelsRequestBuilder) { return NewItemSecurityInformationProtectionSensitivityLabelsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_security_information_protection_sensitivity_labels_sensitivity_label_item_request_builder.go b/users/item_security_information_protection_sensitivity_labels_sensitivity_label_item_request_builder.go index a448d0b3f3a..131483e230e 100644 --- a/users/item_security_information_protection_sensitivity_labels_sensitivity_label_item_request_builder.go +++ b/users/item_security_information_protection_sensitivity_labels_sensitivity_label_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemSecurityInformationProtectionSensitivityLabelsSensitivityLabelItemRe return NewItemSecurityInformationProtectionSensitivityLabelsSensitivityLabelItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property sensitivityLabels for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSecurityInformationProtectionSensitivityLabelsSensitivityLabelItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemSecurityInformationProtectionSensitivityLabelsSensitivityLabelItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemSecurityInformationProtectionSensitivityLabelsSensitivityLabelItemR return nil } // Get read the Microsoft Purview Information Protection labels for the user or organization. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SensitivityLabelable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSecurityInformationProtectionSensitivityLabelsSensitivityLabelItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSecurityInformationProtectionSensitivityLabelsSensitivityLabelItemRequestBuilderGetRequestConfiguration)(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.SensitivityLabelable, error) { @@ -96,6 +98,7 @@ func (m *ItemSecurityInformationProtectionSensitivityLabelsSensitivityLabelItemR return NewItemSecurityInformationProtectionSensitivityLabelsItemParentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property sensitivityLabels in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a SensitivityLabelable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSecurityInformationProtectionSensitivityLabelsSensitivityLabelItemRequestBuilder) Patch(ctx context.Context, body i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.SensitivityLabelable, requestConfiguration *ItemSecurityInformationProtectionSensitivityLabelsSensitivityLabelItemRequestBuilderPatchRequestConfiguration)(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.SensitivityLabelable, error) { @@ -116,6 +119,7 @@ func (m *ItemSecurityInformationProtectionSensitivityLabelsSensitivityLabelItemR return res.(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.SensitivityLabelable), nil } // ToDeleteRequestInformation delete navigation property sensitivityLabels for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSecurityInformationProtectionSensitivityLabelsSensitivityLabelItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemSecurityInformationProtectionSensitivityLabelsSensitivityLabelItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -127,6 +131,7 @@ func (m *ItemSecurityInformationProtectionSensitivityLabelsSensitivityLabelItemR return requestInfo, nil } // ToGetRequestInformation read the Microsoft Purview Information Protection labels for the user or organization. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSecurityInformationProtectionSensitivityLabelsSensitivityLabelItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSecurityInformationProtectionSensitivityLabelsSensitivityLabelItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,6 +146,7 @@ func (m *ItemSecurityInformationProtectionSensitivityLabelsSensitivityLabelItemR return requestInfo, nil } // ToPatchRequestInformation update the navigation property sensitivityLabels in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSecurityInformationProtectionSensitivityLabelsSensitivityLabelItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.SensitivityLabelable, requestConfiguration *ItemSecurityInformationProtectionSensitivityLabelsSensitivityLabelItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +162,7 @@ func (m *ItemSecurityInformationProtectionSensitivityLabelsSensitivityLabelItemR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSecurityInformationProtectionSensitivityLabelsSensitivityLabelItemRequestBuilder when successful func (m *ItemSecurityInformationProtectionSensitivityLabelsSensitivityLabelItemRequestBuilder) WithUrl(rawUrl string)(*ItemSecurityInformationProtectionSensitivityLabelsSensitivityLabelItemRequestBuilder) { return NewItemSecurityInformationProtectionSensitivityLabelsSensitivityLabelItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_security_request_builder.go b/users/item_security_request_builder.go index e760db6c67a..a0500ec9bfb 100644 --- a/users/item_security_request_builder.go +++ b/users/item_security_request_builder.go @@ -55,6 +55,7 @@ func NewItemSecurityRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee2 return NewItemSecurityRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property security for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSecurityRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemSecurityRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemSecurityRequestBuilder) Delete(ctx context.Context, requestConfigur return nil } // Get get security from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Securityable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSecurityRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSecurityRequestBuilderGetRequestConfiguration)(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.Securityable, error) { @@ -96,6 +98,7 @@ func (m *ItemSecurityRequestBuilder) InformationProtection()(*ItemSecurityInform return NewItemSecurityInformationProtectionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property security in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Securityable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSecurityRequestBuilder) Patch(ctx context.Context, body i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.Securityable, requestConfiguration *ItemSecurityRequestBuilderPatchRequestConfiguration)(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.Securityable, error) { @@ -116,6 +119,7 @@ func (m *ItemSecurityRequestBuilder) Patch(ctx context.Context, body i084fa7ab3b return res.(i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.Securityable), nil } // ToDeleteRequestInformation delete navigation property security for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSecurityRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemSecurityRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -127,6 +131,7 @@ func (m *ItemSecurityRequestBuilder) ToDeleteRequestInformation(ctx context.Cont return requestInfo, nil } // ToGetRequestInformation get security from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSecurityRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSecurityRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,6 +146,7 @@ func (m *ItemSecurityRequestBuilder) ToGetRequestInformation(ctx context.Context return requestInfo, nil } // ToPatchRequestInformation update the navigation property security in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSecurityRequestBuilder) ToPatchRequestInformation(ctx context.Context, body i084fa7ab3bba802bf5cc3b408e230cc64c167a57976e0d42c37e17154afd5b78.Securityable, requestConfiguration *ItemSecurityRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +162,7 @@ func (m *ItemSecurityRequestBuilder) ToPatchRequestInformation(ctx context.Conte return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSecurityRequestBuilder when successful func (m *ItemSecurityRequestBuilder) WithUrl(rawUrl string)(*ItemSecurityRequestBuilder) { return NewItemSecurityRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_send_mail_request_builder.go b/users/item_send_mail_request_builder.go index 637c18d46fa..b46158dd8e7 100644 --- a/users/item_send_mail_request_builder.go +++ b/users/item_send_mail_request_builder.go @@ -31,6 +31,7 @@ func NewItemSendMailRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee2 return NewItemSendMailRequestBuilderInternal(urlParams, requestAdapter) } // Post send the message specified in the request body using either JSON or MIME format. When using JSON format, you can include an attachment and use a mention to call out another user in the new message. When using MIME format: This method saves the message in the Sent Items folder. Alternatively, create a draft message to send later. To learn more about the steps involved in the backend before a mail is delivered to recipients, see here. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemSendMailRequestBuilder) Post(ctx context.Context, body ItemSendMail return nil } // ToPostRequestInformation send the message specified in the request body using either JSON or MIME format. When using JSON format, you can include an attachment and use a mention to call out another user in the new message. When using MIME format: This method saves the message in the Sent Items folder. Alternatively, create a draft message to send later. To learn more about the steps involved in the backend before a mail is delivered to recipients, see here. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSendMailRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemSendMailPostRequestBodyable, requestConfiguration *ItemSendMailRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemSendMailRequestBuilder) ToPostRequestInformation(ctx context.Contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSendMailRequestBuilder when successful func (m *ItemSendMailRequestBuilder) WithUrl(rawUrl string)(*ItemSendMailRequestBuilder) { return NewItemSendMailRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_service_provisioning_errors_count_request_builder.go b/users/item_service_provisioning_errors_count_request_builder.go index abe19ede67d..bc4995f65ec 100644 --- a/users/item_service_provisioning_errors_count_request_builder.go +++ b/users/item_service_provisioning_errors_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemServiceProvisioningErrorsCountRequestBuilder(rawUrl string, requestA return NewItemServiceProvisioningErrorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemServiceProvisioningErrorsCountRequestBuilder) Get(ctx context.Conte return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemServiceProvisioningErrorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemServiceProvisioningErrorsCountRequestBuilder) ToGetRequestInformati return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemServiceProvisioningErrorsCountRequestBuilder when successful func (m *ItemServiceProvisioningErrorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemServiceProvisioningErrorsCountRequestBuilder) { return NewItemServiceProvisioningErrorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_service_provisioning_errors_request_builder.go b/users/item_service_provisioning_errors_request_builder.go index e232a387fdb..73a04b0682f 100644 --- a/users/item_service_provisioning_errors_request_builder.go +++ b/users/item_service_provisioning_errors_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemServiceProvisioningErrorsRequestBuilder) Count()(*ItemServiceProvis return NewItemServiceProvisioningErrorsCountRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ServiceProvisioningErrorCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemServiceProvisioningErrorsRequestBuilder) Get(ctx context.Context, r return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceProvisioningErrorCollectionResponseable), nil } // ToGetRequestInformation errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemServiceProvisioningErrorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemServiceProvisioningErrorsRequestBuilder) ToGetRequestInformation(ct return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemServiceProvisioningErrorsRequestBuilder when successful func (m *ItemServiceProvisioningErrorsRequestBuilder) WithUrl(rawUrl string)(*ItemServiceProvisioningErrorsRequestBuilder) { return NewItemServiceProvisioningErrorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_settings_contact_merge_suggestions_request_builder.go b/users/item_settings_contact_merge_suggestions_request_builder.go index 1a6c215a224..97d2a36743b 100644 --- a/users/item_settings_contact_merge_suggestions_request_builder.go +++ b/users/item_settings_contact_merge_suggestions_request_builder.go @@ -55,6 +55,7 @@ func NewItemSettingsContactMergeSuggestionsRequestBuilder(rawUrl string, request return NewItemSettingsContactMergeSuggestionsRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property contactMergeSuggestions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSettingsContactMergeSuggestionsRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemSettingsContactMergeSuggestionsRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemSettingsContactMergeSuggestionsRequestBuilder) Delete(ctx context.C return nil } // Get the user's settings for the visibility of merge suggestion for the duplicate contacts in the user's contact list. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ContactMergeSuggestionsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSettingsContactMergeSuggestionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSettingsContactMergeSuggestionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContactMergeSuggestionsable, error) { @@ -91,6 +93,7 @@ func (m *ItemSettingsContactMergeSuggestionsRequestBuilder) Get(ctx context.Cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContactMergeSuggestionsable), nil } // Patch update the navigation property contactMergeSuggestions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ContactMergeSuggestionsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSettingsContactMergeSuggestionsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContactMergeSuggestionsable, requestConfiguration *ItemSettingsContactMergeSuggestionsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContactMergeSuggestionsable, error) { @@ -111,6 +114,7 @@ func (m *ItemSettingsContactMergeSuggestionsRequestBuilder) Patch(ctx context.Co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContactMergeSuggestionsable), nil } // ToDeleteRequestInformation delete navigation property contactMergeSuggestions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSettingsContactMergeSuggestionsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemSettingsContactMergeSuggestionsRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemSettingsContactMergeSuggestionsRequestBuilder) ToDeleteRequestInfor return requestInfo, nil } // ToGetRequestInformation the user's settings for the visibility of merge suggestion for the duplicate contacts in the user's contact list. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSettingsContactMergeSuggestionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSettingsContactMergeSuggestionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemSettingsContactMergeSuggestionsRequestBuilder) ToGetRequestInformat return requestInfo, nil } // ToPatchRequestInformation update the navigation property contactMergeSuggestions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSettingsContactMergeSuggestionsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ContactMergeSuggestionsable, requestConfiguration *ItemSettingsContactMergeSuggestionsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemSettingsContactMergeSuggestionsRequestBuilder) ToPatchRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSettingsContactMergeSuggestionsRequestBuilder when successful func (m *ItemSettingsContactMergeSuggestionsRequestBuilder) WithUrl(rawUrl string)(*ItemSettingsContactMergeSuggestionsRequestBuilder) { return NewItemSettingsContactMergeSuggestionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_settings_item_insights_request_builder.go b/users/item_settings_item_insights_request_builder.go index 0af32450757..56414e559ab 100644 --- a/users/item_settings_item_insights_request_builder.go +++ b/users/item_settings_item_insights_request_builder.go @@ -55,6 +55,7 @@ func NewItemSettingsItemInsightsRequestBuilder(rawUrl string, requestAdapter i2a return NewItemSettingsItemInsightsRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property itemInsights for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // 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); @@ -71,6 +72,7 @@ func (m *ItemSettingsItemInsightsRequestBuilder) Delete(ctx context.Context, req return nil } // Get the user's settings for the visibility of meeting hour insights, and insights derived between a user and other items in Microsoft 365, such as documents or sites. Get userInsightsSettings through this navigation property. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // 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)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserInsightsSettingsable, error) { @@ -91,6 +93,7 @@ func (m *ItemSettingsItemInsightsRequestBuilder) Get(ctx context.Context, reques return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserInsightsSettingsable), nil } // Patch update the privacy settings for itemInsights and meeting hours insights of a user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserInsightsSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -114,6 +117,7 @@ func (m *ItemSettingsItemInsightsRequestBuilder) Patch(ctx context.Context, body return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserInsightsSettingsable), nil } // ToDeleteRequestInformation delete navigation property itemInsights for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // 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) @@ -125,6 +129,7 @@ func (m *ItemSettingsItemInsightsRequestBuilder) ToDeleteRequestInformation(ctx return requestInfo, nil } // ToGetRequestInformation the user's settings for the visibility of meeting hour insights, and insights derived between a user and other items in Microsoft 365, such as documents or sites. Get userInsightsSettings through this navigation property. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // 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) @@ -139,6 +144,7 @@ func (m *ItemSettingsItemInsightsRequestBuilder) ToGetRequestInformation(ctx con return requestInfo, nil } // ToPatchRequestInformation update the privacy settings for itemInsights and meeting hours insights of a user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSettingsItemInsightsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserInsightsSettingsable, requestConfiguration *ItemSettingsItemInsightsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -154,6 +160,7 @@ func (m *ItemSettingsItemInsightsRequestBuilder) ToPatchRequestInformation(ctx c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSettingsItemInsightsRequestBuilder when successful func (m *ItemSettingsItemInsightsRequestBuilder) WithUrl(rawUrl string)(*ItemSettingsItemInsightsRequestBuilder) { return NewItemSettingsItemInsightsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_settings_regional_and_language_settings_request_builder.go b/users/item_settings_regional_and_language_settings_request_builder.go index ddec465d37a..2d0121640e6 100644 --- a/users/item_settings_regional_and_language_settings_request_builder.go +++ b/users/item_settings_regional_and_language_settings_request_builder.go @@ -55,6 +55,7 @@ func NewItemSettingsRegionalAndLanguageSettingsRequestBuilder(rawUrl string, req return NewItemSettingsRegionalAndLanguageSettingsRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property regionalAndLanguageSettings for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSettingsRegionalAndLanguageSettingsRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemSettingsRegionalAndLanguageSettingsRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemSettingsRegionalAndLanguageSettingsRequestBuilder) Delete(ctx conte return nil } // Get the user's preferences for languages, regional locale and date/time formatting. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a RegionalAndLanguageSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSettingsRegionalAndLanguageSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSettingsRegionalAndLanguageSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RegionalAndLanguageSettingsable, error) { @@ -91,6 +93,7 @@ func (m *ItemSettingsRegionalAndLanguageSettingsRequestBuilder) Get(ctx context. return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RegionalAndLanguageSettingsable), nil } // Patch update the navigation property regionalAndLanguageSettings in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a RegionalAndLanguageSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSettingsRegionalAndLanguageSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RegionalAndLanguageSettingsable, requestConfiguration *ItemSettingsRegionalAndLanguageSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RegionalAndLanguageSettingsable, error) { @@ -111,6 +114,7 @@ func (m *ItemSettingsRegionalAndLanguageSettingsRequestBuilder) Patch(ctx contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RegionalAndLanguageSettingsable), nil } // ToDeleteRequestInformation delete navigation property regionalAndLanguageSettings for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSettingsRegionalAndLanguageSettingsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemSettingsRegionalAndLanguageSettingsRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemSettingsRegionalAndLanguageSettingsRequestBuilder) ToDeleteRequestI return requestInfo, nil } // ToGetRequestInformation the user's preferences for languages, regional locale and date/time formatting. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSettingsRegionalAndLanguageSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSettingsRegionalAndLanguageSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemSettingsRegionalAndLanguageSettingsRequestBuilder) ToGetRequestInfo return requestInfo, nil } // ToPatchRequestInformation update the navigation property regionalAndLanguageSettings in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSettingsRegionalAndLanguageSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.RegionalAndLanguageSettingsable, requestConfiguration *ItemSettingsRegionalAndLanguageSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemSettingsRegionalAndLanguageSettingsRequestBuilder) ToPatchRequestIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSettingsRegionalAndLanguageSettingsRequestBuilder when successful func (m *ItemSettingsRegionalAndLanguageSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemSettingsRegionalAndLanguageSettingsRequestBuilder) { return NewItemSettingsRegionalAndLanguageSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_settings_request_builder.go b/users/item_settings_request_builder.go index 98f48d42b68..1b691890424 100644 --- a/users/item_settings_request_builder.go +++ b/users/item_settings_request_builder.go @@ -60,6 +60,7 @@ func (m *ItemSettingsRequestBuilder) ContactMergeSuggestions()(*ItemSettingsCont return NewItemSettingsContactMergeSuggestionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Delete delete navigation property settings for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSettingsRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemSettingsRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -76,6 +77,7 @@ func (m *ItemSettingsRequestBuilder) Delete(ctx context.Context, requestConfigur return nil } // Get get settings from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserSettingsable, error) { @@ -101,6 +103,7 @@ func (m *ItemSettingsRequestBuilder) ItemInsights()(*ItemSettingsItemInsightsReq return NewItemSettingsItemInsightsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property settings in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserSettingsable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserSettingsable, requestConfiguration *ItemSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserSettingsable, error) { @@ -136,6 +139,7 @@ func (m *ItemSettingsRequestBuilder) Storage()(*ItemSettingsStorageRequestBuilde return NewItemSettingsStorageRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property settings for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSettingsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemSettingsRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -147,6 +151,7 @@ func (m *ItemSettingsRequestBuilder) ToDeleteRequestInformation(ctx context.Cont return requestInfo, nil } // ToGetRequestInformation get settings from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -161,6 +166,7 @@ func (m *ItemSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context return requestInfo, nil } // ToPatchRequestInformation update the navigation property settings in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserSettingsable, requestConfiguration *ItemSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -181,6 +187,7 @@ func (m *ItemSettingsRequestBuilder) Windows()(*ItemSettingsWindowsRequestBuilde return NewItemSettingsWindowsRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSettingsRequestBuilder when successful func (m *ItemSettingsRequestBuilder) WithUrl(rawUrl string)(*ItemSettingsRequestBuilder) { return NewItemSettingsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_settings_shift_preferences_request_builder.go b/users/item_settings_shift_preferences_request_builder.go index b13d8663d84..d6708539cf1 100644 --- a/users/item_settings_shift_preferences_request_builder.go +++ b/users/item_settings_shift_preferences_request_builder.go @@ -55,6 +55,7 @@ func NewItemSettingsShiftPreferencesRequestBuilder(rawUrl string, requestAdapter return NewItemSettingsShiftPreferencesRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property shiftPreferences for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSettingsShiftPreferencesRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemSettingsShiftPreferencesRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemSettingsShiftPreferencesRequestBuilder) Delete(ctx context.Context, return nil } // Get retrieve the properties and relationships of a shiftPreferences object by ID. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ShiftPreferencesable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -94,6 +96,7 @@ func (m *ItemSettingsShiftPreferencesRequestBuilder) Get(ctx context.Context, re return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ShiftPreferencesable), nil } // Patch update the properties and relationships of a shiftPreferences object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ShiftPreferencesable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -117,6 +120,7 @@ func (m *ItemSettingsShiftPreferencesRequestBuilder) Patch(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ShiftPreferencesable), nil } // ToDeleteRequestInformation delete navigation property shiftPreferences for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSettingsShiftPreferencesRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemSettingsShiftPreferencesRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -128,6 +132,7 @@ func (m *ItemSettingsShiftPreferencesRequestBuilder) ToDeleteRequestInformation( return requestInfo, nil } // ToGetRequestInformation retrieve the properties and relationships of a shiftPreferences object by ID. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSettingsShiftPreferencesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSettingsShiftPreferencesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -142,6 +147,7 @@ func (m *ItemSettingsShiftPreferencesRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // ToPatchRequestInformation update the properties and relationships of a shiftPreferences object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSettingsShiftPreferencesRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ShiftPreferencesable, requestConfiguration *ItemSettingsShiftPreferencesRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -157,6 +163,7 @@ func (m *ItemSettingsShiftPreferencesRequestBuilder) ToPatchRequestInformation(c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSettingsShiftPreferencesRequestBuilder when successful func (m *ItemSettingsShiftPreferencesRequestBuilder) WithUrl(rawUrl string)(*ItemSettingsShiftPreferencesRequestBuilder) { return NewItemSettingsShiftPreferencesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_settings_storage_quota_request_builder.go b/users/item_settings_storage_quota_request_builder.go index 623a2fe9695..febbcbe7daf 100644 --- a/users/item_settings_storage_quota_request_builder.go +++ b/users/item_settings_storage_quota_request_builder.go @@ -55,6 +55,7 @@ func NewItemSettingsStorageQuotaRequestBuilder(rawUrl string, requestAdapter i2a return NewItemSettingsStorageQuotaRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property quota for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // 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); @@ -71,6 +72,7 @@ func (m *ItemSettingsStorageQuotaRequestBuilder) Delete(ctx context.Context, req return nil } // Get read the properties and relationships of a unifiedStorageQuota object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UnifiedStorageQuotaable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -94,6 +96,7 @@ func (m *ItemSettingsStorageQuotaRequestBuilder) Get(ctx context.Context, reques return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedStorageQuotaable), nil } // Patch update the navigation property quota in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // 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 ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedStorageQuotaable, requestConfiguration *ItemSettingsStorageQuotaRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedStorageQuotaable, error) { @@ -119,6 +122,7 @@ func (m *ItemSettingsStorageQuotaRequestBuilder) Services()(*ItemSettingsStorage return NewItemSettingsStorageQuotaServicesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property quota for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // 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) @@ -130,6 +134,7 @@ func (m *ItemSettingsStorageQuotaRequestBuilder) ToDeleteRequestInformation(ctx return requestInfo, nil } // ToGetRequestInformation read the properties and relationships of a unifiedStorageQuota object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // 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) @@ -144,6 +149,7 @@ func (m *ItemSettingsStorageQuotaRequestBuilder) ToGetRequestInformation(ctx con return requestInfo, nil } // ToPatchRequestInformation update the navigation property quota in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSettingsStorageQuotaRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UnifiedStorageQuotaable, requestConfiguration *ItemSettingsStorageQuotaRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -159,6 +165,7 @@ func (m *ItemSettingsStorageQuotaRequestBuilder) ToPatchRequestInformation(ctx c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // 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 index bf06cb221a7..a48b4329a76 100644 --- a/users/item_settings_storage_quota_services_count_request_builder.go +++ b/users/item_settings_storage_quota_services_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemSettingsStorageQuotaServicesCountRequestBuilder(rawUrl string, reque return NewItemSettingsStorageQuotaServicesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // 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) { @@ -60,6 +61,7 @@ func (m *ItemSettingsStorageQuotaServicesCountRequestBuilder) Get(ctx context.Co return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // 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) @@ -74,6 +76,7 @@ func (m *ItemSettingsStorageQuotaServicesCountRequestBuilder) ToGetRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // 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 index 3d464ef17f0..f57cfe16ef0 100644 --- a/users/item_settings_storage_quota_services_request_builder.go +++ b/users/item_settings_storage_quota_services_request_builder.go @@ -47,6 +47,7 @@ type ItemSettingsStorageQuotaServicesRequestBuilderPostRequestConfiguration stru Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByServiceStorageQuotaBreakdownId provides operations to manage the services property of the microsoft.graph.unifiedStorageQuota entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilder when successful func (m *ItemSettingsStorageQuotaServicesRequestBuilder) ByServiceStorageQuotaBreakdownId(serviceStorageQuotaBreakdownId string)(*ItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemSettingsStorageQuotaServicesRequestBuilder) Count()(*ItemSettingsSt return NewItemSettingsStorageQuotaServicesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the breakdown of services contributing to the user's quota usage. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // 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)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceStorageQuotaBreakdownCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemSettingsStorageQuotaServicesRequestBuilder) Get(ctx context.Context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceStorageQuotaBreakdownCollectionResponseable), nil } // Post create new navigation property to services for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // 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 ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceStorageQuotaBreakdownable, requestConfiguration *ItemSettingsStorageQuotaServicesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceStorageQuotaBreakdownable, error) { @@ -117,6 +120,7 @@ func (m *ItemSettingsStorageQuotaServicesRequestBuilder) Post(ctx context.Contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceStorageQuotaBreakdownable), nil } // ToGetRequestInformation the breakdown of services contributing to the user's quota usage. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // 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) @@ -131,6 +135,7 @@ func (m *ItemSettingsStorageQuotaServicesRequestBuilder) ToGetRequestInformation return requestInfo, nil } // ToPostRequestInformation create new navigation property to services for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSettingsStorageQuotaServicesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceStorageQuotaBreakdownable, requestConfiguration *ItemSettingsStorageQuotaServicesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemSettingsStorageQuotaServicesRequestBuilder) ToPostRequestInformatio return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // 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 index 74f1560a768..245c4bcc320 100644 --- 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 @@ -55,6 +55,7 @@ func NewItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestB return NewItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property services for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // 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); @@ -71,6 +72,7 @@ func (m *ItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequest return nil } // Get the breakdown of services contributing to the user's quota usage. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // 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)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceStorageQuotaBreakdownable, error) { @@ -91,6 +93,7 @@ func (m *ItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequest return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceStorageQuotaBreakdownable), nil } // Patch update the navigation property services in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // 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 ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceStorageQuotaBreakdownable, requestConfiguration *ItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceStorageQuotaBreakdownable, error) { @@ -111,6 +114,7 @@ func (m *ItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequest return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceStorageQuotaBreakdownable), nil } // ToDeleteRequestInformation delete navigation property services for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // 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) @@ -122,6 +126,7 @@ func (m *ItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequest return requestInfo, nil } // ToGetRequestInformation the breakdown of services contributing to the user's quota usage. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // 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) @@ -136,6 +141,7 @@ func (m *ItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequest return requestInfo, nil } // ToPatchRequestInformation update the navigation property services in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ServiceStorageQuotaBreakdownable, requestConfiguration *ItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemSettingsStorageQuotaServicesServiceStorageQuotaBreakdownItemRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // 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 index 16b3957b05d..addadcf1455 100644 --- a/users/item_settings_storage_request_builder.go +++ b/users/item_settings_storage_request_builder.go @@ -55,6 +55,7 @@ func NewItemSettingsStorageRequestBuilder(rawUrl string, requestAdapter i2ae4187 return NewItemSettingsStorageRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property storage for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // 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); @@ -71,6 +72,7 @@ func (m *ItemSettingsStorageRequestBuilder) Delete(ctx context.Context, requestC return nil } // Get get storage from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // 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)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserStorageable, error) { @@ -91,6 +93,7 @@ func (m *ItemSettingsStorageRequestBuilder) Get(ctx context.Context, requestConf return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserStorageable), nil } // Patch update the navigation property storage in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // 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 ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserStorageable, requestConfiguration *ItemSettingsStorageRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserStorageable, error) { @@ -116,6 +119,7 @@ func (m *ItemSettingsStorageRequestBuilder) Quota()(*ItemSettingsStorageQuotaReq return NewItemSettingsStorageQuotaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property storage for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // 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) @@ -127,6 +131,7 @@ func (m *ItemSettingsStorageRequestBuilder) ToDeleteRequestInformation(ctx conte return requestInfo, nil } // ToGetRequestInformation get storage from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // 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) @@ -141,6 +146,7 @@ func (m *ItemSettingsStorageRequestBuilder) ToGetRequestInformation(ctx context. return requestInfo, nil } // ToPatchRequestInformation update the navigation property storage in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSettingsStorageRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserStorageable, requestConfiguration *ItemSettingsStorageRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +162,7 @@ func (m *ItemSettingsStorageRequestBuilder) ToPatchRequestInformation(ctx contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSettingsStorageRequestBuilder when successful func (m *ItemSettingsStorageRequestBuilder) WithUrl(rawUrl string)(*ItemSettingsStorageRequestBuilder) { return NewItemSettingsStorageRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_settings_windows_count_request_builder.go b/users/item_settings_windows_count_request_builder.go index 1a9c29aebac..84800cb5e04 100644 --- a/users/item_settings_windows_count_request_builder.go +++ b/users/item_settings_windows_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemSettingsWindowsCountRequestBuilder(rawUrl string, requestAdapter i2a return NewItemSettingsWindowsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSettingsWindowsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSettingsWindowsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemSettingsWindowsCountRequestBuilder) Get(ctx context.Context, reques return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSettingsWindowsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSettingsWindowsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemSettingsWindowsCountRequestBuilder) ToGetRequestInformation(ctx con return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSettingsWindowsCountRequestBuilder when successful func (m *ItemSettingsWindowsCountRequestBuilder) WithUrl(rawUrl string)(*ItemSettingsWindowsCountRequestBuilder) { return NewItemSettingsWindowsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_settings_windows_item_instances_count_request_builder.go b/users/item_settings_windows_item_instances_count_request_builder.go index 09486f2b712..ef0788f02aa 100644 --- a/users/item_settings_windows_item_instances_count_request_builder.go +++ b/users/item_settings_windows_item_instances_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemSettingsWindowsItemInstancesCountRequestBuilder(rawUrl string, reque return NewItemSettingsWindowsItemInstancesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSettingsWindowsItemInstancesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSettingsWindowsItemInstancesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemSettingsWindowsItemInstancesCountRequestBuilder) Get(ctx context.Co return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSettingsWindowsItemInstancesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSettingsWindowsItemInstancesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemSettingsWindowsItemInstancesCountRequestBuilder) ToGetRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSettingsWindowsItemInstancesCountRequestBuilder when successful func (m *ItemSettingsWindowsItemInstancesCountRequestBuilder) WithUrl(rawUrl string)(*ItemSettingsWindowsItemInstancesCountRequestBuilder) { return NewItemSettingsWindowsItemInstancesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_settings_windows_item_instances_request_builder.go b/users/item_settings_windows_item_instances_request_builder.go index 68bbf8589a8..3b23aadcfc0 100644 --- a/users/item_settings_windows_item_instances_request_builder.go +++ b/users/item_settings_windows_item_instances_request_builder.go @@ -47,6 +47,7 @@ type ItemSettingsWindowsItemInstancesRequestBuilderPostRequestConfiguration stru Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByWindowsSettingInstanceId provides operations to manage the instances property of the microsoft.graph.windowsSetting entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSettingsWindowsItemInstancesWindowsSettingInstanceItemRequestBuilder when successful func (m *ItemSettingsWindowsItemInstancesRequestBuilder) ByWindowsSettingInstanceId(windowsSettingInstanceId string)(*ItemSettingsWindowsItemInstancesWindowsSettingInstanceItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemSettingsWindowsItemInstancesRequestBuilder) Count()(*ItemSettingsWi return NewItemSettingsWindowsItemInstancesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get a collection of setting values for a given windowsSetting. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a WindowsSettingInstanceCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSettingsWindowsItemInstancesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSettingsWindowsItemInstancesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsSettingInstanceCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemSettingsWindowsItemInstancesRequestBuilder) Get(ctx context.Context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsSettingInstanceCollectionResponseable), nil } // Post create new navigation property to instances for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a WindowsSettingInstanceable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSettingsWindowsItemInstancesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsSettingInstanceable, requestConfiguration *ItemSettingsWindowsItemInstancesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsSettingInstanceable, error) { @@ -117,6 +120,7 @@ func (m *ItemSettingsWindowsItemInstancesRequestBuilder) Post(ctx context.Contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsSettingInstanceable), nil } // ToGetRequestInformation a collection of setting values for a given windowsSetting. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSettingsWindowsItemInstancesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSettingsWindowsItemInstancesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemSettingsWindowsItemInstancesRequestBuilder) ToGetRequestInformation return requestInfo, nil } // ToPostRequestInformation create new navigation property to instances for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSettingsWindowsItemInstancesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsSettingInstanceable, requestConfiguration *ItemSettingsWindowsItemInstancesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemSettingsWindowsItemInstancesRequestBuilder) ToPostRequestInformatio return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSettingsWindowsItemInstancesRequestBuilder when successful func (m *ItemSettingsWindowsItemInstancesRequestBuilder) WithUrl(rawUrl string)(*ItemSettingsWindowsItemInstancesRequestBuilder) { return NewItemSettingsWindowsItemInstancesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_settings_windows_item_instances_windows_setting_instance_item_request_builder.go b/users/item_settings_windows_item_instances_windows_setting_instance_item_request_builder.go index d0677ed9a16..fd29cf9f379 100644 --- a/users/item_settings_windows_item_instances_windows_setting_instance_item_request_builder.go +++ b/users/item_settings_windows_item_instances_windows_setting_instance_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemSettingsWindowsItemInstancesWindowsSettingInstanceItemRequestBuilder return NewItemSettingsWindowsItemInstancesWindowsSettingInstanceItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property instances for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSettingsWindowsItemInstancesWindowsSettingInstanceItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemSettingsWindowsItemInstancesWindowsSettingInstanceItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemSettingsWindowsItemInstancesWindowsSettingInstanceItemRequestBuilde return nil } // Get a collection of setting values for a given windowsSetting. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a WindowsSettingInstanceable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSettingsWindowsItemInstancesWindowsSettingInstanceItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSettingsWindowsItemInstancesWindowsSettingInstanceItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsSettingInstanceable, error) { @@ -91,6 +93,7 @@ func (m *ItemSettingsWindowsItemInstancesWindowsSettingInstanceItemRequestBuilde return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsSettingInstanceable), nil } // Patch update the navigation property instances in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a WindowsSettingInstanceable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSettingsWindowsItemInstancesWindowsSettingInstanceItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsSettingInstanceable, requestConfiguration *ItemSettingsWindowsItemInstancesWindowsSettingInstanceItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsSettingInstanceable, error) { @@ -111,6 +114,7 @@ func (m *ItemSettingsWindowsItemInstancesWindowsSettingInstanceItemRequestBuilde return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsSettingInstanceable), nil } // ToDeleteRequestInformation delete navigation property instances for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSettingsWindowsItemInstancesWindowsSettingInstanceItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemSettingsWindowsItemInstancesWindowsSettingInstanceItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemSettingsWindowsItemInstancesWindowsSettingInstanceItemRequestBuilde return requestInfo, nil } // ToGetRequestInformation a collection of setting values for a given windowsSetting. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSettingsWindowsItemInstancesWindowsSettingInstanceItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSettingsWindowsItemInstancesWindowsSettingInstanceItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemSettingsWindowsItemInstancesWindowsSettingInstanceItemRequestBuilde return requestInfo, nil } // ToPatchRequestInformation update the navigation property instances in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSettingsWindowsItemInstancesWindowsSettingInstanceItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsSettingInstanceable, requestConfiguration *ItemSettingsWindowsItemInstancesWindowsSettingInstanceItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemSettingsWindowsItemInstancesWindowsSettingInstanceItemRequestBuilde return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSettingsWindowsItemInstancesWindowsSettingInstanceItemRequestBuilder when successful func (m *ItemSettingsWindowsItemInstancesWindowsSettingInstanceItemRequestBuilder) WithUrl(rawUrl string)(*ItemSettingsWindowsItemInstancesWindowsSettingInstanceItemRequestBuilder) { return NewItemSettingsWindowsItemInstancesWindowsSettingInstanceItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_settings_windows_request_builder.go b/users/item_settings_windows_request_builder.go index e5c6e92c686..451efe25401 100644 --- a/users/item_settings_windows_request_builder.go +++ b/users/item_settings_windows_request_builder.go @@ -47,6 +47,7 @@ type ItemSettingsWindowsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByWindowsSettingId provides operations to manage the windows property of the microsoft.graph.userSettings entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSettingsWindowsWindowsSettingItemRequestBuilder when successful func (m *ItemSettingsWindowsRequestBuilder) ByWindowsSettingId(windowsSettingId string)(*ItemSettingsWindowsWindowsSettingItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemSettingsWindowsRequestBuilder) Count()(*ItemSettingsWindowsCountReq return NewItemSettingsWindowsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the Windows settings of the user stored in the cloud. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a WindowsSettingCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSettingsWindowsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSettingsWindowsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsSettingCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemSettingsWindowsRequestBuilder) Get(ctx context.Context, requestConf return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsSettingCollectionResponseable), nil } // Post create new navigation property to windows for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a WindowsSettingable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSettingsWindowsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsSettingable, requestConfiguration *ItemSettingsWindowsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsSettingable, error) { @@ -117,6 +120,7 @@ func (m *ItemSettingsWindowsRequestBuilder) Post(ctx context.Context, body ie233 return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsSettingable), nil } // ToGetRequestInformation the Windows settings of the user stored in the cloud. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSettingsWindowsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSettingsWindowsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemSettingsWindowsRequestBuilder) ToGetRequestInformation(ctx context. return requestInfo, nil } // ToPostRequestInformation create new navigation property to windows for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSettingsWindowsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsSettingable, requestConfiguration *ItemSettingsWindowsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemSettingsWindowsRequestBuilder) ToPostRequestInformation(ctx context return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSettingsWindowsRequestBuilder when successful func (m *ItemSettingsWindowsRequestBuilder) WithUrl(rawUrl string)(*ItemSettingsWindowsRequestBuilder) { return NewItemSettingsWindowsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_settings_windows_windows_setting_item_request_builder.go b/users/item_settings_windows_windows_setting_item_request_builder.go index 8b89d5b5a7f..5799e58b9ff 100644 --- a/users/item_settings_windows_windows_setting_item_request_builder.go +++ b/users/item_settings_windows_windows_setting_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemSettingsWindowsWindowsSettingItemRequestBuilder(rawUrl string, reque return NewItemSettingsWindowsWindowsSettingItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property windows for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSettingsWindowsWindowsSettingItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemSettingsWindowsWindowsSettingItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemSettingsWindowsWindowsSettingItemRequestBuilder) Delete(ctx context return nil } // Get the Windows settings of the user stored in the cloud. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a WindowsSettingable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSettingsWindowsWindowsSettingItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSettingsWindowsWindowsSettingItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsSettingable, error) { @@ -96,6 +98,7 @@ func (m *ItemSettingsWindowsWindowsSettingItemRequestBuilder) Instances()(*ItemS return NewItemSettingsWindowsItemInstancesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property windows in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a WindowsSettingable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSettingsWindowsWindowsSettingItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsSettingable, requestConfiguration *ItemSettingsWindowsWindowsSettingItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsSettingable, error) { @@ -116,6 +119,7 @@ func (m *ItemSettingsWindowsWindowsSettingItemRequestBuilder) Patch(ctx context. return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsSettingable), nil } // ToDeleteRequestInformation delete navigation property windows for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSettingsWindowsWindowsSettingItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemSettingsWindowsWindowsSettingItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -127,6 +131,7 @@ func (m *ItemSettingsWindowsWindowsSettingItemRequestBuilder) ToDeleteRequestInf return requestInfo, nil } // ToGetRequestInformation the Windows settings of the user stored in the cloud. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSettingsWindowsWindowsSettingItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSettingsWindowsWindowsSettingItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,6 +146,7 @@ func (m *ItemSettingsWindowsWindowsSettingItemRequestBuilder) ToGetRequestInform return requestInfo, nil } // ToPatchRequestInformation update the navigation property windows in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSettingsWindowsWindowsSettingItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsSettingable, requestConfiguration *ItemSettingsWindowsWindowsSettingItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +162,7 @@ func (m *ItemSettingsWindowsWindowsSettingItemRequestBuilder) ToPatchRequestInfo return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSettingsWindowsWindowsSettingItemRequestBuilder when successful func (m *ItemSettingsWindowsWindowsSettingItemRequestBuilder) WithUrl(rawUrl string)(*ItemSettingsWindowsWindowsSettingItemRequestBuilder) { return NewItemSettingsWindowsWindowsSettingItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_solutions_request_builder.go b/users/item_solutions_request_builder.go index abbd8d94ed4..b5a5cb057a6 100644 --- a/users/item_solutions_request_builder.go +++ b/users/item_solutions_request_builder.go @@ -18,7 +18,7 @@ type ItemSolutionsRequestBuilderDeleteRequestConfiguration struct { // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemSolutionsRequestBuilderGetQueryParameters get solutions from users +// ItemSolutionsRequestBuilderGetQueryParameters represents a user's custom solution entity. Read-Only. Nullable. type ItemSolutionsRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -55,6 +55,7 @@ func NewItemSolutionsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee return NewItemSolutionsRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property solutions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSolutionsRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemSolutionsRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -70,7 +71,8 @@ func (m *ItemSolutionsRequestBuilder) Delete(ctx context.Context, requestConfigu } return nil } -// Get get solutions from users +// Get represents a user's custom solution entity. Read-Only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserSolutionRootable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSolutionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSolutionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserSolutionRootable, error) { @@ -91,6 +93,7 @@ func (m *ItemSolutionsRequestBuilder) Get(ctx context.Context, requestConfigurat return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserSolutionRootable), nil } // Patch update the navigation property solutions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserSolutionRootable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSolutionsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserSolutionRootable, requestConfiguration *ItemSolutionsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserSolutionRootable, error) { @@ -111,6 +114,7 @@ func (m *ItemSolutionsRequestBuilder) Patch(ctx context.Context, body ie233ee762 return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserSolutionRootable), nil } // ToDeleteRequestInformation delete navigation property solutions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSolutionsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemSolutionsRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -121,7 +125,8 @@ func (m *ItemSolutionsRequestBuilder) ToDeleteRequestInformation(ctx context.Con requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get solutions from users +// ToGetRequestInformation represents a user's custom solution entity. Read-Only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSolutionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSolutionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemSolutionsRequestBuilder) ToGetRequestInformation(ctx context.Contex return requestInfo, nil } // ToPatchRequestInformation update the navigation property solutions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSolutionsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserSolutionRootable, requestConfiguration *ItemSolutionsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemSolutionsRequestBuilder) ToPatchRequestInformation(ctx context.Cont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSolutionsRequestBuilder when successful func (m *ItemSolutionsRequestBuilder) WithUrl(rawUrl string)(*ItemSolutionsRequestBuilder) { return NewItemSolutionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_solutions_working_time_schedule_end_working_time_request_builder.go b/users/item_solutions_working_time_schedule_end_working_time_request_builder.go index 92319d2a37a..fb831dcb675 100644 --- a/users/item_solutions_working_time_schedule_end_working_time_request_builder.go +++ b/users/item_solutions_working_time_schedule_end_working_time_request_builder.go @@ -30,8 +30,12 @@ func NewItemSolutionsWorkingTimeScheduleEndWorkingTimeRequestBuilder(rawUrl stri urlParams["request-raw-url"] = rawUrl return NewItemSolutionsWorkingTimeScheduleEndWorkingTimeRequestBuilderInternal(urlParams, requestAdapter) } -// Post triggers the policies associated with the end of working hours. +// Post trigger the policies associated with the end of working hours for a specific user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // 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/workingtimeschedule-endworkingtime?view=graph-rest-beta func (m *ItemSolutionsWorkingTimeScheduleEndWorkingTimeRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemSolutionsWorkingTimeScheduleEndWorkingTimeRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); if err != nil { @@ -46,7 +50,8 @@ func (m *ItemSolutionsWorkingTimeScheduleEndWorkingTimeRequestBuilder) Post(ctx } return nil } -// ToPostRequestInformation triggers the policies associated with the end of working hours. +// ToPostRequestInformation trigger the policies associated with the end of working hours for a specific user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSolutionsWorkingTimeScheduleEndWorkingTimeRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemSolutionsWorkingTimeScheduleEndWorkingTimeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -58,6 +63,7 @@ func (m *ItemSolutionsWorkingTimeScheduleEndWorkingTimeRequestBuilder) ToPostReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSolutionsWorkingTimeScheduleEndWorkingTimeRequestBuilder when successful func (m *ItemSolutionsWorkingTimeScheduleEndWorkingTimeRequestBuilder) WithUrl(rawUrl string)(*ItemSolutionsWorkingTimeScheduleEndWorkingTimeRequestBuilder) { return NewItemSolutionsWorkingTimeScheduleEndWorkingTimeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_solutions_working_time_schedule_request_builder.go b/users/item_solutions_working_time_schedule_request_builder.go index 49e10cb8e2a..223d22fd960 100644 --- a/users/item_solutions_working_time_schedule_request_builder.go +++ b/users/item_solutions_working_time_schedule_request_builder.go @@ -18,7 +18,7 @@ type ItemSolutionsWorkingTimeScheduleRequestBuilderDeleteRequestConfiguration st // Request options Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } -// ItemSolutionsWorkingTimeScheduleRequestBuilderGetQueryParameters get workingTimeSchedule from users +// ItemSolutionsWorkingTimeScheduleRequestBuilderGetQueryParameters the working time schedule entity associated with the solution. type ItemSolutionsWorkingTimeScheduleRequestBuilderGetQueryParameters struct { // Expand related entities Expand []string `uriparametername:"%24expand"` @@ -55,6 +55,7 @@ func NewItemSolutionsWorkingTimeScheduleRequestBuilder(rawUrl string, requestAda return NewItemSolutionsWorkingTimeScheduleRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property workingTimeSchedule for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSolutionsWorkingTimeScheduleRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemSolutionsWorkingTimeScheduleRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -75,7 +76,8 @@ func (m *ItemSolutionsWorkingTimeScheduleRequestBuilder) Delete(ctx context.Cont func (m *ItemSolutionsWorkingTimeScheduleRequestBuilder) EndWorkingTime()(*ItemSolutionsWorkingTimeScheduleEndWorkingTimeRequestBuilder) { return NewItemSolutionsWorkingTimeScheduleEndWorkingTimeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get get workingTimeSchedule from users +// Get the working time schedule entity associated with the solution. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a WorkingTimeScheduleable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSolutionsWorkingTimeScheduleRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSolutionsWorkingTimeScheduleRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkingTimeScheduleable, error) { @@ -96,6 +98,7 @@ func (m *ItemSolutionsWorkingTimeScheduleRequestBuilder) Get(ctx context.Context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkingTimeScheduleable), nil } // Patch update the navigation property workingTimeSchedule in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a WorkingTimeScheduleable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSolutionsWorkingTimeScheduleRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkingTimeScheduleable, requestConfiguration *ItemSolutionsWorkingTimeScheduleRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkingTimeScheduleable, error) { @@ -121,6 +124,7 @@ func (m *ItemSolutionsWorkingTimeScheduleRequestBuilder) StartWorkingTime()(*Ite return NewItemSolutionsWorkingTimeScheduleStartWorkingTimeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property workingTimeSchedule for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSolutionsWorkingTimeScheduleRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemSolutionsWorkingTimeScheduleRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,7 +135,8 @@ func (m *ItemSolutionsWorkingTimeScheduleRequestBuilder) ToDeleteRequestInformat requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToGetRequestInformation get workingTimeSchedule from users +// ToGetRequestInformation the working time schedule entity associated with the solution. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSolutionsWorkingTimeScheduleRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSolutionsWorkingTimeScheduleRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemSolutionsWorkingTimeScheduleRequestBuilder) ToGetRequestInformation return requestInfo, nil } // ToPatchRequestInformation update the navigation property workingTimeSchedule in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSolutionsWorkingTimeScheduleRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WorkingTimeScheduleable, requestConfiguration *ItemSolutionsWorkingTimeScheduleRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -161,6 +167,7 @@ func (m *ItemSolutionsWorkingTimeScheduleRequestBuilder) ToPatchRequestInformati return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSolutionsWorkingTimeScheduleRequestBuilder when successful func (m *ItemSolutionsWorkingTimeScheduleRequestBuilder) WithUrl(rawUrl string)(*ItemSolutionsWorkingTimeScheduleRequestBuilder) { return NewItemSolutionsWorkingTimeScheduleRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_solutions_working_time_schedule_start_working_time_request_builder.go b/users/item_solutions_working_time_schedule_start_working_time_request_builder.go index 6799de50df6..7ce276c23c2 100644 --- a/users/item_solutions_working_time_schedule_start_working_time_request_builder.go +++ b/users/item_solutions_working_time_schedule_start_working_time_request_builder.go @@ -30,8 +30,12 @@ func NewItemSolutionsWorkingTimeScheduleStartWorkingTimeRequestBuilder(rawUrl st urlParams["request-raw-url"] = rawUrl return NewItemSolutionsWorkingTimeScheduleStartWorkingTimeRequestBuilderInternal(urlParams, requestAdapter) } -// Post triggers the policies associated with the end of working hours. +// Post trigger the policies associated with the start of working hours for a specific user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // 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/workingtimeschedule-startworkingtime?view=graph-rest-beta func (m *ItemSolutionsWorkingTimeScheduleStartWorkingTimeRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemSolutionsWorkingTimeScheduleStartWorkingTimeRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); if err != nil { @@ -46,7 +50,8 @@ func (m *ItemSolutionsWorkingTimeScheduleStartWorkingTimeRequestBuilder) Post(ct } return nil } -// ToPostRequestInformation triggers the policies associated with the end of working hours. +// ToPostRequestInformation trigger the policies associated with the start of working hours for a specific user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSolutionsWorkingTimeScheduleStartWorkingTimeRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemSolutionsWorkingTimeScheduleStartWorkingTimeRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -58,6 +63,7 @@ func (m *ItemSolutionsWorkingTimeScheduleStartWorkingTimeRequestBuilder) ToPostR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSolutionsWorkingTimeScheduleStartWorkingTimeRequestBuilder when successful func (m *ItemSolutionsWorkingTimeScheduleStartWorkingTimeRequestBuilder) WithUrl(rawUrl string)(*ItemSolutionsWorkingTimeScheduleStartWorkingTimeRequestBuilder) { return NewItemSolutionsWorkingTimeScheduleStartWorkingTimeRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_sponsors_count_request_builder.go b/users/item_sponsors_count_request_builder.go index 225a2122b5f..13de9dbe195 100644 --- a/users/item_sponsors_count_request_builder.go +++ b/users/item_sponsors_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemSponsorsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f7 return NewItemSponsorsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSponsorsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSponsorsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemSponsorsCountRequestBuilder) Get(ctx context.Context, requestConfig return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSponsorsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSponsorsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemSponsorsCountRequestBuilder) ToGetRequestInformation(ctx context.Co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSponsorsCountRequestBuilder when successful func (m *ItemSponsorsCountRequestBuilder) WithUrl(rawUrl string)(*ItemSponsorsCountRequestBuilder) { return NewItemSponsorsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_sponsors_directory_object_item_request_builder.go b/users/item_sponsors_directory_object_item_request_builder.go index e0aaa98607f..f02f32bcd22 100644 --- a/users/item_sponsors_directory_object_item_request_builder.go +++ b/users/item_sponsors_directory_object_item_request_builder.go @@ -41,6 +41,7 @@ func NewItemSponsorsDirectoryObjectItemRequestBuilder(rawUrl string, requestAdap return NewItemSponsorsDirectoryObjectItemRequestBuilderInternal(urlParams, requestAdapter) } // Get the users and groups responsible for this guest user's privileges in the tenant and keep the guest user's information and access updated. (HTTP Methods: GET, POST, DELETE.). Supports $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DirectoryObjectable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemSponsorsDirectoryObjectItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSponsorsDirectoryObjectItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryObjectable, error) { @@ -61,6 +62,7 @@ func (m *ItemSponsorsDirectoryObjectItemRequestBuilder) Get(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryObjectable), nil } // ToGetRequestInformation the users and groups responsible for this guest user's privileges in the tenant and keep the guest user's information and access updated. (HTTP Methods: GET, POST, DELETE.). Supports $expand. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSponsorsDirectoryObjectItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSponsorsDirectoryObjectItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemSponsorsDirectoryObjectItemRequestBuilder) ToGetRequestInformation( return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSponsorsDirectoryObjectItemRequestBuilder when successful func (m *ItemSponsorsDirectoryObjectItemRequestBuilder) WithUrl(rawUrl string)(*ItemSponsorsDirectoryObjectItemRequestBuilder) { return NewItemSponsorsDirectoryObjectItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_sponsors_request_builder.go b/users/item_sponsors_request_builder.go index 0f23ece02f4..fc45e6d7c58 100644 --- a/users/item_sponsors_request_builder.go +++ b/users/item_sponsors_request_builder.go @@ -40,6 +40,7 @@ type ItemSponsorsRequestBuilderGetRequestConfiguration struct { QueryParameters *ItemSponsorsRequestBuilderGetQueryParameters } // ByDirectoryObjectId provides operations to manage the sponsors property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSponsorsDirectoryObjectItemRequestBuilder when successful func (m *ItemSponsorsRequestBuilder) ByDirectoryObjectId(directoryObjectId string)(*ItemSponsorsDirectoryObjectItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -70,6 +71,7 @@ func (m *ItemSponsorsRequestBuilder) Count()(*ItemSponsorsCountRequestBuilder) { return NewItemSponsorsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get a user's sponsors. Sponsors are users and groups that are responsible for this guest's privileges in the tenant and for keeping the guest's information and access up to date. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DirectoryObjectCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -93,6 +95,7 @@ func (m *ItemSponsorsRequestBuilder) Get(ctx context.Context, requestConfigurati return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryObjectCollectionResponseable), nil } // ToGetRequestInformation get a user's sponsors. Sponsors are users and groups that are responsible for this guest's privileges in the tenant and for keeping the guest's information and access up to date. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemSponsorsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSponsorsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -107,6 +110,7 @@ func (m *ItemSponsorsRequestBuilder) ToGetRequestInformation(ctx context.Context return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemSponsorsRequestBuilder when successful func (m *ItemSponsorsRequestBuilder) WithUrl(rawUrl string)(*ItemSponsorsRequestBuilder) { return NewItemSponsorsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_teamwork_associated_teams_associated_team_info_item_request_builder.go b/users/item_teamwork_associated_teams_associated_team_info_item_request_builder.go index 2be7c726b8f..d7d9a49b070 100644 --- a/users/item_teamwork_associated_teams_associated_team_info_item_request_builder.go +++ b/users/item_teamwork_associated_teams_associated_team_info_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemTeamworkAssociatedTeamsAssociatedTeamInfoItemRequestBuilder(rawUrl s return NewItemTeamworkAssociatedTeamsAssociatedTeamInfoItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property associatedTeams for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTeamworkAssociatedTeamsAssociatedTeamInfoItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemTeamworkAssociatedTeamsAssociatedTeamInfoItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemTeamworkAssociatedTeamsAssociatedTeamInfoItemRequestBuilder) Delete return nil } // Get the list of associatedTeamInfo objects that a user is associated with. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AssociatedTeamInfoable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTeamworkAssociatedTeamsAssociatedTeamInfoItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamworkAssociatedTeamsAssociatedTeamInfoItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AssociatedTeamInfoable, error) { @@ -91,6 +93,7 @@ func (m *ItemTeamworkAssociatedTeamsAssociatedTeamInfoItemRequestBuilder) Get(ct return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AssociatedTeamInfoable), nil } // Patch update the navigation property associatedTeams in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AssociatedTeamInfoable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTeamworkAssociatedTeamsAssociatedTeamInfoItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AssociatedTeamInfoable, requestConfiguration *ItemTeamworkAssociatedTeamsAssociatedTeamInfoItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AssociatedTeamInfoable, error) { @@ -116,6 +119,7 @@ func (m *ItemTeamworkAssociatedTeamsAssociatedTeamInfoItemRequestBuilder) Team() return NewItemTeamworkAssociatedTeamsItemTeamRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property associatedTeams for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTeamworkAssociatedTeamsAssociatedTeamInfoItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemTeamworkAssociatedTeamsAssociatedTeamInfoItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -127,6 +131,7 @@ func (m *ItemTeamworkAssociatedTeamsAssociatedTeamInfoItemRequestBuilder) ToDele return requestInfo, nil } // ToGetRequestInformation the list of associatedTeamInfo objects that a user is associated with. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTeamworkAssociatedTeamsAssociatedTeamInfoItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamworkAssociatedTeamsAssociatedTeamInfoItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,6 +146,7 @@ func (m *ItemTeamworkAssociatedTeamsAssociatedTeamInfoItemRequestBuilder) ToGetR return requestInfo, nil } // ToPatchRequestInformation update the navigation property associatedTeams in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTeamworkAssociatedTeamsAssociatedTeamInfoItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AssociatedTeamInfoable, requestConfiguration *ItemTeamworkAssociatedTeamsAssociatedTeamInfoItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +162,7 @@ func (m *ItemTeamworkAssociatedTeamsAssociatedTeamInfoItemRequestBuilder) ToPatc return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTeamworkAssociatedTeamsAssociatedTeamInfoItemRequestBuilder when successful func (m *ItemTeamworkAssociatedTeamsAssociatedTeamInfoItemRequestBuilder) WithUrl(rawUrl string)(*ItemTeamworkAssociatedTeamsAssociatedTeamInfoItemRequestBuilder) { return NewItemTeamworkAssociatedTeamsAssociatedTeamInfoItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_teamwork_associated_teams_count_request_builder.go b/users/item_teamwork_associated_teams_count_request_builder.go index 1b97aea3de1..af3abf35028 100644 --- a/users/item_teamwork_associated_teams_count_request_builder.go +++ b/users/item_teamwork_associated_teams_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemTeamworkAssociatedTeamsCountRequestBuilder(rawUrl string, requestAda return NewItemTeamworkAssociatedTeamsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTeamworkAssociatedTeamsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamworkAssociatedTeamsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemTeamworkAssociatedTeamsCountRequestBuilder) Get(ctx context.Context return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTeamworkAssociatedTeamsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamworkAssociatedTeamsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemTeamworkAssociatedTeamsCountRequestBuilder) ToGetRequestInformation return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTeamworkAssociatedTeamsCountRequestBuilder when successful func (m *ItemTeamworkAssociatedTeamsCountRequestBuilder) WithUrl(rawUrl string)(*ItemTeamworkAssociatedTeamsCountRequestBuilder) { return NewItemTeamworkAssociatedTeamsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_teamwork_associated_teams_item_team_request_builder.go b/users/item_teamwork_associated_teams_item_team_request_builder.go index 239d2a44e72..957ca3476b0 100644 --- a/users/item_teamwork_associated_teams_item_team_request_builder.go +++ b/users/item_teamwork_associated_teams_item_team_request_builder.go @@ -41,6 +41,7 @@ func NewItemTeamworkAssociatedTeamsItemTeamRequestBuilder(rawUrl string, request return NewItemTeamworkAssociatedTeamsItemTeamRequestBuilderInternal(urlParams, requestAdapter) } // Get get team from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Teamable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTeamworkAssociatedTeamsItemTeamRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamworkAssociatedTeamsItemTeamRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Teamable, error) { @@ -61,6 +62,7 @@ func (m *ItemTeamworkAssociatedTeamsItemTeamRequestBuilder) Get(ctx context.Cont return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Teamable), nil } // ToGetRequestInformation get team from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTeamworkAssociatedTeamsItemTeamRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamworkAssociatedTeamsItemTeamRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemTeamworkAssociatedTeamsItemTeamRequestBuilder) ToGetRequestInformat return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTeamworkAssociatedTeamsItemTeamRequestBuilder when successful func (m *ItemTeamworkAssociatedTeamsItemTeamRequestBuilder) WithUrl(rawUrl string)(*ItemTeamworkAssociatedTeamsItemTeamRequestBuilder) { return NewItemTeamworkAssociatedTeamsItemTeamRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_teamwork_associated_teams_request_builder.go b/users/item_teamwork_associated_teams_request_builder.go index aa55f127d5b..e5db9bd3856 100644 --- a/users/item_teamwork_associated_teams_request_builder.go +++ b/users/item_teamwork_associated_teams_request_builder.go @@ -47,6 +47,7 @@ type ItemTeamworkAssociatedTeamsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAssociatedTeamInfoId provides operations to manage the associatedTeams property of the microsoft.graph.userTeamwork entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTeamworkAssociatedTeamsAssociatedTeamInfoItemRequestBuilder when successful func (m *ItemTeamworkAssociatedTeamsRequestBuilder) ByAssociatedTeamInfoId(associatedTeamInfoId string)(*ItemTeamworkAssociatedTeamsAssociatedTeamInfoItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemTeamworkAssociatedTeamsRequestBuilder) Count()(*ItemTeamworkAssocia return NewItemTeamworkAssociatedTeamsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the list of associatedTeamInfo objects that a user is associated with. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AssociatedTeamInfoCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTeamworkAssociatedTeamsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamworkAssociatedTeamsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AssociatedTeamInfoCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemTeamworkAssociatedTeamsRequestBuilder) Get(ctx context.Context, req return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AssociatedTeamInfoCollectionResponseable), nil } // Post create new navigation property to associatedTeams for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AssociatedTeamInfoable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTeamworkAssociatedTeamsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AssociatedTeamInfoable, requestConfiguration *ItemTeamworkAssociatedTeamsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AssociatedTeamInfoable, error) { @@ -117,6 +120,7 @@ func (m *ItemTeamworkAssociatedTeamsRequestBuilder) Post(ctx context.Context, bo return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AssociatedTeamInfoable), nil } // ToGetRequestInformation the list of associatedTeamInfo objects that a user is associated with. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTeamworkAssociatedTeamsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamworkAssociatedTeamsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemTeamworkAssociatedTeamsRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // ToPostRequestInformation create new navigation property to associatedTeams for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTeamworkAssociatedTeamsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AssociatedTeamInfoable, requestConfiguration *ItemTeamworkAssociatedTeamsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemTeamworkAssociatedTeamsRequestBuilder) ToPostRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTeamworkAssociatedTeamsRequestBuilder when successful func (m *ItemTeamworkAssociatedTeamsRequestBuilder) WithUrl(rawUrl string)(*ItemTeamworkAssociatedTeamsRequestBuilder) { return NewItemTeamworkAssociatedTeamsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_teamwork_installed_apps_count_request_builder.go b/users/item_teamwork_installed_apps_count_request_builder.go index e095a2820d8..dd2b6aa390f 100644 --- a/users/item_teamwork_installed_apps_count_request_builder.go +++ b/users/item_teamwork_installed_apps_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemTeamworkInstalledAppsCountRequestBuilder(rawUrl string, requestAdapt return NewItemTeamworkInstalledAppsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTeamworkInstalledAppsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamworkInstalledAppsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemTeamworkInstalledAppsCountRequestBuilder) Get(ctx context.Context, return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTeamworkInstalledAppsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamworkInstalledAppsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemTeamworkInstalledAppsCountRequestBuilder) ToGetRequestInformation(c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTeamworkInstalledAppsCountRequestBuilder when successful func (m *ItemTeamworkInstalledAppsCountRequestBuilder) WithUrl(rawUrl string)(*ItemTeamworkInstalledAppsCountRequestBuilder) { return NewItemTeamworkInstalledAppsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_teamwork_installed_apps_item_chat_request_builder.go b/users/item_teamwork_installed_apps_item_chat_request_builder.go index 0df5163861e..223e1287f3b 100644 --- a/users/item_teamwork_installed_apps_item_chat_request_builder.go +++ b/users/item_teamwork_installed_apps_item_chat_request_builder.go @@ -41,6 +41,7 @@ func NewItemTeamworkInstalledAppsItemChatRequestBuilder(rawUrl string, requestAd return NewItemTeamworkInstalledAppsItemChatRequestBuilderInternal(urlParams, requestAdapter) } // Get retrieve the chat of the specified user and Teams app. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Chatable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -64,6 +65,7 @@ func (m *ItemTeamworkInstalledAppsItemChatRequestBuilder) Get(ctx context.Contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Chatable), nil } // ToGetRequestInformation retrieve the chat of the specified user and Teams app. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTeamworkInstalledAppsItemChatRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamworkInstalledAppsItemChatRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -78,6 +80,7 @@ func (m *ItemTeamworkInstalledAppsItemChatRequestBuilder) ToGetRequestInformatio return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTeamworkInstalledAppsItemChatRequestBuilder when successful func (m *ItemTeamworkInstalledAppsItemChatRequestBuilder) WithUrl(rawUrl string)(*ItemTeamworkInstalledAppsItemChatRequestBuilder) { return NewItemTeamworkInstalledAppsItemChatRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_teamwork_installed_apps_item_teams_app_definition_request_builder.go b/users/item_teamwork_installed_apps_item_teams_app_definition_request_builder.go index f6e2aaf7852..3b1c5cfde5b 100644 --- a/users/item_teamwork_installed_apps_item_teams_app_definition_request_builder.go +++ b/users/item_teamwork_installed_apps_item_teams_app_definition_request_builder.go @@ -41,6 +41,7 @@ func NewItemTeamworkInstalledAppsItemTeamsAppDefinitionRequestBuilder(rawUrl str return NewItemTeamworkInstalledAppsItemTeamsAppDefinitionRequestBuilderInternal(urlParams, requestAdapter) } // Get the details of this version of the app. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a TeamsAppDefinitionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTeamworkInstalledAppsItemTeamsAppDefinitionRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamworkInstalledAppsItemTeamsAppDefinitionRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsAppDefinitionable, error) { @@ -61,6 +62,7 @@ func (m *ItemTeamworkInstalledAppsItemTeamsAppDefinitionRequestBuilder) Get(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsAppDefinitionable), nil } // ToGetRequestInformation the details of this version of the app. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTeamworkInstalledAppsItemTeamsAppDefinitionRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamworkInstalledAppsItemTeamsAppDefinitionRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemTeamworkInstalledAppsItemTeamsAppDefinitionRequestBuilder) ToGetReq return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTeamworkInstalledAppsItemTeamsAppDefinitionRequestBuilder when successful func (m *ItemTeamworkInstalledAppsItemTeamsAppDefinitionRequestBuilder) WithUrl(rawUrl string)(*ItemTeamworkInstalledAppsItemTeamsAppDefinitionRequestBuilder) { return NewItemTeamworkInstalledAppsItemTeamsAppDefinitionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_teamwork_installed_apps_item_teams_app_request_builder.go b/users/item_teamwork_installed_apps_item_teams_app_request_builder.go index 99c159cec36..0a8ee0633b5 100644 --- a/users/item_teamwork_installed_apps_item_teams_app_request_builder.go +++ b/users/item_teamwork_installed_apps_item_teams_app_request_builder.go @@ -41,6 +41,7 @@ func NewItemTeamworkInstalledAppsItemTeamsAppRequestBuilder(rawUrl string, reque return NewItemTeamworkInstalledAppsItemTeamsAppRequestBuilderInternal(urlParams, requestAdapter) } // Get the app that is installed. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a TeamsAppable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTeamworkInstalledAppsItemTeamsAppRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTeamworkInstalledAppsItemTeamsAppRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsAppable, error) { @@ -61,6 +62,7 @@ func (m *ItemTeamworkInstalledAppsItemTeamsAppRequestBuilder) Get(ctx context.Co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TeamsAppable), nil } // ToGetRequestInformation the app that is installed. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTeamworkInstalledAppsItemTeamsAppRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamworkInstalledAppsItemTeamsAppRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemTeamworkInstalledAppsItemTeamsAppRequestBuilder) ToGetRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTeamworkInstalledAppsItemTeamsAppRequestBuilder when successful func (m *ItemTeamworkInstalledAppsItemTeamsAppRequestBuilder) WithUrl(rawUrl string)(*ItemTeamworkInstalledAppsItemTeamsAppRequestBuilder) { return NewItemTeamworkInstalledAppsItemTeamsAppRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_teamwork_installed_apps_request_builder.go b/users/item_teamwork_installed_apps_request_builder.go index 89aff1bb072..c59fd7f878f 100644 --- a/users/item_teamwork_installed_apps_request_builder.go +++ b/users/item_teamwork_installed_apps_request_builder.go @@ -47,6 +47,7 @@ type ItemTeamworkInstalledAppsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByUserScopeTeamsAppInstallationId provides operations to manage the installedApps property of the microsoft.graph.userTeamwork entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTeamworkInstalledAppsUserScopeTeamsAppInstallationItemRequestBuilder when successful func (m *ItemTeamworkInstalledAppsRequestBuilder) ByUserScopeTeamsAppInstallationId(userScopeTeamsAppInstallationId string)(*ItemTeamworkInstalledAppsUserScopeTeamsAppInstallationItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemTeamworkInstalledAppsRequestBuilder) Count()(*ItemTeamworkInstalled return NewItemTeamworkInstalledAppsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get retrieve the list of apps installed in the personal scope of the specified user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserScopeTeamsAppInstallationCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -100,6 +102,7 @@ func (m *ItemTeamworkInstalledAppsRequestBuilder) Get(ctx context.Context, reque return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserScopeTeamsAppInstallationCollectionResponseable), nil } // Post install an app in the personal scope of the specified user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserScopeTeamsAppInstallationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -123,6 +126,7 @@ func (m *ItemTeamworkInstalledAppsRequestBuilder) Post(ctx context.Context, body return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserScopeTeamsAppInstallationable), nil } // ToGetRequestInformation retrieve the list of apps installed in the personal scope of the specified user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTeamworkInstalledAppsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamworkInstalledAppsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -137,6 +141,7 @@ func (m *ItemTeamworkInstalledAppsRequestBuilder) ToGetRequestInformation(ctx co return requestInfo, nil } // ToPostRequestInformation install an app in the personal scope of the specified user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTeamworkInstalledAppsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserScopeTeamsAppInstallationable, requestConfiguration *ItemTeamworkInstalledAppsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -152,6 +157,7 @@ func (m *ItemTeamworkInstalledAppsRequestBuilder) ToPostRequestInformation(ctx c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTeamworkInstalledAppsRequestBuilder when successful func (m *ItemTeamworkInstalledAppsRequestBuilder) WithUrl(rawUrl string)(*ItemTeamworkInstalledAppsRequestBuilder) { return NewItemTeamworkInstalledAppsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_teamwork_installed_apps_user_scope_teams_app_installation_item_request_builder.go b/users/item_teamwork_installed_apps_user_scope_teams_app_installation_item_request_builder.go index e8c53802d79..cacccc9b709 100644 --- a/users/item_teamwork_installed_apps_user_scope_teams_app_installation_item_request_builder.go +++ b/users/item_teamwork_installed_apps_user_scope_teams_app_installation_item_request_builder.go @@ -60,6 +60,7 @@ func NewItemTeamworkInstalledAppsUserScopeTeamsAppInstallationItemRequestBuilder return NewItemTeamworkInstalledAppsUserScopeTeamsAppInstallationItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete uninstall an app from the personal scope of the specified user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -79,6 +80,7 @@ func (m *ItemTeamworkInstalledAppsUserScopeTeamsAppInstallationItemRequestBuilde return nil } // Get retrieve the app installed in the personal scope of the specified user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserScopeTeamsAppInstallationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -102,6 +104,7 @@ func (m *ItemTeamworkInstalledAppsUserScopeTeamsAppInstallationItemRequestBuilde return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserScopeTeamsAppInstallationable), nil } // Patch update the navigation property installedApps in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserScopeTeamsAppInstallationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTeamworkInstalledAppsUserScopeTeamsAppInstallationItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserScopeTeamsAppInstallationable, requestConfiguration *ItemTeamworkInstalledAppsUserScopeTeamsAppInstallationItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserScopeTeamsAppInstallationable, error) { @@ -132,6 +135,7 @@ func (m *ItemTeamworkInstalledAppsUserScopeTeamsAppInstallationItemRequestBuilde return NewItemTeamworkInstalledAppsItemTeamsAppDefinitionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation uninstall an app from the personal scope of the specified user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTeamworkInstalledAppsUserScopeTeamsAppInstallationItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemTeamworkInstalledAppsUserScopeTeamsAppInstallationItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -143,6 +147,7 @@ func (m *ItemTeamworkInstalledAppsUserScopeTeamsAppInstallationItemRequestBuilde return requestInfo, nil } // ToGetRequestInformation retrieve the app installed in the personal scope of the specified user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTeamworkInstalledAppsUserScopeTeamsAppInstallationItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamworkInstalledAppsUserScopeTeamsAppInstallationItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -157,6 +162,7 @@ func (m *ItemTeamworkInstalledAppsUserScopeTeamsAppInstallationItemRequestBuilde return requestInfo, nil } // ToPatchRequestInformation update the navigation property installedApps in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTeamworkInstalledAppsUserScopeTeamsAppInstallationItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserScopeTeamsAppInstallationable, requestConfiguration *ItemTeamworkInstalledAppsUserScopeTeamsAppInstallationItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -172,6 +178,7 @@ func (m *ItemTeamworkInstalledAppsUserScopeTeamsAppInstallationItemRequestBuilde return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTeamworkInstalledAppsUserScopeTeamsAppInstallationItemRequestBuilder when successful func (m *ItemTeamworkInstalledAppsUserScopeTeamsAppInstallationItemRequestBuilder) WithUrl(rawUrl string)(*ItemTeamworkInstalledAppsUserScopeTeamsAppInstallationItemRequestBuilder) { return NewItemTeamworkInstalledAppsUserScopeTeamsAppInstallationItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_teamwork_request_builder.go b/users/item_teamwork_request_builder.go index 1054ff51ed3..90430ed8b1f 100644 --- a/users/item_teamwork_request_builder.go +++ b/users/item_teamwork_request_builder.go @@ -60,6 +60,7 @@ func NewItemTeamworkRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee2 return NewItemTeamworkRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property teamwork for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTeamworkRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemTeamworkRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -76,6 +77,7 @@ func (m *ItemTeamworkRequestBuilder) Delete(ctx context.Context, requestConfigur return nil } // Get get the userTeamwork settings for a specified user, which includes the Microsoft Teams region and the locale chosen by the user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserTeamworkable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -104,6 +106,7 @@ func (m *ItemTeamworkRequestBuilder) InstalledApps()(*ItemTeamworkInstalledAppsR return NewItemTeamworkInstalledAppsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property teamwork in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserTeamworkable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTeamworkRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserTeamworkable, requestConfiguration *ItemTeamworkRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserTeamworkable, error) { @@ -129,6 +132,7 @@ func (m *ItemTeamworkRequestBuilder) SendActivityNotification()(*ItemTeamworkSen return NewItemTeamworkSendActivityNotificationRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property teamwork for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTeamworkRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemTeamworkRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -140,6 +144,7 @@ func (m *ItemTeamworkRequestBuilder) ToDeleteRequestInformation(ctx context.Cont return requestInfo, nil } // ToGetRequestInformation get the userTeamwork settings for a specified user, which includes the Microsoft Teams region and the locale chosen by the user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTeamworkRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTeamworkRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -154,6 +159,7 @@ func (m *ItemTeamworkRequestBuilder) ToGetRequestInformation(ctx context.Context return requestInfo, nil } // ToPatchRequestInformation update the navigation property teamwork in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTeamworkRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserTeamworkable, requestConfiguration *ItemTeamworkRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -169,6 +175,7 @@ func (m *ItemTeamworkRequestBuilder) ToPatchRequestInformation(ctx context.Conte return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTeamworkRequestBuilder when successful func (m *ItemTeamworkRequestBuilder) WithUrl(rawUrl string)(*ItemTeamworkRequestBuilder) { return NewItemTeamworkRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_teamwork_send_activity_notification_request_builder.go b/users/item_teamwork_send_activity_notification_request_builder.go index 01682b93bb7..44aec15e070 100644 --- a/users/item_teamwork_send_activity_notification_request_builder.go +++ b/users/item_teamwork_send_activity_notification_request_builder.go @@ -31,6 +31,7 @@ func NewItemTeamworkSendActivityNotificationRequestBuilder(rawUrl string, reques return NewItemTeamworkSendActivityNotificationRequestBuilderInternal(urlParams, requestAdapter) } // Post send an activity feed notification to a user. For more information, see sending Teams activity notifications. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ItemTeamworkSendActivityNotificationRequestBuilder) Post(ctx context.Co return nil } // ToPostRequestInformation send an activity feed notification to a user. For more information, see sending Teams activity notifications. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTeamworkSendActivityNotificationRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemTeamworkSendActivityNotificationPostRequestBodyable, requestConfiguration *ItemTeamworkSendActivityNotificationRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ItemTeamworkSendActivityNotificationRequestBuilder) ToPostRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTeamworkSendActivityNotificationRequestBuilder when successful func (m *ItemTeamworkSendActivityNotificationRequestBuilder) WithUrl(rawUrl string)(*ItemTeamworkSendActivityNotificationRequestBuilder) { return NewItemTeamworkSendActivityNotificationRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_todo_lists_count_request_builder.go b/users/item_todo_lists_count_request_builder.go index 242c47369f9..66a37073512 100644 --- a/users/item_todo_lists_count_request_builder.go +++ b/users/item_todo_lists_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemTodoListsCountRequestBuilder(rawUrl string, requestAdapter i2ae4187f return NewItemTodoListsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTodoListsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemTodoListsCountRequestBuilder) Get(ctx context.Context, requestConfi return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTodoListsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemTodoListsCountRequestBuilder) ToGetRequestInformation(ctx context.C return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTodoListsCountRequestBuilder when successful func (m *ItemTodoListsCountRequestBuilder) WithUrl(rawUrl string)(*ItemTodoListsCountRequestBuilder) { return NewItemTodoListsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_todo_lists_delta_request_builder.go b/users/item_todo_lists_delta_request_builder.go index 262a15cc2f0..d11f74338bb 100644 --- a/users/item_todo_lists_delta_request_builder.go +++ b/users/item_todo_lists_delta_request_builder.go @@ -73,6 +73,7 @@ func (m *ItemTodoListsDeltaRequestBuilder) Get(ctx context.Context, requestConfi return res.(ItemTodoListsDeltaResponseable), nil } // GetAsDeltaGetResponse invoke function delta +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemTodoListsDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsDeltaRequestBuilder) GetAsDeltaGetResponse(ctx context.Context, requestConfiguration *ItemTodoListsDeltaRequestBuilderGetRequestConfiguration)(ItemTodoListsDeltaGetResponseable, error) { @@ -93,6 +94,7 @@ func (m *ItemTodoListsDeltaRequestBuilder) GetAsDeltaGetResponse(ctx context.Con return res.(ItemTodoListsDeltaGetResponseable), nil } // ToGetRequestInformation invoke function delta +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTodoListsDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -107,6 +109,7 @@ func (m *ItemTodoListsDeltaRequestBuilder) ToGetRequestInformation(ctx context.C return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTodoListsDeltaRequestBuilder when successful func (m *ItemTodoListsDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemTodoListsDeltaRequestBuilder) { return NewItemTodoListsDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_todo_lists_item_extensions_count_request_builder.go b/users/item_todo_lists_item_extensions_count_request_builder.go index 0f8fed0139f..7be9762d542 100644 --- a/users/item_todo_lists_item_extensions_count_request_builder.go +++ b/users/item_todo_lists_item_extensions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemTodoListsItemExtensionsCountRequestBuilder(rawUrl string, requestAda return NewItemTodoListsItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTodoListsItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemTodoListsItemExtensionsCountRequestBuilder) Get(ctx context.Context return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTodoListsItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemTodoListsItemExtensionsCountRequestBuilder) ToGetRequestInformation return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTodoListsItemExtensionsCountRequestBuilder when successful func (m *ItemTodoListsItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemTodoListsItemExtensionsCountRequestBuilder) { return NewItemTodoListsItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_todo_lists_item_extensions_extension_item_request_builder.go b/users/item_todo_lists_item_extensions_extension_item_request_builder.go index 54688acc966..dfcb3e4afb9 100644 --- a/users/item_todo_lists_item_extensions_extension_item_request_builder.go +++ b/users/item_todo_lists_item_extensions_extension_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemTodoListsItemExtensionsExtensionItemRequestBuilder(rawUrl string, re return NewItemTodoListsItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemTodoListsItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemTodoListsItemExtensionsExtensionItemRequestBuilder) Delete(ctx cont return nil } // Get the collection of open extensions defined for the task list. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTodoListsItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemTodoListsItemExtensionsExtensionItemRequestBuilder) Get(ctx context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemTodoListsItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemTodoListsItemExtensionsExtensionItemRequestBuilder) Patch(ctx conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemTodoListsItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemTodoListsItemExtensionsExtensionItemRequestBuilder) ToDeleteRequest return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the task list. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTodoListsItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemTodoListsItemExtensionsExtensionItemRequestBuilder) ToGetRequestInf return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemTodoListsItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemTodoListsItemExtensionsExtensionItemRequestBuilder) ToPatchRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTodoListsItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemTodoListsItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemTodoListsItemExtensionsExtensionItemRequestBuilder) { return NewItemTodoListsItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_todo_lists_item_extensions_request_builder.go b/users/item_todo_lists_item_extensions_request_builder.go index 5cda0ff7ec7..1f52dce35c7 100644 --- a/users/item_todo_lists_item_extensions_request_builder.go +++ b/users/item_todo_lists_item_extensions_request_builder.go @@ -47,6 +47,7 @@ type ItemTodoListsItemExtensionsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.todoTaskList entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTodoListsItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemTodoListsItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemTodoListsItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemTodoListsItemExtensionsRequestBuilder) Count()(*ItemTodoListsItemEx return NewItemTodoListsItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the task list. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTodoListsItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemTodoListsItemExtensionsRequestBuilder) Get(ctx context.Context, req return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemTodoListsItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemTodoListsItemExtensionsRequestBuilder) Post(ctx context.Context, bo return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the task list. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTodoListsItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemTodoListsItemExtensionsRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemTodoListsItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemTodoListsItemExtensionsRequestBuilder) ToPostRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTodoListsItemExtensionsRequestBuilder when successful func (m *ItemTodoListsItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemTodoListsItemExtensionsRequestBuilder) { return NewItemTodoListsItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_todo_lists_item_tasks_count_request_builder.go b/users/item_todo_lists_item_tasks_count_request_builder.go index f07daccef4a..c9172b8203d 100644 --- a/users/item_todo_lists_item_tasks_count_request_builder.go +++ b/users/item_todo_lists_item_tasks_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemTodoListsItemTasksCountRequestBuilder(rawUrl string, requestAdapter return NewItemTodoListsItemTasksCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemTasksCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemTodoListsItemTasksCountRequestBuilder) Get(ctx context.Context, req return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemTasksCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemTodoListsItemTasksCountRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTodoListsItemTasksCountRequestBuilder when successful func (m *ItemTodoListsItemTasksCountRequestBuilder) WithUrl(rawUrl string)(*ItemTodoListsItemTasksCountRequestBuilder) { return NewItemTodoListsItemTasksCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_todo_lists_item_tasks_delta_request_builder.go b/users/item_todo_lists_item_tasks_delta_request_builder.go index ebaa3d40d68..4c5e6b00ed9 100644 --- a/users/item_todo_lists_item_tasks_delta_request_builder.go +++ b/users/item_todo_lists_item_tasks_delta_request_builder.go @@ -73,6 +73,7 @@ func (m *ItemTodoListsItemTasksDeltaRequestBuilder) Get(ctx context.Context, req return res.(ItemTodoListsItemTasksDeltaResponseable), nil } // GetAsDeltaGetResponse invoke function delta +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemTodoListsItemTasksDeltaGetResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemTasksDeltaRequestBuilder) GetAsDeltaGetResponse(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksDeltaRequestBuilderGetRequestConfiguration)(ItemTodoListsItemTasksDeltaGetResponseable, error) { @@ -93,6 +94,7 @@ func (m *ItemTodoListsItemTasksDeltaRequestBuilder) GetAsDeltaGetResponse(ctx co return res.(ItemTodoListsItemTasksDeltaGetResponseable), nil } // ToGetRequestInformation invoke function delta +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemTasksDeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksDeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -107,6 +109,7 @@ func (m *ItemTodoListsItemTasksDeltaRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTodoListsItemTasksDeltaRequestBuilder when successful func (m *ItemTodoListsItemTasksDeltaRequestBuilder) WithUrl(rawUrl string)(*ItemTodoListsItemTasksDeltaRequestBuilder) { return NewItemTodoListsItemTasksDeltaRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_todo_lists_item_tasks_item_attachment_sessions_attachment_session_item_request_builder.go b/users/item_todo_lists_item_tasks_item_attachment_sessions_attachment_session_item_request_builder.go index 7af13c4be1d..4cc7395cbca 100644 --- a/users/item_todo_lists_item_tasks_item_attachment_sessions_attachment_session_item_request_builder.go +++ b/users/item_todo_lists_item_tasks_item_attachment_sessions_attachment_session_item_request_builder.go @@ -60,6 +60,7 @@ func (m *ItemTodoListsItemTasksItemAttachmentSessionsAttachmentSessionItemReques return NewItemTodoListsItemTasksItemAttachmentSessionsItemContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Delete delete navigation property attachmentSessions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemTasksItemAttachmentSessionsAttachmentSessionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemAttachmentSessionsAttachmentSessionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -76,6 +77,7 @@ func (m *ItemTodoListsItemTasksItemAttachmentSessionsAttachmentSessionItemReques return nil } // Get get attachmentSessions from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemTasksItemAttachmentSessionsAttachmentSessionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemAttachmentSessionsAttachmentSessionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentSessionable, error) { @@ -96,6 +98,7 @@ func (m *ItemTodoListsItemTasksItemAttachmentSessionsAttachmentSessionItemReques return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentSessionable), nil } // Patch update the navigation property attachmentSessions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemTasksItemAttachmentSessionsAttachmentSessionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentSessionable, requestConfiguration *ItemTodoListsItemTasksItemAttachmentSessionsAttachmentSessionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentSessionable, error) { @@ -116,6 +119,7 @@ func (m *ItemTodoListsItemTasksItemAttachmentSessionsAttachmentSessionItemReques return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentSessionable), nil } // ToDeleteRequestInformation delete navigation property attachmentSessions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemTasksItemAttachmentSessionsAttachmentSessionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemAttachmentSessionsAttachmentSessionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -127,6 +131,7 @@ func (m *ItemTodoListsItemTasksItemAttachmentSessionsAttachmentSessionItemReques return requestInfo, nil } // ToGetRequestInformation get attachmentSessions from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemTasksItemAttachmentSessionsAttachmentSessionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemAttachmentSessionsAttachmentSessionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,6 +146,7 @@ func (m *ItemTodoListsItemTasksItemAttachmentSessionsAttachmentSessionItemReques return requestInfo, nil } // ToPatchRequestInformation update the navigation property attachmentSessions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemTasksItemAttachmentSessionsAttachmentSessionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentSessionable, requestConfiguration *ItemTodoListsItemTasksItemAttachmentSessionsAttachmentSessionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +162,7 @@ func (m *ItemTodoListsItemTasksItemAttachmentSessionsAttachmentSessionItemReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTodoListsItemTasksItemAttachmentSessionsAttachmentSessionItemRequestBuilder when successful func (m *ItemTodoListsItemTasksItemAttachmentSessionsAttachmentSessionItemRequestBuilder) WithUrl(rawUrl string)(*ItemTodoListsItemTasksItemAttachmentSessionsAttachmentSessionItemRequestBuilder) { return NewItemTodoListsItemTasksItemAttachmentSessionsAttachmentSessionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_todo_lists_item_tasks_item_attachment_sessions_count_request_builder.go b/users/item_todo_lists_item_tasks_item_attachment_sessions_count_request_builder.go index 50bb9df726c..b5b62fa232f 100644 --- a/users/item_todo_lists_item_tasks_item_attachment_sessions_count_request_builder.go +++ b/users/item_todo_lists_item_tasks_item_attachment_sessions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemTodoListsItemTasksItemAttachmentSessionsCountRequestBuilder(rawUrl s return NewItemTodoListsItemTasksItemAttachmentSessionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemTasksItemAttachmentSessionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemAttachmentSessionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemTodoListsItemTasksItemAttachmentSessionsCountRequestBuilder) Get(ct return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemTasksItemAttachmentSessionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemAttachmentSessionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemTodoListsItemTasksItemAttachmentSessionsCountRequestBuilder) ToGetR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTodoListsItemTasksItemAttachmentSessionsCountRequestBuilder when successful func (m *ItemTodoListsItemTasksItemAttachmentSessionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemTodoListsItemTasksItemAttachmentSessionsCountRequestBuilder) { return NewItemTodoListsItemTasksItemAttachmentSessionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_todo_lists_item_tasks_item_attachment_sessions_item_content_request_builder.go b/users/item_todo_lists_item_tasks_item_attachment_sessions_item_content_request_builder.go index 4ef77b54cdb..c45694bb03b 100644 --- a/users/item_todo_lists_item_tasks_item_attachment_sessions_item_content_request_builder.go +++ b/users/item_todo_lists_item_tasks_item_attachment_sessions_item_content_request_builder.go @@ -46,6 +46,7 @@ func NewItemTodoListsItemTasksItemAttachmentSessionsItemContentRequestBuilder(ra return NewItemTodoListsItemTasksItemAttachmentSessionsItemContentRequestBuilderInternal(urlParams, requestAdapter) } // Delete the content streams that are uploaded. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemTasksItemAttachmentSessionsItemContentRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemAttachmentSessionsItemContentRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -62,6 +63,7 @@ func (m *ItemTodoListsItemTasksItemAttachmentSessionsItemContentRequestBuilder) return nil } // Get the content streams that are uploaded. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemTasksItemAttachmentSessionsItemContentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemAttachmentSessionsItemContentRequestBuilderGetRequestConfiguration)([]byte, error) { @@ -82,6 +84,7 @@ func (m *ItemTodoListsItemTasksItemAttachmentSessionsItemContentRequestBuilder) return res.([]byte), nil } // Put the content streams that are uploaded. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemTasksItemAttachmentSessionsItemContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemTodoListsItemTasksItemAttachmentSessionsItemContentRequestBuilderPutRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentSessionable, error) { @@ -102,6 +105,7 @@ func (m *ItemTodoListsItemTasksItemAttachmentSessionsItemContentRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentSessionable), nil } // ToDeleteRequestInformation the content streams that are uploaded. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemTasksItemAttachmentSessionsItemContentRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemAttachmentSessionsItemContentRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -113,6 +117,7 @@ func (m *ItemTodoListsItemTasksItemAttachmentSessionsItemContentRequestBuilder) return requestInfo, nil } // ToGetRequestInformation the content streams that are uploaded. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemTasksItemAttachmentSessionsItemContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemAttachmentSessionsItemContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -124,6 +129,7 @@ func (m *ItemTodoListsItemTasksItemAttachmentSessionsItemContentRequestBuilder) return requestInfo, nil } // ToPutRequestInformation the content streams that are uploaded. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemTasksItemAttachmentSessionsItemContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemTodoListsItemTasksItemAttachmentSessionsItemContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +142,7 @@ func (m *ItemTodoListsItemTasksItemAttachmentSessionsItemContentRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTodoListsItemTasksItemAttachmentSessionsItemContentRequestBuilder when successful func (m *ItemTodoListsItemTasksItemAttachmentSessionsItemContentRequestBuilder) WithUrl(rawUrl string)(*ItemTodoListsItemTasksItemAttachmentSessionsItemContentRequestBuilder) { return NewItemTodoListsItemTasksItemAttachmentSessionsItemContentRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_todo_lists_item_tasks_item_attachment_sessions_request_builder.go b/users/item_todo_lists_item_tasks_item_attachment_sessions_request_builder.go index 4793fdcf70d..ef436150ac7 100644 --- a/users/item_todo_lists_item_tasks_item_attachment_sessions_request_builder.go +++ b/users/item_todo_lists_item_tasks_item_attachment_sessions_request_builder.go @@ -40,6 +40,7 @@ type ItemTodoListsItemTasksItemAttachmentSessionsRequestBuilderGetRequestConfigu QueryParameters *ItemTodoListsItemTasksItemAttachmentSessionsRequestBuilderGetQueryParameters } // ByAttachmentSessionId provides operations to manage the attachmentSessions property of the microsoft.graph.todoTask entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTodoListsItemTasksItemAttachmentSessionsAttachmentSessionItemRequestBuilder when successful func (m *ItemTodoListsItemTasksItemAttachmentSessionsRequestBuilder) ByAttachmentSessionId(attachmentSessionId string)(*ItemTodoListsItemTasksItemAttachmentSessionsAttachmentSessionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -70,6 +71,7 @@ func (m *ItemTodoListsItemTasksItemAttachmentSessionsRequestBuilder) Count()(*It return NewItemTodoListsItemTasksItemAttachmentSessionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get attachmentSessions from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentSessionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemTasksItemAttachmentSessionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemAttachmentSessionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentSessionCollectionResponseable, error) { @@ -90,6 +92,7 @@ func (m *ItemTodoListsItemTasksItemAttachmentSessionsRequestBuilder) Get(ctx con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentSessionCollectionResponseable), nil } // ToGetRequestInformation get attachmentSessions from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemTasksItemAttachmentSessionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemAttachmentSessionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -104,6 +107,7 @@ func (m *ItemTodoListsItemTasksItemAttachmentSessionsRequestBuilder) ToGetReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTodoListsItemTasksItemAttachmentSessionsRequestBuilder when successful func (m *ItemTodoListsItemTasksItemAttachmentSessionsRequestBuilder) WithUrl(rawUrl string)(*ItemTodoListsItemTasksItemAttachmentSessionsRequestBuilder) { return NewItemTodoListsItemTasksItemAttachmentSessionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_todo_lists_item_tasks_item_attachments_attachment_base_item_request_builder.go b/users/item_todo_lists_item_tasks_item_attachments_attachment_base_item_request_builder.go index 338d3849555..14d3b1f9ce9 100644 --- a/users/item_todo_lists_item_tasks_item_attachments_attachment_base_item_request_builder.go +++ b/users/item_todo_lists_item_tasks_item_attachments_attachment_base_item_request_builder.go @@ -53,6 +53,7 @@ func (m *ItemTodoListsItemTasksItemAttachmentsAttachmentBaseItemRequestBuilder) return NewItemTodoListsItemTasksItemAttachmentsItemValueContentRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Delete delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemTasksItemAttachmentsAttachmentBaseItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemAttachmentsAttachmentBaseItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -69,6 +70,7 @@ func (m *ItemTodoListsItemTasksItemAttachmentsAttachmentBaseItemRequestBuilder) return nil } // Get a collection of file attachments for the task. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentBaseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemTasksItemAttachmentsAttachmentBaseItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemAttachmentsAttachmentBaseItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentBaseable, error) { @@ -89,6 +91,7 @@ func (m *ItemTodoListsItemTasksItemAttachmentsAttachmentBaseItemRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentBaseable), nil } // ToDeleteRequestInformation delete navigation property attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemTasksItemAttachmentsAttachmentBaseItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemAttachmentsAttachmentBaseItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -100,6 +103,7 @@ func (m *ItemTodoListsItemTasksItemAttachmentsAttachmentBaseItemRequestBuilder) return requestInfo, nil } // ToGetRequestInformation a collection of file attachments for the task. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemTasksItemAttachmentsAttachmentBaseItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemAttachmentsAttachmentBaseItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -114,6 +118,7 @@ func (m *ItemTodoListsItemTasksItemAttachmentsAttachmentBaseItemRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTodoListsItemTasksItemAttachmentsAttachmentBaseItemRequestBuilder when successful func (m *ItemTodoListsItemTasksItemAttachmentsAttachmentBaseItemRequestBuilder) WithUrl(rawUrl string)(*ItemTodoListsItemTasksItemAttachmentsAttachmentBaseItemRequestBuilder) { return NewItemTodoListsItemTasksItemAttachmentsAttachmentBaseItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_todo_lists_item_tasks_item_attachments_count_request_builder.go b/users/item_todo_lists_item_tasks_item_attachments_count_request_builder.go index e339c77e767..6f8100849db 100644 --- a/users/item_todo_lists_item_tasks_item_attachments_count_request_builder.go +++ b/users/item_todo_lists_item_tasks_item_attachments_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemTodoListsItemTasksItemAttachmentsCountRequestBuilder(rawUrl string, return NewItemTodoListsItemTasksItemAttachmentsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemTasksItemAttachmentsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemTodoListsItemTasksItemAttachmentsCountRequestBuilder) Get(ctx conte return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemTasksItemAttachmentsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemAttachmentsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemTodoListsItemTasksItemAttachmentsCountRequestBuilder) ToGetRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTodoListsItemTasksItemAttachmentsCountRequestBuilder when successful func (m *ItemTodoListsItemTasksItemAttachmentsCountRequestBuilder) WithUrl(rawUrl string)(*ItemTodoListsItemTasksItemAttachmentsCountRequestBuilder) { return NewItemTodoListsItemTasksItemAttachmentsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_todo_lists_item_tasks_item_attachments_create_upload_session_request_builder.go b/users/item_todo_lists_item_tasks_item_attachments_create_upload_session_request_builder.go index de82d6a5125..c5df0f437d0 100644 --- a/users/item_todo_lists_item_tasks_item_attachments_create_upload_session_request_builder.go +++ b/users/item_todo_lists_item_tasks_item_attachments_create_upload_session_request_builder.go @@ -32,6 +32,7 @@ func NewItemTodoListsItemTasksItemAttachmentsCreateUploadSessionRequestBuilder(r return NewItemTodoListsItemTasksItemAttachmentsCreateUploadSessionRequestBuilderInternal(urlParams, requestAdapter) } // Post create an upload session to iteratively upload ranges of a file as an attachment to a todoTask. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. The request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows the transfer to be resumed, in case the network connection is dropped during the upload. The following are the steps to attach a file to a Microsoft To Do task using an upload session: For an example that describes the end-to-end attachment process, see attach files to a To Do task. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UploadSessionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ItemTodoListsItemTasksItemAttachmentsCreateUploadSessionRequestBuilder) return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UploadSessionable), nil } // ToPostRequestInformation create an upload session to iteratively upload ranges of a file as an attachment to a todoTask. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. The request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows the transfer to be resumed, in case the network connection is dropped during the upload. The following are the steps to attach a file to a Microsoft To Do task using an upload session: For an example that describes the end-to-end attachment process, see attach files to a To Do task. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemTasksItemAttachmentsCreateUploadSessionRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemTodoListsItemTasksItemAttachmentsCreateUploadSessionPostRequestBodyable, requestConfiguration *ItemTodoListsItemTasksItemAttachmentsCreateUploadSessionRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ItemTodoListsItemTasksItemAttachmentsCreateUploadSessionRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTodoListsItemTasksItemAttachmentsCreateUploadSessionRequestBuilder when successful func (m *ItemTodoListsItemTasksItemAttachmentsCreateUploadSessionRequestBuilder) WithUrl(rawUrl string)(*ItemTodoListsItemTasksItemAttachmentsCreateUploadSessionRequestBuilder) { return NewItemTodoListsItemTasksItemAttachmentsCreateUploadSessionRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_todo_lists_item_tasks_item_attachments_item_value_content_request_builder.go b/users/item_todo_lists_item_tasks_item_attachments_item_value_content_request_builder.go index aa958b4920f..b22b4a6e494 100644 --- a/users/item_todo_lists_item_tasks_item_attachments_item_value_content_request_builder.go +++ b/users/item_todo_lists_item_tasks_item_attachments_item_value_content_request_builder.go @@ -45,6 +45,7 @@ func NewItemTodoListsItemTasksItemAttachmentsItemValueContentRequestBuilder(rawU return NewItemTodoListsItemTasksItemAttachmentsItemValueContentRequestBuilderInternal(urlParams, requestAdapter) } // Delete the unique identifier for an entity. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemTasksItemAttachmentsItemValueContentRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemAttachmentsItemValueContentRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -61,6 +62,7 @@ func (m *ItemTodoListsItemTasksItemAttachmentsItemValueContentRequestBuilder) De return nil } // Get the unique identifier for an entity. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemTasksItemAttachmentsItemValueContentRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemAttachmentsItemValueContentRequestBuilderGetRequestConfiguration)([]byte, error) { @@ -81,6 +83,7 @@ func (m *ItemTodoListsItemTasksItemAttachmentsItemValueContentRequestBuilder) Ge return res.([]byte), nil } // Put the unique identifier for an entity. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a []byte when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemTasksItemAttachmentsItemValueContentRequestBuilder) Put(ctx context.Context, body []byte, requestConfiguration *ItemTodoListsItemTasksItemAttachmentsItemValueContentRequestBuilderPutRequestConfiguration)([]byte, error) { @@ -101,6 +104,7 @@ func (m *ItemTodoListsItemTasksItemAttachmentsItemValueContentRequestBuilder) Pu return res.([]byte), nil } // ToDeleteRequestInformation the unique identifier for an entity. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemTasksItemAttachmentsItemValueContentRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemAttachmentsItemValueContentRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -112,6 +116,7 @@ func (m *ItemTodoListsItemTasksItemAttachmentsItemValueContentRequestBuilder) To return requestInfo, nil } // ToGetRequestInformation the unique identifier for an entity. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemTasksItemAttachmentsItemValueContentRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemAttachmentsItemValueContentRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -123,6 +128,7 @@ func (m *ItemTodoListsItemTasksItemAttachmentsItemValueContentRequestBuilder) To return requestInfo, nil } // ToPutRequestInformation the unique identifier for an entity. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemTasksItemAttachmentsItemValueContentRequestBuilder) ToPutRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemTodoListsItemTasksItemAttachmentsItemValueContentRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -135,6 +141,7 @@ func (m *ItemTodoListsItemTasksItemAttachmentsItemValueContentRequestBuilder) To return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTodoListsItemTasksItemAttachmentsItemValueContentRequestBuilder when successful func (m *ItemTodoListsItemTasksItemAttachmentsItemValueContentRequestBuilder) WithUrl(rawUrl string)(*ItemTodoListsItemTasksItemAttachmentsItemValueContentRequestBuilder) { return NewItemTodoListsItemTasksItemAttachmentsItemValueContentRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_todo_lists_item_tasks_item_attachments_request_builder.go b/users/item_todo_lists_item_tasks_item_attachments_request_builder.go index b2655f85ca8..b9e3ad7f205 100644 --- a/users/item_todo_lists_item_tasks_item_attachments_request_builder.go +++ b/users/item_todo_lists_item_tasks_item_attachments_request_builder.go @@ -47,6 +47,7 @@ type ItemTodoListsItemTasksItemAttachmentsRequestBuilderPostRequestConfiguration Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByAttachmentBaseId provides operations to manage the attachments property of the microsoft.graph.todoTask entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTodoListsItemTasksItemAttachmentsAttachmentBaseItemRequestBuilder when successful func (m *ItemTodoListsItemTasksItemAttachmentsRequestBuilder) ByAttachmentBaseId(attachmentBaseId string)(*ItemTodoListsItemTasksItemAttachmentsAttachmentBaseItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemTodoListsItemTasksItemAttachmentsRequestBuilder) CreateUploadSessio return NewItemTodoListsItemTasksItemAttachmentsCreateUploadSessionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get a collection of file attachments for the task. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentBaseCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemTasksItemAttachmentsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemAttachmentsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentBaseCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemTodoListsItemTasksItemAttachmentsRequestBuilder) Get(ctx context.Co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentBaseCollectionResponseable), nil } // Post create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AttachmentBaseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemTasksItemAttachmentsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentBaseable, requestConfiguration *ItemTodoListsItemTasksItemAttachmentsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentBaseable, error) { @@ -122,6 +125,7 @@ func (m *ItemTodoListsItemTasksItemAttachmentsRequestBuilder) Post(ctx context.C return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentBaseable), nil } // ToGetRequestInformation a collection of file attachments for the task. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemTasksItemAttachmentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemAttachmentsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemTodoListsItemTasksItemAttachmentsRequestBuilder) ToGetRequestInform return requestInfo, nil } // ToPostRequestInformation create new navigation property to attachments for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemTasksItemAttachmentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AttachmentBaseable, requestConfiguration *ItemTodoListsItemTasksItemAttachmentsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemTodoListsItemTasksItemAttachmentsRequestBuilder) ToPostRequestInfor return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTodoListsItemTasksItemAttachmentsRequestBuilder when successful func (m *ItemTodoListsItemTasksItemAttachmentsRequestBuilder) WithUrl(rawUrl string)(*ItemTodoListsItemTasksItemAttachmentsRequestBuilder) { return NewItemTodoListsItemTasksItemAttachmentsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_todo_lists_item_tasks_item_checklist_items_checklist_item_item_request_builder.go b/users/item_todo_lists_item_tasks_item_checklist_items_checklist_item_item_request_builder.go index 50d8da84d9e..ace6b7ebd0f 100644 --- a/users/item_todo_lists_item_tasks_item_checklist_items_checklist_item_item_request_builder.go +++ b/users/item_todo_lists_item_tasks_item_checklist_items_checklist_item_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemTodoListsItemTasksItemChecklistItemsChecklistItemItemRequestBuilder( return NewItemTodoListsItemTasksItemChecklistItemsChecklistItemItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property checklistItems for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemTasksItemChecklistItemsChecklistItemItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemChecklistItemsChecklistItemItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemTodoListsItemTasksItemChecklistItemsChecklistItemItemRequestBuilder return nil } // Get a collection of smaller subtasks linked to the more complex parent task. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ChecklistItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemTasksItemChecklistItemsChecklistItemItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemChecklistItemsChecklistItemItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChecklistItemable, error) { @@ -91,6 +93,7 @@ func (m *ItemTodoListsItemTasksItemChecklistItemsChecklistItemItemRequestBuilder return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChecklistItemable), nil } // Patch update the navigation property checklistItems in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ChecklistItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemTasksItemChecklistItemsChecklistItemItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChecklistItemable, requestConfiguration *ItemTodoListsItemTasksItemChecklistItemsChecklistItemItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChecklistItemable, error) { @@ -111,6 +114,7 @@ func (m *ItemTodoListsItemTasksItemChecklistItemsChecklistItemItemRequestBuilder return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChecklistItemable), nil } // ToDeleteRequestInformation delete navigation property checklistItems for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemTasksItemChecklistItemsChecklistItemItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemChecklistItemsChecklistItemItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemTodoListsItemTasksItemChecklistItemsChecklistItemItemRequestBuilder return requestInfo, nil } // ToGetRequestInformation a collection of smaller subtasks linked to the more complex parent task. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemTasksItemChecklistItemsChecklistItemItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemChecklistItemsChecklistItemItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemTodoListsItemTasksItemChecklistItemsChecklistItemItemRequestBuilder return requestInfo, nil } // ToPatchRequestInformation update the navigation property checklistItems in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemTasksItemChecklistItemsChecklistItemItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChecklistItemable, requestConfiguration *ItemTodoListsItemTasksItemChecklistItemsChecklistItemItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemTodoListsItemTasksItemChecklistItemsChecklistItemItemRequestBuilder return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTodoListsItemTasksItemChecklistItemsChecklistItemItemRequestBuilder when successful func (m *ItemTodoListsItemTasksItemChecklistItemsChecklistItemItemRequestBuilder) WithUrl(rawUrl string)(*ItemTodoListsItemTasksItemChecklistItemsChecklistItemItemRequestBuilder) { return NewItemTodoListsItemTasksItemChecklistItemsChecklistItemItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_todo_lists_item_tasks_item_checklist_items_count_request_builder.go b/users/item_todo_lists_item_tasks_item_checklist_items_count_request_builder.go index aeea3efd2c2..e9e44f9c5ef 100644 --- a/users/item_todo_lists_item_tasks_item_checklist_items_count_request_builder.go +++ b/users/item_todo_lists_item_tasks_item_checklist_items_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemTodoListsItemTasksItemChecklistItemsCountRequestBuilder(rawUrl strin return NewItemTodoListsItemTasksItemChecklistItemsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemTasksItemChecklistItemsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemChecklistItemsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemTodoListsItemTasksItemChecklistItemsCountRequestBuilder) Get(ctx co return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemTasksItemChecklistItemsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemChecklistItemsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemTodoListsItemTasksItemChecklistItemsCountRequestBuilder) ToGetReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTodoListsItemTasksItemChecklistItemsCountRequestBuilder when successful func (m *ItemTodoListsItemTasksItemChecklistItemsCountRequestBuilder) WithUrl(rawUrl string)(*ItemTodoListsItemTasksItemChecklistItemsCountRequestBuilder) { return NewItemTodoListsItemTasksItemChecklistItemsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_todo_lists_item_tasks_item_checklist_items_request_builder.go b/users/item_todo_lists_item_tasks_item_checklist_items_request_builder.go index f0fd172001f..c92d4d904cf 100644 --- a/users/item_todo_lists_item_tasks_item_checklist_items_request_builder.go +++ b/users/item_todo_lists_item_tasks_item_checklist_items_request_builder.go @@ -47,6 +47,7 @@ type ItemTodoListsItemTasksItemChecklistItemsRequestBuilderPostRequestConfigurat Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByChecklistItemId provides operations to manage the checklistItems property of the microsoft.graph.todoTask entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTodoListsItemTasksItemChecklistItemsChecklistItemItemRequestBuilder when successful func (m *ItemTodoListsItemTasksItemChecklistItemsRequestBuilder) ByChecklistItemId(checklistItemId string)(*ItemTodoListsItemTasksItemChecklistItemsChecklistItemItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemTodoListsItemTasksItemChecklistItemsRequestBuilder) Count()(*ItemTo return NewItemTodoListsItemTasksItemChecklistItemsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get a collection of smaller subtasks linked to the more complex parent task. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ChecklistItemCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemTasksItemChecklistItemsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemChecklistItemsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChecklistItemCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemTodoListsItemTasksItemChecklistItemsRequestBuilder) Get(ctx context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChecklistItemCollectionResponseable), nil } // Post create new navigation property to checklistItems for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ChecklistItemable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemTasksItemChecklistItemsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChecklistItemable, requestConfiguration *ItemTodoListsItemTasksItemChecklistItemsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChecklistItemable, error) { @@ -117,6 +120,7 @@ func (m *ItemTodoListsItemTasksItemChecklistItemsRequestBuilder) Post(ctx contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChecklistItemable), nil } // ToGetRequestInformation a collection of smaller subtasks linked to the more complex parent task. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemTasksItemChecklistItemsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemChecklistItemsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemTodoListsItemTasksItemChecklistItemsRequestBuilder) ToGetRequestInf return requestInfo, nil } // ToPostRequestInformation create new navigation property to checklistItems for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemTasksItemChecklistItemsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ChecklistItemable, requestConfiguration *ItemTodoListsItemTasksItemChecklistItemsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemTodoListsItemTasksItemChecklistItemsRequestBuilder) ToPostRequestIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTodoListsItemTasksItemChecklistItemsRequestBuilder when successful func (m *ItemTodoListsItemTasksItemChecklistItemsRequestBuilder) WithUrl(rawUrl string)(*ItemTodoListsItemTasksItemChecklistItemsRequestBuilder) { return NewItemTodoListsItemTasksItemChecklistItemsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_todo_lists_item_tasks_item_extensions_count_request_builder.go b/users/item_todo_lists_item_tasks_item_extensions_count_request_builder.go index ac04fb85727..0970920e2a0 100644 --- a/users/item_todo_lists_item_tasks_item_extensions_count_request_builder.go +++ b/users/item_todo_lists_item_tasks_item_extensions_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemTodoListsItemTasksItemExtensionsCountRequestBuilder(rawUrl string, r return NewItemTodoListsItemTasksItemExtensionsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemTasksItemExtensionsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemExtensionsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemTodoListsItemTasksItemExtensionsCountRequestBuilder) Get(ctx contex return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemTasksItemExtensionsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemExtensionsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemTodoListsItemTasksItemExtensionsCountRequestBuilder) ToGetRequestIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTodoListsItemTasksItemExtensionsCountRequestBuilder when successful func (m *ItemTodoListsItemTasksItemExtensionsCountRequestBuilder) WithUrl(rawUrl string)(*ItemTodoListsItemTasksItemExtensionsCountRequestBuilder) { return NewItemTodoListsItemTasksItemExtensionsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_todo_lists_item_tasks_item_extensions_extension_item_request_builder.go b/users/item_todo_lists_item_tasks_item_extensions_extension_item_request_builder.go index 8584a5386d9..68dc95c547f 100644 --- a/users/item_todo_lists_item_tasks_item_extensions_extension_item_request_builder.go +++ b/users/item_todo_lists_item_tasks_item_extensions_extension_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemTodoListsItemTasksItemExtensionsExtensionItemRequestBuilder(rawUrl s return NewItemTodoListsItemTasksItemExtensionsExtensionItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemTasksItemExtensionsExtensionItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemTodoListsItemTasksItemExtensionsExtensionItemRequestBuilder) Delete return nil } // Get the collection of open extensions defined for the task. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemTasksItemExtensionsExtensionItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -91,6 +93,7 @@ func (m *ItemTodoListsItemTasksItemExtensionsExtensionItemRequestBuilder) Get(ct return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // Patch update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemTasksItemExtensionsExtensionItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemTodoListsItemTasksItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -111,6 +114,7 @@ func (m *ItemTodoListsItemTasksItemExtensionsExtensionItemRequestBuilder) Patch( return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToDeleteRequestInformation delete navigation property extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemTasksItemExtensionsExtensionItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemExtensionsExtensionItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemTodoListsItemTasksItemExtensionsExtensionItemRequestBuilder) ToDele return requestInfo, nil } // ToGetRequestInformation the collection of open extensions defined for the task. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemTasksItemExtensionsExtensionItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemExtensionsExtensionItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemTodoListsItemTasksItemExtensionsExtensionItemRequestBuilder) ToGetR return requestInfo, nil } // ToPatchRequestInformation update the navigation property extensions in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemTasksItemExtensionsExtensionItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemTodoListsItemTasksItemExtensionsExtensionItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemTodoListsItemTasksItemExtensionsExtensionItemRequestBuilder) ToPatc return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTodoListsItemTasksItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemTodoListsItemTasksItemExtensionsExtensionItemRequestBuilder) WithUrl(rawUrl string)(*ItemTodoListsItemTasksItemExtensionsExtensionItemRequestBuilder) { return NewItemTodoListsItemTasksItemExtensionsExtensionItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_todo_lists_item_tasks_item_extensions_request_builder.go b/users/item_todo_lists_item_tasks_item_extensions_request_builder.go index fafa29289d5..3db56141bc4 100644 --- a/users/item_todo_lists_item_tasks_item_extensions_request_builder.go +++ b/users/item_todo_lists_item_tasks_item_extensions_request_builder.go @@ -47,6 +47,7 @@ type ItemTodoListsItemTasksItemExtensionsRequestBuilderPostRequestConfiguration Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByExtensionId provides operations to manage the extensions property of the microsoft.graph.todoTask entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTodoListsItemTasksItemExtensionsExtensionItemRequestBuilder when successful func (m *ItemTodoListsItemTasksItemExtensionsRequestBuilder) ByExtensionId(extensionId string)(*ItemTodoListsItemTasksItemExtensionsExtensionItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemTodoListsItemTasksItemExtensionsRequestBuilder) Count()(*ItemTodoLi return NewItemTodoListsItemTasksItemExtensionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the collection of open extensions defined for the task. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ExtensionCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemTasksItemExtensionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemExtensionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemTodoListsItemTasksItemExtensionsRequestBuilder) Get(ctx context.Con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.ExtensionCollectionResponseable), nil } // Post create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Extensionable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemTasksItemExtensionsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemTodoListsItemTasksItemExtensionsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, error) { @@ -117,6 +120,7 @@ func (m *ItemTodoListsItemTasksItemExtensionsRequestBuilder) Post(ctx context.Co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable), nil } // ToGetRequestInformation the collection of open extensions defined for the task. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemTasksItemExtensionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemExtensionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemTodoListsItemTasksItemExtensionsRequestBuilder) ToGetRequestInforma return requestInfo, nil } // ToPostRequestInformation create new navigation property to extensions for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemTasksItemExtensionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Extensionable, requestConfiguration *ItemTodoListsItemTasksItemExtensionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemTodoListsItemTasksItemExtensionsRequestBuilder) ToPostRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTodoListsItemTasksItemExtensionsRequestBuilder when successful func (m *ItemTodoListsItemTasksItemExtensionsRequestBuilder) WithUrl(rawUrl string)(*ItemTodoListsItemTasksItemExtensionsRequestBuilder) { return NewItemTodoListsItemTasksItemExtensionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_todo_lists_item_tasks_item_linked_resources_count_request_builder.go b/users/item_todo_lists_item_tasks_item_linked_resources_count_request_builder.go index d625392469d..6307859a854 100644 --- a/users/item_todo_lists_item_tasks_item_linked_resources_count_request_builder.go +++ b/users/item_todo_lists_item_tasks_item_linked_resources_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemTodoListsItemTasksItemLinkedResourcesCountRequestBuilder(rawUrl stri return NewItemTodoListsItemTasksItemLinkedResourcesCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemTasksItemLinkedResourcesCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemLinkedResourcesCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemTodoListsItemTasksItemLinkedResourcesCountRequestBuilder) Get(ctx c return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemTasksItemLinkedResourcesCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemLinkedResourcesCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemTodoListsItemTasksItemLinkedResourcesCountRequestBuilder) ToGetRequ return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTodoListsItemTasksItemLinkedResourcesCountRequestBuilder when successful func (m *ItemTodoListsItemTasksItemLinkedResourcesCountRequestBuilder) WithUrl(rawUrl string)(*ItemTodoListsItemTasksItemLinkedResourcesCountRequestBuilder) { return NewItemTodoListsItemTasksItemLinkedResourcesCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_todo_lists_item_tasks_item_linked_resources_linked_resource_item_request_builder.go b/users/item_todo_lists_item_tasks_item_linked_resources_linked_resource_item_request_builder.go index 9a01fd7bcd1..4787d91f40f 100644 --- a/users/item_todo_lists_item_tasks_item_linked_resources_linked_resource_item_request_builder.go +++ b/users/item_todo_lists_item_tasks_item_linked_resources_linked_resource_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemTodoListsItemTasksItemLinkedResourcesLinkedResourceItemRequestBuilde return NewItemTodoListsItemTasksItemLinkedResourcesLinkedResourceItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property linkedResources for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemTasksItemLinkedResourcesLinkedResourceItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemLinkedResourcesLinkedResourceItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemTodoListsItemTasksItemLinkedResourcesLinkedResourceItemRequestBuild return nil } // Get a collection of resources linked to the task. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a LinkedResourceable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemTasksItemLinkedResourcesLinkedResourceItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemLinkedResourcesLinkedResourceItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LinkedResourceable, error) { @@ -91,6 +93,7 @@ func (m *ItemTodoListsItemTasksItemLinkedResourcesLinkedResourceItemRequestBuild return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LinkedResourceable), nil } // Patch update the navigation property linkedResources in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a LinkedResourceable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemTasksItemLinkedResourcesLinkedResourceItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LinkedResourceable, requestConfiguration *ItemTodoListsItemTasksItemLinkedResourcesLinkedResourceItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LinkedResourceable, error) { @@ -111,6 +114,7 @@ func (m *ItemTodoListsItemTasksItemLinkedResourcesLinkedResourceItemRequestBuild return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LinkedResourceable), nil } // ToDeleteRequestInformation delete navigation property linkedResources for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemTasksItemLinkedResourcesLinkedResourceItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemLinkedResourcesLinkedResourceItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemTodoListsItemTasksItemLinkedResourcesLinkedResourceItemRequestBuild return requestInfo, nil } // ToGetRequestInformation a collection of resources linked to the task. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemTasksItemLinkedResourcesLinkedResourceItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemLinkedResourcesLinkedResourceItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemTodoListsItemTasksItemLinkedResourcesLinkedResourceItemRequestBuild return requestInfo, nil } // ToPatchRequestInformation update the navigation property linkedResources in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemTasksItemLinkedResourcesLinkedResourceItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LinkedResourceable, requestConfiguration *ItemTodoListsItemTasksItemLinkedResourcesLinkedResourceItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemTodoListsItemTasksItemLinkedResourcesLinkedResourceItemRequestBuild return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTodoListsItemTasksItemLinkedResourcesLinkedResourceItemRequestBuilder when successful func (m *ItemTodoListsItemTasksItemLinkedResourcesLinkedResourceItemRequestBuilder) WithUrl(rawUrl string)(*ItemTodoListsItemTasksItemLinkedResourcesLinkedResourceItemRequestBuilder) { return NewItemTodoListsItemTasksItemLinkedResourcesLinkedResourceItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_todo_lists_item_tasks_item_linked_resources_request_builder.go b/users/item_todo_lists_item_tasks_item_linked_resources_request_builder.go index 694a78d150f..f1b657bd948 100644 --- a/users/item_todo_lists_item_tasks_item_linked_resources_request_builder.go +++ b/users/item_todo_lists_item_tasks_item_linked_resources_request_builder.go @@ -47,6 +47,7 @@ type ItemTodoListsItemTasksItemLinkedResourcesRequestBuilderPostRequestConfigura Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByLinkedResourceId provides operations to manage the linkedResources property of the microsoft.graph.todoTask entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTodoListsItemTasksItemLinkedResourcesLinkedResourceItemRequestBuilder when successful func (m *ItemTodoListsItemTasksItemLinkedResourcesRequestBuilder) ByLinkedResourceId(linkedResourceId string)(*ItemTodoListsItemTasksItemLinkedResourcesLinkedResourceItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemTodoListsItemTasksItemLinkedResourcesRequestBuilder) Count()(*ItemT return NewItemTodoListsItemTasksItemLinkedResourcesCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get a collection of resources linked to the task. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a LinkedResourceCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemTasksItemLinkedResourcesRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemLinkedResourcesRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LinkedResourceCollectionResponseable, error) { @@ -97,6 +99,7 @@ func (m *ItemTodoListsItemTasksItemLinkedResourcesRequestBuilder) Get(ctx contex return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LinkedResourceCollectionResponseable), nil } // Post create new navigation property to linkedResources for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a LinkedResourceable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemTasksItemLinkedResourcesRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LinkedResourceable, requestConfiguration *ItemTodoListsItemTasksItemLinkedResourcesRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LinkedResourceable, error) { @@ -117,6 +120,7 @@ func (m *ItemTodoListsItemTasksItemLinkedResourcesRequestBuilder) Post(ctx conte return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LinkedResourceable), nil } // ToGetRequestInformation a collection of resources linked to the task. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemTasksItemLinkedResourcesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksItemLinkedResourcesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -131,6 +135,7 @@ func (m *ItemTodoListsItemTasksItemLinkedResourcesRequestBuilder) ToGetRequestIn return requestInfo, nil } // ToPostRequestInformation create new navigation property to linkedResources for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemTasksItemLinkedResourcesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.LinkedResourceable, requestConfiguration *ItemTodoListsItemTasksItemLinkedResourcesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemTodoListsItemTasksItemLinkedResourcesRequestBuilder) ToPostRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTodoListsItemTasksItemLinkedResourcesRequestBuilder when successful func (m *ItemTodoListsItemTasksItemLinkedResourcesRequestBuilder) WithUrl(rawUrl string)(*ItemTodoListsItemTasksItemLinkedResourcesRequestBuilder) { return NewItemTodoListsItemTasksItemLinkedResourcesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_todo_lists_item_tasks_request_builder.go b/users/item_todo_lists_item_tasks_request_builder.go index 4dab759bc88..31d20f3da0f 100644 --- a/users/item_todo_lists_item_tasks_request_builder.go +++ b/users/item_todo_lists_item_tasks_request_builder.go @@ -47,6 +47,7 @@ type ItemTodoListsItemTasksRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByTodoTaskId provides operations to manage the tasks property of the microsoft.graph.todoTaskList entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTodoListsItemTasksTodoTaskItemRequestBuilder when successful func (m *ItemTodoListsItemTasksRequestBuilder) ByTodoTaskId(todoTaskId string)(*ItemTodoListsItemTasksTodoTaskItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemTodoListsItemTasksRequestBuilder) Delta()(*ItemTodoListsItemTasksDe return NewItemTodoListsItemTasksDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the tasks in this task list. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a TodoTaskCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemTasksRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TodoTaskCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemTodoListsItemTasksRequestBuilder) Get(ctx context.Context, requestC return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TodoTaskCollectionResponseable), nil } // Post create new navigation property to tasks for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a TodoTaskable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemTasksRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TodoTaskable, requestConfiguration *ItemTodoListsItemTasksRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TodoTaskable, error) { @@ -122,6 +125,7 @@ func (m *ItemTodoListsItemTasksRequestBuilder) Post(ctx context.Context, body ie return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TodoTaskable), nil } // ToGetRequestInformation the tasks in this task list. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemTasksRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemTodoListsItemTasksRequestBuilder) ToGetRequestInformation(ctx conte return requestInfo, nil } // ToPostRequestInformation create new navigation property to tasks for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemTasksRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TodoTaskable, requestConfiguration *ItemTodoListsItemTasksRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemTodoListsItemTasksRequestBuilder) ToPostRequestInformation(ctx cont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTodoListsItemTasksRequestBuilder when successful func (m *ItemTodoListsItemTasksRequestBuilder) WithUrl(rawUrl string)(*ItemTodoListsItemTasksRequestBuilder) { return NewItemTodoListsItemTasksRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_todo_lists_item_tasks_todo_task_item_request_builder.go b/users/item_todo_lists_item_tasks_todo_task_item_request_builder.go index 06fa969ddc4..9c789f8526d 100644 --- a/users/item_todo_lists_item_tasks_todo_task_item_request_builder.go +++ b/users/item_todo_lists_item_tasks_todo_task_item_request_builder.go @@ -70,6 +70,7 @@ func NewItemTodoListsItemTasksTodoTaskItemRequestBuilder(rawUrl string, requestA return NewItemTodoListsItemTasksTodoTaskItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property tasks for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemTasksTodoTaskItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksTodoTaskItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -91,6 +92,7 @@ func (m *ItemTodoListsItemTasksTodoTaskItemRequestBuilder) Extensions()(*ItemTod return NewItemTodoListsItemTasksItemExtensionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the tasks in this task list. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a TodoTaskable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemTasksTodoTaskItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksTodoTaskItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TodoTaskable, error) { @@ -116,6 +118,7 @@ func (m *ItemTodoListsItemTasksTodoTaskItemRequestBuilder) LinkedResources()(*It return NewItemTodoListsItemTasksItemLinkedResourcesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property tasks in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a TodoTaskable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsItemTasksTodoTaskItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TodoTaskable, requestConfiguration *ItemTodoListsItemTasksTodoTaskItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TodoTaskable, error) { @@ -136,6 +139,7 @@ func (m *ItemTodoListsItemTasksTodoTaskItemRequestBuilder) Patch(ctx context.Con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TodoTaskable), nil } // ToDeleteRequestInformation delete navigation property tasks for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemTasksTodoTaskItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksTodoTaskItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -147,6 +151,7 @@ func (m *ItemTodoListsItemTasksTodoTaskItemRequestBuilder) ToDeleteRequestInform return requestInfo, nil } // ToGetRequestInformation the tasks in this task list. Read-only. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemTasksTodoTaskItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTodoListsItemTasksTodoTaskItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -161,6 +166,7 @@ func (m *ItemTodoListsItemTasksTodoTaskItemRequestBuilder) ToGetRequestInformati return requestInfo, nil } // ToPatchRequestInformation update the navigation property tasks in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsItemTasksTodoTaskItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TodoTaskable, requestConfiguration *ItemTodoListsItemTasksTodoTaskItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -176,6 +182,7 @@ func (m *ItemTodoListsItemTasksTodoTaskItemRequestBuilder) ToPatchRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTodoListsItemTasksTodoTaskItemRequestBuilder when successful func (m *ItemTodoListsItemTasksTodoTaskItemRequestBuilder) WithUrl(rawUrl string)(*ItemTodoListsItemTasksTodoTaskItemRequestBuilder) { return NewItemTodoListsItemTasksTodoTaskItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_todo_lists_request_builder.go b/users/item_todo_lists_request_builder.go index 6e606b7a561..4e5bb24cd99 100644 --- a/users/item_todo_lists_request_builder.go +++ b/users/item_todo_lists_request_builder.go @@ -47,6 +47,7 @@ type ItemTodoListsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByTodoTaskListId provides operations to manage the lists property of the microsoft.graph.todo entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTodoListsTodoTaskListItemRequestBuilder when successful func (m *ItemTodoListsRequestBuilder) ByTodoTaskListId(todoTaskListId string)(*ItemTodoListsTodoTaskListItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -82,6 +83,7 @@ func (m *ItemTodoListsRequestBuilder) Delta()(*ItemTodoListsDeltaRequestBuilder) return NewItemTodoListsDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the task lists in the users mailbox. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a TodoTaskListCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTodoListsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TodoTaskListCollectionResponseable, error) { @@ -102,6 +104,7 @@ func (m *ItemTodoListsRequestBuilder) Get(ctx context.Context, requestConfigurat return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TodoTaskListCollectionResponseable), nil } // Post create new navigation property to lists for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a TodoTaskListable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TodoTaskListable, requestConfiguration *ItemTodoListsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TodoTaskListable, error) { @@ -122,6 +125,7 @@ func (m *ItemTodoListsRequestBuilder) Post(ctx context.Context, body ie233ee762e return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TodoTaskListable), nil } // ToGetRequestInformation the task lists in the users mailbox. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTodoListsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +140,7 @@ func (m *ItemTodoListsRequestBuilder) ToGetRequestInformation(ctx context.Contex return requestInfo, nil } // ToPostRequestInformation create new navigation property to lists for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TodoTaskListable, requestConfiguration *ItemTodoListsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +156,7 @@ func (m *ItemTodoListsRequestBuilder) ToPostRequestInformation(ctx context.Conte return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTodoListsRequestBuilder when successful func (m *ItemTodoListsRequestBuilder) WithUrl(rawUrl string)(*ItemTodoListsRequestBuilder) { return NewItemTodoListsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_todo_lists_todo_task_list_item_request_builder.go b/users/item_todo_lists_todo_task_list_item_request_builder.go index 2bba19b73de..cf16264c28c 100644 --- a/users/item_todo_lists_todo_task_list_item_request_builder.go +++ b/users/item_todo_lists_todo_task_list_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemTodoListsTodoTaskListItemRequestBuilder(rawUrl string, requestAdapte return NewItemTodoListsTodoTaskListItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property lists for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsTodoTaskListItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemTodoListsTodoTaskListItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -76,6 +77,7 @@ func (m *ItemTodoListsTodoTaskListItemRequestBuilder) Extensions()(*ItemTodoList return NewItemTodoListsItemExtensionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get the task lists in the users mailbox. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a TodoTaskListable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsTodoTaskListItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTodoListsTodoTaskListItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TodoTaskListable, error) { @@ -96,6 +98,7 @@ func (m *ItemTodoListsTodoTaskListItemRequestBuilder) Get(ctx context.Context, r return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TodoTaskListable), nil } // Patch update the navigation property lists in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a TodoTaskListable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoListsTodoTaskListItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TodoTaskListable, requestConfiguration *ItemTodoListsTodoTaskListItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TodoTaskListable, error) { @@ -121,6 +124,7 @@ func (m *ItemTodoListsTodoTaskListItemRequestBuilder) Tasks()(*ItemTodoListsItem return NewItemTodoListsItemTasksRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete navigation property lists for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsTodoTaskListItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemTodoListsTodoTaskListItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -132,6 +136,7 @@ func (m *ItemTodoListsTodoTaskListItemRequestBuilder) ToDeleteRequestInformation return requestInfo, nil } // ToGetRequestInformation the task lists in the users mailbox. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsTodoTaskListItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTodoListsTodoTaskListItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -146,6 +151,7 @@ func (m *ItemTodoListsTodoTaskListItemRequestBuilder) ToGetRequestInformation(ct return requestInfo, nil } // ToPatchRequestInformation update the navigation property lists in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoListsTodoTaskListItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.TodoTaskListable, requestConfiguration *ItemTodoListsTodoTaskListItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -161,6 +167,7 @@ func (m *ItemTodoListsTodoTaskListItemRequestBuilder) ToPatchRequestInformation( return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTodoListsTodoTaskListItemRequestBuilder when successful func (m *ItemTodoListsTodoTaskListItemRequestBuilder) WithUrl(rawUrl string)(*ItemTodoListsTodoTaskListItemRequestBuilder) { return NewItemTodoListsTodoTaskListItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_todo_request_builder.go b/users/item_todo_request_builder.go index 41c3c863748..c45d301bfde 100644 --- a/users/item_todo_request_builder.go +++ b/users/item_todo_request_builder.go @@ -55,6 +55,7 @@ func NewItemTodoRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee26337 return NewItemTodoRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property todo for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemTodoRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemTodoRequestBuilder) Delete(ctx context.Context, requestConfiguratio return nil } // Get represents the To Do services available to a user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Todoable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTodoRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Todoable, error) { @@ -96,6 +98,7 @@ func (m *ItemTodoRequestBuilder) Lists()(*ItemTodoListsRequestBuilder) { return NewItemTodoListsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the navigation property todo in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Todoable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTodoRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Todoable, requestConfiguration *ItemTodoRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Todoable, error) { @@ -116,6 +119,7 @@ func (m *ItemTodoRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4 return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Todoable), nil } // ToDeleteRequestInformation delete navigation property todo for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemTodoRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -127,6 +131,7 @@ func (m *ItemTodoRequestBuilder) ToDeleteRequestInformation(ctx context.Context, return requestInfo, nil } // ToGetRequestInformation represents the To Do services available to a user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTodoRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -141,6 +146,7 @@ func (m *ItemTodoRequestBuilder) ToGetRequestInformation(ctx context.Context, re return requestInfo, nil } // ToPatchRequestInformation update the navigation property todo in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTodoRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Todoable, requestConfiguration *ItemTodoRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +162,7 @@ func (m *ItemTodoRequestBuilder) ToPatchRequestInformation(ctx context.Context, return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTodoRequestBuilder when successful func (m *ItemTodoRequestBuilder) WithUrl(rawUrl string)(*ItemTodoRequestBuilder) { return NewItemTodoRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_transitive_member_of_count_request_builder.go b/users/item_transitive_member_of_count_request_builder.go index 8c89b2122fa..55f827499bc 100644 --- a/users/item_transitive_member_of_count_request_builder.go +++ b/users/item_transitive_member_of_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemTransitiveMemberOfCountRequestBuilder(rawUrl string, requestAdapter return NewItemTransitiveMemberOfCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTransitiveMemberOfCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTransitiveMemberOfCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemTransitiveMemberOfCountRequestBuilder) Get(ctx context.Context, req return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTransitiveMemberOfCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTransitiveMemberOfCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemTransitiveMemberOfCountRequestBuilder) ToGetRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTransitiveMemberOfCountRequestBuilder when successful func (m *ItemTransitiveMemberOfCountRequestBuilder) WithUrl(rawUrl string)(*ItemTransitiveMemberOfCountRequestBuilder) { return NewItemTransitiveMemberOfCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_transitive_member_of_directory_object_item_request_builder.go b/users/item_transitive_member_of_directory_object_item_request_builder.go index d4e01cfd11e..e5483d1648c 100644 --- a/users/item_transitive_member_of_directory_object_item_request_builder.go +++ b/users/item_transitive_member_of_directory_object_item_request_builder.go @@ -41,6 +41,7 @@ func NewItemTransitiveMemberOfDirectoryObjectItemRequestBuilder(rawUrl string, r return NewItemTransitiveMemberOfDirectoryObjectItemRequestBuilderInternal(urlParams, requestAdapter) } // Get the groups, including nested groups and directory roles that a user is a member of. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DirectoryObjectable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTransitiveMemberOfDirectoryObjectItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTransitiveMemberOfDirectoryObjectItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryObjectable, error) { @@ -76,6 +77,7 @@ func (m *ItemTransitiveMemberOfDirectoryObjectItemRequestBuilder) GraphGroup()(* return NewItemTransitiveMemberOfItemGraphGroupRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation the groups, including nested groups and directory roles that a user is a member of. Nullable. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTransitiveMemberOfDirectoryObjectItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTransitiveMemberOfDirectoryObjectItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -90,6 +92,7 @@ func (m *ItemTransitiveMemberOfDirectoryObjectItemRequestBuilder) ToGetRequestIn return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTransitiveMemberOfDirectoryObjectItemRequestBuilder when successful func (m *ItemTransitiveMemberOfDirectoryObjectItemRequestBuilder) WithUrl(rawUrl string)(*ItemTransitiveMemberOfDirectoryObjectItemRequestBuilder) { return NewItemTransitiveMemberOfDirectoryObjectItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_transitive_member_of_graph_administrative_unit_count_request_builder.go b/users/item_transitive_member_of_graph_administrative_unit_count_request_builder.go index 80ad069c1ea..2bfa2b64666 100644 --- a/users/item_transitive_member_of_graph_administrative_unit_count_request_builder.go +++ b/users/item_transitive_member_of_graph_administrative_unit_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemTransitiveMemberOfGraphAdministrativeUnitCountRequestBuilder(rawUrl return NewItemTransitiveMemberOfGraphAdministrativeUnitCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTransitiveMemberOfGraphAdministrativeUnitCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTransitiveMemberOfGraphAdministrativeUnitCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemTransitiveMemberOfGraphAdministrativeUnitCountRequestBuilder) Get(c return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTransitiveMemberOfGraphAdministrativeUnitCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTransitiveMemberOfGraphAdministrativeUnitCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemTransitiveMemberOfGraphAdministrativeUnitCountRequestBuilder) ToGet return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTransitiveMemberOfGraphAdministrativeUnitCountRequestBuilder when successful func (m *ItemTransitiveMemberOfGraphAdministrativeUnitCountRequestBuilder) WithUrl(rawUrl string)(*ItemTransitiveMemberOfGraphAdministrativeUnitCountRequestBuilder) { return NewItemTransitiveMemberOfGraphAdministrativeUnitCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_transitive_member_of_graph_administrative_unit_request_builder.go b/users/item_transitive_member_of_graph_administrative_unit_request_builder.go index 328fcc75fd5..96385ec2af9 100644 --- a/users/item_transitive_member_of_graph_administrative_unit_request_builder.go +++ b/users/item_transitive_member_of_graph_administrative_unit_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemTransitiveMemberOfGraphAdministrativeUnitRequestBuilder) Count()(*I return NewItemTransitiveMemberOfGraphAdministrativeUnitCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AdministrativeUnitCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTransitiveMemberOfGraphAdministrativeUnitRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTransitiveMemberOfGraphAdministrativeUnitRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdministrativeUnitCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemTransitiveMemberOfGraphAdministrativeUnitRequestBuilder) Get(ctx co return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdministrativeUnitCollectionResponseable), nil } // ToGetRequestInformation get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTransitiveMemberOfGraphAdministrativeUnitRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTransitiveMemberOfGraphAdministrativeUnitRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemTransitiveMemberOfGraphAdministrativeUnitRequestBuilder) ToGetReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTransitiveMemberOfGraphAdministrativeUnitRequestBuilder when successful func (m *ItemTransitiveMemberOfGraphAdministrativeUnitRequestBuilder) WithUrl(rawUrl string)(*ItemTransitiveMemberOfGraphAdministrativeUnitRequestBuilder) { return NewItemTransitiveMemberOfGraphAdministrativeUnitRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_transitive_member_of_graph_directory_role_count_request_builder.go b/users/item_transitive_member_of_graph_directory_role_count_request_builder.go index 3be82c1bd4b..844e3e88053 100644 --- a/users/item_transitive_member_of_graph_directory_role_count_request_builder.go +++ b/users/item_transitive_member_of_graph_directory_role_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilder(rawUrl strin return NewItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilder) Get(ctx co return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilder) ToGetReque return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilder when successful func (m *ItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilder) WithUrl(rawUrl string)(*ItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilder) { return NewItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_transitive_member_of_graph_directory_role_request_builder.go b/users/item_transitive_member_of_graph_directory_role_request_builder.go index 4bd7d4e0e11..5b1f9454ee3 100644 --- a/users/item_transitive_member_of_graph_directory_role_request_builder.go +++ b/users/item_transitive_member_of_graph_directory_role_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemTransitiveMemberOfGraphDirectoryRoleRequestBuilder) Count()(*ItemTr return NewItemTransitiveMemberOfGraphDirectoryRoleCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get the items of type microsoft.graph.directoryRole in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DirectoryRoleCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTransitiveMemberOfGraphDirectoryRoleRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTransitiveMemberOfGraphDirectoryRoleRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryRoleCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemTransitiveMemberOfGraphDirectoryRoleRequestBuilder) Get(ctx context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryRoleCollectionResponseable), nil } // ToGetRequestInformation get the items of type microsoft.graph.directoryRole in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTransitiveMemberOfGraphDirectoryRoleRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTransitiveMemberOfGraphDirectoryRoleRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemTransitiveMemberOfGraphDirectoryRoleRequestBuilder) ToGetRequestInf return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTransitiveMemberOfGraphDirectoryRoleRequestBuilder when successful func (m *ItemTransitiveMemberOfGraphDirectoryRoleRequestBuilder) WithUrl(rawUrl string)(*ItemTransitiveMemberOfGraphDirectoryRoleRequestBuilder) { return NewItemTransitiveMemberOfGraphDirectoryRoleRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_transitive_member_of_graph_group_count_request_builder.go b/users/item_transitive_member_of_graph_group_count_request_builder.go index 40c678b2f13..22005d5550a 100644 --- a/users/item_transitive_member_of_graph_group_count_request_builder.go +++ b/users/item_transitive_member_of_graph_group_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemTransitiveMemberOfGraphGroupCountRequestBuilder(rawUrl string, reque return NewItemTransitiveMemberOfGraphGroupCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTransitiveMemberOfGraphGroupCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTransitiveMemberOfGraphGroupCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemTransitiveMemberOfGraphGroupCountRequestBuilder) Get(ctx context.Co return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTransitiveMemberOfGraphGroupCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTransitiveMemberOfGraphGroupCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemTransitiveMemberOfGraphGroupCountRequestBuilder) ToGetRequestInform return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTransitiveMemberOfGraphGroupCountRequestBuilder when successful func (m *ItemTransitiveMemberOfGraphGroupCountRequestBuilder) WithUrl(rawUrl string)(*ItemTransitiveMemberOfGraphGroupCountRequestBuilder) { return NewItemTransitiveMemberOfGraphGroupCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_transitive_member_of_graph_group_request_builder.go b/users/item_transitive_member_of_graph_group_request_builder.go index b63348e1039..f703b45fbb9 100644 --- a/users/item_transitive_member_of_graph_group_request_builder.go +++ b/users/item_transitive_member_of_graph_group_request_builder.go @@ -58,6 +58,7 @@ func (m *ItemTransitiveMemberOfGraphGroupRequestBuilder) Count()(*ItemTransitive return NewItemTransitiveMemberOfGraphGroupCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a GroupCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTransitiveMemberOfGraphGroupRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTransitiveMemberOfGraphGroupRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GroupCollectionResponseable, error) { @@ -78,6 +79,7 @@ func (m *ItemTransitiveMemberOfGraphGroupRequestBuilder) Get(ctx context.Context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.GroupCollectionResponseable), nil } // ToGetRequestInformation get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTransitiveMemberOfGraphGroupRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTransitiveMemberOfGraphGroupRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -92,6 +94,7 @@ func (m *ItemTransitiveMemberOfGraphGroupRequestBuilder) ToGetRequestInformation return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTransitiveMemberOfGraphGroupRequestBuilder when successful func (m *ItemTransitiveMemberOfGraphGroupRequestBuilder) WithUrl(rawUrl string)(*ItemTransitiveMemberOfGraphGroupRequestBuilder) { return NewItemTransitiveMemberOfGraphGroupRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_transitive_member_of_item_graph_administrative_unit_request_builder.go b/users/item_transitive_member_of_item_graph_administrative_unit_request_builder.go index 2c7ef1bb40c..e28c2cb15f3 100644 --- a/users/item_transitive_member_of_item_graph_administrative_unit_request_builder.go +++ b/users/item_transitive_member_of_item_graph_administrative_unit_request_builder.go @@ -41,6 +41,7 @@ func NewItemTransitiveMemberOfItemGraphAdministrativeUnitRequestBuilder(rawUrl s return NewItemTransitiveMemberOfItemGraphAdministrativeUnitRequestBuilderInternal(urlParams, requestAdapter) } // Get get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a AdministrativeUnitable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTransitiveMemberOfItemGraphAdministrativeUnitRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTransitiveMemberOfItemGraphAdministrativeUnitRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdministrativeUnitable, error) { @@ -61,6 +62,7 @@ func (m *ItemTransitiveMemberOfItemGraphAdministrativeUnitRequestBuilder) Get(ct return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AdministrativeUnitable), nil } // ToGetRequestInformation get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTransitiveMemberOfItemGraphAdministrativeUnitRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTransitiveMemberOfItemGraphAdministrativeUnitRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemTransitiveMemberOfItemGraphAdministrativeUnitRequestBuilder) ToGetR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTransitiveMemberOfItemGraphAdministrativeUnitRequestBuilder when successful func (m *ItemTransitiveMemberOfItemGraphAdministrativeUnitRequestBuilder) WithUrl(rawUrl string)(*ItemTransitiveMemberOfItemGraphAdministrativeUnitRequestBuilder) { return NewItemTransitiveMemberOfItemGraphAdministrativeUnitRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_transitive_member_of_item_graph_directory_role_request_builder.go b/users/item_transitive_member_of_item_graph_directory_role_request_builder.go index cf95081e948..ebfdc758304 100644 --- a/users/item_transitive_member_of_item_graph_directory_role_request_builder.go +++ b/users/item_transitive_member_of_item_graph_directory_role_request_builder.go @@ -41,6 +41,7 @@ func NewItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilder(rawUrl string return NewItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilderInternal(urlParams, requestAdapter) } // Get get the item of type microsoft.graph.directoryObject as microsoft.graph.directoryRole +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DirectoryRoleable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryRoleable, error) { @@ -61,6 +62,7 @@ func (m *ItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilder) Get(ctx con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryRoleable), nil } // ToGetRequestInformation get the item of type microsoft.graph.directoryObject as microsoft.graph.directoryRole +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilder) ToGetReques return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilder when successful func (m *ItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilder) WithUrl(rawUrl string)(*ItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilder) { return NewItemTransitiveMemberOfItemGraphDirectoryRoleRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_transitive_member_of_item_graph_group_request_builder.go b/users/item_transitive_member_of_item_graph_group_request_builder.go index e5d436c5c5a..8178e5d4723 100644 --- a/users/item_transitive_member_of_item_graph_group_request_builder.go +++ b/users/item_transitive_member_of_item_graph_group_request_builder.go @@ -41,6 +41,7 @@ func NewItemTransitiveMemberOfItemGraphGroupRequestBuilder(rawUrl string, reques return NewItemTransitiveMemberOfItemGraphGroupRequestBuilderInternal(urlParams, requestAdapter) } // Get get the item of type microsoft.graph.directoryObject as microsoft.graph.group +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Groupable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTransitiveMemberOfItemGraphGroupRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTransitiveMemberOfItemGraphGroupRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Groupable, error) { @@ -61,6 +62,7 @@ func (m *ItemTransitiveMemberOfItemGraphGroupRequestBuilder) Get(ctx context.Con return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Groupable), nil } // ToGetRequestInformation get the item of type microsoft.graph.directoryObject as microsoft.graph.group +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTransitiveMemberOfItemGraphGroupRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTransitiveMemberOfItemGraphGroupRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemTransitiveMemberOfItemGraphGroupRequestBuilder) ToGetRequestInforma return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTransitiveMemberOfItemGraphGroupRequestBuilder when successful func (m *ItemTransitiveMemberOfItemGraphGroupRequestBuilder) WithUrl(rawUrl string)(*ItemTransitiveMemberOfItemGraphGroupRequestBuilder) { return NewItemTransitiveMemberOfItemGraphGroupRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_transitive_member_of_request_builder.go b/users/item_transitive_member_of_request_builder.go index e5cf83d9b0a..a2dfbad75f9 100644 --- a/users/item_transitive_member_of_request_builder.go +++ b/users/item_transitive_member_of_request_builder.go @@ -40,6 +40,7 @@ type ItemTransitiveMemberOfRequestBuilderGetRequestConfiguration struct { QueryParameters *ItemTransitiveMemberOfRequestBuilderGetQueryParameters } // ByDirectoryObjectId provides operations to manage the transitiveMemberOf property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTransitiveMemberOfDirectoryObjectItemRequestBuilder when successful func (m *ItemTransitiveMemberOfRequestBuilder) ByDirectoryObjectId(directoryObjectId string)(*ItemTransitiveMemberOfDirectoryObjectItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -70,6 +71,7 @@ func (m *ItemTransitiveMemberOfRequestBuilder) Count()(*ItemTransitiveMemberOfCo return NewItemTransitiveMemberOfCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get groups, directory roles, and administrative units that the user is a member of through either direct or transitive membership. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DirectoryObjectCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -108,6 +110,7 @@ func (m *ItemTransitiveMemberOfRequestBuilder) GraphGroup()(*ItemTransitiveMembe return NewItemTransitiveMemberOfGraphGroupRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation get groups, directory roles, and administrative units that the user is a member of through either direct or transitive membership. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTransitiveMemberOfRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTransitiveMemberOfRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +125,7 @@ func (m *ItemTransitiveMemberOfRequestBuilder) ToGetRequestInformation(ctx conte return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTransitiveMemberOfRequestBuilder when successful func (m *ItemTransitiveMemberOfRequestBuilder) WithUrl(rawUrl string)(*ItemTransitiveMemberOfRequestBuilder) { return NewItemTransitiveMemberOfRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_transitive_reports_count_request_builder.go b/users/item_transitive_reports_count_request_builder.go index 23c6f90d438..27bbefadbcd 100644 --- a/users/item_transitive_reports_count_request_builder.go +++ b/users/item_transitive_reports_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemTransitiveReportsCountRequestBuilder(rawUrl string, requestAdapter i return NewItemTransitiveReportsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTransitiveReportsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTransitiveReportsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemTransitiveReportsCountRequestBuilder) Get(ctx context.Context, requ return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTransitiveReportsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTransitiveReportsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemTransitiveReportsCountRequestBuilder) ToGetRequestInformation(ctx c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTransitiveReportsCountRequestBuilder when successful func (m *ItemTransitiveReportsCountRequestBuilder) WithUrl(rawUrl string)(*ItemTransitiveReportsCountRequestBuilder) { return NewItemTransitiveReportsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_transitive_reports_directory_object_item_request_builder.go b/users/item_transitive_reports_directory_object_item_request_builder.go index 678dc0952ea..07897916982 100644 --- a/users/item_transitive_reports_directory_object_item_request_builder.go +++ b/users/item_transitive_reports_directory_object_item_request_builder.go @@ -41,6 +41,7 @@ func NewItemTransitiveReportsDirectoryObjectItemRequestBuilder(rawUrl string, re return NewItemTransitiveReportsDirectoryObjectItemRequestBuilderInternal(urlParams, requestAdapter) } // Get the transitive reports for a user. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DirectoryObjectable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemTransitiveReportsDirectoryObjectItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemTransitiveReportsDirectoryObjectItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryObjectable, error) { @@ -61,6 +62,7 @@ func (m *ItemTransitiveReportsDirectoryObjectItemRequestBuilder) Get(ctx context return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryObjectable), nil } // ToGetRequestInformation the transitive reports for a user. Read-only. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTransitiveReportsDirectoryObjectItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTransitiveReportsDirectoryObjectItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemTransitiveReportsDirectoryObjectItemRequestBuilder) ToGetRequestInf return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTransitiveReportsDirectoryObjectItemRequestBuilder when successful func (m *ItemTransitiveReportsDirectoryObjectItemRequestBuilder) WithUrl(rawUrl string)(*ItemTransitiveReportsDirectoryObjectItemRequestBuilder) { return NewItemTransitiveReportsDirectoryObjectItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_transitive_reports_request_builder.go b/users/item_transitive_reports_request_builder.go index ada2b627306..c739fc16929 100644 --- a/users/item_transitive_reports_request_builder.go +++ b/users/item_transitive_reports_request_builder.go @@ -40,6 +40,7 @@ type ItemTransitiveReportsRequestBuilderGetRequestConfiguration struct { QueryParameters *ItemTransitiveReportsRequestBuilderGetQueryParameters } // ByDirectoryObjectId provides operations to manage the transitiveReports property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTransitiveReportsDirectoryObjectItemRequestBuilder when successful func (m *ItemTransitiveReportsRequestBuilder) ByDirectoryObjectId(directoryObjectId string)(*ItemTransitiveReportsDirectoryObjectItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -70,6 +71,7 @@ func (m *ItemTransitiveReportsRequestBuilder) Count()(*ItemTransitiveReportsCoun return NewItemTransitiveReportsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get retrieve a count of transitive reports for a user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a DirectoryObjectCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -93,6 +95,7 @@ func (m *ItemTransitiveReportsRequestBuilder) Get(ctx context.Context, requestCo return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.DirectoryObjectCollectionResponseable), nil } // ToGetRequestInformation retrieve a count of transitive reports for a user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTransitiveReportsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemTransitiveReportsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -107,6 +110,7 @@ func (m *ItemTransitiveReportsRequestBuilder) ToGetRequestInformation(ctx contex return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTransitiveReportsRequestBuilder when successful func (m *ItemTransitiveReportsRequestBuilder) WithUrl(rawUrl string)(*ItemTransitiveReportsRequestBuilder) { return NewItemTransitiveReportsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_translate_exchange_ids_request_builder.go b/users/item_translate_exchange_ids_request_builder.go index ecf9fa11c15..a75a4c3199f 100644 --- a/users/item_translate_exchange_ids_request_builder.go +++ b/users/item_translate_exchange_ids_request_builder.go @@ -55,6 +55,7 @@ func (m *ItemTranslateExchangeIdsRequestBuilder) Post(ctx context.Context, body return res.(ItemTranslateExchangeIdsResponseable), nil } // PostAsTranslateExchangeIdsPostResponse translate identifiers of Outlook-related resources between formats. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ItemTranslateExchangeIdsPostResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -78,6 +79,7 @@ func (m *ItemTranslateExchangeIdsRequestBuilder) PostAsTranslateExchangeIdsPostR return res.(ItemTranslateExchangeIdsPostResponseable), nil } // ToPostRequestInformation translate identifiers of Outlook-related resources between formats. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemTranslateExchangeIdsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemTranslateExchangeIdsPostRequestBodyable, requestConfiguration *ItemTranslateExchangeIdsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -93,6 +95,7 @@ func (m *ItemTranslateExchangeIdsRequestBuilder) ToPostRequestInformation(ctx co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemTranslateExchangeIdsRequestBuilder when successful func (m *ItemTranslateExchangeIdsRequestBuilder) WithUrl(rawUrl string)(*ItemTranslateExchangeIdsRequestBuilder) { return NewItemTranslateExchangeIdsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_unblock_managed_apps_request_builder.go b/users/item_unblock_managed_apps_request_builder.go index 1c16b5c0d30..df4698c724a 100644 --- a/users/item_unblock_managed_apps_request_builder.go +++ b/users/item_unblock_managed_apps_request_builder.go @@ -31,6 +31,7 @@ func NewItemUnblockManagedAppsRequestBuilder(rawUrl string, requestAdapter i2ae4 return NewItemUnblockManagedAppsRequestBuilderInternal(urlParams, requestAdapter) } // Post unblocks the managed app user from app check-in. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemUnblockManagedAppsRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemUnblockManagedAppsRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemUnblockManagedAppsRequestBuilder) Post(ctx context.Context, request return nil } // ToPostRequestInformation unblocks the managed app user from app check-in. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemUnblockManagedAppsRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemUnblockManagedAppsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -58,6 +60,7 @@ func (m *ItemUnblockManagedAppsRequestBuilder) ToPostRequestInformation(ctx cont return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemUnblockManagedAppsRequestBuilder when successful func (m *ItemUnblockManagedAppsRequestBuilder) WithUrl(rawUrl string)(*ItemUnblockManagedAppsRequestBuilder) { return NewItemUnblockManagedAppsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_usage_rights_count_request_builder.go b/users/item_usage_rights_count_request_builder.go index f830b8459cd..c52122152c3 100644 --- a/users/item_usage_rights_count_request_builder.go +++ b/users/item_usage_rights_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemUsageRightsCountRequestBuilder(rawUrl string, requestAdapter i2ae418 return NewItemUsageRightsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemUsageRightsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemUsageRightsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemUsageRightsCountRequestBuilder) Get(ctx context.Context, requestCon return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemUsageRightsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemUsageRightsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemUsageRightsCountRequestBuilder) ToGetRequestInformation(ctx context return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemUsageRightsCountRequestBuilder when successful func (m *ItemUsageRightsCountRequestBuilder) WithUrl(rawUrl string)(*ItemUsageRightsCountRequestBuilder) { return NewItemUsageRightsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_usage_rights_request_builder.go b/users/item_usage_rights_request_builder.go index 2a7023aef01..23aa5c57180 100644 --- a/users/item_usage_rights_request_builder.go +++ b/users/item_usage_rights_request_builder.go @@ -47,6 +47,7 @@ type ItemUsageRightsRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByUsageRightId provides operations to manage the usageRights property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemUsageRightsUsageRightItemRequestBuilder when successful func (m *ItemUsageRightsRequestBuilder) ByUsageRightId(usageRightId string)(*ItemUsageRightsUsageRightItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -77,6 +78,7 @@ func (m *ItemUsageRightsRequestBuilder) Count()(*ItemUsageRightsCountRequestBuil return NewItemUsageRightsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get retrieve a list of usageRight objects for a given user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UsageRightCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -100,6 +102,7 @@ func (m *ItemUsageRightsRequestBuilder) Get(ctx context.Context, requestConfigur return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UsageRightCollectionResponseable), nil } // Post create new navigation property to usageRights for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UsageRightable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemUsageRightsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UsageRightable, requestConfiguration *ItemUsageRightsRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UsageRightable, error) { @@ -120,6 +123,7 @@ func (m *ItemUsageRightsRequestBuilder) Post(ctx context.Context, body ie233ee76 return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UsageRightable), nil } // ToGetRequestInformation retrieve a list of usageRight objects for a given user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemUsageRightsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemUsageRightsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -134,6 +138,7 @@ func (m *ItemUsageRightsRequestBuilder) ToGetRequestInformation(ctx context.Cont return requestInfo, nil } // ToPostRequestInformation create new navigation property to usageRights for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemUsageRightsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UsageRightable, requestConfiguration *ItemUsageRightsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -149,6 +154,7 @@ func (m *ItemUsageRightsRequestBuilder) ToPostRequestInformation(ctx context.Con return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemUsageRightsRequestBuilder when successful func (m *ItemUsageRightsRequestBuilder) WithUrl(rawUrl string)(*ItemUsageRightsRequestBuilder) { return NewItemUsageRightsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_usage_rights_usage_right_item_request_builder.go b/users/item_usage_rights_usage_right_item_request_builder.go index e1612dd6ff2..062f544aa0d 100644 --- a/users/item_usage_rights_usage_right_item_request_builder.go +++ b/users/item_usage_rights_usage_right_item_request_builder.go @@ -55,6 +55,7 @@ func NewItemUsageRightsUsageRightItemRequestBuilder(rawUrl string, requestAdapte return NewItemUsageRightsUsageRightItemRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property usageRights for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemUsageRightsUsageRightItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemUsageRightsUsageRightItemRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemUsageRightsUsageRightItemRequestBuilder) Delete(ctx context.Context return nil } // Get represents the usage rights a user has been granted. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UsageRightable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemUsageRightsUsageRightItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemUsageRightsUsageRightItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UsageRightable, error) { @@ -91,6 +93,7 @@ func (m *ItemUsageRightsUsageRightItemRequestBuilder) Get(ctx context.Context, r return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UsageRightable), nil } // Patch update the navigation property usageRights in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UsageRightable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemUsageRightsUsageRightItemRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UsageRightable, requestConfiguration *ItemUsageRightsUsageRightItemRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UsageRightable, error) { @@ -111,6 +114,7 @@ func (m *ItemUsageRightsUsageRightItemRequestBuilder) Patch(ctx context.Context, return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UsageRightable), nil } // ToDeleteRequestInformation delete navigation property usageRights for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemUsageRightsUsageRightItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemUsageRightsUsageRightItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemUsageRightsUsageRightItemRequestBuilder) ToDeleteRequestInformation return requestInfo, nil } // ToGetRequestInformation represents the usage rights a user has been granted. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemUsageRightsUsageRightItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemUsageRightsUsageRightItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemUsageRightsUsageRightItemRequestBuilder) ToGetRequestInformation(ct return requestInfo, nil } // ToPatchRequestInformation update the navigation property usageRights in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemUsageRightsUsageRightItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UsageRightable, requestConfiguration *ItemUsageRightsUsageRightItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -151,6 +157,7 @@ func (m *ItemUsageRightsUsageRightItemRequestBuilder) ToPatchRequestInformation( return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemUsageRightsUsageRightItemRequestBuilder when successful func (m *ItemUsageRightsUsageRightItemRequestBuilder) WithUrl(rawUrl string)(*ItemUsageRightsUsageRightItemRequestBuilder) { return NewItemUsageRightsUsageRightItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_virtual_events_request_builder.go b/users/item_virtual_events_request_builder.go index b5c1ba202da..67ef945dc38 100644 --- a/users/item_virtual_events_request_builder.go +++ b/users/item_virtual_events_request_builder.go @@ -55,6 +55,7 @@ func NewItemVirtualEventsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7 return NewItemVirtualEventsRequestBuilderInternal(urlParams, requestAdapter) } // Delete delete navigation property virtualEvents for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemVirtualEventsRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemVirtualEventsRequestBuilderDeleteRequestConfiguration)(error) { requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration); @@ -71,6 +72,7 @@ func (m *ItemVirtualEventsRequestBuilder) Delete(ctx context.Context, requestCon return nil } // Get get virtualEvents from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserVirtualEventsRootable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemVirtualEventsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemVirtualEventsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserVirtualEventsRootable, error) { @@ -91,6 +93,7 @@ func (m *ItemVirtualEventsRequestBuilder) Get(ctx context.Context, requestConfig return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserVirtualEventsRootable), nil } // Patch update the navigation property virtualEvents in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserVirtualEventsRootable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemVirtualEventsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserVirtualEventsRootable, requestConfiguration *ItemVirtualEventsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserVirtualEventsRootable, error) { @@ -111,6 +114,7 @@ func (m *ItemVirtualEventsRequestBuilder) Patch(ctx context.Context, body ie233e return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserVirtualEventsRootable), nil } // ToDeleteRequestInformation delete navigation property virtualEvents for users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemVirtualEventsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemVirtualEventsRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -122,6 +126,7 @@ func (m *ItemVirtualEventsRequestBuilder) ToDeleteRequestInformation(ctx context return requestInfo, nil } // ToGetRequestInformation get virtualEvents from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemVirtualEventsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemVirtualEventsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -136,6 +141,7 @@ func (m *ItemVirtualEventsRequestBuilder) ToGetRequestInformation(ctx context.Co return requestInfo, nil } // ToPatchRequestInformation update the navigation property virtualEvents in users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemVirtualEventsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserVirtualEventsRootable, requestConfiguration *ItemVirtualEventsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -156,6 +162,7 @@ func (m *ItemVirtualEventsRequestBuilder) Webinars()(*ItemVirtualEventsWebinarsR return NewItemVirtualEventsWebinarsRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemVirtualEventsRequestBuilder when successful func (m *ItemVirtualEventsRequestBuilder) WithUrl(rawUrl string)(*ItemVirtualEventsRequestBuilder) { return NewItemVirtualEventsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_virtual_events_webinars_count_request_builder.go b/users/item_virtual_events_webinars_count_request_builder.go index f0019d06de8..df562702c8d 100644 --- a/users/item_virtual_events_webinars_count_request_builder.go +++ b/users/item_virtual_events_webinars_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemVirtualEventsWebinarsCountRequestBuilder(rawUrl string, requestAdapt return NewItemVirtualEventsWebinarsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemVirtualEventsWebinarsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemVirtualEventsWebinarsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemVirtualEventsWebinarsCountRequestBuilder) Get(ctx context.Context, return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemVirtualEventsWebinarsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemVirtualEventsWebinarsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemVirtualEventsWebinarsCountRequestBuilder) ToGetRequestInformation(c return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemVirtualEventsWebinarsCountRequestBuilder when successful func (m *ItemVirtualEventsWebinarsCountRequestBuilder) WithUrl(rawUrl string)(*ItemVirtualEventsWebinarsCountRequestBuilder) { return NewItemVirtualEventsWebinarsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_virtual_events_webinars_request_builder.go b/users/item_virtual_events_webinars_request_builder.go index 3f8d32ee0c0..9632d41e16a 100644 --- a/users/item_virtual_events_webinars_request_builder.go +++ b/users/item_virtual_events_webinars_request_builder.go @@ -40,6 +40,7 @@ type ItemVirtualEventsWebinarsRequestBuilderGetRequestConfiguration struct { QueryParameters *ItemVirtualEventsWebinarsRequestBuilderGetQueryParameters } // ByVirtualEventWebinarId provides operations to manage the webinars property of the microsoft.graph.userVirtualEventsRoot entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemVirtualEventsWebinarsVirtualEventWebinarItemRequestBuilder when successful func (m *ItemVirtualEventsWebinarsRequestBuilder) ByVirtualEventWebinarId(virtualEventWebinarId string)(*ItemVirtualEventsWebinarsVirtualEventWebinarItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -70,6 +71,7 @@ func (m *ItemVirtualEventsWebinarsRequestBuilder) Count()(*ItemVirtualEventsWebi return NewItemVirtualEventsWebinarsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get get webinars from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a VirtualEventWebinarCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemVirtualEventsWebinarsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemVirtualEventsWebinarsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventWebinarCollectionResponseable, error) { @@ -90,6 +92,7 @@ func (m *ItemVirtualEventsWebinarsRequestBuilder) Get(ctx context.Context, reque return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventWebinarCollectionResponseable), nil } // ToGetRequestInformation get webinars from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemVirtualEventsWebinarsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemVirtualEventsWebinarsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -104,6 +107,7 @@ func (m *ItemVirtualEventsWebinarsRequestBuilder) ToGetRequestInformation(ctx co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemVirtualEventsWebinarsRequestBuilder when successful func (m *ItemVirtualEventsWebinarsRequestBuilder) WithUrl(rawUrl string)(*ItemVirtualEventsWebinarsRequestBuilder) { return NewItemVirtualEventsWebinarsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_virtual_events_webinars_virtual_event_webinar_item_request_builder.go b/users/item_virtual_events_webinars_virtual_event_webinar_item_request_builder.go index 2fc3c31f9e0..c2f24175d1d 100644 --- a/users/item_virtual_events_webinars_virtual_event_webinar_item_request_builder.go +++ b/users/item_virtual_events_webinars_virtual_event_webinar_item_request_builder.go @@ -41,6 +41,7 @@ func NewItemVirtualEventsWebinarsVirtualEventWebinarItemRequestBuilder(rawUrl st return NewItemVirtualEventsWebinarsVirtualEventWebinarItemRequestBuilderInternal(urlParams, requestAdapter) } // Get get webinars from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a VirtualEventWebinarable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemVirtualEventsWebinarsVirtualEventWebinarItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemVirtualEventsWebinarsVirtualEventWebinarItemRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventWebinarable, error) { @@ -61,6 +62,7 @@ func (m *ItemVirtualEventsWebinarsVirtualEventWebinarItemRequestBuilder) Get(ctx return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.VirtualEventWebinarable), nil } // ToGetRequestInformation get webinars from users +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemVirtualEventsWebinarsVirtualEventWebinarItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemVirtualEventsWebinarsVirtualEventWebinarItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -75,6 +77,7 @@ func (m *ItemVirtualEventsWebinarsVirtualEventWebinarItemRequestBuilder) ToGetRe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemVirtualEventsWebinarsVirtualEventWebinarItemRequestBuilder when successful func (m *ItemVirtualEventsWebinarsVirtualEventWebinarItemRequestBuilder) WithUrl(rawUrl string)(*ItemVirtualEventsWebinarsVirtualEventWebinarItemRequestBuilder) { return NewItemVirtualEventsWebinarsVirtualEventWebinarItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_windows_information_protection_device_registrations_count_request_builder.go b/users/item_windows_information_protection_device_registrations_count_request_builder.go index f042ca8f501..cc81acfa75a 100644 --- a/users/item_windows_information_protection_device_registrations_count_request_builder.go +++ b/users/item_windows_information_protection_device_registrations_count_request_builder.go @@ -40,6 +40,7 @@ func NewItemWindowsInformationProtectionDeviceRegistrationsCountRequestBuilder(r return NewItemWindowsInformationProtectionDeviceRegistrationsCountRequestBuilderInternal(urlParams, requestAdapter) } // Get get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *int32 when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemWindowsInformationProtectionDeviceRegistrationsCountRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemWindowsInformationProtectionDeviceRegistrationsCountRequestBuilderGetRequestConfiguration)(*int32, error) { @@ -60,6 +61,7 @@ func (m *ItemWindowsInformationProtectionDeviceRegistrationsCountRequestBuilder) return res.(*int32), nil } // ToGetRequestInformation get the number of the resource +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemWindowsInformationProtectionDeviceRegistrationsCountRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemWindowsInformationProtectionDeviceRegistrationsCountRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -74,6 +76,7 @@ func (m *ItemWindowsInformationProtectionDeviceRegistrationsCountRequestBuilder) return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemWindowsInformationProtectionDeviceRegistrationsCountRequestBuilder when successful func (m *ItemWindowsInformationProtectionDeviceRegistrationsCountRequestBuilder) WithUrl(rawUrl string)(*ItemWindowsInformationProtectionDeviceRegistrationsCountRequestBuilder) { return NewItemWindowsInformationProtectionDeviceRegistrationsCountRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_windows_information_protection_device_registrations_request_builder.go b/users/item_windows_information_protection_device_registrations_request_builder.go index e1aedfebdb7..fc1c3a6cddc 100644 --- a/users/item_windows_information_protection_device_registrations_request_builder.go +++ b/users/item_windows_information_protection_device_registrations_request_builder.go @@ -40,6 +40,7 @@ type ItemWindowsInformationProtectionDeviceRegistrationsRequestBuilderGetRequest QueryParameters *ItemWindowsInformationProtectionDeviceRegistrationsRequestBuilderGetQueryParameters } // ByWindowsInformationProtectionDeviceRegistrationId provides operations to manage the windowsInformationProtectionDeviceRegistrations property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemWindowsInformationProtectionDeviceRegistrationsWindowsInformationProtectionDeviceRegistrationItemRequestBuilder when successful func (m *ItemWindowsInformationProtectionDeviceRegistrationsRequestBuilder) ByWindowsInformationProtectionDeviceRegistrationId(windowsInformationProtectionDeviceRegistrationId string)(*ItemWindowsInformationProtectionDeviceRegistrationsWindowsInformationProtectionDeviceRegistrationItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -70,6 +71,7 @@ func (m *ItemWindowsInformationProtectionDeviceRegistrationsRequestBuilder) Coun return NewItemWindowsInformationProtectionDeviceRegistrationsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get zero or more WIP device registrations that belong to the user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a WindowsInformationProtectionDeviceRegistrationCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemWindowsInformationProtectionDeviceRegistrationsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemWindowsInformationProtectionDeviceRegistrationsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsInformationProtectionDeviceRegistrationCollectionResponseable, error) { @@ -90,6 +92,7 @@ func (m *ItemWindowsInformationProtectionDeviceRegistrationsRequestBuilder) Get( return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.WindowsInformationProtectionDeviceRegistrationCollectionResponseable), nil } // ToGetRequestInformation zero or more WIP device registrations that belong to the user. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemWindowsInformationProtectionDeviceRegistrationsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemWindowsInformationProtectionDeviceRegistrationsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -104,6 +107,7 @@ func (m *ItemWindowsInformationProtectionDeviceRegistrationsRequestBuilder) ToGe return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemWindowsInformationProtectionDeviceRegistrationsRequestBuilder when successful func (m *ItemWindowsInformationProtectionDeviceRegistrationsRequestBuilder) WithUrl(rawUrl string)(*ItemWindowsInformationProtectionDeviceRegistrationsRequestBuilder) { return NewItemWindowsInformationProtectionDeviceRegistrationsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_wipe_and_block_managed_apps_request_builder.go b/users/item_wipe_and_block_managed_apps_request_builder.go index 4829648a11a..5b44e1e121a 100644 --- a/users/item_wipe_and_block_managed_apps_request_builder.go +++ b/users/item_wipe_and_block_managed_apps_request_builder.go @@ -31,6 +31,7 @@ func NewItemWipeAndBlockManagedAppsRequestBuilder(rawUrl string, requestAdapter return NewItemWipeAndBlockManagedAppsRequestBuilderInternal(urlParams, requestAdapter) } // Post blocks the managed app user from app check-in. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemWipeAndBlockManagedAppsRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemWipeAndBlockManagedAppsRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemWipeAndBlockManagedAppsRequestBuilder) Post(ctx context.Context, re return nil } // ToPostRequestInformation blocks the managed app user from app check-in. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemWipeAndBlockManagedAppsRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemWipeAndBlockManagedAppsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -58,6 +60,7 @@ func (m *ItemWipeAndBlockManagedAppsRequestBuilder) ToPostRequestInformation(ctx return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemWipeAndBlockManagedAppsRequestBuilder when successful func (m *ItemWipeAndBlockManagedAppsRequestBuilder) WithUrl(rawUrl string)(*ItemWipeAndBlockManagedAppsRequestBuilder) { return NewItemWipeAndBlockManagedAppsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_wipe_managed_app_registration_by_device_tag_request_builder.go b/users/item_wipe_managed_app_registration_by_device_tag_request_builder.go index af7d3433934..57d26d9589a 100644 --- a/users/item_wipe_managed_app_registration_by_device_tag_request_builder.go +++ b/users/item_wipe_managed_app_registration_by_device_tag_request_builder.go @@ -31,6 +31,7 @@ func NewItemWipeManagedAppRegistrationByDeviceTagRequestBuilder(rawUrl string, r return NewItemWipeManagedAppRegistrationByDeviceTagRequestBuilderInternal(urlParams, requestAdapter) } // Post issues a wipe operation on an app registration with specified device tag. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemWipeManagedAppRegistrationByDeviceTagRequestBuilder) Post(ctx context.Context, body ItemWipeManagedAppRegistrationByDeviceTagPostRequestBodyable, requestConfiguration *ItemWipeManagedAppRegistrationByDeviceTagRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemWipeManagedAppRegistrationByDeviceTagRequestBuilder) Post(ctx conte return nil } // ToPostRequestInformation issues a wipe operation on an app registration with specified device tag. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemWipeManagedAppRegistrationByDeviceTagRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemWipeManagedAppRegistrationByDeviceTagPostRequestBodyable, requestConfiguration *ItemWipeManagedAppRegistrationByDeviceTagRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -62,6 +64,7 @@ func (m *ItemWipeManagedAppRegistrationByDeviceTagRequestBuilder) ToPostRequestI return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemWipeManagedAppRegistrationByDeviceTagRequestBuilder when successful func (m *ItemWipeManagedAppRegistrationByDeviceTagRequestBuilder) WithUrl(rawUrl string)(*ItemWipeManagedAppRegistrationByDeviceTagRequestBuilder) { return NewItemWipeManagedAppRegistrationByDeviceTagRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_wipe_managed_app_registrations_by_azure_ad_device_id_request_builder.go b/users/item_wipe_managed_app_registrations_by_azure_ad_device_id_request_builder.go index ca891dac797..62b4bb34a5f 100644 --- a/users/item_wipe_managed_app_registrations_by_azure_ad_device_id_request_builder.go +++ b/users/item_wipe_managed_app_registrations_by_azure_ad_device_id_request_builder.go @@ -31,6 +31,7 @@ func NewItemWipeManagedAppRegistrationsByAzureAdDeviceIdRequestBuilder(rawUrl st return NewItemWipeManagedAppRegistrationsByAzureAdDeviceIdRequestBuilderInternal(urlParams, requestAdapter) } // Post issues a wipe operation on an app registration with specified aad device Id. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemWipeManagedAppRegistrationsByAzureAdDeviceIdRequestBuilder) Post(ctx context.Context, body ItemWipeManagedAppRegistrationsByAzureAdDeviceIdPostRequestBodyable, requestConfiguration *ItemWipeManagedAppRegistrationsByAzureAdDeviceIdRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemWipeManagedAppRegistrationsByAzureAdDeviceIdRequestBuilder) Post(ct return nil } // ToPostRequestInformation issues a wipe operation on an app registration with specified aad device Id. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemWipeManagedAppRegistrationsByAzureAdDeviceIdRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemWipeManagedAppRegistrationsByAzureAdDeviceIdPostRequestBodyable, requestConfiguration *ItemWipeManagedAppRegistrationsByAzureAdDeviceIdRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -62,6 +64,7 @@ func (m *ItemWipeManagedAppRegistrationsByAzureAdDeviceIdRequestBuilder) ToPostR return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemWipeManagedAppRegistrationsByAzureAdDeviceIdRequestBuilder when successful func (m *ItemWipeManagedAppRegistrationsByAzureAdDeviceIdRequestBuilder) WithUrl(rawUrl string)(*ItemWipeManagedAppRegistrationsByAzureAdDeviceIdRequestBuilder) { return NewItemWipeManagedAppRegistrationsByAzureAdDeviceIdRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/item_wipe_managed_app_registrations_by_device_tag_request_builder.go b/users/item_wipe_managed_app_registrations_by_device_tag_request_builder.go index 2e60896797e..5b684e60c81 100644 --- a/users/item_wipe_managed_app_registrations_by_device_tag_request_builder.go +++ b/users/item_wipe_managed_app_registrations_by_device_tag_request_builder.go @@ -31,6 +31,7 @@ func NewItemWipeManagedAppRegistrationsByDeviceTagRequestBuilder(rawUrl string, return NewItemWipeManagedAppRegistrationsByDeviceTagRequestBuilderInternal(urlParams, requestAdapter) } // Post issues a wipe operation on an app registration with specified device tag. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code func (m *ItemWipeManagedAppRegistrationsByDeviceTagRequestBuilder) Post(ctx context.Context, body ItemWipeManagedAppRegistrationsByDeviceTagPostRequestBodyable, requestConfiguration *ItemWipeManagedAppRegistrationsByDeviceTagRequestBuilderPostRequestConfiguration)(error) { requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration); @@ -47,6 +48,7 @@ func (m *ItemWipeManagedAppRegistrationsByDeviceTagRequestBuilder) Post(ctx cont return nil } // ToPostRequestInformation issues a wipe operation on an app registration with specified device tag. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ItemWipeManagedAppRegistrationsByDeviceTagRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemWipeManagedAppRegistrationsByDeviceTagPostRequestBodyable, requestConfiguration *ItemWipeManagedAppRegistrationsByDeviceTagRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -62,6 +64,7 @@ func (m *ItemWipeManagedAppRegistrationsByDeviceTagRequestBuilder) ToPostRequest return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemWipeManagedAppRegistrationsByDeviceTagRequestBuilder when successful func (m *ItemWipeManagedAppRegistrationsByDeviceTagRequestBuilder) WithUrl(rawUrl string)(*ItemWipeManagedAppRegistrationsByDeviceTagRequestBuilder) { return NewItemWipeManagedAppRegistrationsByDeviceTagRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/user_item_request_builder.go b/users/user_item_request_builder.go index 39af0e4a465..9cf27323ede 100644 --- a/users/user_item_request_builder.go +++ b/users/user_item_request_builder.go @@ -67,6 +67,7 @@ func (m *UserItemRequestBuilder) AppRoleAssignedResources()(*ItemAppRoleAssigned return NewItemAppRoleAssignedResourcesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // AppRoleAssignedResourcesWithAppId provides operations to manage the appRoleAssignedResources property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemAppRoleAssignedResourcesWithAppIdRequestBuilder when successful func (m *UserItemRequestBuilder) AppRoleAssignedResourcesWithAppId(appId *string)(*ItemAppRoleAssignedResourcesWithAppIdRequestBuilder) { return NewItemAppRoleAssignedResourcesWithAppIdRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, appId) @@ -175,6 +176,7 @@ func (m *UserItemRequestBuilder) CreatedObjects()(*ItemCreatedObjectsRequestBuil return NewItemCreatedObjectsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Delete delete a user object. When deleted, user resources, including their mailbox and license assignments, are moved to a temporary container and if the user is restored within 30 days, these objects are restored to them. The user is also restored to any groups they were a member of. After 30 days and if not restored, the user object is permanently deleted and their assigned resources freed. To manage the deleted user object, see deletedItems. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -214,6 +216,7 @@ func (m *UserItemRequestBuilder) Devices()(*ItemDevicesRequestBuilder) { return NewItemDevicesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // DevicesWithDeviceId provides operations to manage the devices property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemDevicesWithDeviceIdRequestBuilder when successful func (m *UserItemRequestBuilder) DevicesWithDeviceId(deviceId *string)(*ItemDevicesWithDeviceIdRequestBuilder) { return NewItemDevicesWithDeviceIdRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, deviceId) @@ -249,6 +252,7 @@ func (m *UserItemRequestBuilder) ExportDeviceAndAppManagementData()(*ItemExportD return NewItemExportDeviceAndAppManagementDataRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ExportDeviceAndAppManagementDataWithSkipWithTop provides operations to call the exportDeviceAndAppManagementData method. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder when successful func (m *UserItemRequestBuilder) ExportDeviceAndAppManagementDataWithSkipWithTop(skip *int32, top *int32)(*ItemExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder) { return NewItemExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, skip, top) @@ -279,6 +283,7 @@ func (m *UserItemRequestBuilder) FindRooms()(*ItemFindRoomsRequestBuilder) { return NewItemFindRoomsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // FindRoomsWithRoomList provides operations to call the findRooms method. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemFindRoomsWithRoomListRequestBuilder when successful func (m *UserItemRequestBuilder) FindRoomsWithRoomList(roomList *string)(*ItemFindRoomsWithRoomListRequestBuilder) { return NewItemFindRoomsWithRoomListRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, roomList) @@ -289,6 +294,7 @@ func (m *UserItemRequestBuilder) FollowedSites()(*ItemFollowedSitesRequestBuilde return NewItemFollowedSitesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. Customers through Microsoft Entra ID for customers can also use this API operation to retrieve their details. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -477,6 +483,7 @@ func (m *UserItemRequestBuilder) OnlineMeetings()(*ItemOnlineMeetingsRequestBuil return NewItemOnlineMeetingsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // OnlineMeetingsWithJoinWebUrl provides operations to manage the onlineMeetings property of the microsoft.graph.user entity. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemOnlineMeetingsWithJoinWebUrlRequestBuilder when successful func (m *UserItemRequestBuilder) OnlineMeetingsWithJoinWebUrl(joinWebUrl *string)(*ItemOnlineMeetingsWithJoinWebUrlRequestBuilder) { return NewItemOnlineMeetingsWithJoinWebUrlRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, joinWebUrl) @@ -497,6 +504,7 @@ func (m *UserItemRequestBuilder) OwnedObjects()(*ItemOwnedObjectsRequestBuilder) return NewItemOwnedObjectsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Patch update the properties of a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -565,6 +573,7 @@ func (m *UserItemRequestBuilder) RegisteredDevices()(*ItemRegisteredDevicesReque return NewItemRegisteredDevicesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ReminderViewWithStartDateTimeWithEndDateTime provides operations to call the reminderView method. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ItemReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder when successful func (m *UserItemRequestBuilder) ReminderViewWithStartDateTimeWithEndDateTime(endDateTime *string, startDateTime *string)(*ItemReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder) { return NewItemReminderViewWithStartDateTimeWithEndDateTimeRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter, endDateTime, startDateTime) @@ -635,6 +644,7 @@ func (m *UserItemRequestBuilder) Teamwork()(*ItemTeamworkRequestBuilder) { return NewItemTeamworkRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToDeleteRequestInformation delete a user object. When deleted, user resources, including their mailbox and license assignments, are moved to a temporary container and if the user is restored within 30 days, these objects are restored to them. The user is also restored to any groups they were a member of. After 30 days and if not restored, the user object is permanently deleted and their assigned resources freed. To manage the deleted user object, see deletedItems. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // 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) @@ -651,6 +661,7 @@ func (m *UserItemRequestBuilder) Todo()(*ItemTodoRequestBuilder) { return NewItemTodoRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // ToGetRequestInformation retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. Customers through Microsoft Entra ID for customers can also use this API operation to retrieve their details. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *UserItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *UserItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -665,6 +676,7 @@ func (m *UserItemRequestBuilder) ToGetRequestInformation(ctx context.Context, re return requestInfo, nil } // ToPatchRequestInformation update the properties of a user object. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *UserItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, requestConfiguration *UserItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -735,6 +747,7 @@ func (m *UserItemRequestBuilder) WipeManagedAppRegistrationsByDeviceTag()(*ItemW return NewItemWipeManagedAppRegistrationsByDeviceTagRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *UserItemRequestBuilder when successful func (m *UserItemRequestBuilder) WithUrl(rawUrl string)(*UserItemRequestBuilder) { return NewUserItemRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/users_request_builder.go b/users/users_request_builder.go index a13a2449f76..dd99c3b5b3b 100644 --- a/users/users_request_builder.go +++ b/users/users_request_builder.go @@ -45,6 +45,7 @@ type UsersRequestBuilderPostRequestConfiguration struct { Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption } // ByUserId provides operations to manage the collection of user entities. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *UserItemRequestBuilder when successful func (m *UsersRequestBuilder) ByUserId(userId string)(*UserItemRequestBuilder) { urlTplParams := make(map[string]string) @@ -80,6 +81,7 @@ func (m *UsersRequestBuilder) Delta()(*DeltaRequestBuilder) { return NewDeltaRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Get retrieve a list of user objects. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a UserCollectionResponseable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -118,6 +120,7 @@ func (m *UsersRequestBuilder) GetUserOwnedObjects()(*GetUserOwnedObjectsRequestB return NewGetUserOwnedObjectsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } // Post create a new user.The request body contains the user to create. At a minimum, you must specify the required properties for the user. You can optionally specify any other writable properties. This operation returns by default only a subset of the properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a Userable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -141,6 +144,7 @@ func (m *UsersRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba69 return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable), nil } // ToGetRequestInformation retrieve a list of user objects. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // 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) @@ -155,6 +159,7 @@ func (m *UsersRequestBuilder) ToGetRequestInformation(ctx context.Context, reque return requestInfo, nil } // ToPostRequestInformation create a new user.The request body contains the user to create. At a minimum, you must specify the required properties for the user. You can optionally specify any other writable properties. This operation returns by default only a subset of the properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *UsersRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.Userable, requestConfiguration *UsersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -180,6 +185,7 @@ func (m *UsersRequestBuilder) ValidateProperties()(*ValidatePropertiesRequestBui return NewValidatePropertiesRequestBuilderInternal(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. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *UsersRequestBuilder when successful func (m *UsersRequestBuilder) WithUrl(rawUrl string)(*UsersRequestBuilder) { return NewUsersRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/validate_password_request_builder.go b/users/validate_password_request_builder.go index f38abf983dc..18e5af452fd 100644 --- a/users/validate_password_request_builder.go +++ b/users/validate_password_request_builder.go @@ -32,6 +32,7 @@ func NewValidatePasswordRequestBuilder(rawUrl string, requestAdapter i2ae4187f7d return NewValidatePasswordRequestBuilderInternal(urlParams, requestAdapter) } // Post check a user's password against the organization's password validation policy and report whether the password is valid. Use this action to provide real-time feedback on password strength while the user types their password. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a PasswordValidationInformationable when successful // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] @@ -55,6 +56,7 @@ func (m *ValidatePasswordRequestBuilder) Post(ctx context.Context, body Validate return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.PasswordValidationInformationable), nil } // ToPostRequestInformation check a user's password against the organization's password validation policy and report whether the password is valid. Use this action to provide real-time feedback on password strength while the user types their password. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ValidatePasswordRequestBuilder) ToPostRequestInformation(ctx context.Context, body ValidatePasswordPostRequestBodyable, requestConfiguration *ValidatePasswordRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -70,6 +72,7 @@ func (m *ValidatePasswordRequestBuilder) ToPostRequestInformation(ctx context.Co return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ValidatePasswordRequestBuilder when successful func (m *ValidatePasswordRequestBuilder) WithUrl(rawUrl string)(*ValidatePasswordRequestBuilder) { return NewValidatePasswordRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter); diff --git a/users/validate_properties_request_builder.go b/users/validate_properties_request_builder.go index ff71f7bab30..e97e82db4a0 100644 --- a/users/validate_properties_request_builder.go +++ b/users/validate_properties_request_builder.go @@ -31,6 +31,7 @@ func NewValidatePropertiesRequestBuilder(rawUrl string, requestAdapter i2ae4187f return NewValidatePropertiesRequestBuilderInternal(urlParams, requestAdapter) } // Post validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. For validating properties of an existing group, use the validateProperties function for groups. The following validations are performed for the display name and mail nickname properties: 1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate the mail nickname is unique This API returns with the first failure encountered. If one or more properties fail multiple validations, only the property with the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a ODataError error when the service returns a 4XX or 5XX status code // [Find more info here] // @@ -50,6 +51,7 @@ func (m *ValidatePropertiesRequestBuilder) Post(ctx context.Context, body Valida return nil } // ToPostRequestInformation validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. For validating properties of an existing group, use the validateProperties function for groups. The following validations are performed for the display name and mail nickname properties: 1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate the mail nickname is unique This API returns with the first failure encountered. If one or more properties fail multiple validations, only the property with the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *RequestInformation when successful func (m *ValidatePropertiesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ValidatePropertiesPostRequestBodyable, requestConfiguration *ValidatePropertiesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) @@ -65,6 +67,7 @@ func (m *ValidatePropertiesRequestBuilder) ToPostRequestInformation(ctx context. return requestInfo, nil } // WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. +// Deprecated: as of 2024-07/PrivatePreview:copilotExportAPI // returns a *ValidatePropertiesRequestBuilder when successful func (m *ValidatePropertiesRequestBuilder) WithUrl(rawUrl string)(*ValidatePropertiesRequestBuilder) { return NewValidatePropertiesRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter);